Skip to content

AI Telemetry

AI Telemetry captures usage data from AI coding tools across your engineering organization — token consumption, costs, session activity, and CapEx classification — without changing how engineers work.

What It Does

  • Capture every AI request from a developer's machine, three ways — OTel from instrumented tools, an on-device proxy daemon, or the hosted relay at ai.flowstate.inc
  • Token and cost tracking per engineer, team, and project
  • CapEx / R&D classification for tax relief reporting
  • Author guidelines, see activity, manage an attention list of subjects who need a check-in
  • Zero-config for engineers (CLI installer handles setup, MDM artefacts ship with the binary)

Capture modes — pick one or mix

ModeWhat you installCoverageBest for
OTel via CLIflowstate-telemetry installThe 9 supported toolsRichest signal (file paths, tool calls, git context)
On-device proxyflowstate-telemetry proxy installEvery AI request from the machineBypass-proof fleet rollouts. MDM-deployable.
Hosted relayNone — point a base URL at ai.flowstate.incWhichever tools let you set a base URLLocked-down machines, contractors, CI runners

See the capture modes overview for detail.

Supported tools (OTel mode)

ToolCollection MethodPrompt Capture
Claude CodeOTel (native)Opt-in (--prompts)
GitHub CopilotOTel (VS Code)Opt-in (--prompts)
CursorEditor hooksAlways on
WindsurfEditor hooksAlways on
Gemini CLIOTel (native)Opt-in (--prompts)
Codex CLIOTel (native)Opt-in (--prompts)
AiderOTelAlways on
Qwen CodeOTel (native)Opt-in (--prompts)
OpenCodeOTel (native)Always on

The on-device proxy and the hosted relay are tool-agnostic — they intercept the API call to the upstream provider, so they work with anything that hits Anthropic / OpenAI / Gemini / Copilot regardless of which tool issued it.

What Gets Tracked

For every AI coding session:

  • Token counts — input, output, and cache-read tokens per model
  • Cost — estimated USD cost based on provider pricing
  • Session metadata — duration, tool calls, files modified, lines added/removed
  • Git context — branch, repository, commit messages (when available)
  • Classification — project attribution and CapEx eligibility (automated)

WARNING

For Claude Code, Copilot Chat, Gemini CLI, Codex CLI, and Qwen Code, prompt capture is opt-in via the --prompts flag. For Cursor, Windsurf, Aider, and OpenCode, prompt content is captured by default when telemetry is configured.

How It Works

  1. Engineers install flowstate-telemetry CLI (OTel mode), flowstate-telemetry proxy install (on-device proxy mode), or point a tool's base URL at ai.flowstate.inc (hosted relay mode)
  2. AI tool usage reaches the Flowstate telemetry service via whichever path was configured
  3. Sessions are aggregated, classified (project + category + CapEx eligibility), and stored
  4. Data appears in the Flowstate AI Workforce dashboard, where admins can author guidelines, watch the activity log, and manage an attention list for subjects with significant unmatched-session spend

Next Steps

Flowstate Documentation