Org:TokenTrail Workspace
TokenTrailDocumentation & Installation Guide
Installation & Integration Guide
Quickly connect your AI coding agents — Claude Code, GitHub Copilot, Gemini / Antigravity, OpenAI Codex, and xAI Grok to stream sub-millisecond telemetry to TokenTrail.
1
Install CLI
Run TokenTrail zero-config CLI via npx or global npm package manager.
npm i -g tokentrail2
Authenticate
Link terminal and auto-populate your organization telemetry API tokens.
tokentrail login3
Auto-Hook Agents
Automatically detect and attach telemetry hooks to all installed coding agents.
tokentrail hook --allIntegration Guides by Platform
TokenTrail CLI Setup
The TokenTrail CLI provides zero-config fleet discovery, telemetry proxies, and live terminal session stream tracing.
Option A: Run without installation (NPX)
npx tokentrail@latest loginOption B: Install Globally via NPM / PNPM / Yarn
npm install -g tokentrailCLI Commands Reference
| Command | Description | Example |
|---|---|---|
| tokentrail login | Authenticate developer credentials & link organization. | tokentrail login |
| tokentrail sync | Scan & synchronize all historical sessions and token usage. | tokentrail sync |
| tokentrail connect <agent> | Automatically install telemetry hooks for a coding agent. | tokentrail connect claude |
| tokentrail watch | Stream and ingest agent completions in real-time. | tokentrail watch |
| tokentrail status | Show connected agents, auth state, and server endpoints. | tokentrail status |
| tokentrail doctor | Run diagnostic health check on endpoints and local configs. | tokentrail doctor |