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.

npx plum0 up

Quickstart

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.

  1. Start

    npx plum0 up listens 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
  2. 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_URL is set.

    # optional, if Paperclip is already running
    PAPERCLIP_URL=http://127.0.0.1:3100 plum0 up
  3. Rank cost against output

    plum0 rank uses one window for spend and output. The windows are 24h, 7d, 30d, and all. 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

  1. Your agents

    Claude Code, Codex, OpenClaw

  2. plum0

    Proxy, OTLP JSON, file ingest

  3. Local SQLite

    ~/.plum0/plum0.sqlite

  4. 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_TOKEN is set or you pass --insecure.
  • The database is ~/.plum0/plum0.sqlite. PLUM0_HOME moves 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 update does 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_URL is set, plum0 reads that server.
  • OTLP must be JSON. Protobuf is refused. POST /v1/traces is acknowledged and not stored.

Run it on your machine

No account. The UI, the proxy, and the OTLP receiver start together.

npx plum0 up

Needs Node.js 22.13 or newer.