OpenClaw + KIKO Agent Mode
This guide explains how to operate KIKO with automation agents (for example OpenClaw) using machine-readable anchors and coordinate mapping.What is For Agent Mode
For Agent Mode makes the UI machine-friendly by exposing:- Stable
data-agent-*anchors on interactive controls. - A live JSON map at
/agent-map.json(also available viawindow.__KIKO_AGENT_MAP__). - Route-level action recommendations (
actions[]) for UI-track and API-track automation.
Enable Agent Mode
Use either method:- URL override:
?agent_mode=1 - Settings:
Settings -> Automation -> For Agent Mode
?agent_mode=0.
Read llms files
Start with:/llms.txtfor compact route and capability summary./llms-full.txtfor detailed action semantics and fallback behavior.
Read live map
Open:/agent-map.json
app.routeandapp.agent_modenodes[]withid,role,action,text,value,bboxactions[]route-specific operation recipes
UI Track Example (Trade edit)
- Navigate to
/trade. - Query
/agent-map.jsonand findtrade.strategy.card.*.edit. - Click edit action node.
- Fill
trade.edit.buy_amount,trade.edit.take_profit_pct,trade.edit.stop_loss_pct. - Close edit dialog (autosave in current UX).
- Re-fetch
/agent-map.jsonand verify values changed.
API Track Example (Blueprint)
For API-driven agents, align to KIKO’s agent API blueprint (seeKiko.md):
POST /agent/tx/previewPOST /agent/tx/executePOST /agent/strategies
Skill templates
Copy and adapt:docs/reference/openclaw-skills/kiko-ui-trading-skill.yamldocs/reference/openclaw-skills/kiko-agent-api-skill.yaml
Common failures and fallback
- Node not found:
- Re-fetch map after route settle, then retry once.
- Node invisible:
- Execute required toggle/open action first.
- Action uncertain:
- Prefer stable explicit IDs (non-
auto.*) over generated fallback IDs.
- Prefer stable explicit IDs (non-
