Records token/cost usage facts from live provider events into a replayable projection, exposes a dashboard-shaped RPC, and adds Settings > Usage. Server: - New thread.usage-recorded orchestration event (internal thread.usage.record command) carrying immutable per-model interval facts with provider-native session identity; emitted from runtime ingestion for Codex cumulative token-usage updates and Claude turn.completed modelUsage settlements (exact cost in integer micro-USD; stale completions recorded, flagged). - Registered projection.usage projector -> projection_usage_facts (fact_id upsert, migration 033). Deliberately does NOT prune on thread.reverted (billing history is immutable); thread deletion redacts linkage. - Cumulative->delta baselines keyed by native session + model, reseeded from fact sums after restart to prevent double counting. - ClaudeAdapter: providerRefs now carry the SDK session id. CodexAdapter: snapshots now include cumulative total* fields; native thread id attached to usage events (separates concurrent subagent sessions on one thread). - usage.getSummary RPC (orchestration:read scope): totals, by-model, daily, hour-of-week, by-project buckets grouped in the caller's IANA timezone. - Pricing: versioned effective-dated list-price catalog in shared runtime code; estimates computed at query time only, never stored, always flagged. Unpriced models surface as token-only, never $0. Web: - Settings > Usage per the approved mock: harness-level twin donuts (tokens + cost, model shades within family, striped estimate slices), KPI tiles, tokens-per-day stacks, hour x weekday heatmap, models table, project bars. Tests: pure accounting (delta/reset/normalization), projector (idempotent replay, revert retention, deletion redaction, session-model sums), adapter fixtures updated for the new snapshot fields. Co-Authored-By: Claude Fable 5 <[email protected]>
T3 Code
T3 Code is a minimal web GUI for coding agents (currently Codex, Claude, Cursor, and OpenCode, more coming soon).
Installation
Warning
T3 Code currently supports Codex, Claude, Cursor, and OpenCode. Install and authenticate at least one provider before use:
- Codex: install Codex CLI and run
codex login- Claude: install Claude Code and run
claude auth login- Cursor: install Cursor CLI and run
cursor-agent login- OpenCode: install OpenCode and run
opencode auth login
Run without installing
npx t3@latest
Tip: Use npx t3@latest --help for the full CLI reference.
Desktop app
Install the latest version of the desktop app from GitHub Releases, or from your favorite package registry:
Windows (winget)
winget install T3Tools.T3Code
macOS (Homebrew)
brew install --cask t3-code
Arch Linux (AUR)
yay -S t3code-bin
Some notes
We are very very early in this project. Expect bugs.
We are not accepting contributions yet.
There's no public docs site yet, checkout the miscellaneous markdown files in docs.
Documentation
If you REALLY want to contribute still.... read this first
Install vp
T3 Code uses Vite+ so you'll need to install the global vp command-line tool.
macOS / Linux
curl -fsSL https://vite.plus | bash
Windows
irm https://vite.plus/ps1 | iex
Checkout their getting started guide for more information: https://viteplus.dev/guide/
Install dependencies
vp i
Read CONTRIBUTING.md before opening an issue or PR.
Need support? Join the Discord.