Skip to main content
In a few minutes you will start paddock on your machine, create an agent from a template file, send it a message with curl, and watch it write and run a script, live, in your terminal. Each step is one command. You need Go 1.24 or later, Node.js 22 or later with pnpm, and an Anthropic API key for the agent’s model. There is no Docker, no sandbox account, and no tunnel: the local server runs everything on your machine.
1

Get the CLI

Clone the repository, install the CLI with paddockd, the daemon the local server runs beside each agent, and build the terminal UI that agents watch runs:
Run the commands below from the repository’s directory.
2

Start a server

Start paddock with your Anthropic key in the environment, and ANTHROPIC_BASE_URL too when the key is for another Anthropic-compatible endpoint:
The first start downloads PostgreSQL and installs the pinned Claude Code and Codex CLIs under ~/.paddock. Your model key stays in the server’s memory and never reaches an agent. Agents run as you, on this machine, with no sandbox around them. See Local server.The local server listens on 127.0.0.1 only and needs no API key, so curl works as it is. The CLI and every server SDK find its URL on their own. Starting again reports the running server. To require a key, see Local server.
3

Define an agent

A template is a YAML file that says what kind of agent to run: its harness, its model, and its instructions. The repository’s examples/hello/template.yaml is a Claude Code agent that writes and runs small scripts:
examples/hello/template.yaml
4

Run it

Create an agent from the template. It gets its own directory under ~/.paddock/agents the first time it has work, and prints its URL:
5

Watch it work

Open the agent in one terminal:
And send it a message from another, a POST to its URL:
The message lands in the agent’s default session, which the first message creates. In the watch UI the session appears on the left as running; on the right, Events shows the turn start, the agent writing hello.py and running it, and its answer, as they happen:
tab switches to Transcript, the conversation with each command it ran, and to Stats: the turn’s time, how long the agent took to wake, the tool calls, and the tokens used. q quits.
6

Do the same in code

Everything the CLI did is one call of a server SDK, which finds the URL as the CLI does:
Creating the same template again returns hello@1 unchanged. Watch the new agent with paddock agents watch and the ID it prints.

What just happened

  • Define. The template became version 1 of hello. A changed file becomes version 2; agents keep the version they were created from.
  • Run. The agent owns one directory, its local stand-in for a sandbox, created for its first message. When its sessions are idle for a while it sleeps, and the next message wakes it with its conversation and files intact; the watch UI shows the wake time. On the hosted API the same agent runs in its own cloud sandbox.
  • Use. POST <agent URL>/messages is agent.send: it stores the message in the agent’s default session and returns at once, without waiting for the turn. For several conversations, create sessions yourself; see Agents and sessions.
  • See. agents watch follows sessions with the client SDK, the same live state a browser gets from a session token.
Next, put a session in your own frontend with Streaming to the browser and the React chat example, or run against the hosted API with paddock auth login. paddock server stop stops the local server and its agents, after asking; their data stays for the next start.