Skip to main content
This guide assumes familiarity with Axons and the Broker architecture.
The examples on this page use the object-oriented SDK surface: AsyncRunloopSDK in Python and RunloopSDK in TypeScript.

Overview

The Claude adapter connects Broker to a Claude Code CLI subprocess running inside your devbox. It launches Claude Code with --output-format stream-json and forwards streaming JSONL messages between Broker and the CLI.
Full specification coming soon.

Broker mount configuration

{
  "type": "broker_mount",
  "axon_id": "<axon-id>",
  "protocol": "claude_json"
}
FieldTypeDescription
typestringMust be broker_mount
axon_idstringRequired. The Axon stream Broker reads from and writes to
protocolstringMust be claude_json

How Broker uses Claude JSONL

  • Broker launches Claude Code with --output-format stream-json when the Devbox starts
  • Claude initializes and sets up the session
  • Publish user.message to the Axon to start a turn
  • Broker translates that event into Claude’s user JSONL input
  • Claude output is republished to Axon as turn.claude.<type> events
Full examples coming soon.