Skip to main content
The Terma CLI (terma) is a single static binary that lets you query AI activity, manage harnesses, onboard repositories, and inspect sessions directly from your terminal. It covers the full lifecycle: signing in, wiring up agents, stamping commits, and pulling usage data — all scriptable and composable with your existing tooling.

Command groups

Onboarding

Sign in, connect coding agents (Claude Code, Codex, Cursor, OpenCode), wire repositories for commit stamping, and verify end-to-end coverage.

Insights

Query token usage and cost, list and replay sessions, trace git actions, and find principals.

Harnesses

Connect and disconnect agent harnesses, check harness status, and flush or inspect the event spool.

Account

Log in and out, inspect your credential, switch projects, list organizations, and update the CLI.

Output formats

Every command supports the -o flag to control output format:
When the caller is not a terminal — for example, when the output is piped to another command or consumed by a script — the CLI defaults to JSON automatically, so you never need to add -o json in CI or automation contexts.

Help

Every command exposes a --help flag that prints its full usage, flags, and examples:

Quick reference

Usage example

The terma usage command sums token consumption and cost over a time window, broken down by person, agent, and model:
terma usage --since today
The CLI is open source. Browse the source at https://github.com/miradorlabs/terma-cli.