What is the Agent Client Protocol (ACP)?
mainACP is OpenClaw's protocol for external tools to interact with running agent sessions. ClawPort uses ACP implicitly through gateway endpoints and CLI commands.
Key concepts:
- Sessions: Identified by a
sessionKey(e.g.,agent:main:clawport), sessions scope conversations between a client and an agent. - Device keys: Keypair-based authentication for write operations; the CLI manages these automatically.
- Scopes:
operator.read: Accessible via HTTP.operator.write: Accessible via CLI with device keys.