Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By comet-ml Verified Orgv0.0.91LicenseRef-ProprietaryIn 1 marketplace
Cost intelligence proxy for Claude Code. Installs hooks that keep the opik-cipx gateway alive between sessions; the gateway captures every Anthropic API call and ships cost-attributed spans to Opik.
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
opik-cipx is a local reverse HTTP proxy that sits between Claude Code and
the Anthropic API. Claude Code routes through it via ANTHROPIC_BASE_URL;
opik-cipx owns the TLS leg to api.anthropic.com. It captures every call on
the wire, categorizes input/output bytes into cost buckets — system prompt,
tools, memory, agents, skills, MCP, user input, tool I/O — and ships
per-call spans to Opik so you can answer
"where did my tokens go and how much did they cost?"
Opik is the open-source LLM observability and evaluation platform, built by Comet. opik-cipx is its cost lens for Claude Code.
Status: actively developed, versioned
v0.0.x. This repo is the public distribution point: it ships the prebuilt binaries (see Releases) for macOS, Linux and Windows (amd64 + arm64 each) and the Claude Code plugin. The source lives in the private comet-ml/cost-intelligence-proxy-internal repo; each release is built from there.
response.usage,
so token counts and costs are exact, not estimated.opik-cipx is the long-lived gateway and the
short-lived process Claude Code's SessionStart hook invokes (subcommand
opik-cipx sync). ┌──────────────────────┐ ┌─────────────────────────────┐
│ Claude Code │ HTTP │ opik-cipx (127.0.0.1:9909) │ TLS
│ ANTHROPIC_BASE_URL ─┼────────►│ reverse proxy ─────────────┼──► Anthropic API
│ http://127.0.0.1:99 │ │ capture req + resp │
└──────────────────────┘ │ categorize + build span │
│ WAL spool → Opik shipper │
└────────────────┬────────────┘
│
▼
Opik
The plugin's SessionStart hook execs opik-cipx sync on every Claude Code
launch. sync is idempotent: it installs the OS supervisor (launchd /
systemd) so the daemon auto-restarts on crash, brings the daemon up if it
isn't already running, and upserts ANTHROPIC_BASE_URL into
~/.claude/settings.json so Claude Code routes through
http://127.0.0.1:9909. No filesystem-level CA installs, no per-host MITM
cert dance — Claude Code talks plain HTTP to the loopback listener and
opik-cipx is the only thing holding a TLS session to Anthropic.
From within Claude Code:
/plugin marketplace add comet-ml/cost-intelligence-proxy
/plugin install opik-cipx@opik-enterprise
The plugin installs the SessionStart hook that keeps the opik-cipx gateway
alive between Claude Code sessions, plus the /opik-cipx:opik-cipx skill
(how it works + diagnostics). The hook tolerates a missing binary — it just
prints a hint to install opik-cipx and lets the session continue.
The plugin ships the binary in its own tree, so a clean plugin install needs
nothing more. For a non-plugin setup, drop the binary with install.sh (or
install.ps1 on Windows, see below), then restart Claude Code — the
SessionStart hook runs opik-cipx sync, which wires everything up.
Windows needs Git for Windows: Claude
Code runs command hooks through Git Bash there (and clones marketplaces with
git), so the plugin's bash launcher runs unchanged and picks the
bin/opik-cipx-windows-<arch>/opik-cipx.exe binary. PowerShell-only machines
are not supported. WSL counts as Linux.
If you've cloned this repo locally and want to install your working copy instead of the published version:
/plugin marketplace add /path/to/cost-intelligence-proxy
/plugin install opik-cipx@opik-enterprise
If you'd rather skip the plugin and just run opik-cipx from your shell:
curl -fsSL https://raw.githubusercontent.com/comet-ml/cost-intelligence-proxy/main/install.sh | bash
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub comet-ml/cost-intelligence-proxy --plugin opik-cipxPlugins from other owners that cover similar ground