Skip to content

CLI Commands

The tervos CLI is the primary interface for managing organizations, running agents, and inspecting state.

Install globally or use via npx:

Terminal window
npm install -g tervos
# or
npx tervos <command>

Initialize a new Tervos organization in the current directory.

Terminal window
tervos init [--template <name>]
FlagDescriptionDefault
--template <name>Starter template to useminimal
NameDescription
minimalSingle supervised agent, no projects
demoThree agents (CEO, Analyst, Writer) with a demo research project
Terminal window
$ tervos init --template demo
Created TERVOS.yaml
Created .tervos/ directory
Organization: Demo AI Corp
Agents: ceo, analyst, writer
Projects: demo-research (2 tasks)
Run `tervos start --dev` to begin.

Bootstrap and start the organization.

Terminal window
tervos start [--dev] [--auto-approve]
FlagDescription
--devDevelopment mode: activates all agents automatically, auto-approves all actions
--auto-approveAuto-approve all pending actions (without full dev mode)
Terminal window
$ tervos start --dev
Manifest validated
Organization DID created: did:key:z6Mk...
Event store initialized
Policy engine loaded (7 default policies)
3 agents registered and activated
Organization bootstrapped
[dev mode] Auto-approve enabled. All actions will proceed without human review.
Listening for commands...

Display current organization state: agents, tasks, and budget.

Terminal window
tervos status
Organization: Demo AI Corp
Status: ACTIVE
Agents: 3 active, 0 suspended
AGENT ROLE STATE AUTONOMY BUDGET USED
ceo CEO ACTIVE semi-autonomous $12.40 / $30.00
analyst Research Analyst ACTIVE semi-autonomous $8.20 / $40.00
writer Content Writer ACTIVE semi-autonomous $4.10 / $30.00
Tasks: 1 active, 1 completed, 0 blocked
Events: 47 total

Query the organization’s event log.

Terminal window
tervos audit [--agent <id>] [--type <type>] [--since <datetime>]
FlagDescriptionExample
--agent <id>Filter to events involving a specific agent--agent ceo
--type <type>Filter by event type (supports wildcards)--type org.task.*
--since <datetime>Show events after this timestamp--since 2026-03-01T00:00:00Z
Terminal window
$ tervos audit --type org.task.*
SEQ TIMESTAMP TYPE AGENT SUMMARY
42 2026-03-19T10:00:00Z org.task.created ceo Created: Research competitor landscape
43 2026-03-19T10:00:01Z org.task.assigned ceo Assigned to: analyst
44 2026-03-19T10:00:02Z org.task.started analyst Task started
...

Approve a pending action.

Terminal window
tervos approve <id> [--comment <text>]
ArgumentDescription
<id>The pending action ID (from tervos status or audit log)
FlagDescription
--comment <text>Optional approval comment, recorded in the event log
Terminal window
$ tervos approve act_01234 --comment "Reviewed and approved for production"
Action act_01234 approved
Comment: "Reviewed and approved for production"
Recorded as: policy.approval.granted (seq 58)

Deny a pending action.

Terminal window
tervos deny <id> --reason <text>
ArgumentDescription
<id>The pending action ID
FlagRequiredDescription
--reason <text>YesReason for denial (required, recorded in audit log)
Terminal window
$ tervos deny act_01235 --reason "Budget limit reached for this period"
Action act_01235 denied
Reason: "Budget limit reached for this period"
Recorded as: policy.approval.denied (seq 59)

Validate a TERVOS.yaml manifest without bootstrapping.

Terminal window
tervos validate [path]
ArgumentDescriptionDefault
pathPath to the manifest file./TERVOS.yaml
Terminal window
$ tervos validate
Schema version: tervos/v1
3 agents defined
Reporting hierarchy: valid DAG
Budget allocations: $100 / $100 limit
2 tasks, all assignees valid
Manifest is valid.

If there are errors:

Terminal window
$ tervos validate ./bad-manifest.yaml
Validation failed (2 errors):
1. agents.writer.reports_to: references undefined agent "cto"
Fix: define a "cto" agent or change reports_to to an existing agent ID
2. governance.budget.monthly_limit_usd: sum of agent budgets ($120) exceeds org limit ($100)
Fix: reduce agent budgets or increase the org monthly_limit_usd

Import an organization definition from another format.

Terminal window
tervos import --from <format> <path>
FlagRequiredDescription
--from <format>YesSource format
FormatDescription
paperclipImport from a Paperclip COMPANY.md definition
Terminal window
$ tervos import --from paperclip ./COMPANY.md
Parsed 5 agents from COMPANY.md
Mapped to TERVOS.yaml format
- All agents set to autonomy_level: supervised (default for imports)
- Generated did:key identities for all agents
- Applied default policies
Written to: TERVOS.yaml

Suspend the organization and shut down the runtime.

Terminal window
tervos stop
Terminal window
$ tervos stop
Suspending organization...
3 agents suspended
In-flight tasks checkpointed (2 tasks saved)
Event store flushed
Organization suspended. Run `tervos start` to resume.