Free and open source · Early preview for macOS

Use your AI Subscription inference in all your AI apps

You already pay for Claude or ChatGPT. SAPI lets your other AI apps, scripts and tools use that same plan, instead of a separate pay-per-use API key.

Get started Try the demo dashboard
127.0.0.1:8787
sapi Overview Requests Clients Providers & security Listening on 127.0.0.1:8787 · up 3 days 2 alerts Sign out

Overview

How your subscriptions and apps are doing.

Subscription limits account-wide, so the filters below don't change them

ClaudeMaxSigned in
5-hour window 62% resets in 1 h 48 min · reported
Weekly 41% resets Monday 09:00 · reported

At this pace you'll be at about 81% when the window resets.

This 5-hour window, by client

notes-app46% agent31% scripts23%
ChatGPTPlusSigned in

ChatGPT doesn't share how much of your plan is left. If it hits a limit, you'll see it here, and sapi pauses ChatGPT for a while.

Today, by client

scripts58 requests agent27 requests
Range 1h24h7d30d ClientAll clients AllClaudeChatGPT Live
Requests26512% vs previous 24 h
Success rate98.9%3 errors
Tokens in / out982K / 153K41% from cache
API-equivalent value$41.20at pay-as-you-go prices
Time to first token1.6 smiddle value (p50)
CLI overhead310 msavg per Claude call

Requests by client last 24 hours · per hour

Errors by kind last 24 hours

client_budget_exceeded2

upstream_error1

The dashboard runs on your computer. Click around a demo with sample data.

here's the idea

Your AI plan is stuck in one app. SAPI lets it out.

You pay for an AI plan

Claude, ChatGPT, or both, every month. It works great inside their own apps.

Your other apps can't use it

Scripts, agents and AI tools ask for an API key instead. That's a second bill, charged for every word.

SAPI connects them

It runs on your computer and lets those apps use the plan you already have.

how it works

Three steps, and you only do them once

1

Set it up and sign in

Get SAPI from GitHub and run its setup. It walks you through everything. You approve the sign-in in your browser, just like in the Claude or ChatGPT app.

2

Make a key for each app

Every app gets its own SAPI key. So you always know which app used what, and you can switch one off without touching the others.

3

Change two settings in your app

Point your app at SAPI and give it its key. Your app works as before, now on your own plan.

OPENAI_BASE_URL=http://127.0.0.1:8787/v1
OPENAI_API_KEY=sk-sapi-…

that's the only change your app needs

Works with the AI tools you already use

SAPI speaks the same language as the OpenAI and Anthropic APIs, so anything built on them can talk to it.

OpenAI for Python OpenAI for Node Anthropic for Python Anthropic for TypeScript LangChain Vercel AI SDK curl Any app with a "base URL" setting

Text only for now. Tool calling and images are next.

what you get

Simple controls, so nothing surprises you

See how much is left

A simple meter shows how much of your Claude plan you've used, and whether you'll run out at your current pace.

One key per app

Give every app its own key, with a daily limit if you like. Replace or switch off a key any time.

Pause anything

One switch stops Claude, ChatGPT or a single app, right away. Flip it back when you're ready.

Alerts when something's off

For example, when a key is used by software you don't recognize, or an app suddenly sends far more than usual.

Your words stay yours

Your prompts and replies are never saved. SAPI keeps only a simple log: which app, when, and how many words.

Pick a model by name

Ask for haiku, sonnet, opus or gpt. Or ask for auto, which moves to ChatGPT when Claude is running low.

just for you

Made for one person: you

  • It runs only on your computer. Nothing is sent to us. There is no SAPI server, and no tracking.
  • You never give SAPI a password. You sign in through the official Claude tool and OpenAI's own sign-in page.
  • Use it for your own apps only. Don't share it, or run other people's requests through your plan. Anthropic's terms don't allow that.
  • Your plan's usual limits still apply. SAPI shares the same allowance as the Claude and ChatGPT apps, and shows you how much is left.

Questions people ask

What does "inference" mean?

It's the AI doing the work: reading your message and writing the answer. Your subscription comes with an allowance of it. SAPI lets your own apps use that allowance.

Do I need an API key from Anthropic or OpenAI?

No. SAPI uses your subscription, and gives your apps their own SAPI keys instead.

Is it free?

SAPI is free and open source, under the Apache 2.0 license. You still pay for your own Claude or ChatGPT plan, as you do today.

What do I need to run it?

A Mac, and a Claude plan that includes Claude Code. ChatGPT is optional. Linux support is built and still being tested. There's no Windows version yet.

Can my apps use tools or send images?

Not yet. For now SAPI handles text. If an app asks for tools or images, it gets a clear message saying so. Tool calling and structured answers are coming next.

Is SAPI made by Anthropic or OpenAI?

No. SAPI is an independent project and isn't affiliated with either. Their names only describe what it works with.

Your plan. All your AI apps.

Set it up once, then use the subscription you already pay for, everywhere you build.

Get started on GitHub