Skip to content
How it works / Surfaces & providers

Surfaces & providers

The tools we read vs. the model-makers we attribute usage to.

Centrail separates two things people often conflate: the tool you type into, and the company whose model answered.

Surfaces (the tools we read)

A surface is a coding agent whose local logs the CLI reads. Today:

SurfaceLogs
Claude Code~/.claude/projects (also ~/.config/claude/projects, or wherever CLAUDE_CONFIG_DIR points)
GitHub Copilot CLI~/.copilot/session-state
Codex~/.codex/sessions (or $CODEX_HOME/sessions)
Gemini CLI~/.gemini/tmp and ~/.cache/.gemini/tmp (under $GEMINI_CLI_HOME when set)
Pi~/.pi/agent/sessions (or $PI_CODING_AGENT_DIR/sessions)

Paths resolve from your home directory, so the CLI works the same on macOS, Linux, and Windows. For Claude Code it honors the CLAUDE_CONFIG_DIR environment variable (comma-separated for multi-account setups), matching how Claude Code itself locates its config. For Codex it honors CODEX_HOME.

Cursor and OpenCode supply repository identity only; see the CLI. Copilot log discovery uses ~/.copilot/session-state even when its hook setup uses COPILOT_HOME.

Providers (who made the model)

Every usage event is attributed to the model's maker, derived from the model name:

Model name starts withProvider
claudeAnthropic
gpt, codex, o1, o3, o4OpenAI
geminiGoogle
anything elseUnknown (still counted)

This is why one connector can feed several providers: Copilot routes to OpenAI, Anthropic, and Google models, and each lands under its real maker — not under "Copilot".

Adding a model

A new model lights up automatically: we capture its tokens the moment your agent logs them. Correct maker labelling is a one-line rule, and cost appears once the reviewed LiteLLM price snapshot Centrail pins includes it. The environmental footprint is token-based, so it works even before pricing does.