open source · local-first

“Sign in with Google”
— but for AI.

One button. Users bring their own Claude, OpenAI, or local models. Your app gets an OpenAI-compatible endpoint. Zero cost.

Demo coming soon
1

User installs plugmy.ai

One command on macOS or Linux. Runs quietly in the menu bar.

2

They tap "Plug My AI" in your app

One button. One approval prompt. Done.

3

Your app has AI — at zero cost

Requests flow through their subscription. You pay nothing.

Works with your stack

Bring your existing subscriptions and API keys. Plug-my-ai routes them all through one local endpoint.

Claude Code
subscription
Claude API
api key
OpenAI API
api key
Codex
subscription
OpenRouter
api key
Ollama
local
OpenClaw
subscription
+
More coming
extensible

Add "Plug My AI" to your app

Works in web apps, Electron apps, native macOS/Linux/Windows apps — anything that can make HTTP requests. Users pair once, then your app talks to their local AI.

What your users see
One click to connect their subscription
Web apps Electron macOS native Linux CLI Windows Mobile (via local network)
Implementation
// 1. Start pairing — opens user's approval page
const res = await fetch('http://localhost:21110/v1/connect', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    app_name: 'My App',
    app_url:  'https://myapp.com'
  })
});
const { request_id } = await res.json();

// 2. Poll until user approves
const poll = await fetch(`http://localhost:21110/v1/connect/${request_id}`);
const { status, token } = await poll.json();
// token = "pma_abc123..." → save it

// 3. Use it — standard OpenAI-compatible API
const chat = await fetch('http://localhost:21110/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'claude',
    messages: [{ role: 'user', content: 'Hello!' }],
    stream: true
  })
});

Get started in seconds

Single binary. No runtime dependencies. Works on macOS and Linux.
Windows support coming soon.

curl -fsSL https://get.plugmy.ai/install.sh | sh
or via Homebrew: brew install plug-my-ai coming soon

Try the demo

See how the pairing flow and chat completions work — no install needed.

Coming soon