Documentation

Countersign documentation

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.

Reading order

#PageWhat it covers
1QuickstartOne command to start recording a coding agent on your own machine. What it installs and changes, how to read the log, how to stop.
2GuardWhat the guard blocks, what it only flags, recording-only mode and enforcing mode, and what happens when the engine cannot be reached.
3ConceptsPassport, gate, receipt, ledger, the three signing keys, and what "software signer" means.
4Hosted workspace and consoleSign-up, confirming your email, the recovery code, passwords and sessions, onboarding, and each console page.
5PolicyThe rule language, the facts a rule can read, the kind fact, and the tester.
6ApprovalsHow "ask a human" works and how the agent re-attempts an approved action.
7Connect an agentHooks 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.
8Tool risk in the MCP gatewayWhat 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.
9Fleet rollout and CoveragePutting many machines behind the gate, and finding actions that happened without a receipt.
10Receipt checksTickets that a service can demand before it acts. Verifiers for Node, Python and Go.
11Evidence and offline verificationExport, countersign verify, the browser verifier, and public receipt links.
12Agent Name Service supportOptional and off by default. What the three joins do, and their limits.
13Security and limitsWhat is sent to the engine, minimal-facts mode, secret redaction, and what is not built.
14Secret exposure alertsKeys 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.
15Team, alerts and replayInviting 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.
16Controls reportThe 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.
17UpdatingWhich build a machine has, countersign update, updating a rollout, and what an old build can and cannot do.
18CLI referenceEvery command and flag.
19API referenceEvery HTTP route, with method, authentication and purpose.
20What's newChanges 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 docsCLI and APIConsole
workspacetenantworkspace
passportmandatepassport
owner (the person who holds the signing key)principalyou
blockdenyDenied, Block
ask a humanescalateNeeds approval, Ask a human
engine keydecision key, decision_pubEngine key
rolloutenrolment (enrollment in field names)rollout