← Back to Optelly
Integration

Codex CLI Monitoring & Telemetry

Codex exports logs, traces, and metrics via OpenTelemetry. Optelly captures token usage, reasoning tokens for o3/o4 models, tool decisions, and conversation-level activity — visualized in a live 3D workspace.

What You Get

Token & Reasoning Tracking
Track input, output, and cached tokens per request. For o3 and o4-mini models, see reasoning token counts — understand how much "thinking" your agent does.
Tool Call Visibility
See every tool invocation with accept/reject decisions, execution duration, and success status. Know when your agent is blocked waiting for approval.
Conversation Timelines
Review past conversations with full event history — API calls, tool results, SSE events, and auth recovery — stored with up to 90-day retention on Pro.
Multi-Signal OTel
Codex exports logs, traces, and metrics natively. Optelly connects with one command — no proxy, no wrapper, no SDK.

Setup in 30 Seconds

1. Install
Run npx optelly setup — this configures the OTel environment variables that Codex reads automatically.
2. Code
Launch Codex as usual. Telemetry is exported automatically via OpenTelemetry — no changes to your workflow.
3. Watch
Open optelly.com to see your Codex agent in the office. Track costs, tokens, and session activity live.
Get Started — Free
npx optelly setup
Also works with Claude Code and Gemini CLI