Documentation

Everything you need to run Paperclip.

Guides, references, and walkthroughs for the people running AI agents at work. Start at the quickstart, or jump anywhere below.

Adapters Overview

Adapters connect Paperclip's control plane to the runtime that actually does the work. Use this section when you need to choose an adapter, understand what Paperclip expects from one, or build a new adapter package.


What An Adapter Does

Every adapter is responsible for the same core jobs:

  1. Launch or call the underlying runtime.
  2. Pass the agent's company, task, and wake context through.
  3. Capture results, session state, and usage metadata.
  4. Validate the environment before a run starts.
  5. Optionally provide a custom UI transcript parser and skills sync behavior.

Note: Paperclip orchestrates agents. The adapter decides how the runtime starts, how it keeps state, and how its output is interpreted.


Choose An Adapter

Use case Start here
Claude Code on your machine Claude Code
OpenAI Codex CLI on your machine Codex
Claude, Codex, or a custom ACP agent through ACPX ACPX Local
Gemini CLI on your machine Gemini CLI
Cursor Agent CLI on your machine Cursor Local
OpenCode CLI with provider/model routing OpenCode
Pi CLI with its built-in tool set Pi
Hermes Agent with persistent memory and 30+ tools Hermes
Grok Build CLI on your machine Grok Local
OpenClaw over a WebSocket gateway OpenClaw Gateway
A custom shell command or script Process
A webhook or cloud service you control HTTP
A standalone npm package or local plugin External Adapters
Writing a new adapter package from scratch Creating an Adapter
Building a custom run-log parser Adapter UI Parser Contract

If you are starting from scratch, the most common path is:

  1. Pick a local adapter if the agent runs on the same machine as Paperclip.
  2. Pick process if the runtime is just a command.
  3. Pick http if the runtime lives behind an API or webhook.
  4. Use an external adapter plugin when you want independent versioning and installation.

Built-In Adapters

These adapters ship with Paperclip and are always available in the host:

Adapter Type key UI availability Best for
Claude Code claude_local Selectable (recommended) Claude Code runs with session persistence, skills sync, and structured transcript parsing.
Codex codex_local Selectable (recommended) Codex CLI runs with session persistence and managed CODEX_HOME.
ACPX Local acpx_local Selectable (staged rollout) Claude, Codex, or a custom ACP agent through ACPX with live structured event streaming.
Gemini CLI gemini_local Selectable Gemini CLI runs with resume support and local skills sync.
Cursor Local cursor Selectable Cursor Agent CLI runs with --resume session continuity and structured stream output.
OpenCode opencode_local Selectable OpenCode CLI runs with provider/model routing and --session resume.
Pi pi_local Selectable Pi CLI runs with its built-in tool set and provider/model routing.
Hermes hermes_local Selectable Hermes Agent runs with persistent memory, 30+ tools, 80+ skills, and multi-provider routing.
Grok Local grok_local Selectable Grok Build CLI runs with --resume session continuity, streaming reasoning output, and skills staged into .claude/skills.
OpenClaw Gateway openclaw_gateway Coming soon (use OpenClaw invite flow) Remote OpenClaw instances reached over the WebSocket gateway protocol.
Process process Coming soon (API / import only) Shell commands, scripts, and custom local runtimes.
HTTP http Coming soon (API / import only) Webhook-style invocation into your own service.

Info: The agent-config adapter-type dropdown currently marks openclaw_gateway, process, and http as "Coming soon". They're fully functional in the runtime — they just can't be picked manually from the UI yet. Configure them via the API or an imported company export until direct UI selection lands.


External Adapters

External adapters are installed separately and loaded at startup from the adapter plugin store. They behave like built-ins once installed, but they live in their own package and can be versioned independently.

Install them from the Board UI or via POST /api/adapters/install.

See:


Common Concepts

Concept Why it matters
cwd The adapter's working directory. Most local adapters require an absolute path.
env Environment variables passed into the runtime. Secret refs are preferred for sensitive values.
Session state Lets an adapter resume the same conversation or command state on the next heartbeat.
Skills Adapter-specific logic for making Paperclip skills visible to the runtime.
testEnvironment() The adapter's readiness check. The UI uses it before you save or run the adapter.
UI parser Converts stdout into structured transcript entries for the run viewer.

Tip: If you are unsure which page to read first, start with the adapter that matches the runtime you already use, then open the external or custom adapter docs only if you need to package or extend it.


Feedback Granularity

Want to watch an agent think while it works? How much live detail you get in a run's transcript comes down to which adapter you pick.

Every adapter streams its stdout to the run log, and Paperclip renders it live as the agent works — even runs on sandbox execution targets, whose logs are tailed incrementally so you see them fill in. What differs is the structure: the richer the event stream an adapter emits, the more the transcript can show you beyond raw output.

Here are the rough tiers, richest first:

  • acpx_local — full structured event stream. ACPX emits a JSONL event for each meaningful moment: session identity, status (progress text plus context-window usage), assistant and thinking token deltas, tool-call title and status updates as calls progress, a result stop-reason summary, and errors. The transcript renders these as live-updating message, thinking, tool, and status blocks — and repeated tool-call status updates fold into a single tool card instead of stacking.
  • CLI wrappers (claude_local, codex_local, cursor, opencode_local, …) — the CLI's own stream. These parse each CLI's streaming JSON output: assistant text, tool calls and results, and a final usage/cost summary. You get as much detail as the CLI itself prints.
  • Generic adapters (process, http) — plain output. You see stdout and stderr lines with no structured transcript.

If you're running sandbox workers, prefer acpx_local. Sandbox run logs stream live, so the richer the event stream, the more useful the live transcript and status line are while a remote run is still in flight.


Next Steps