Skip to main content
The canonical, fastest-moving copies of these scripts live in runloop-examples/axon-broker-agents. Clone or browse that directory for the latest fixes and dependency pins; this page mirrors the scripts here for in-context reading and may lag GitHub.

What you need

  • A Runloop API key (RUNLOOP_API_KEY)
  • Python: 3.11+ and uv
  • TypeScript: Bun and the repo’s package.json dependencies (see the example folder)

What this example does

This walkthrough ties together Axons, Broker, and the ACP protocol adapter. The scripts create an Axon event stream, start a devbox with a broker_mount that runs OpenCode in ACP mode, publish ACP-shaped events onto the stream, and read agent output from the same subscription until the turn completes.

Environment variables

Run from the examples repo

Clone the repo and run the script for your language:

Full scripts

The following matches axon_acp_docs.py and axon_acp_docs.ts on main.

Learn more