Every agent rides the pike. You set the tolls.
OpenPike is an LLM gateway built for AI agents. Point them at one endpoint, keep your own provider keys, and put hard budgets, kill switches and loop detection in front of every one.
Free for 3 keys and 10,000 requests a month. No card required.const client = new OpenAI({
baseURL: "https://api.openpike.dev/v1",
apiKey: process.env.OPENPIKE_KEY,
defaultHeaders: {
"x-openpike-tags": "agent=pr-reviewer",
},
});
// Same SDK, same models, your own provider keys.
await client.chat.completions.create({
model: "deepseek/deepseek-chat", ...
});
Works with the providers you already pay
- OpenAI
- Anthropic
- DeepSeek
- TypeSafe Jev
- Groq
- Mistral
- xAI
- Together
- Fireworks
- OpenRouter
- and more
Routing is free everywhere. Control is not.
Provider dashboards show spend per key. OpenPike shows it per agent, per developer and per project, and stops it before it gets away from you.
Budgets that actually block
Hard and soft caps per workspace, key, agent or project, by hour, day or month. Hit the hard cap and requests stop. No surprise invoices.
Loop detection
An agent stuck in a retry loop gets paused the moment its request rate or spend per minute spikes, not when you check the bill.
Spend per agent
Tag requests with agent, developer, project or environment. See exactly which agent spent what, on which model.
Your keys, your rates
Bring your own OpenAI, Anthropic, Google, DeepSeek and other keys. Keep your negotiated pricing and data agreements.
Fallbacks built in
When a provider rate-limits or goes down, requests retry across your own keys and backup models automatically.
Drop-in endpoint
OpenAI-compatible and Anthropic-compatible APIs. Your SDKs, coding agents and frameworks work by changing the base URL.
On the road in five minutes
Add your provider keys
Paste your keys once. They are encrypted at rest and never shown again.
Point your agents at OpenPike
Swap the base URL for api.openpike.dev and use an OpenPike key. Tag each agent with a header.
Set your tolls
Add budgets and loop limits. Get alerts in email or Slack before anything gets expensive.
Your keys are the whole job. We treat them that way.
You pay providers directly, at your own negotiated rates and under your own data agreements. We never resell tokens and never hold your money for inference.
- Encrypted provider keysAES-GCM with a per-workspace key. Decrypted only in memory, for one request at a time.
- Never loggedKeys never appear in logs, errors or responses. Upstream errors are scrubbed before they reach you.
- Prompts are not storedWe keep request metadata for spend reporting. Prompt and response bodies pass straight through.
- Runs at the edgeThe gateway runs on Cloudflare close to your agents, so it adds milliseconds, not seconds.
Flat pricing. Never a cut of your spend.
Spend $500 or $50,000 a month with your providers. Your OpenPike bill stays the same.
Put a toll gate in front of your agents today.
Change one line of config. Keep your keys. Sleep through the next runaway loop.
Start free