Open source · local-first
Which of your bots is worth its cost?
Plum0 tracks what each of your AI agents spends and what it produces, side by side, across Claude Code, Codex, OpenClaw and Paperclip. One command, no account, runs on your machine.
Needs Node.js 22.13 or newer. Data stays in ~/.plum0. Plum0 does not send telemetry of its own.
Works alongside
- Claude Code
- Codex
- OpenClaw
- Paperclip
What it keeps
What Plum0 keeps
A reported cost is kept when a tool sends one. Otherwise plum0 uses a bundled list price. An unknown model stays unpriced, not free. These figures are not an invoice.
-
Spend per bot, not per API key
Claude Code transcripts and Codex rollout files are read from disk. OTLP JSON from those tools and from OpenClaw comes in on the same port. A local proxy attributes OpenAI and Anthropic calls to a bot you have already added. Windows are 24 hours, 7 days, 30 days, and all time.
-
Cost next to output
Claude Code can report lines, accepted edits, commits, and pull requests over OTLP. You can record an output with
plum0 outputs add. Weights are shown in the local UI and edited in~/.plum0/config.json. The score sorts bots. It is not a measure of usefulness. -
Local-first, beside the tools you run
One command starts the UI, the proxy, and the OTLP receiver. Spend and output stay in a SQLite file on the machine. Provider keys are forwarded to the API you called and are not written to the database. It sits beside Claude Code, Codex, OpenClaw, and Paperclip. It does not replace them.
Get started
Quickstart
No account. The UI, the proxy, and the reader are one process.
-
Start
npx plum0 uplistens on 127.0.0.1:7474. That is the web UI, an OpenAI and Anthropic proxy, and an OTLP JSON receiver. Startup prints a link with a session token.npx plum0 up -
Leave the tools in place
Claude Code transcripts and Codex rollout files are read on startup, then every 15 seconds. OpenClaw can post OTLP JSON to the same port. Paperclip is read-only, and only when
PAPERCLIP_URLis set.# optional, if Paperclip is already running PAPERCLIP_URL=http://127.0.0.1:3100 plum0 up -
Rank cost against output
plum0 rankuses one window for spend and output. The windows are24h,7d,30d, andall. The default is 7 days.plum0 rank --window 7d
A bot with spend and no code output is listed as no output signal. It is not given a value per dollar.
Architecture
How it works
-
Your agents
Claude Code, Codex, OpenClaw
-
plum0
Proxy, OTLP JSON, file ingest
-
Local SQLite
~/.plum0/plum0.sqlite
-
Bot ranking
Cost and output, same window
Calls and transcripts come in, and so does telemetry you point at this port. Dollars and outputs stay in that file. Paperclip costs stay in their own total and are not added to proxy or transcript spend.
Integrations
Works with
Not a full company platform. It works alongside the tools you run. Names only, no logos. Support for another tool is a connector in the repo.
- Claude Code
- Transcripts under the Claude config directory, for spend. Lines, edits, commits, and pull requests come in over OTLP JSON, if you turn that tool's telemetry on.
- Codex
- Rollout files under the Codex home directory. An OTLP log is priced only when it already includes token counts.
- OpenClaw
- OTLP JSON counters for tokens and for cost. The bot name comes from the OpenClaw agent. With no agent, those counters land on one bot named openclaw.
- Paperclip
- Read-only. Agents and reported costs. Plum0 does not create, pause, or resume Paperclip agents.
Trust
Open source, on your machine
- Apache-2.0.
- The default bind is 127.0.0.1:7474. Listening on any other address is refused unless
PLUM0_TOKENis set or you pass--insecure. - The database is
~/.plum0/plum0.sqlite.PLUM0_HOMEmoves that directory. - There is no plum0 account. The local UI uses a session token printed at startup, on your machine.
- Plum0 does not send analytics.
plum0 prices updatedoes not download a price list. It tells you to edit~/.plum0/config.json. - Two paths leave the machine, and only when you use them. The proxy forwards the calls you send through it. The defaults are api.openai.com and api.anthropic.com. If
PAPERCLIP_URLis set, plum0 reads that server. - OTLP must be JSON. Protobuf is refused.
POST /v1/tracesis acknowledged and not stored.
Run it on your machine
No account. The UI, the proxy, and the OTLP receiver start together.