Lockpin

For Claude Code, Codex and your own agents

A hard spend cap
for AI agents.
Refused up front,
not on the invoice.

See it in action

Give each agent task a budget. Lockpin prices every call at its worst case and refuses the one that won’t fit, before it reaches the provider.

One local program. Your keys go to your provider, never to our hosted service. Free local cap · paid plans for history and teams

Lockpin, in three places

127.0.0.1:8787/lockpin/ Example data
This machine OverviewAs of 14:00:08 EST

Live meter

Spend, savings and goal for the agents on this machine.

Total spend · all time on this machine$3.423 tasks · 41 calls
Cache writes$0.38Paid to write the prompt cache, against $1.12 of reads

Top tasks by spend

All time · 3 tasks
fix-authentication-flow$1.84 of $5.0033% cached
review-database-migration$1.12 of $3.0064% cached
update-test-suite$0.46 of $2.0071% cached

The live meter, on your machine

The live meter runs on your machine and shows each task’s spend against its budget, call by call.

Works with the providers you already use

Also Groq, Together, Fireworks, OpenRouter and your own OpenAI-compatible server · 125 model prices built in.

How the cap works

Lockpin sits between your agent and its provider, on your machine. Every call is priced before it’s sent.

01

Give the task a budget.

Two headers name a task and its maximum spend. Or give each person or agent its own Lockpin key with daily, weekly or monthly limits, so nobody holds the provider key.

02

Keep the work in sight.

The live meter shows each task’s spend as it happens. The overlay (Windows, coming soon) keeps the budget beside your work, and the optional dashboard (opening soon) adds every machine.

03

Stop before going over.

Before a call goes out, Lockpin reserves its worst-case cost, priced from its built-in price list; provider prices and bills can differ from Lockpin’s estimates. If it won’t fit and the meter, VS Code or the overlay is open, Lockpin holds the call and asks: allow it, raise the budget, or stop. With nobody watching, or no answer in 3 minutes, your agent gets HTTP 402 with the numbers and the provider is never called.

Also in the box

Made for your existing workflow

Install in one line.

Lockpin installs for your user only, with no admin rights, checks the download against SHA256SUMS, starts at sign-in and opens its setup page.

irm https://lockpin.dev/install.ps1 | iex
import anthropic

client = anthropic.Anthropic(
    base_url="http://127.0.0.1:8787/anthropic",
    default_headers={
        "X-Lockpin-Task": "fix-login-bug",
        "X-Lockpin-Budget-Usd": "0.50",
    },
)

Film

Watch it in 58 seconds

A 58-second introduction to Lockpin: the refusal, the proxy that prices every call first, the models and clouds it prices, company sign-in, your editor, the overlay asking, and the dashboard.

The film’s “over a hundred models” counts Lockpin’s 125 built-in model prices, with each Bedrock and Vertex AI route counted separately.

Transcript

This call never went out. Its worst case didn’t fit the budget. Lockpin’s a proxy on your machine. Every call is priced at worst case, before it’s sent. Doesn’t fit? Refused. Claude, GPT, Gemini, plus Bedrock, Vertex and Azure. Over a hundred models, priced in. Company sign-in. A key and a daily limit for every person and agent. It warns you right in your editor. VS Code, Cursor, Antigravity, and more. When a call won’t fit, it asks. Allow it, raise the budget, or stop. Across machines, the dashboard shows every dollar, and every refusal. Spend numbers only, never prompts or API keys. The cap still decides locally. Lockpin. Refused up front, not on the invoice. Free to start at lockpin dot dev.

Watch the story film, Night shift

Privacy

What stays on your machine

Lockpin runs where your agent runs and connects directly to your model provider. Your code and conversations never pass through our servers.

  • Your prompts and API keys never reach our hosted service. They go to the provider you choose. Admin keys for lockpin import are read, never stored.
  • Your project snapshots stay local. Separate from your Git history.
  • No hidden model calls. Just arithmetic and file snapshots, so Lockpin adds nothing to your bill, unless you turn on cache keep-alive pings, which are charged to the task.
  • The dashboard is optional, off by default, and opening soon. It receives spend numbers and the names you chose, never prompts, responses or keys, and the cap still decides on your machine.

Found a security problem? Email security@lockpin.dev. You’ll hear back within 3 business days. For how Lockpin handles keys and data, see the security page.

Questions

Which models does it work with?

Anthropic, OpenAI, Google Gemini, Meta, xAI, DeepSeek, Mistral, Groq, Together, Fireworks and OpenRouter, and through your own cloud account on Amazon Bedrock, Google Vertex AI and Azure OpenAI, with 125 model prices built in (each Bedrock and Vertex AI route counted separately), including cached input, cache writes and long-context rates. Add any other model, or an OpenAI-compatible server of your own, with one small file.

What happens when a task hits its budget?

The call that would go over is held before it reaches the provider. If the meter, VS Code or the overlay is open, Lockpin asks: allow this call, raise the budget, or stop. With nobody watching, or no answer in 3 minutes, your agent gets HTTP 402 with the numbers, so it can save its work and stop cleanly. A header can lower a task’s budget but not raise it; raises go through the meter, VS Code or the overlay. A task can still end over its budget if its budget is lowered below what it already spent, or if a provider bills more than the worst case Lockpin priced; the meter, VS Code and the overlay say so.

Does it slow my agent down?

It adds a little to every call, and more as requests grow. Lockpin’s own work, measured against a stub provider on one Windows laptop (22 October 2026), added a median 0.49 ms over 200 small calls and about 9 to 13 ms to a call with a 150,000-token history. End to end, in our own test against Anthropic (28 October 2026, 15 runs of one task, requests of about 97,000 tokens), calls through Lockpin took a median 300 to 400 ms longer than direct calls; that difference also contains run-to-run variation at the provider and is not yet broken down. Near the cap Lockpin may also ask the provider for an exact input count, and the live meter shows the milliseconds it adds to each of your calls.

Does it change what the model sees?

The spend cap never changes your prompts. So that the cap holds, it may give a call an output limit or, near the cap, lower one (-fit-output and -degrade, both on by default; X-Lockpin-Degrade: off turns degrading off for one request). Trimming and project notes do change what the model sees, so both are off unless you turn them on. Trimming can also be switched per request.

Do I have to route my agents through Lockpin to see my spend?

No. lockpin import reads what Anthropic, OpenAI and Cursor billed from their admin APIs, with admin keys from your environment. Capping a call needs the proxy; seeing last month’s bill does not.

Is there a VS Code extension?

Yes, free, on the VS Code Marketplace and on Open VSX for Cursor, Antigravity and Windsurf: search for Lockpin in the Extensions view. It reads the meter you already run and puts your tasks’ spend against their budgets in the status bar and side bar, so the cap is still enforced by Lockpin, not by the editor.

Does Lockpin use AI itself?

No. All of its logic is plain arithmetic and file snapshots, so it adds nothing to your bill, unless you turn on cache keep-alive pings, which are charged to the task.

Cap your next agent run.

The local cap is free. Hosted reporting is optional and opens soon. See pricing

Get Lockpin.

One local program, installed for your user with no admin rights. Run this, and Lockpin starts and opens its setup page.

irm https://lockpin.dev/install.ps1 | iex

Desktop installer: coming soon. A one-click Windows installer that adds the overlay will be linked here when its download is public; macOS follows. Until then, the line above installs the same Lockpin.

Setup guide