Coco

Coco SDK documentation

Check every tool call your AI agent makes against your own policy, before the call runs.

New to Coco? Start with the Quickstart.


Get started

  • Quickstart: Install the SDK, connect a project, and send a test transaction.
  • Install: Choose packages and extras, and upgrade.
  • Your first governed agent: Take a policy PDF to contracts, Monitor, Enforce, and a person's approval.

Understand Coco

  • How Coco enforces: Follow one tool call from proposal to receipt.
  • Architecture: See the parts, the data flows, and the decisions behind the design.
  • Results: See what each layer stops, and what it costs.

Integrate and operate

Look something up

  • CLI: Every coco and trustcoco command.
  • Configuration: coco.yaml, .env, and environment variables.
  • Contracts and rules: The contract format and the rule language.
  • Python API: load, CocoGuard, Engine, RemoteEngine, and Decision.
  • HTTP API: The gate and the document service.

See it applied

  • Use cases: How Coco governs payments, KYC, KYB, and drug discovery agents.

On this page