Skip to content

Setup

Get AI telemetry flowing in under 5 minutes using the flowstate-telemetry CLI.

Prerequisites

  • macOS (ARM/x64) or Linux (x64)
  • A Flowstate account with AI Telemetry enabled
  • A telemetry API key (generate one from your Profile → AI Telemetry section, or ask your admin to bulk-generate keys from AI Workforce → Telemetry Keys)

Install the CLI

macOS (Homebrew):

bash
brew tap meetflowstate/tap && brew install flowstate-telemetry

Linux / manual download:

Download the latest binary from GitHub releases.

Set Your Key

Set your telemetry key as an environment variable:

bash
export FLOWSTATE_OTLP_KEY="YOUR_TELEMETRY_KEY"

Or pass it as a flag with --key YOUR_TELEMETRY_KEY on any command.

Configure All Tools

The fastest way to set up telemetry for every supported AI tool on your machine:

bash
flowstate-telemetry install --all

This auto-detects installed AI tools and configures each one to send telemetry to Flowstate. It also writes environment variables to your shell profile (~/.zshrc or ~/.bashrc).

Configure a Single Tool

bash
flowstate-telemetry install --tool claude-code

Available --tool values: claude-code, copilot-chat, cursor, windsurf, gemini-cli, codex-cli, aider, qwen-code, opencode

Enable Prompt Capture

WARNING

Prompt capture sends the text of your prompts to Flowstate for classification. For some tools this is opt-in via the --prompts flag; for others it is always on.

bash
flowstate-telemetry install --all --prompts
BehaviourTools
Opt-in (--prompts flag)Claude Code, Copilot Chat, Gemini CLI, Codex CLI, Qwen Code
Always on (no toggle)Cursor, Windsurf, Aider, OpenCode

Tools with "always on" prompt capture send prompt content by default when telemetry is configured — there is no separate opt-in step.

CLI Commands Reference

CommandDescription
install --allConfigure all detected AI tools
install --tool <name>Configure a specific tool
remove --allRemove telemetry configuration from all tools
remove --tool <name>Remove configuration from a specific tool
statusShow configuration status of all tools
verifyCheck if telemetry configuration is correct
generate-mdm --format <fmt>Generate MDM deployment artefacts (jamf, intune, ansible, puppet)

Global Flags

FlagDescriptionEnvironment Variable
--key <key>Flowstate telemetry API keyFLOWSTATE_OTLP_KEY
--endpoint <url>OTel collector endpointFLOWSTATE_OTLP_ENDPOINT
--verboseEnable debug logging

Install Flags

FlagDescription
--allInstall for all detected tools
--tool <name>Install for a specific tool
--promptsEnable prompt capture (where supported)
--dry-runPreview changes without writing files

Manual Setup

If you prefer to configure tools manually (without the CLI), see the individual tool guides:

Next Steps

After setup, verify data is flowing.

Flowstate Documentation