ai-observer: Monitor AI Coding Assistant Usage Locally

ai-observer: Monitor AI Coding Assistant Usage Locally

Summary

AI Observer is a self-hosted OpenTelemetry backend and dashboard for tracking usage across local AI coding assistants. It brings token and cost data, traces, logs, and metrics together in DuckDB, with both OTLP ingestion and file-based import or watching for supported tools.

At a glance

Language
Go
License
MIT
Stars
279
Forks
26
Added to OSRepos
October 4, 2026
Last analyzed
October 4, 2026
View on GitHub

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Overview

AI Observer collects telemetry from AI coding assistants into a local dashboard, helping developers see usage, estimated costs, latency, errors, and session activity in one place. It runs as a single Go binary with DuckDB storage and does not require an external observability service.

It fits developers who want local visibility into several assistants, including through standard OpenTelemetry ingestion or by importing and watching session files. File-based modes support Claude Code, Codex CLI, and Gemini CLI; GitHub Copilot and OpenCode use OTLP ingestion.

Key Features

  • Ingests OpenTelemetry traces, metrics, and logs over HTTP.
  • Provides dashboards with real-time updates and configurable saved widgets.
  • Tracks token usage and costs across supported tools and model aliases.
  • Imports historical Claude Code, Codex CLI, and Gemini CLI session files.
  • Watches supported local session files to ingest new activity incrementally.
  • Stores data locally in DuckDB and exports telemetry to Parquet.
  • Includes REST query endpoints and a WebSocket for dashboard updates.

Use Cases

  • Developers comparing token usage and estimated costs across AI coding assistants.
  • Individual users who want to inspect assistant errors, latency, and session activity without sending telemetry to a third-party service.
  • Teams or maintainers setting up a shared local dashboard for OpenTelemetry data from supported coding tools.
  • Users who want to analyze prior Claude Code, Codex CLI, or Gemini CLI sessions without configuring live OTLP export.

Project Facts

  • Language: Go
  • License: MIT
  • Stars: 279
  • Forks: 26
  • Topics: ai, claude-code, codex-cli, duckdb, gemini-cli, observability, opentelemetry
  • Archived: No

Getting Started

Run with Docker and open the dashboard at http://localhost:8080:

docker run -d -p 8080:8080 -p 4318:4318 -v ai-observer-data:/app/data --name ai-observer tobilg/ai-observer:latest

See the README for tool configuration, alternatives for installation, and import or watch instructions.

Alternatives

  • agent-observability: It monitors Claude Code and Codex through Prometheus, Loki, Tempo, and Grafana, rather than combining ingestion and storage in DuckDB.

Considerations

  • The project is designed for local self-hosting, so you are responsible for running it and retaining its database.
  • File import and watch are limited to Claude Code, Codex CLI, and Gemini CLI. Copilot and OpenCode require OTLP ingestion.
  • Watch mode and OTLP server mode are mutually exclusive to avoid duplicate data.
  • Telemetry content capture can include prompts, code, and tool results. Enable it only in trusted environments.
  • Historical file parsing does not provide every live operational metric; some activity metrics are reconstructed and have documented limits.

Source repository

Open the original repository on GitHub.

View on GitHub

Related repositories

Similar repositories that may be relevant next.

OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️