Claude Code
Configure Claude Code telemetry for trAIce Internal Spend.
View sourceRun the complete setup:
npx @traice/collector@latest setupChoose Claude Code when prompted. Setup starts browser authorization when needed, patches user-level
~/.claude/settings.json, installs a background user service, and reports the result. It is safe to rerun. Add
--no-browser for SSH, or --no-service if another process manager will run collection.
Restart every running Claude Code session after setup. Sessions that were already running do not reload the telemetry
environment written to ~/.claude/settings.json.
Verify configuration, credentials, service state, the local listener, and server access:
npx @traice/collector@latest statusTo run the collector in the foreground instead:
npx @traice/collector@latest collect --agent claude-codeClaude Code should export OTLP HTTP JSON to:
http://127.0.0.1:4318Prompt logging is off by default. Only pass --include-prompts when your organization has explicitly approved prompt collection. See Privacy.
Run continuously
Use the native service definitions in the Codex guide, replacing --agent codex
with --agent claude-code. Credentials remain in Keychain, Credential Manager, Secret Service, or the protected-file
fallback; never place a credential in a plist, systemd unit, or Windows Startup launcher.