CC ccdash

Claude Code + Codex · Documentation

The collection and query pipeline

A dedicated installation combines client telemetry, a bounded ingestion path, ClickHouse storage and an authenticated dashboard.

Updated November 14, 2026 · Describes source behavior; verify your installed revision.

Where the screen’s numbers come from

Collection and dashboard access use different paths. The diagram shows the optional device-collection path and the authenticated read path; organizer-prepared workshop collection can use a separate configured path. This is an OIDC-enabled device-collection example.

The collection and query architecture.
↗The collection and query architecture. Signals move into storage; the dashboard reads scoped results through its API. The two Express boxes represent logical roles of the same application.Logical device path · English diagram labels · open the interactive view

Collection: client → stored observations

Claude Code and Codex export supported signals to a local Collector. A registered device sends them through the authenticated ingestion gateway and central Collector to ClickHouse. The device credential is separate from browser login.

Reading: signed-in user → dashboard result

Organization login supplies the configured role. The API applies time, client and supported filters before returning usage and diagnostic views. Read the cost basis and coverage: a screen can contain a known subtotal or an unavailable signal.

Collection paths and trust boundaries · How logs, metrics and traces differ

Connect a user, task and span

User detail selects an exact telemetry identity and time range. /api/users/tasks lists tasks starting in the effective range; dragging the usage chart narrows the range, while clicking a point selects one bucket. /api/users/tasks/detail returns the selected task's lanes, spans and evidence-based cost explanations.

ClientTask and timingUsage and cost
Claude CodeAn interaction span identifies the task and duration. LLM, tool and permission-wait spans form the timeline; observed agent IDs form lanes.LLM span tokens; reported request cost joined from logs when available, otherwise the applicable pricing calculation. The displayed basis can be mixed.
CodexA turn with a conversation ID and unique turn ID identifies the task. Duration is the observed span window; only the main lane is available.Unique usage-bearing completion logs linked to the turn window provide tokens and AWS list estimates. Sampling spans receive matching completion values for display.

Codex task usage is a view of linked completion records, not an additional accounting source. Unattached completions are reported separately; calls lacking a matching sampling span can be absent from the cumulative cost band. The Analytics Trace preview reads diagnostic spans independently.

Task-detail queries select allowlisted metadata. The UI masks identities and does not render raw prompts, commands or paths; this display policy does not provide API access control. Trace data has a 90-day retention window, separate from usage rollups.

Task Trace walkthrough · Query contracts · Task identity, joins and privacy boundaries

Two collection paths

Claude Code + CodexMetrics, completion logs and diagnostic signals
Local CollectorLoopback receivers, filtering and a bounded persistent queue
Device ingest gatewayHTTPS, device bearer token, bounded OTLP requests
Central collectionPrivate Collector → ClickHouse → Express → React

The optional device path uses /api/ingest/v1/{logs,metrics,traces}. Browser session cookies do not authorize ingestion. The central Collector owns the ClickHouse write credential; PCs receive a revocable device credential.

Organizer-prepared workshop environments have a separate configured collection path. Do not overlay the device package onto an already prepared Collector without migration.

Ingestion trust boundary and limits

Preserve signal semantics

SignalInterpretation
Claude countersRespect series identity, cumulative/delta temporality, baselines and resets. Never sum cumulative exports as usage.
Codex completion logsDeduplicate complete identities and price usage-bearing completions once. Intermediate stream records do not add another usage total.
Codex metrics and tracesUse as diagnostics. Do not add their token or cost observations to completion-log usage.
Cache and reasoning tokensTreat as input/output subsets where defined. Adding them to canonical totals again double-counts usage.
Missing or limited evidenceKeep known subtotals with partial flags. Withhold affected strict ratios and expose the reason; missing does not mean zero.

Data boundaries · Codex observability

Client, backend and session channel

Collection and API routing identify the emitting client. Provider provenance and model evidence inform backend classification; a model identifier by itself cannot identify the client.

The Claude session-channel classifier distinguishes bedrock, enterprise and unknown. Observed Bedrock model evidence and organization/model fallback rules apply at session scope. This classification is not the dashboard user's SSO role.

Regional/geographic Bedrock model identifiers and bare provider IDs are normalized by the pricing/backend logic. Preserve unsupported scopes and unknown prices rather than assuming every model ID has a price. Codex has no enterprise A/B row.

Backend pricing decision

Reduce query work without changing totals

These mechanisms reduce work; they do not establish a capacity guarantee for 140 concurrent users. Measure representative filter diversity, cold-cache traffic, ingestion and query latency on the target installation.

Cost query performance

Dashboard access and device access

OIDC verifies signed identity and maps explicit group values to viewer, analyst or admin. Authorized viewers can read installation-wide telemetry; this is not per-employee row isolation.

Device tokens authorize telemetry ingestion and installer-package downloads, not browser access. They are separately owned, expired and revoked. Telemetry attribution is client-provided; neither an SSO session nor token ownership automatically certifies a telemetry email.

PII masking is a display feature, not API access control. Collection filters remove known content fields but cannot detect arbitrary secrets placed in otherwise supported metadata.

Configure SSO and refresh sessions · Install a Collector

Deployment boundaries

The dashboard image contains the web UI and API. ClickHouse, its schema and the OTel Collector are separate components on every platform. The current Compose file omits the Collector; EKS Terraform reuses existing cluster dependencies. ECS/EC2 need reviewed infrastructure, credentials, networking, probes and persistence configuration; Lambda requires runtime adaptation.

Required components · Compare hosting options

Schema lifecycle, application images, Collector policies and runtime options have independent deployment state. A successful build or Terraform validation does not prove a live rollout or migration.

Deploying for your organization