- TypeScript 85.4%
- CSS 14.4%
- HTML 0.2%
Shift forecast training from active-only telemetry rows to calendar-filled daily history, exclude partial current-day data, and soften the model by disabling the default linear trend and shrinking weekday effects. This makes the forecast semantics clearer and reduces month-end overstatement from missing zero days and intraday data. |
||
|---|---|---|
| .dev/wip | ||
| scripts | ||
| server | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
pi usage atlas
A local web dashboard for exploring pi usage telemetry: cost, token mix, models, workspaces, sessions, web-tool calls, and short-term forecasts.
The app is designed to run on your own machine against your own SQLite telemetry files. It does not include telemetry data, secrets, or private machine paths.
Features
- Daily usage, cost, token, session, and workspace summaries
- Model and project breakdowns with filtering
- Token-type cost composition for input, output, cache-read, and cache-write usage
- Web-tool timeline and error/latency summaries when web-tool telemetry is available
- Forecast lab for projecting near-term usage and cost from recent activity
Requirements
- Vite+ (
vp) for dev/build/check commands and Node.js runtime management - pnpm for package management, delegated through
vp - A pi usage database, usually at
~/.pi/agent/data/usage.sqlite - Optional web-tool telemetry database, usually at
~/.pi/agent/data/web-tools.sqlite
Configure data paths
By default the API reads pi's standard per-user data files:
~/.pi/agent/data/usage.sqlite
~/.pi/agent/data/web-tools.sqlite
Override those paths with environment variables when your databases live elsewhere:
cp .env.example .env
# edit .env if needed
Available variables:
| Variable | Purpose |
|---|---|
USAGE_DB_PATH |
Path to usage.sqlite |
WEB_TOOLS_DB_PATH |
Path to web-tools.sqlite |
PORT |
API server port; defaults to 4174 |
Develop
vp install
vp run dev
vp run dev starts the Node API server and the Vite+ React client. Vite+ proxies /api/* to the API server.
Build
vp build
The production build is written to dist/. To run the API/static server against a built app:
vp run serve
Then open http://127.0.0.1:4174 unless you changed PORT.
Repository hygiene
The repository intentionally ignores generated and local-only files such as node_modules/, dist/, TypeScript build info, .env*, and local SQLite database files. Do not commit telemetry databases; they can contain local project names, timestamps, prompts, or other private usage metadata.
License
No license has been selected yet. Add one before inviting reuse or accepting contributions.