Skip to main content

superbased-observer

Obs, the SuperBased mascot: a small robot with a terminal prompt for a face and a cape SuperBased

Track what every AI coding agent costs. See the limit coming. See what Claude Code, Codex, Cursor and 37 more AI coding tools cost, per session and per model, from the tokens your provider actually billed. Free, Apache-2.0, and it runs on your machine.

PyPI Python: 3.8+ License: Apache 2.0 Website

Session detail in the SuperBased dashboard: total cost, a low, typical and high cost for the next message, the 5-hour and weekly limit, and the cost of switching to a cheaper model

Try it without installing

uvx --from superbased-observer observer usage

Reads the session logs your coding agents already keep on disk, prints a 30-day cost table by tool and model, and deletes its temporary database on exit. No config, no network. (The package is superbased-observer; the command is observer.)

Install

uv tool install superbased-observer    # or: pipx install superbased-observer
observer --version

Each wheel bundles its platform's prebuilt binary (manylinux2014 x86_64 and aarch64, macOS 13 or later on Intel and Apple Silicon, win_amd64): no compile step, no download at install time, no Go toolchain. The same binary ships on npm and the VS Code Marketplace with the same version numbers; install from one channel only.

Why SuperBased

One local binary that tracks Claude Code token usage, Codex cost and Cursor spend side by side, and helps you control them.

  • Provider-exact cost, not estimates. An optional local proxy records the tokens your provider returned: net input, 5-minute vs 1-hour cache writes, reasoning tokens and long-context repricing.
  • Every coding agent in one place. 50 adapters normalize Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Cline, Aider, Kiro, Devin, OpenCode, Junie and more into one local database.
  • Local-first, no account. No sign-in. Everything lives in one SQLite file under ~/.observer/, and your session content is never uploaded without your explicit consent.
  • Know the next bill before it lands. Prompt-cache tracking with expiry warnings, a cost band for your next message, and a 5-hour and weekly limit gauge for proxied sessions.
  • Guardrails on your own agents. Built-in and custom rules for destructive commands, secrets egress, MCP pinning and budgets. Observe mode by default; observer guard simulate first.
  • Your agents as terminals. Launch agent CLIs from the dashboard, join a running session from a paired device over your Tailscale tailnet, and hand a session from one tool to another.

Overview page of the SuperBased dashboard: 30-day spend, sessions, actions and proxy-accurate API turns, cache efficiency, cost over time by billing bucket and actions over time by coding tool

Get started

observer start    # proxy + watcher + dashboard; opens http://localhost:8081
observer scan     # backfill history from the session logs already on disk
observer doctor   # check the install

For provider-exact tokens, route your agent through the proxy: in the dashboard open Compression, click your tool's status pill and choose Route through the observer proxy (it previews the config change and writes only when you confirm), or run observer claude / observer codex for a one-off proxied session. observer init additionally registers the opt-in MCP server.

Prefer a plain download? superbased.app/download has the Windows setup program, macOS and Linux downloads and every version, with SHA-256 checksums.

macOS needs version 13 Ventura or later. Observer is built with Go 1.27, which no longer runs on macOS 12 Monterey. On macOS 12, stay on v1.36.0 or upgrade macOS first. v1.36.0 was meant to carry an advance notice of this and did not. Linux and Windows are not affected.

What you get

  • A local dashboard for sessions, cost, cache, security and live activity, filterable by tool and project.
  • Cost per session, model, project and tool, with cache read/write splits down to each API turn.
  • An opt-in MCP server so your agents can query their own history across tools.
  • Waste detection: stale re-reads, repeated commands and files several agents fight over.
  • Dashboard terminals with multi-seat join and native resume.
  • A CLI for everything: observer usage, cost, predict, tail, statusline.
Sessions page: one row per coding-agent session with tool, model, start time, elapsed time, actions and cost, plus tag totals
Sessions: every session from every agent, with cost and tags.
Cache page: live prompt caches with time left before they expire, cache ratio, reads and writes, and provider coverage
Cache: which prompt caches are warm and when they go cold.

Terminals page: Claude Code, Codex, Antigravity CLI and Copilot CLI running side by side as live terminals in one dashboard

Inside a session

Click any session to open its detail view. Four of its tabs:

Session detail, Overview tab: total cost, actions, elapsed time and tokens, the action breakdown, token buckets by billing tier and the cost per model
Overview: cost, tokens by billing tier and the models used.
Session detail, Messages tab: every message in the session with time, role, model, tool calls and cost
Messages: each message with its model, tool calls and cost.
Session detail, Cost and limits tab: low, typical and high cost for the next message and the 5-hour and weekly limit
Cost & limits: what the next message will cost and how much of your limit is left.
Session detail, Cache tab: the session's live cache and when it expires, cache hits, writes, rewrites and the read to write ratio
Cache: the session's live cache, hits, writes and rewrites.

Privacy

No account needed. Today the default install sends us no usage statistics, analytics or crash reports, and your session content is never uploaded without your explicit consent. SuperBased stores paths, commands and short excerpts, scrubs secrets before writing, and binds the proxy and dashboard to 127.0.0.1 by default. The proxy forwards your own requests, unchanged, to the provider you already use. By default SuperBased also makes a few small requests of its own that carry none of your data, such as a daily download of the public model price table from superbased.app (turn it off with [pricing.feed] enabled = false). See PRIVACY.md.

Learn more

Troubleshooting

  • externally-managed-environment from pip: your distro protects the system Python (PEP 668). Use uv tool install or pipx install, which give the tool its own environment.
  • observer: command not found: make sure the installer's bin directory (usually ~/.local/bin) is on PATH; pip show -f superbased-observer lists the exact path.
  • Port 8820 or 8081 already in use: another observer start is running; stop it first.

License

Apache 2.0. This package is a small Python launcher that runs the prebuilt binary bundled in the wheel.

Metadata

Release files for superbased-observer 1.37.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for superbased-observer 1.37.1
File Actions
superbased_observer-1.37.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for superbased_observer-1.37.1-py3-none-win_amd64.whl
superbased_observer-1.37.1-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for superbased_observer-1.37.1-py3-none-manylinux2014_x86_64.whl
superbased_observer-1.37.1-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for superbased_observer-1.37.1-py3-none-manylinux2014_aarch64.whl
superbased_observer-1.37.1-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for superbased_observer-1.37.1-py3-none-macosx_13_0_x86_64.whl
superbased_observer-1.37.1-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for superbased_observer-1.37.1-py3-none-macosx_13_0_arm64.whl

Total release size: 230.4 MB

Release files / superbased_observer-1.37.1-py3-none-win_amd64.whl

Download URL superbased_observer-1.37.1-py3-none-win_amd64.whl
Size 51.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
caa725c164a0b96aca3baa069a19215525a2f82eaa86f189beed0eee3aa012ec
BLAKE2b-256 checksum
How to use checksums
1ec001a78f2c3156e8cc2cd0f08b4821035ce5593f9be277fb164e8ee6cf1bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / superbased_observer-1.37.1-py3-none-manylinux2014_x86_64.whl

Download URL superbased_observer-1.37.1-py3-none-manylinux2014_x86_64.whl
Size 47.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
232d19a2cb67bb0c4b9db7e64faaa4d9143ba647e255f0c2d4a915d25e3ecb55
BLAKE2b-256 checksum
How to use checksums
dfe995fd975a2660ddc088238c14d089bfa1e1c5ea485d2c2c2806155111b0bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / superbased_observer-1.37.1-py3-none-manylinux2014_aarch64.whl

Download URL superbased_observer-1.37.1-py3-none-manylinux2014_aarch64.whl
Size 44.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c8dfcae89f6cfd2505b81d57cb4c22d8cf79be5291d1888977329a4a8cb0b565
BLAKE2b-256 checksum
How to use checksums
d25ca0a74cd4e120ceafaff8fd8724f3e0d6cebf2b10193c6801302a2a9e37e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / superbased_observer-1.37.1-py3-none-macosx_13_0_x86_64.whl

Download URL superbased_observer-1.37.1-py3-none-macosx_13_0_x86_64.whl
Size 45.5 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
504c53d8deb1b0bffc88a899257944a1d13ca9130105f81c508f18fb858a0a22
BLAKE2b-256 checksum
How to use checksums
5a4f2a9952f4ed1c6be5e022c419312b7ed1f43054bb75a0e876aacf06253e68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / superbased_observer-1.37.1-py3-none-macosx_13_0_arm64.whl

Download URL superbased_observer-1.37.1-py3-none-macosx_13_0_arm64.whl
Size 42.1 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
36a68e744fd7919bd34ba79c53e4e32083c0036dad4d86d358be6a05002cde7d
BLAKE2b-256 checksum
How to use checksums
db6577132426122c8feacb8d938d156c763105cc1e09e3d89c34080ceb625b37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for superbased-observer 1.37.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.37.1 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page