CLI Reference
Thesmoltbot CLI configures your local environment for transparent AI agent tracing and provides commands to query your agent’s transparency data.
Installation
Commands
Configure tracing for your AI agent. This command detects your configured AI provider API keys (Anthropic, OpenAI, Gemini) and configures your local environment to route API calls through the Mnemom gateway.
# Default setup — uses Mnemom hosted gateway
smoltbot init
# Self-hosted gateway
smoltbot init --gateway=https://your-domain.com
Agent: agent_abc123def456
Gateway: https://gateway.mnemom.ai
Status: Connected
Providers:
Anthropic ✓ (Claude Opus 4.6)
OpenAI ✓ (GPT-5.2)
Gemini ✗ (not configured)
Last seen: 2 minutes ago
clear verdicts)Integrity Score: 0.94 (94%)
Traces verified: 1,247
Violations: 12 (3 CRITICAL, 9 HIGH)
Drift alerts: 0 active
Window: 10 checkpoints, 2h retention
2026-02-17 14:32:01 CLEAR api_call Claude Opus 4.6 "Search for documents"
2026-02-17 14:31:45 CLEAR api_call Claude Opus 4.6 "Summarize results"
2026-02-17 14:31:12 REVIEW api_call GPT-5.2 "Execute trade"
└─ concern: autonomy_violation (HIGH) — action exceeds bounded_actions
2026-02-17 14:30:58 CLEAR api_call Claude Opus 4.6 "Draft email"
Fetch your agent’s active alignment card and display it with colored, structured output showing values, autonomy envelope, forbidden actions, escalation triggers, and audit commitment.
═══════════════════════════════════════════════════
Alignment Card ac-a4c12709-v2
═══════════════════════════════════════════════════
Version 0.1.0
Issued 2026-02-21
Expires 2026-08-21
Values transparency honesty harm_prevention
editorial_independence source_attribution
investigative_rigor
Hierarchy lexicographic
Bounded inference read write edit exec
web_fetch web_search
Forbidden fabricate_sources impersonate_human ...
Escalation named_entity_critical → escalate
legal_claims_present → escalate
Audit ap-trace-v1 · 365 days · queryable · append_only
Read a JSON alignment card file, validate it against the AAP spec, confirm before publishing, and upload to your agent’s alignment card via the API. Optionally triggers re-verification of existing traces against the new card.
--no-verify--yes$ smoltbot card publish alignment-card.json
Validating alignment-card.json...
✓ Valid JSON
✓ Required blocks present (principal, values, autonomy, audit)
✓ 6 declared values (3 standard, 3 custom with definitions)
✓ 7 bounded actions
✓ 2 escalation triggers (evaluable conditions)
✓ Card not expired
Publish this card for agent smolt-a4c12709? (y/N) y
✓ Card published: ac-a4c12709-v2
Re-verify existing traces against new card? (y/N) y
✓ 247 traces re-verified
Local-only validation with no API call. Checks AAP spec compliance. CI-friendly: exit code 0 on pass, 1 on fail.
$ smoltbot card validate alignment-card.json
✓ Valid JSON
✓ Required blocks: principal, values, autonomy_envelope, audit_commitment
✓ values.declared: 6 values (non-empty)
✓ Custom values defined: editorial_independence, source_attribution, investigative_rigor
✓ bounded_actions: 7 actions (non-empty)
✓ escalation_triggers: 2 triggers (evaluable conditions)
✓ expires_at: 2026-08-21 (valid)
Card is valid.
Register a new named agent. Each named agent gets its own distinct identity and trace history, even when sharing the same API key. The name is stored on the server on first traced API call and displayed on the dashboard.
--openclaw--standalone--set-default# Register a new agent for coding tasks
smoltbot register my-coder --openclaw
# Register and set as default
smoltbot register my-researcher --set-default
default (default)
Agent ID: smolt-a4c12709
Provider: openclaw
Created: 2/7/2026
my-coder
Agent ID: smolt-b8e34f21
Provider: openclaw
Created: 2/23/2026
Total: 2 agent(s)
Global Options
| Option | Description |
|---|---|
--agent <name> | Select which agent to use for the command |
--version | Show CLI version |
--help | Show help text |
--agent <name>flagSMOLTBOT_AGENTenvironment variable- Default agent from config
Workflow
A typical workflow with the smoltbot CLI:See the Card Management guide for how to build a card from scratch.
smoltbot policy init
# Edit policy.yaml to define capability mappings and forbidden rules
smoltbot policy validate policy.yaml
smoltbot policy publish policy.yaml
See the Policy CLI Reference for all policy subcommands and the Policy Management guide for a full walkthrough.
smoltbot status to get your agent IDsmoltbot registerPolicy Commands
Thesmoltbot policy subcommands manage governance policies for your agents. For full reference, see Policy CLI Reference.
| Command | Description |
|---|---|
policy init | Generate a starter policy.yaml |
policy validate <file> | Local schema validation (CI-friendly exit codes) |
policy publish <file> | Upload policy to agent |
policy list | List published policies |
policy test <file> | Dry-run against historical traces |
policy evaluate | CI/CD gate evaluation |
Supported Providers
The CLI automatically detects and configures tracing for these providers:| Provider | Models | Thinking/AIP | Auth Method |
|---|---|---|---|
| Anthropic | Claude Opus 4.6, Opus 4.5, Sonnet 4.5 | Full (thinking blocks) | x-api-key |
| OpenAI | GPT-5.2, GPT-5.2 Pro, GPT-5 | Via reasoning summaries | Authorization: Bearer |
| Gemini | Gemini 2.5 Pro, Gemini 3 Pro | Full (thought parts) | x-goog-api-key |
Related
- Smoltbot Overview — Architecture and how it works
- Policy CLI Reference — Policy management commands
- Enforcement Modes — Configure violation response behavior