Skip to content

Installation

  • Node.js 20 or later — Tervos uses ES modules throughout. Check your version:

    Terminal window
    node --version
    # v20.x.x or higher required
  • A package manager — npm, pnpm, or yarn all work.

Install the CLI globally so tervos is available in any project:

Terminal window
npm install -g @tervos/cli

Verify the install:

Terminal window
tervos --version

Run without installing globally. This always pulls the latest published version:

Terminal window
npx @tervos/cli@latest --version

For one-off use, substitute npx @tervos/cli@latest anywhere you see tervos:

Terminal window
npx @tervos/cli@latest init --template demo

If you want a pinned version in a specific project:

Terminal window
npm install --save-dev @tervos/cli

Then run via the local binary:

Terminal window
npx tervos --version

Or add a script to your package.json:

{
"scripts": {
"org:start": "tervos start --dev",
"org:audit": "tervos audit"
}
}

The CLI is the entry point. Under the hood it uses the Tervos protocol packages, which you can install separately if you’re building on top of the protocol programmatically:

PackagePurpose
@tervos/coreManifest schema, event bus, event store
@tervos/identityEd25519 DID generation, JWT tokens
@tervos/policyPolicy engine (permit/forbid/implicit-deny)
@tervos/orgAgent runtime, task lifecycle, approval queue
@tervos/adapter-paperclipImport from Paperclip AI
@tervos/adapter-agency-agentsImport from agency-agents

All packages are published on npm under the @tervos scope at version 0.1.x.

Ready to build your first governed AI organization?