Truss CLI — the official command-line tool for the Truss trust infrastructure API. Modeled after gh (GitHub CLI).
Truss is an accountability layer for AI agents — it records every agent action as a cryptographically signed, tamper-evident audit trail. Learn more →
npm install -g @tensflare/cliOr run directly via npx:
npx @tensflare/cli# 1. Authenticate
truss auth login
# 2. List agents
truss agent list
# 3. Create a mandate
truss mandate create --agent-id agt_001 --scope '{"permitted_actions":["read"]}'
# 4. Record an action
truss action record --mandate-id mnd_001 --action-type read
# 5. Generate evidence
truss evidence generate --mandate-id mnd_001| Command | Description |
|---|---|
truss auth login |
Authenticate with the Truss API |
truss org list |
List organizations |
truss agent list |
List registered agents |
truss agent create |
Register a new agent |
truss mandate list |
List mandates |
truss mandate create |
Create a new mandate |
truss action record |
Record an action |
truss action list |
List action records |
truss delegation create |
Create a delegation hop |
truss evidence generate |
Generate evidence package |
truss verify package |
Verify evidence integrity |
truss alert list |
List alerts |
truss integration list |
List integrations |
truss jurisdiction evaluate |
Evaluate regulatory obligations |
truss template list |
List mandate templates |
truss api <method> <path> |
Raw API access (like gh api) |
truss config list |
Show current configuration |
truss completion |
Generate shell completion script |
Run truss --help for global options or truss <command> --help for per-command flags.
Config is stored at ~/.config/truss/config.json. Environment variables override:
export TRUSS_API_URL="https://api.truss.tensflare.com"
export TRUSS_API_KEY="tr_abc123"- 15 command groups covering the full Truss API
--jsonoutput for piping tojqand other tools- Pagination via
--limitand--page - Shell completions for bash, zsh, and fish
- Raw API access with
truss api GET /agents - Auth via config file or environment variables
| Package | Description |
|---|---|
| @tensflare/tap | Core Zod schemas for mandates, actions, and delegations |
| @tensflare/truss-sdk | TypeScript SDK for programmatic access |
npm install
npm run build
# Run locally:
node dist/index.jsPull requests are welcome. Please see the contribution guidelines.
Apache 2.0 — see LICENSE.
