Telemetry Report -- Claude Code v2.1.143 An analysis of Claude Code v2.1.143 reveals that the AI coding assistant sends telemetry metrics to Anthropic every five minutes via HTTP POST, with data including API usage, OAuth events, and system attributes. The telemetry system is enabled by default for first-party deployments unless blocked by specific environment variables, and it exports over 950 unique event types. Trust gates and organization settings are checked before each export to ensure compliance. Telemetry Report -- Claude Code v2.1.143 Source: deobfuscated clean.js 14.5MB, 19,592 lines, Bun CJS bundle Date: 2026-06-20 https://api.anthropic.com/api/claude code/metrics HTTP POST, JSON, 5s timeout Periodic: Every 5 minutes via PeriodicExportingMetricReader On shutdown: forceFlush before process exit 2s timeout Startup perf: Single event at startup or late startup , sampled at 0.5% The metrics reader is added to the MeterProvider during app startup in Bx . It is always added for first-party deployments unless blocked by env vars. The CLAUDE CODE ENABLE TELEMETRY env var only controls the event logger logs/traces , not the metric s reader. $V7 = Wq$ && PmH || Hq && subscription in "enterprise", "team" Condition Effect tYq == "default" Metrics disabled Not first-party + not enterprise/team Metrics disabled First-party + not sandboxed + trusted Metrics enabled First-party + trusted + enterprise/team Metrics enabled Variable Effect Values CLAUDE CODE DISABLE NONESSENTIAL TRAFFIC Disables metrics Any truthy value DISABLE TELEMETRY Disables metrics Any truthy value DO NOT TRACK Disables metrics "1" , "true" , "yes" , "on" CLAUDE CODE ENABLE TELEMETRY Controls event logger only NOT metrics "1" , "true" , "yes" , "on" CLAUDE CODE PROFILE STARTUP Forces startup perf sampling Any truthy value CLAUDE CODE OTEL SHUTDOWN TIMEOUT MS Shutdown flush timeout Number default: 2000ms OTEL LOGS EXPORT INTERVAL Log export interval Number default: SDK default OTEL EXPORTER OTLP METRICS PROTOCOL Metrics transport "http/json" or "http/protobuf" Trust Gates per-export check Before each export, the following must all pass: Trust established Hq -- sandboxed or authenticated Not in a restricted state yT Org settings don't disable it uJ7 .enabled -- checked every 24 hours Resource attributes: service.name = "claude-code" service.version = "2.1.143" os.type e.g., "linux", "darwin", "win32" os.version host.arch e.g., "x64", "arm64" wsl.version if running under WSL user.customer type = "claude ai" or "api" user.subscription type = "free", "plus", "team", "enterprise", etc. Metric data points: name -- event name e.g., "tengu git operation" description -- human-readable description unit -- measurement unit value -- numeric value attributes -- key-value pairs from the event timestamp -- ISO 8601 format Telemetry Events: 954 unique, 1,330 total calls All event names are prefixed with tengu . Events fire on specific actions, not on a timer except the periodic export of accumula ted data . API 16 events, 17 calls Event Data tengu api 529 background dropped Background request dropped due to 529 tengu api after normalize Post-normalization state tengu api before normalize Pre-normalization state tengu api cache breakpoints Cache breakpoint info tengu api custom 529 overloaded error 529 overloaded response tengu api error API error details tengu api key keychain error Keychain access failure tengu api key saved to config API key persisted to config tengu api key saved to keychain API key persisted to keychain tengu api opus fallback triggered Opus fallback activated tengu api persistent retry wait Long retry wait tengu api query API request metadata tengu api retry Retry attempt tengu api retry after too long Retry-After header exceeded tengu api slow first byte Slow TTFB tengu api success Successful API response x2 OAuth 45 events, 57 calls Event Data tengu oauth 401 recovered from disk Token recovered from disk tengu oauth 401 recovered from keychain Token recovered from keychain tengu oauth 401 sdk callback refreshed SDK callback refresh tengu oauth api key API key auth success/failure, status code tengu oauth auth code received OAuth auth code tengu oauth automatic redirect Auto-redirect x2 tengu oauth automatic redirect error Redirect error tengu oauth bedrock wizard launched Bedrock auth wizard tengu oauth claudeai forced Forced Claude.ai auth tengu oauth claudeai selected Claude.ai selected tengu oauth env var api key Env var API key detected tengu oauth fallback to api key Fallback to API key tengu oauth foundry wizard launched Foundry auth wizard tengu oauth github oauth flow GitHub OAuth tengu oauth iam role prompted IAM role prompt tengu oauth keychain error Keychain error tengu oauth keychain success Keychain success tengu oauth login success Login success tengu oauth mfa required MFA required tengu oauth org selection Org selection tengu oauth org sso SSO org tengu oauth profile fetch success Profile fetch tengu oauth roles stored org role tengu oauth sso login SSO login tengu oauth token exchange success Token exchange tengu oauth token refresh failure error tengu oauth token refresh success Token refresh ... and 19 more Bedrock, Foundry, Vertex, WIF flows MCP 43 events, 65 calls Event Data tengu mcp add MCP config added x3 tengu mcp auth config authenticate Auth config tengu mcp auth config clear Auth cleared tengu mcp channel enable Channel enabled tengu mcp channel flags Channel flags tengu mcp channel gate Channel gate tengu mcp channel message Channel message x3 tengu mcp claudeai proxy 401 Proxy 401 x2 tengu mcp degraded MCP degraded x2 tengu mcp delete MCP config deleted x2 ... and 33 more Config load, transport, tool calls, errors ToolUse 23 events, 29 calls Event Data tengu tool empty result Empty tool result tengu tool input json parse fail JSON parse failure tengu tool result pairing repaired Result pairing fixed tengu tool result persisted Result persisted tengu tool result persisted message budget Budget exceeded tengu tool search mcp wait MCP search wait tengu tool search mode decision Search mode decision tengu tool search outcome Search result tengu tool use can use tool allowed Tool allowed tengu tool use can use tool rejected Tool rejected ... and 13 more Tool execution, timeouts, errors File 21 events, 33 calls Event Data tengu file changed File changed tengu file history backup deleted file Backup of deleted file tengu file history backup file created Backup file created tengu file history backup file failed Backup failed tengu file history resume copy failed Resume copy failed tengu file history rewind failed Rewind failed x2 tengu file history rewind restore file failed Restore failed x5 tengu file history rewind success Rewind success tengu file history snapshot failed Snapshot failed tengu file history snapshot success Snapshot success ... and 11 more File reads, writes, changes, watch events Session 14 events, 39 calls Event Data tengu session all projects toggled All projects toggle tengu session branch filter toggled Branch filter toggle tengu session file read File read event tengu session forked branches fetched Forked branches tengu session group expanded Group expanded tengu session linked to pr PR linking tengu session persistence failed Persistence failed x2 tengu session preview opened Preview opened tengu session rename started Rename started tengu session renamed Rename completed ... and 4 more Session switch, close, new, load Agent 15 events, 21 calls Event Data tengu agent color set Agent color tengu agent created Agent created tengu agent definition generated Definition generated tengu agent flag Agent flag tengu agent memory loaded Memory loaded x3 tengu agent name set Agent name tengu agent parse error Definition parse error tengu agent stop hook blocking Stop hook blocking tengu agent stop hook error Stop hook error x2 tengu agent stop hook max turns Max turns reached tengu agent stop hook success Stop hook success tengu agent summary skipped Summary skipped tengu agent tool completed Tool completed tengu agent tool selected Tool selected tengu agent tool terminated Tool terminated x4 Plugin 26 events, 28 calls Event Data tengu plugin command failed Plugin command failed tengu plugin details command Plugin details tengu plugin disable command Disable command x2 tengu plugin disabled all cli Disabled all tengu plugin disabled cli Disabled single tengu plugin enable command Enable command tengu plugin enabled cli Enabled single tengu plugin enabled for session Session enable tengu plugin folder shadowed Folder shadowed tengu plugin hint detected Hint detected ... and 16 more Install, load, error, config, reload Config 7 events, 18 calls Event Data tengu config auth loss prevented Auth loss prevented x4 tengu config cache stats Cache stats tengu config changed Config changed x9 tengu config lock contention Lock contention tengu config model changed Model changed tengu config parse error Parse error tengu config stale write Stale write Shell 5 events, 6 calls Event Data tengu shell completion failed Command failed tengu shell set cwd Working directory changed x2 tengu shell snapshot error Snapshot error tengu shell snapshot failed Snapshot failed tengu shell unknown error Unknown error Permission 2 events, 5 calls Event Data tengu permission request escape Escape attempt x3 tengu permission request option selected User's choice Model 8 events, 10 calls Event Data tengu model command inline Inline model change x2 tengu model command inline help Inline help x1 tengu model command menu Menu model change x2 tengu model command menu effort Effort setting tengu model fallback triggered Model fallback tengu model picker hotkey Hotkey picker tengu model response keyword detected Keyword in response tengu model whitespace response Whitespace-only response Input 5 events, 9 calls Event Data tengu input bash Bash input tengu input command Command input x2 tengu input prompt Prompt input x2 tengu input slash invalid Invalid slash command x3 tengu input slash missing Missing slash Daemon 10 events, 11 calls Event Data tengu daemon config reload Config reloaded tengu daemon idle exit Idle exit tengu daemon lease Lease x2 tengu daemon peer uid reject UID rejected tengu daemon self restart on upgrade Self-restart tengu daemon start Daemon start tengu daemon worker crash Worker crash tengu daemon worker permanent exit Permanent exit tengu daemon yield Yield tengu daemon yield takeover Yield takeover FeatureFlags 3 events, 3 calls Event Data tengu feature bad feature name , error code , additional data tengu feature ok feature name tengu feature sad feature name , error code FastMode 4 events, 5 calls Event Data tengu fast mode fallback triggered cooldown duration ms , cooldown reason tengu fast mode overage rejected overage disabled reason tengu fast mode picker shown Picker displayed tengu fast mode toggled Toggle x2 Feedback 3 events, 12 calls Event Data tengu accept feedback mode collapsed Mode collapsed x4 tengu accept feedback mode entered Mode entered x4 tengu accept submitted Feedback submitted x4 AskUserQuestion 4 events, 4 calls Event Data tengu ask user question accepted Question accepted tengu ask user question finish plan interview Plan interview finished tengu ask user question rejected Question rejected tengu ask user question respond to claude Responded to Claude Event Data tengu git index lock error Lock error tengu git operation Git operation x7 Prompt 4 events, 12 calls Event Data tengu prompt cache break Cache broken tengu prompt cache diagnosis received Diagnosis received tengu prompt suggestion Suggestion x4 tengu prompt suggestion init Suggestion init x6 Event Data tengu rate limit lever hint Rate limit hint tengu rate limit options menu cancel Cancelled tengu rate limit options menu select extra usage Extra usage tengu rate limit options menu select team Team plan tengu rate limit options menu select upgrade Upgrade Startup 3 events, 3 calls Event Data tengu startup manual model config Manual model config tengu startup perf import time , main imports , init time , settings time , tools loaded , mcp configs , plugins init , headless setup , force login org , mcp connect , mcp connect user , mcp connect connector , growthbook init , prewait , s andbox init , process user input , total time , gap unaccounted ms , free mem mb , load avg 1m , checkpoint count tengu startup telemetry Telemetry init Event Data tengu exit background work prompt Background work prompt tengu exit plan mode called outside plan Plan mode outside plan tengu unclean exit session age sec Event Data tengu wif user oauth lock acquired Lock acquired tengu wif user oauth lock released Lock released tengu wif user oauth lock retry Lock retry tengu wif user oauth lock retry limit Retry limit Category Events What It Tracks Other 632 @-mentions, attachments, cursor position, rename, rm, slow ops, code index, diff, edit, help, login, memory, op en, skill, stream, update, write, bug reports, claude chrome, config, headless, input, intent, json, keychain, kill, lifecycle, mod el, multi, npm, ollama, parse, rule, search, shell, skill, token, tool use, user input, zod, and 600+ more granular events Advisor 6 Advisor dialog, commands, tool calls/interrupts/tokens Agentic 1 Agentic search cancelled Ant 1 Overly broad bash detected ApiKeyHelper 1 Missing trust11 Assistant 1 Assistant install Async 1 Agent stall timeout BugReport 2 Bug report submitted/failed CLI 1 CLI flags Claude 11 Chrome onboarding, CLAUDE.md dialogs, skill loaded, install command Code 2 Code indexing, prompt ignored Diff 1 Diff tool changed Edit 1 Edit string lengths Headless 3 Latency, MCP prewait, plugin install Help 1 Help toggled Login 1 Login from refresh token Memory 2 Threshold crossed, toggled Org 1 Penguin mode fetch failed Open 1 Open agents via left panel Skill 4 File changed, loaded, tool invocation Stream 2 Loop exited, no events Update 2 Update check, refused OS type and version Host architecture x64, arm64, etc. WSL version if applicable Free memory startup perf only Load average 1m startup perf only Customer type: "claude ai" or "api" Subscription type: "free", "plus", "team", "enterprise", etc. Service version: "2.1.143" Every tool call allowed, rejected, terminated, empty result, JSON parse fail Every file operation read, write, rename, rm, watch, history snapshot/rewind Every shell command completion, failure, CWD change, snapshot Every permission prompt escape attempt, option selected Every model change inline, menu, picker, fallback, whitespace response Every input type bash, command, prompt, invalid/missing slash Every @-mention parsing result success, error, directory, filename, MCP resource Every attachment size, too-large, compute duration Every cursor position change Every session event file read, branch ops, persistence, rename, preview, PR linking Every plugin action enable, disable, install, load, error, config Every MCP action config add/delete, auth, channel, proxy 401, degraded Every git operation and lock error Every config change, cache stat, lock contention, parse error Every daemon event start, idle exit, lease, crash, restart Every feedback interaction mode entered/collapsed, submitted Every AskUserQuestion interaction accepted, rejected, plan interview Every rate limit interaction hint, options menu Every fast mode interaction toggled, picker, fallback, overage Every feature flag outcome ok, bad, sad Every agent lifecycle event creation, memory, stop hooks, tool events Every advisor interaction dialog, command, tool call Every OAuth event token refresh, 401 recovery, auth code, SSO, MFA Every API event query, error, retry, 529, slow first byte, opus fallback Every prompt suggestion init, display Every prompt cache event break, diagnosis Every stream event loop exited, no events Every update check and refusal Every bug report submission Every skill event load, file changed, tool invocation Every Ollama interaction Every NPM interaction Every intent detection Every JSON parse event Every keychain event Every lifecycle event Every rule event Every search event Every token event Every zod validation event Startup Performance sampled 0.5% Per-stage timing: import, main imports, init, settings, tools, MCP configs, plugins, headless setup, force login org, MCP connect , MCP connect user, MCP connect connector, GrowthBook init, prewait, sandbox init, process user input Total time Unaccounted time gap Free memory MB Load average 1m Checkpoint count Message content -- no prompts, responses, or conversation text File contents -- no file data, only operation metadata Shell command output -- no stdout/stderr from commands API keys or tokens -- only success/failure events, never the values PII -- no names, emails, addresses, or personal identifiers Source code -- no code content, only operation counts Terminal content -- no terminal output or screen content Clipboard data -- no clipboard access Network request bodies -- only event metadata, not request/response payloads Environment variable values -- only presence/absence of specific vars, not their values Aspect Value Unique event names 954 Total event calls in code 1,330 Export interval 5 minutes Startup perf sampling 0.5% Default enabled Yes first-party deployments Disable method DISABLE TELEMETRY=1 or DO NOT TRACK=1 Data destination api.anthropic.com/api/claude code/metrics Transport HTTP POST, JSON Auth Bearer token in request headers PII collected None Message content collected None File content collected None Command output collected None