Claude Code is Anthropic’s CLI coding agent. It has the best out-of-the-box experience with Termix — telemetry works automatically with zero configuration.
Setup
No setup needed. When you launch a Claude Code session from Termix, telemetry is enabled automatically through environment variables. Just click Claude Code in the session launcher and start working.
What Works Automatically
- Status detection — Termix knows when Claude Code is thinking, writing code, or waiting for you
- Message preview — The sidebar shows the latest output line (identified by the
⏺ marker)
- Session resume — Session IDs are captured from telemetry for seamless resume
- Notifications — Get notified when Claude Code finishes a task
Session Resume
When you close Termix (or it shuts down), your Claude Code sessions are saved automatically. Next time you open Termix, you’ll see them in the Previous Sessions section of the sidebar. Click the resume button to pick up where you left off.
Behind the scenes, Termix captures the session ID from Claude Code’s telemetry and uses claude --resume <sessionId> to reconnect.
Telemetry Details
Termix sets these environment variables when launching Claude Code:
| Variable | Value |
|---|
CLAUDE_CODE_ENABLE_TELEMETRY | 1 |
OTEL_LOGS_EXPORTER | otlp |
OTEL_EXPORTER_OTLP_PROTOCOL | http/json |
OTEL_EXPORTER_OTLP_ENDPOINT | http://localhost:4000 |
OTEL_LOGS_EXPORT_INTERVAL | 2000 |
These tell Claude Code to send OpenTelemetry logs to Termix’s local receiver every 2 seconds. The data never leaves your machine.
If Claude Code releases a major update that changes its telemetry format, you may need to update Termix. Check for the latest version with npm update -g termix-cli.