TheophileDiot

AI CLI Observability — AI skill for Claude Code

AI community

Self-hosted OpenTelemetry observability stack for Codex, Claude Code, and Gemini CLI, with Grafana dashboards for usage, tokens, estimated costs, latency, errors, tool activity, logs, metrics, and tra.

How to install AI CLI Observability

This entry records only its repository, not the path inside it, so there is no exact command to give. Open TheophileDiot/ai-cli-observability and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI CLI Observability does

Self-hosted OpenTelemetry observability stack for Codex, Claude Code, and Gemini CLI, with Grafana dashboards for usage, tokens, estimated costs, latency, errors, tool activity, logs, metrics, and traces.

Alternatives in AI

  • Dashboard Icons — 3,400+ curated icons and logos for dashboards and AI agents 8.9k ★
  • Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
  • Power BI Agentic Development — Power BI AI skills and Power BI agents for Claude Code and GitHub Copilot: a plugin marketplace of Power BI sk 879 ★

README

AI CLI Observability

**See where your AI coding time, tokens, and money go.**

[![OpenTelemetry](https://img.shields.io/badge/OpenTelemetry-native-425CC7?logo=opentelemetry&logoColor=white)](https://opentelemetry.io/) [![Grafana](https://img.shields.io/badge/Grafana-ready-F46800?logo=grafana&logoColor=white)](https://grafana.com/) [![Docker Compose](https://img.shields.io/badge/Docker_Compose-one_command-2496ED?logo=docker&logoColor=white)](https://docs.docker.com/compose/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

AI CLI Observability turns the built-in telemetry from **Codex**, **Claude Code**, and **Gemini CLI** into one self-hosted Grafana view. Track usage, latency, errors, tokens, tool activity, traces, and estimated API-equivalent cost without sending your telemetry to another SaaS.

One Compose stack. Three AI CLIs. Full OpenTelemetry signals. Your data.

Answer Signal
Which CLI and model consume the most tokens? Usage and token metrics
What would that activity cost through provider APIs? USD and EUR estimates
Where do slow requests and failures happen? Latency, errors, logs, and traces
Which tools are agents actually using? Immutable tool events

Quick start

**You need:** Docker with Compose v2. Python 3.11 or newer is required only for the smoke test.

Copy the environment template and generate two secrets:

cp .env.example .env
openssl rand -hex 32
openssl rand -hex 32

Paste one value into `OTEL_AUTH_TOKEN` in `.env` and the other into `GRAFANA_ADMIN_PASSWORD`, then start the stack:

docker compose up -d --build
docker compose ps

Open , sign in with `admin` and your Grafana password, then connect a clie