satoai
v0.1.4
Published
AI Coding Telemetry Collector — captures OpenTelemetry data from Claude Code and forwards to satoai.co
Readme
Sato
AI Coding Telemetry Collector. One command to capture OpenTelemetry data from Claude Code.
Quick Start
npx satoaiThat's it. On first run, Sato automatically configures Claude Code to export telemetry, starts an OTLP receiver on :4318, and installs a LaunchAgent so it runs on login.
Open a new terminal and use Claude Code as usual — telemetry flows automatically.
Commands
sato / sato start
Start the OTLP receiver.
sato # default: OTLP receiver on :4318
sato start --otlp-port 4319 # custom OTLP portsato stop
Stop the running Sato instance.
sato stop
sato stop --uninstall # also remove the LaunchAgentsato status
Show running state and forwarding endpoint.
sato statussato setup claude
Configure Claude Code to export telemetry. Appends env vars to your shell profile (~/.zshrc or ~/.bashrc). Idempotent — safe to run multiple times.
sato setup claudeHow It Works
sato startlaunches an OTLP HTTP/JSON receiver on:4318- Claude Code (with telemetry enabled) sends OpenTelemetry logs and metrics to the receiver
- The receiver appends data to
~/.sato/data/and forwards to the dashboard
Data
Telemetry is stored locally in ~/.sato/data/.
~/.sato/data/logs.json— OTLP log records~/.sato/data/metrics.json— OTLP metric records~/.sato/sato.pid— PID file for the running instance
Environment Variables
| Variable | Description |
|----------|-------------|
| SATO_API_KEY | API key for forwarding data to the Supabase-backed dashboard. Get this from the dashboard after logging in with GitHub. |
| SATO_INGEST_URL | Dashboard URL to forward data to. Defaults to http://localhost:3000. Set to your deployed URL (e.g. https://satoai.co) for remote forwarding. |
These are automatically added to your shell profile by sato setup claude. To add your API key manually:
# Add to your ~/.zshrc (inside the Sato block)
export SATO_API_KEY=sato_your_key_hereDevelopment
git clone https://github.com/SatoAI-co/Sato.git
cd Sato
npm install
npm run dev # Next.js dashboard on :3000
npm run build:cli # compile CLI to dist/cli/Publishing to npm
The CLI is published as the satoai package on npm. prepack automatically runs build:cli before publishing.
# 1. Bump version in package.json
npm version patch # 0.1.0 → 0.1.1 (or minor/major)
# 2. Publish (requires npm login + 2FA)
npm publish --access public
# If you have 2FA enabled, pass your OTP:
npm publish --access public --otp=123456Pre-publish checklist
- All CLI changes are committed
npm run build:clicompiles without errors (runs automatically viaprepack)- Version in
package.jsonis bumped (npm rejects duplicate versions) - You're logged in to npm (
npm whoami)
Prerequisites
- Node.js 18+
- Claude Code CLI (
npm install -g @anthropic-ai/claude-code)
