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.

← Back to Dashboard
1

Install CLI

Run TokenTrail zero-config CLI via npx or global npm package manager.

npm i -g tokentrail
2

Authenticate

Link terminal and auto-populate your organization telemetry API tokens.

tokentrail login
3

Auto-Hook Agents

Automatically detect and attach telemetry hooks to all installed coding agents.

tokentrail hook --all

Integration 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 login

Option B: Install Globally via NPM / PNPM / Yarn

npm install -g tokentrail

CLI Commands Reference

CommandDescriptionExample
tokentrail loginAuthenticate developer credentials & link organization.tokentrail login
tokentrail syncScan & synchronize all historical sessions and token usage.tokentrail sync
tokentrail connect <agent>Automatically install telemetry hooks for a coding agent.tokentrail connect claude
tokentrail watchStream and ingest agent completions in real-time.tokentrail watch
tokentrail statusShow connected agents, auth state, and server endpoints.tokentrail status
tokentrail doctorRun diagnostic health check on endpoints and local configs.tokentrail doctor