# paddock > Build always-on agents on the leading harnesses, Claude Code and Codex: persistent agents in their own sandboxes, server SDKs, and a browser client SDK. - [Introduction](https://docs.paddockai.dev/index.md): Build always-on agents on the leading harnesses: paddock runs persistent agents on Claude Code and Codex, and gets their live state into your own UI. - [Quickstart](https://docs.paddockai.dev/quickstart.md): Run paddock on your machine, define an agent in a file, put it to work with one HTTP request, and watch it live. Then do the same in code. - [Core concepts](https://docs.paddockai.dev/concepts.md): Templates, agents, sessions, turns, events, and harnesses, and how they relate. - [Templates](https://docs.paddockai.dev/guides/templates.md): Define a kind of agent as one versioned YAML document, check it with a dry run, and save an agent's configuration back as a template. - [Agents and sessions](https://docs.paddockai.dev/guides/agents-and-sessions.md): Create agents and sessions, send messages at any time, stop turns, and find sessions by your own keys. - [Streaming to the browser](https://docs.paddockai.dev/guides/streaming.md): Hand a session to your frontend with a session token, and show its live state with the client SDK or React. - [Capabilities](https://docs.paddockai.dev/guides/capabilities.md): Give agents MCP servers, plugin marketplaces, plugins, and the skills inside them, and know when a change reaches a running session. - [Configuration](https://docs.paddockai.dev/guides/configuration.md): Set an agent's system prompt, environment, permissions, and model, and know which settings are fixed for each session. - [Models and BYOK](https://docs.paddockai.dev/guides/models.md): Run agents on paddock's model catalog with no provider account, or on your own Anthropic and OpenAI providers with your own keys. - [Connectors](https://docs.paddockai.dev/guides/connectors.md): Link your agents to Slack, GitHub, or any service: a webhook URL whose function routes events into sessions, and an outbound side that delivers what agents send. - [Connector functions](https://docs.paddockai.dev/guides/connector-functions.md): The contract of the inbound and deliver functions: what your Node.js or Python code receives, what it answers, and the limits it runs within. - [Sending messages](https://docs.paddockai.dev/guides/outbox.md): Let agents post to Slack threads, email, or your own endpoint with the send tool: keys, the allow list, reply routing, and the durable outbox. - [Harness status](https://docs.paddockai.dev/guides/harness-status.md): See what a session's harness actually loaded and is doing: its context, plugins, skills, MCP servers, subagents, and workflows. - [Files](https://docs.paddockai.dev/guides/files.md): Read and write the files in an agent's workspace and its persistent memory. - [Claude Code](https://docs.paddockai.dev/harnesses/claude-code.md): Run agents on Claude Code: models, capabilities, tools, and what paddock configures for you. - [Codex](https://docs.paddockai.dev/harnesses/codex.md): Run agents on Codex: models, capabilities, tools, and how it differs from Claude Code. - [Console](https://docs.paddockai.dev/platform/console.md): paddock's web console: API keys, a Playground to talk to agents, and every template, agent, session, model, and connector of your organization. - [CLI](https://docs.paddockai.dev/platform/cli.md): The paddock command-line tool: log in from your terminal or run paddock locally, then operate templates, agents, sessions, connectors, and the outbox, as tables or as JSON, and watch agents live. - [Authentication](https://docs.paddockai.dev/platform/authentication.md): API keys for your backend, session tokens for your frontend, and what each may do. - [Errors](https://docs.paddockai.dev/platform/errors.md): Error codes, which errors are worth retrying, and how a failed turn reports its cause. - [Limits](https://docs.paddockai.dev/platform/limits.md): Sizes, counts, and timeouts the API enforces. - [Go](https://docs.paddockai.dev/sdks/go.md): The Go server SDK, package paddock: install, authenticate, and call every operation. - [Python](https://docs.paddockai.dev/sdks/python.md): The Python server SDK, paddockai: install, authenticate, and call every operation, synchronously or with asyncio. - [TypeScript server](https://docs.paddockai.dev/sdks/typescript.md): @paddockai/server: the TypeScript SDK for your backend. Install, authenticate, and call every operation. - [Browser client](https://docs.paddockai.dev/sdks/client.md): @paddockai/client: turn a session ID and a session token into live session state in any frontend. - [React](https://docs.paddockai.dev/sdks/react.md): @paddockai/react: the useSession hook and PaddockProvider. - [Introduction](https://docs.paddockai.dev/api-reference/introduction.md): The HTTP API behind every SDK: base URL, authentication, formats, IDs, lists, and errors. - [templates.create(pathOrDocument): the next version of the document's name](https://docs.paddockai.dev/api-reference/create-template.md) - [templates.list(): the latest version of each template](https://docs.paddockai.dev/api-reference/list-templates.md) - [templates.get("name"): the latest version](https://docs.paddockai.dev/api-reference/get-template.md) - [templates.list({ name }): every version](https://docs.paddockai.dev/api-reference/list-template-versions.md) - [templates.get("name@version")](https://docs.paddockai.dev/api-reference/get-template-version.md) - [templates.delete("name@version")](https://docs.paddockai.dev/api-reference/delete-template-version.md) - [models.list(): the platform models, then the project models](https://docs.paddockai.dev/api-reference/list-models.md) - [modelProviders.list(): the project's model providers, by name](https://docs.paddockai.dev/api-reference/list-model-providers.md) - [modelProviders.create(spec): verifies the key, then stores the provider](https://docs.paddockai.dev/api-reference/create-model-provider.md) - [modelProviders.get(name)](https://docs.paddockai.dev/api-reference/get-model-provider.md) - [modelProviders.update(name, patch): an omitted field keeps its value](https://docs.paddockai.dev/api-reference/update-model-provider.md) - [modelProviders.delete(name)](https://docs.paddockai.dev/api-reference/delete-model-provider.md) - [modelProviders.test(name): verifies the stored key and records the status](https://docs.paddockai.dev/api-reference/test-model-provider.md) - [modelProviders.test(draft): verifies a key without storing anything](https://docs.paddockai.dev/api-reference/test-model-provider-draft.md) - [agents.create({ template, metadata? })](https://docs.paddockai.dev/api-reference/create-agent.md) - [agents.list({ template?, metadata? })](https://docs.paddockai.dev/api-reference/list-agents.md) - [agents.get(id)](https://docs.paddockai.dev/api-reference/get-agent.md) - [agents.delete(id)](https://docs.paddockai.dev/api-reference/delete-agent.md) - [agent.export(): the effective spec as a template document](https://docs.paddockai.dev/api-reference/export-agent.md) - [agent.mcp.list()](https://docs.paddockai.dev/api-reference/list-mcp.md) - [agent.mcp.add(entry)](https://docs.paddockai.dev/api-reference/add-mcp.md) - [agent.mcp.get(name)](https://docs.paddockai.dev/api-reference/get-mcp.md) - [agent.mcp.update(name, entry)](https://docs.paddockai.dev/api-reference/update-mcp.md) - [agent.mcp.delete(name)](https://docs.paddockai.dev/api-reference/delete-mcp.md) - [agent.marketplaces.list()](https://docs.paddockai.dev/api-reference/list-marketplaces.md) - [agent.marketplaces.add(entry)](https://docs.paddockai.dev/api-reference/add-marketplaces.md) - [agent.marketplaces.get(name)](https://docs.paddockai.dev/api-reference/get-marketplaces.md) - [agent.marketplaces.update(name, entry)](https://docs.paddockai.dev/api-reference/update-marketplaces.md) - [agent.marketplaces.delete(name)](https://docs.paddockai.dev/api-reference/delete-marketplaces.md) - [agent.marketplaces.refresh(name): raises the entry's revision and the agent's generation](https://docs.paddockai.dev/api-reference/refresh-marketplace.md) - [agent.plugins.list()](https://docs.paddockai.dev/api-reference/list-plugins.md) - [agent.plugins.add(entry)](https://docs.paddockai.dev/api-reference/add-plugins.md) - [agent.plugins.get(name)](https://docs.paddockai.dev/api-reference/get-plugins.md) - [agent.plugins.update(name, entry)](https://docs.paddockai.dev/api-reference/update-plugins.md) - [agent.plugins.delete(name)](https://docs.paddockai.dev/api-reference/delete-plugins.md) - [agent.workflows.list()](https://docs.paddockai.dev/api-reference/list-workflows.md) - [agent.workflows.get(name)](https://docs.paddockai.dev/api-reference/get-workflow.md) - [agent.model.get()](https://docs.paddockai.dev/api-reference/get-model.md) - [agent.model.set(value)](https://docs.paddockai.dev/api-reference/set-model.md) - [agent.model.delete()](https://docs.paddockai.dev/api-reference/delete-model.md) - [agent.smallModelSetting.get()](https://docs.paddockai.dev/api-reference/get-small-model.md) - [agent.smallModelSetting.set(value)](https://docs.paddockai.dev/api-reference/set-small-model.md) - [agent.smallModelSetting.delete()](https://docs.paddockai.dev/api-reference/delete-small-model.md) - [agent.systemPrompt.get()](https://docs.paddockai.dev/api-reference/get-system-prompt.md) - [agent.systemPrompt.set(value)](https://docs.paddockai.dev/api-reference/set-system-prompt.md) - [agent.systemPrompt.delete()](https://docs.paddockai.dev/api-reference/delete-system-prompt.md) - [agent.env.list()](https://docs.paddockai.dev/api-reference/list-env.md) - [agent.env.add(entry)](https://docs.paddockai.dev/api-reference/add-env.md) - [agent.env.get(name)](https://docs.paddockai.dev/api-reference/get-env.md) - [agent.env.update(name, entry)](https://docs.paddockai.dev/api-reference/update-env.md) - [agent.env.delete(name)](https://docs.paddockai.dev/api-reference/delete-env.md) - [agent.permissions.get()](https://docs.paddockai.dev/api-reference/get-permissions.md) - [agent.permissions.set(spec)](https://docs.paddockai.dev/api-reference/set-permissions.md) - [agent.outbox.get(): the effective allow list](https://docs.paddockai.dev/api-reference/get-agent-outbox.md) - [agent.outbox.set(spec): the agent's list, which replaces the template's](https://docs.paddockai.dev/api-reference/set-agent-outbox.md) - [agent.outbox.delete(): the template's list, restored](https://docs.paddockai.dev/api-reference/delete-agent-outbox.md) - [agent.memory.list()](https://docs.paddockai.dev/api-reference/list-memory.md) - [agent.memory.read(path)](https://docs.paddockai.dev/api-reference/read-memory.md) - [agent.memory.write(path, content)](https://docs.paddockai.dev/api-reference/write-memory.md) - [agent.memory.delete(path)](https://docs.paddockai.dev/api-reference/delete-memory.md) - [agent.files.list(dir?)](https://docs.paddockai.dev/api-reference/list-files.md) - [agent.files.read(path)](https://docs.paddockai.dev/api-reference/read-file.md) - [agent.files.write(path, data)](https://docs.paddockai.dev/api-reference/write-file.md) - [agent.files.delete(path)](https://docs.paddockai.dev/api-reference/delete-file.md) - [agent.sessions.create({ cwd?, systemPrompt?, metadata? })](https://docs.paddockai.dev/api-reference/create-session.md) - [agent.sessions.list({ metadata? })](https://docs.paddockai.dev/api-reference/list-sessions.md) - [sessions.list({ agentId?, metadata?, createdAfter?, createdBefore? })](https://docs.paddockai.dev/api-reference/list-project-sessions.md) - [sessions.get(id)](https://docs.paddockai.dev/api-reference/get-session.md) - [sessions.delete(id)](https://docs.paddockai.dev/api-reference/delete-session.md) - [session.createToken({ ttl })](https://docs.paddockai.dev/api-reference/create-session-token.md) - [agent.send(text)](https://docs.paddockai.dev/api-reference/send-agent-message.md): Sends the text to the agent's default session, its newest session whose defaultSession metadata is true, created on the first send; an API key only. - [session.send(text)](https://docs.paddockai.dev/api-reference/send-message.md) - [session.stop()](https://docs.paddockai.dev/api-reference/stop-session.md) - [session.events.list({ after?, before?, types?, limit? })](https://docs.paddockai.dev/api-reference/list-events.md) - [session.stream({ after? })](https://docs.paddockai.dev/api-reference/stream-session.md) - [session.turns.list()](https://docs.paddockai.dev/api-reference/list-turns.md) - [session.turns.get(turnId)](https://docs.paddockai.dev/api-reference/get-turn.md) - [connectors.create(spec)](https://docs.paddockai.dev/api-reference/create-connector.md) - [connectors.list(): the project's connectors, newest first](https://docs.paddockai.dev/api-reference/list-connectors.md) - [connectors.get(idOrName)](https://docs.paddockai.dev/api-reference/get-connector.md) - [connectors.update(id, spec): sets which sides exist and the outbound rate limit](https://docs.paddockai.dev/api-reference/update-connector.md) - [connectors.delete(id): deletes its functions first; the URL answers 404 at once; its deliveries and outbox messages are removed](https://docs.paddockai.dev/api-reference/delete-connector.md) - [connector.secret.get({ name? }): reveals a secret](https://docs.paddockai.dev/api-reference/get-connector-secret.md) - [connector.secret.rotate({ name?, secret? }): sets a secret at once, creating it when the connector has none of that name](https://docs.paddockai.dev/api-reference/rotate-connector-secret.md) - [connector.secret.delete({ name }): removes a secret other than default](https://docs.paddockai.dev/api-reference/delete-connector-secret.md) - [connector.functions.get(side): the code, runtime, and params a side runs](https://docs.paddockai.dev/api-reference/get-connector-function.md) - [connector.functions.set(side, spec): replaces the code, runtime, and params, and answers once the new version is published](https://docs.paddockai.dev/api-reference/set-connector-function.md) - [connector.functions.delete(side): inbound answers every request 503, outbound refuses every send](https://docs.paddockai.dev/api-reference/delete-connector-function.md) - [connector.functions.test(side, request): runs the saved function or a draft; records and publishes nothing; an outbound test delivers for real](https://docs.paddockai.dev/api-reference/test-connector-function.md) - [connectors.functionPresets(): stock function code per side, in both runtimes, with the params each declares](https://docs.paddockai.dev/api-reference/list-function-presets.md) - [connector.deliveries.list({ status? }): newest first by receivedAt](https://docs.paddockai.dev/api-reference/list-deliveries.md) - [connector.deliveries.get(deliveryId): the delivery with its request](https://docs.paddockai.dev/api-reference/get-delivery.md) - [connector.deliveries.replay(deliveryId): runs the current inbound function again on the stored request, as a new delivery, for real](https://docs.paddockai.dev/api-reference/replay-delivery.md) - [Connector webhook](https://docs.paddockai.dev/api-reference/webhook.md): POST https://webhook.paddock.build/{id}: the endpoint other services post events to, and how it answers. - [outbox.list({ connectorId?, sessionId?, key?, status? }): newest first by createdAt](https://docs.paddockai.dev/api-reference/list-outbox.md) - [outbox.get(id)](https://docs.paddockai.dev/api-reference/get-outbox-message.md) - [outbox.retry(id): queues a failed message again with the same ID](https://docs.paddockai.dev/api-reference/retry-outbox-message.md) - [Pull request reviewer on GitHub](https://docs.paddockai.dev/examples/pr-reviewer.md): An agent that reviews every pull request of a repository, and answers when someone mentions it, with no server of your own. - [Chat app with React](https://docs.paddockai.dev/examples/react-chat.md): A chat application on one agent: your backend opens a session per conversation and mints its token, and a React page shows it live. - [Slack agent you tag](https://docs.paddockai.dev/examples/claudetag.md): A Claude Tag-style Slack agent: one agent per channel from the template you map it to, one session per thread, live progress with a Stop button, the reply, and the agent's files in the thread. - [Marketing campaigns with approvals](https://docs.paddockai.dev/examples/gtm.md): A Next.js app where an agent researches and plans a marketing campaign, with search visibility data from DataForSEO, prepares HubSpot lists and email drafts, proposes X posts to an approval queue, and writes follow-ups for contacts a HubSpot workflow sends to a connector. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.