tobilg /ai-observer

Unified local observability for agents

★ 298⑂ 29👁 2⑃ 7● 3▤ 10
GoMITCreated 2025-12-23
下载:v0.8.0v0.8.0 ↓0.8.02026-11-21
-1
日增长
298
stars
29
forks
2
watchers
7
prs
3
issues
10
releases

README

AI Observer

 Unified local observability for AI coding assistants

AI Observer is a self-hosted, single-binary, OpenTelemetry-compatible observability backend designed specifically for monitoring local AI coding tools like Claude Code, Gemini CLI, OpenAI Codex CLI, GitHub Copilot, and OpenCode.

Track token usage, costs, API latency, error rates, and session activity across all your AI coding assistants in one unified dashboard—with real-time updates and zero external dependencies.

 Why AI Observer?

AI coding assistants are becoming essential development tools, but understanding their behavior and costs remains a challenge:

- Visibility: See exactly how your AI tools are performing across sessions
- Cost tracking: Monitor token usage and API calls to understand spending
- Debugging: Trace errors and slow responses back to specific interactions
- Privacy: Keep your telemetry data local—no third-party services required

 Features

- Multi-tool support — Works with Claude Code, Gemini CLI, OpenAI Codex CLI, GitHub Copilot, and OpenCode
- Real-time dashboard — Live updates via WebSocket as telemetry arrives
- Persistent dashboards — Drag-and-drop dashboard builder with saved widgets and multiple widget types
- File watcher mode — Watch Claude, Codex, and Gemini session files in real-time, no OTLP configuration needed
- Historical import — Import past Claude, Codex, and Gemini sessions from local JSONL/JSON files with cost calculation
- Cost tracking — Embedded pricing data across Claude, Codex/OpenAI, Gemini, and GitHub Copilot model aliases, plus native OpenCode plugin cost metrics
- Fast analytics — DuckDB-powered storage for instant queries on large datasets
- Single binary — One ~54MB executable with embedded frontend—no external dependencies
- Multi-arch Docker — Ready-to-run ~97MB images for linux/amd64 and linux/arm64
- OTLP-native — Standard OpenTelemetry Protocol ingestion (HTTP/JSON, HTTP/Protobuf and gRPC)

 Documentation

- Import Command — Import historical session data from local AI tool files
- Export Command — Export telemetry data to Parquet files for archiving and sharing, and restore it
- Maintenance — Retention, size limit, compaction, backups and the admin API
- API description — OpenAPI 3.1 description of the REST API, generated from the server's types
- Watch Command — Watch local session files and import incrementally in real-time
- Agent Access (MCP) — Let Claude Code, Codex, Gemini CLI, Copilot or OpenCode search your conversations, logs, traces, metrics and costs
- Redaction — Secrets (and optionally personal data) are replaced before telemetry is stored
- Pricing System — Cost calculation for Claude, Codex/OpenAI, Gemini, and GitHub Copilot models; OpenCode costs are ingested from the OTEL plugin

 Screenshots

 Dashboard

!AI Observer Dashboard

 Metrics View

!AI Observer Metrics

 Logs View

!AI Observer Logs

 Traces View

!AI Observer traces

 Quick Start

 Using Docker (Recommended)

bash
docker run -d \
  -p 127

Latest release

v0.8.0 v0.8.0 2026-11-21
Full Changelog: https://github.com/tobilg/ai-observer/compare/v0.7.0...v0.8.0

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON