Countersign documentation
$ curl -fsSL https://app.trycountersign.ai/start.sh | shCountersign will record what your coding agent does.Everything stays on this machine.It adds a hook to ~/.claude/settings.json.It records. It does not block anything.Continue? [Y/n] YCountersign is set up. workspace ada@laptop (on this machine) agent claude-code, recording only hook added to ~/.claude/settings.json test receipt #4, signed and in the ledger
Countersign records what an AI agent does and can block actions you do not want. Each action the agent asks for is decided before it runs, and each decision is written to a signed ledger that anyone can check offline.
"Countersign" is a working name.
- Hosted service: https://app.trycountersign.ai
- Website: https://trycountersign.ai
Reading order
| # | Page | What it covers |
|---|---|---|
| 1 | Quickstart | One command to start recording a coding agent on your own machine. What it installs and changes, how to read the log, how to stop. |
| 2 | Guard | What the guard blocks, what it only flags, recording-only mode and enforcing mode, and what happens when the engine cannot be reached. |
| 3 | Concepts | Passport, gate, receipt, ledger, the three signing keys, and what "software signer" means. |
| 4 | Hosted workspace and console | Sign-up, confirming your email, the recovery code, passwords and sessions, onboarding, and each console page. |
| 5 | Policy | The rule language, the facts a rule can read, the kind fact, and the tester. |
| 6 | Approvals | How "ask a human" works and how the agent re-attempts an approved action. |
| 7 | Connect an agent | Hooks for Claude Code, Codex, Gemini CLI, Cursor, Grok CLI, Copilot CLI and Hermes Agent, and a plugin for OpenClaw. The MCP gateway, for servers on the same machine and over HTTP, and what it covers for Grok Bot, Dots and Muse. The verdict endpoint for Grok Bot's Inference Hooks. The Node and Python SDKs. Adapters for the Vercel AI SDK, the OpenAI Agents SDK, LangChain and the Claude Agent SDK. A guard for your own Express or FastAPI endpoint. |
| 8 | Tool risk in the MCP gateway | What an MCP server says about its own tools, the risk fact the gateways record from it, rules to start from, the flag for a tool whose definition changed, and why a hint is only a claim. |
| 9 | Fleet rollout and Coverage | Putting many machines behind the gate, and finding actions that happened without a receipt. |
| 10 | Receipt checks | Tickets that a service can demand before it acts. Verifiers for Node, Python and Go. |
| 11 | Evidence and offline verification | Export, countersign verify, the browser verifier, and public receipt links. |
| 12 | Agent Name Service support | Optional and off by default. What the three joins do, and their limits. |
| 13 | Security and limits | What is sent to the engine, minimal-facts mode, secret redaction, and what is not built. |
| 14 | Secret exposure alerts | Keys and tokens typed into an agent, run by it or written by it: what is detected, what is recorded, the Slack alert, warn or block per kind, and the limits. |
| 15 | Team, alerts and replay | Inviting people with their own signing keys, roles, Slack alerts for waiting approvals, the email the service sends, checking a rule against past actions, and deleting a workspace. |
| 16 | Controls report | The report for a risk or compliance lead: the register of agents with a business owner and risk tier, autonomy, block and override rates, time to a human decision, labels on rules, and reviewing autonomous actions after the fact. What each figure counts and what it cannot. |
| 17 | Updating | Which build a machine has, countersign update, updating a rollout, and what an old build can and cannot do. |
| 18 | CLI reference | Every command and flag. |
| 19 | API reference | Every HTTP route, with method, authentication and purpose. |
| 20 | What's new | Changes to the service, the console and the command-line tool, newest first. |
Two ways to use it
On your own machine. countersign start sets up a workspace, a signing key and a ledger under ~/.countersign. The engine listens on 127.0.0.1 only. No account is needed. Start with the Quickstart.
On the hosted service. You create a workspace in the console at https://app.trycountersign.ai. You issue passports, write policy, approve actions and export evidence from the browser. Start with Hosted workspace and console.
Both use the same engine and the same ledger format.
Words used in more than one way
The command line, the API and the console use different words for the same things. These docs use the first column.
| These docs | CLI and API | Console |
|---|---|---|
| workspace | tenant | workspace |
| passport | mandate | passport |
| owner (the person who holds the signing key) | principal | you |
| block | deny | Denied, Block |
| ask a human | escalate | Needs approval, Ask a human |
| engine key | decision key, decision_pub | Engine key |
| rollout | enrolment (enrollment in field names) | rollout |