How Adapters Work
When a heartbeat fires, AoA:- Looks up the agent’s
adapterTypeandadapterConfig - Calls the adapter’s
execute()function with the execution context - The adapter spawns or calls the agent runtime
- The adapter captures stdout, parses usage/cost data, and returns a structured result
Built-in Adapters
Adapter Architecture
Each adapter is a package with three modules:Choosing an Adapter
- Need a coding agent on the local machine? Use
claude_local,codex_local,opencode_local,cursor,gemini_local, orhermes_local - Need to run a script or command? Use
process - Need to call an HTTP endpoint or external service? Use
http - Need to run a remote OpenClaw agent? Use
openclaw - Need something custom? See creating-an-adapter.md