Stop the bill before the next call.

Ringfence is a budget firewall for Claude Code, Cursor, Aider, and every other AI coding agent. Dashboards tell you after the bill is gone. Ringfence stops the next API call when the cap hits.

Local install in 60 seconds. No card. No prompts ever leave your laptop.

$47,283

spent in 11 days despite dashboards + Slack alerts at 50/80/95%

$13/day

median Claude Code spend per active developer (Anthropic, 2026)

$3.4B

Uber's blown 2026 AI R&D budget; engineers averaged $200/mo each

Hard cutoff, not just dashboards

When the daily or monthly cap hits, the proxy returns 429. The agent's retry loop stops. No more $3k weekend bills.

Runs on your machine

fence is a local CLI + proxy. Install with one curl, point your tool at it (ANTHROPIC_BASE_URL / OPENAI_BASE_URL / GENAI_API_BASE — same proxy port for all three). Every call gets priced and capped before it goes upstream.

Privacy by design

Prompts and completions never leave your machine. The optional cloud receives token-count metadata only — never the contents.

Cloud is optional

Solo devs run fence locally for free, forever. Teams add the cloud for shared rollups, Slack alerts, and per-developer budgets — billed flat, no per-seat surprise.

Why Ringfence and not the others?

Most AI cost tools tell you about the bill. Ringfence prevents the next dollar.

RingfenceHelicone / Portkey / LangfuseAnthropic Consoleccusage / OSS dashboards
Hard cutoff at the cappartial
Self-hosted (prompts never leave)
Per-developer attribution
Multi-providerClaude (OpenAI v0.2)
Single-binary install
Flat pricing, no per-seatn/afree

Pricing

Flat tiers. No per-seat checkout friction. Eng managers can expense the first three without procurement.

Save 2 months

Free

$0 /forever

  • Solo developer
  • Local proxy + dashboard
  • Hard caps + local Slack webhook
  • Privacy: nothing leaves your machine
Start free

Starter

£29 / ~$39 per month

Save £58/yr

  • Up to 5 developers
  • Cloud team dashboard
  • Slack budget alerts
  • Per-agent rollup + model breakdown
Choose Starter

Scale

£249 / ~$299 per month

Save £498/yr

  • Unlimited developers
  • Everything in Team
  • SSO via Google + Microsoft
  • Priority support
  • Annual billing
Choose Scale

Need SAML SSO or to run the cloud on your own infrastructure? Contact us about the enterprise plan — from $4,800/yr with audit log, SAML SSO, and support contract.

Try it now

Install once, point your AI tool at the local proxy, you're done.

curl -sSL https://ringfence.dev/install.sh | bash
fence enable-system-wide   # sets all three base URLs at once
#   ANTHROPIC_BASE_URL  → for Claude Code / Aider / Cursor
#   OPENAI_BASE_URL     → for Codex CLI / OpenAI SDKs
#   GENAI_API_BASE      → for Gemini SDKs

Or, manually for one tool at a time — see the per-provider list below.

Per-tool setup

fence-proxy intercepts each provider on a single port. Tell your tool to use the proxy by exporting the right base URL — that's the only step.

Claude / Anthropic SDK

Claude Code · Aider · Cursor (when configured for Anthropic) · the official Anthropic Python / TypeScript SDKs

export ANTHROPIC_BASE_URL=http://localhost:9000

Routes: /v1/messages, /v1/complete

Codex / OpenAI SDK

Codex CLI · the official OpenAI Python / TypeScript SDKs · Aider when configured for OpenAI · Cursor (OpenAI mode)

export OPENAI_BASE_URL=http://localhost:9000
# legacy SDKs use OPENAI_API_BASE — set both to be safe:
export OPENAI_API_BASE=http://localhost:9000

Routes: /v1/chat/completions, /v1/responses, /v1/embeddings

Google Gemini SDK

Tools that use the @google/genai SDK with a configurable base URL · custom integrations using generativelanguage.googleapis.com

export GENAI_API_BASE=http://localhost:9000

Routes: /v1beta/models/<name>:generateContent, :streamGenerateContent

Tools that hard-code their upstream (e.g. the Claude Desktop app, some IDE-embedded Gemini integrations) can't be intercepted without TLS-MITM and aren't supported in v1. Run fence providers any time for the current canonical list.