MCP server Observer
Коммит 9 нояб. 2026 г.Отслеживает затраты на сессии и модели для AI-агентов при написании кода, используя точное количество токенов от провайдеров, и предоставляет локальный дашборд для мониторинга использования.
Также известен как superbasedapp/observer
- Звёзды
- 60
- Инструменты
- —
- Загрузки, 30 дней
- —
- Последняя версия
- —
- Последний коммит
- 9 нояб. 2026 г.
- Лицензия
- —
Что такое Observer MCP?
Observer — это MCP server. Отслеживает затраты на сессии и модели для AI-агентов при написании кода, используя точное количество токенов от провайдеров, и предоставляет локальный дашборд для мониторинга использования.
Сводка сгенерирована из README проекта
О Observer MCP server
Инструмент observer позволяет разработчикам, использующим такие инструменты, как Claude Code, Cursor и Codex, контролировать финансовые затраты на AI-агентов для написания кода. Он предоставляет локальный дашборд для отслеживания расходов на каждую сессию и модель, используя точное количество токенов от вашего AI-провайдера вместо приблизительных оценок. При запуске локального прокси система собирает точные данные, включая токены рассуждений (reasoning tokens), пересчет стоимости длинного контекста и разделение кэша (cache write splits).
Пользователи могут управлять своими расходами через локальную конфигурацию, которая не требует создания аккаунта и хранит данные в локальном файле SQLite. Инструмент поддерживает более 50 адаптеров для нормализации данных об использовании от различных агентов, таких как GitHub Copilot, Aider и Devin. Он также включает механизмы защиты (guardrails) для проверки действий агентов на соответствие бюджетам или правилам безопасности. Разработчики могут получить доступ к веб-дашборду по адресу localhost:8081, чтобы просматривать таблицы затрат за 30 дней, отслеживать истечение срока действия кэша промптов и управлять терминальными сессиями напрямую.
Что вы можете с ним делать
- 1Предотвращение превышения бюджетаВы можете установить лимиты, чтобы ваши агенты для написания кода не превышали определенный недельный бюджет или бюджет, рассчитанный на пять часов работы.
- 2Аудит безопасности и правил агентаИнженер может использовать функцию guardrails, чтобы проверить, не пытается ли агент выполнить деструктивные команды или допустить утечку секретов.
- 3Обмен контекстом между агентамиВы можете разрешить одному AI-агенту запрашивать историю другого агента, чтобы понять, какие действия уже были выполнены в репозитории.
Взято из README проекта. Каждый вариант использования проверен на соответствие цитате из него.
Автоматические проверки
Запущено 14 нояб. 2026 г.Полный отчёт →Еще не проверено. Для сервера требуется оценка 80, отсутствие серьезных проблем и достаточно данных для нашей проверки. Как работают проверки · Что исправить, чтобы получить больше баллов
- Связанный и доступный исходный репозиторийsuperbasedapp/observer is public and reachablegithub.com/superbasedapp/observer ↗Пройдено
- Пакет указывает этот репозиторий как источникНе проверялось
- Происхождение сборки (аттестация Sigstore)Не проверялось
- Open source лицензия (OSI)No licenseПроблема
- Коммит или релиз за последний годLast commit or release 2026-11-09github.com/superbasedapp/observer ↗Пройдено
- OpenSSF ScorecardНе проверялось
- Имя пакета не похоже на популярный пакетНе проверялось
- Нет критических предупреждений в пакете или его зависимостяхНе проверялось
- Нет скрытых инструкций для модели0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersПройдено
- Деструктивные инструменты помеченыНе проверялось
- Удалённая конечная точка отвечает на рукопожатие MCPНе проверялось
README
Открыть на GitHubTry it in one command
npx @superbased/observer
No install, no config, no network. It 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.
On Windows PowerShell, type npx.cmd and npm.cmd instead of npx and npm (or use Command Prompt): PowerShell's default execution policy blocks the npx.ps1 and npm.ps1 scripts.
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. Log-only trackers have to estimate those.
- 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 low / typical / high cost band for your next message, and a 5-hour and weekly limit gauge for proxied sessions.
- Guardrails on your own agents. The guard checks each agent action against built-in rules
(destructive commands, secrets egress, MCP pinning, budgets) and your own. It starts in observe
mode;
observer guard simulatereplays your history before you turn on enforcement. - Your agents as terminals, from anywhere. Launch agent CLIs from the dashboard as real terminals, join a running session from a paired device over your Tailscale tailnet, and hand a session from one tool to another.
How it compares
| SuperBased | ccusage | CodeBurn | Langfuse | Helicone | LiteLLM | |
|---|---|---|---|---|---|---|
| Built for | Coding-agent cost & control | CC/Codex cost meter | Local CC spend + budget toolkit | LLM-app observability | LLM-app observability + gateway | AI gateway |
| Coding tools covered | 50 adapters | Claude Code, Codex, + companion pkgs | 31-36 per their own docs | Instrument-per-app | Instrument-per-app | Anything routed through it |
| Provider-reported (not estimated) tokens | ✓ via local proxy | Partial (from logs) | Partial (from logs) | ✓ (SDK) | ✓ (proxy) | ✓ (proxy) |
| Cache 5-min vs 1-hour write split | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
| Reasoning + long-context surcharge accounting | ✓ | Partial | Partial | Partial | Partial | Partial |
| Runs 100% local, no cloud required | ✓ | ✓ | ✓ (opt-in team-sync preview) | Self-host a stack | Self-host or SaaS | Self-host |
| Agent-queryable memory over your history (MCP) | ✓ | ✓ (usage MCP) | ✓ | ✓ (trace MCP) | ✗ | ✗ |
| Cross-tool session handoff | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
| License | Apache-2.0 | MIT | MIT | MIT (core) | Apache-2.0 | MIT |
Checked against each project's public repo (July 2026). Each of these tools is good at what it was built for; the full comparison covers more tools and when to pick which.
Install
| Channel | Command |
|---|---|
| npm | npm install -g @superbased/observer |
| PyPI | uv tool install superbased-observer (or pipx install / pip install) |
| VS Code | code --install-extension superbased.superbased-observer (Cursor, VSCodium and Windsurf: Open VSX) |
| Installer | curl -fsSLO https://github.com/superbasedapp/observer/releases/latest/download/install.sh && sh install.sh |
Every channel ships the same prebuilt, pure-Go binary for Linux (x64, arm64), macOS (Intel, Apple
Silicon) and Windows x64. The installer (Windows: install.ps1) also offers smaller editions
(minimal, developer, managed), checks each archive against SHA256SUMS and its Ed25519
signature, never runs sudo, and supports offline installs with --from-dir. Run
sh install.sh --help for every option.
On Windows PowerShell, type npx.cmd and npm.cmd instead of npx and npm (or use Command Prompt): PowerShell's default execution policy blocks the npx.ps1 and npm.ps1 scripts.
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.
Get started
observer start # proxy + watcher + dashboard; opens http://localhost:8081
observer scan # backfill history from the session logs already on disk
- Route your agent through the proxy for provider-exact tokens. In the dashboard, open
Compression, click your tool's status pill and choose Route through the observer proxy: it
previews the exact config change and writes only when you confirm. One-off alternatives:
observer claude/observer codex, orANTHROPIC_BASE_URL=http://localhost:8820. - Use your agent as normal. Sessions, cost and cache numbers appear within minutes.
- Optional:
observer initalso registers the MCP server so your agents can query their own history (it adds tool schemas to every turn, so it stays opt-in).
observer doctor checks the install; observer status shows what has been captured.
What you get
- Dashboard (
localhost:8081): Overview, Live, Sessions, Cost, Plans & limits, Cache, Security, Settings and more, filterable by tool and project, and readable on a phone. - Cost you can reconcile: per session, model, project and tool, with cache read/write splits and a session drill-down down to each API turn.
- Cross-tool memory: an opt-in MCP server so an agent can ask what another agent already read,
ran or broke in the same repo, plus
observer <tool> --continue-from <session>handoffs. - Waste detection: stale re-reads, repeated commands and files several agents fight over.
- Terminals: daemon-owned PTY terminals with multi-seat join, a live cost cockpit and native resume after a restart.
- Your editor and shell: a VS Code extension (status bar, sidebar, dashboard tab), a one-line
observer statusline, and a CLI for everything (observer usage,cost,predict,tail).
Supported agents include Claude Code, Codex, Cursor, Copilot and Copilot CLI, Gemini CLI, Cline and Cline CLI, Antigravity, OpenCode, OpenClaw, Pi, Hermes, Kilo Code, Qwen Code, Kiro CLI, Kiro Crew, Crush, Kimi Code, Grok, Devin, Aider, Qoder, goose, droid, Open Interpreter, Command Code, Junie, Poolside, Zed, Mistral Code, Muse, Prime Agent, DeepSeek, zcode, Freebuff, Cowork, Grok Bot, Autohand Code, IBM Bob, Cortex Code, CodeBuddy Code, Deep Agents Code, DimCode, Dirac, Kimchi, Stakpak and VT Code, plus ChatGPT, Claude, Gemini, Copilot and Perplexity on the web through an optional browser extension. Per-tool setup: superbased.app/docs/track.
Inside a session
Click any session to open its detail view. Four of its tabs:
Privacy
SuperBased needs no account. Today the default install sends us no usage statistics, analytics or
crash reports, and it never uploads your session content without your explicit consent. It stores
paths, commands and short excerpts, scrubs secrets before anything is written, 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 it 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). Remove everything with observer uninstall --all --purge.
Details: PRIVACY.md.
Documentation
- Quickstart and install options
- Connect your agents and track costs by tool
- Guides: dashboard, token and cost tracking, cache tracking, cost predictor, terminals, security guard, MCP server
- Reference: CLI, configuration, measurement honesty
For organizations
Running coding agents across a whole engineering org? SuperBased also offers central visibility across developers, budgets and policy, and SSO sign-in. See SuperBased for organizations or write to contact@superbased.app.
Community
Questions go to Discussions, bugs and adapter requests to Issues, and security reports through SECURITY.md. Pull requests are welcome: see CONTRIBUTING.md (building needs Go 1.27+, no CGO). If SuperBased saves you a surprise bill, a star helps others find it.
License
Вопросы о Observer MCP
Требуется ли подключение к интернету для отслеживания затрат?
Нет, инструмент работает на 100% локально на вашем устройстве без использования облака.
Как происходит подсчет токенов?
Он может считывать логи сессий, уже находящиеся на вашем диске, или использовать опциональный локальный прокси для записи точного количества токенов, возвращаемых вашим провайдером.
Может ли мой AI-агент получить доступ к собственной истории?
Да, с помощью команды init вы можете зарегистрировать MCP server, который позволит агентам запрашивать свою собственную историю.
Загружаются ли данные моих сессий в облако?
Нет, всё хранится в локальном файле SQLite, а содержимое сессий никогда не загружается без вашего явного согласия.