Complete reference for all tirith CLI commands.
| 0 | Allow — no issues found |
| 1 | Block — high/critical severity findings |
| 2 | Warn — medium/low severity findings |
tirith check -- <cmd>Analyze a command without executing it. Useful for testing what tirith would flag.
Supports --json, --non-interactive, and --shell flags for CI/scripting use.
tirith pasteReads from stdin and analyzes pasted content for ANSI escapes, bidi controls, zero-width characters, and hidden content. The shell hook calls this automatically when you paste into the terminal.
tirith score <url>Breaks down a URL's trust signals — TLS, domain age heuristics, known shorteners, Unicode analysis.
tirith diff <url>Byte-level comparison showing exactly where suspicious characters are hiding.
tirith whyExplains the last rule that triggered — what it detected, why it matters, and what to do about it.
tirith run <url>Safe replacement for curl | bash. Downloads to a temp file, shows SHA256, runs static analysis, opens in a pager for review, and executes only after you confirm. Creates a receipt for later verification.
tirith receipt {last,list,verify}Track and verify scripts you've run through tirith run. Each execution creates a receipt with the script's SHA256 hash for auditing.
tirith checkpoint {create,list,restore,diff,purge}Snapshot files before risky operations, then roll back if something goes wrong.
tirith scan [path]Scan files and directories for hidden content, config poisoning, invisible Unicode, and MCP configuration issues. Supports SARIF output for CI integration.
Prioritizes and scans 50+ known AI config file patterns including .cursorrules, CLAUDE.md, .mcp.json, and more.
tirith fetch <url>Check a URL for server-side cloaking — detects when a server returns different content to AI bots vs browsers. Compares responses across 6 user-agents (Chrome, ClaudeBot, ChatGPT-User, PerplexityBot, Googlebot, curl).
tirith mcp-serverRun tirith as an MCP server over JSON-RPC stdio. Provides 7 security tools that AI coding agents can call on demand.
See the MCP Integration docs for per-tool setup guides.
tirith gateway {run,validate-config}MCP gateway proxy that intercepts AI agent shell tool calls for security analysis before execution.
tirith setup <tool>One-command setup for AI coding tools. Configures shell hooks, MCP server registration, and zshenv guards.
tirith initPrints the shell hook for your current shell. Add the eval line to your shell profile to activate tirith.
tirith doctorDiagnostic check — shows detected shell, hook status, policy file location, and configuration. Run this if something isn't working.
tirith audit {export,stats,report}Audit log management for compliance and analysis.
tirith activate <key>Activate a license key for Team/Enterprise features.
tirith licenseShow or manage license status. Subcommands: deactivate, refresh.