Do you sell the electricity, an AI plan? Reach out to us.
More sandbox providers are coming soon.
Any Node or Bun framework. Any database, through a store adapter.
Your app brings the product.Each user brings the agent.
You build the app and pick the sandbox. Each user brings their plan and their tools. byoa runs inside your backend and runs each job in a new sandbox.
DEVELOPER · YOU END USER
┌────────────────────────────────────┐ ┌────────────────────────────────────┐
│ builds the app │ │ uses the app │
│ picks the sandbox provider │ │ pays for the AI with a plan: │
│ owns the database │ │ Claude ChatGPT Grok │
│ pays only for the sandbox │ │ has MCP tools and skills │
└──────────────────┬─────────────────┘ └──────────────────┬─────────────────┘
│ imports byoa signs in on the lab's own page │
│ connects each MCP tool once │
▼ ▼
┌─ YOUR APP'S BACKEND · you run it ────────────────────────────────────────────────────────────┐
│ your app code your database │
│ │ agents.run(userId, task) ▲ AI logins, MCP grants │
│ ▼ │ │
│ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━┓ │
│ ┃ byoa · open source, Apache 2.0 ┃ │
│ ┃ AI login · harness skills · AGENTS.md MCP OAuth · proxy ┃ │
│ ┃ │ │ ┃ │
└─╂┄┄┄┄┄┄┄┄┄┄┄┄┄┄│┄┄┄┄┄┄┄┄┄┄┄ ▲ your backend · outside it ▼ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄│┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╂─┘
┃ │ create · run · destroy real token │ ┃
┃ ▼ ▼ ┃
┃ ┌─ SANDBOX ────────────────┐ ┌─ AI LABS ────────────────┐ ┌─ MCP SERVERS ────────────┐ ┃
┃ │ E2B, Daytona or │ │ Anthropic · OpenAI · xAI │ │ Notion · Gmail · … │ ┃
┃ │ Instabox, │ │ │ │ │ ┃
┃ │ on your account ├─▶│ model calls, paid by │ │ the user's own accounts │ ┃
┃ │ runs the user's own │ │ the user's own plan │ │ │ ┃
┃ │ Claude Code, Codex or │ │ │ │ │ ┃
┃ │ Grok Build │ │ │ │ │ ┃
┃ └──────────────────────────┘ └──────────────────────────┘ └──────────────────────────┘ ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
DEVELOPER · YOU
┌────────────────────────────────────┐
│ builds the app │
│ picks the sandbox provider │
│ owns the database │
│ pays only for the sandbox │
└─┬──────────────────────────────────┘
│ imports byoa
│ END USER
│ ┌────────────────────────────────┐
│ │ uses the app │
│ │ pays for the AI with a plan: │
│ │ Claude ChatGPT Grok │
│ │ has MCP tools and skills │
│ └────────────────┬───────────────┘
│ │ signs in once
│ │
▼ ▼
┌─ YOUR APP'S BACKEND ───────────────┐
│ your app code your database │
│ │ agents.run() ▲ logins, │
│ ▼ │ grants │
│ ┏━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━┓ │
│ ┃ byoa · open source ┃ │
│ ┃ AI login · MCP proxy ┃ │
│ ┃ harness · skills · config ┃ │
│ ┃ │ │ ┃ │
└─╂┄┄┄│┄┄ ▲ backend · outside ▼ │┄┄╂─┘
┃ │ real token │ ┃
┃ ▼ runs each job │ ┃
┃ ┌─ SANDBOX ────────────┐ │ ┃
┃ │ E2B, Daytona │ │ ┃
┃ │ or Instabox, │ │ ┃
┃ │ on your account │ │ ┃
┃ │ runs the user's own │ │ ┃
┃ │ Claude Code, Codex │ │ ┃
┃ │ or Grok Build │ │ ┃
┃ └───┬──────────────────┘ │ ┃
┃ │ model calls │ ┃
┃ ▼ │ ┃
┃ ┌─ AI LABS ────────────┐ │ ┃
┃ │ Anthropic · OpenAI · │ │ ┃
┃ │ xAI, paid by the │ │ ┃
┃ │ user's own plan │ │ ┃
┃ └──────────────────────┘ │ ┃
┃ │ ┃
┃ ▼ ┃
┃ ┌─ MCP SERVERS ──────────────┐ ┃
┃ │ Notion · Gmail · … │ ┃
┃ │ the user's own accounts │ ┃
┃ └────────────────────────────┘ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
AI is electricity.An AI subscription is a battery pack.
AI-native apps are the future. But an app that buys its AI at API prices must pass that cost on to its users. So it must choose: a frontier model, and a high price for each user, or a cheap model, and a worse agent. AI subscriptions solve this. We bet on a future where everyone has a $20 AI plan, or the same in another form, and that plan powers every app they use. In that future, every app is AI-native, so nobody says "AI-native app" anymore.
Battery packs come in different sizes, and one pack powers all the appliances in your home. This is the economy we bet on. We build byoa to make it come sooner, so that every developer can build on it.

What each user pays a month for 100 small agent tasks
Your app passes its AI costs on to its users, in its price. Drag the number to change it.
- With your API key, every token is a cost that grows with each user's use. Even with a smaller model, a heavy user takes from your margin. With byoa, the user's tokens never reach your bill.
- Open-weight models, such as Kimi, on the user's OpenCode Go plan, are planned.
- The user's own plan pays for the AI, within its limits. How we count
Start in three steps.
Install byoa from npm, with npm or Bun. Then follow Getting started in the docs.
- 1Install from npm Needs Node 22.18 or later, or Bun, and a sandbox API key from E2B, Daytona or Instabox.
- 2Write your first agent run Follow the getting started guide in the docs.
- 3Try the live demo Sign in with your own Claude, ChatGPT or Grok plan, and your own agent triages a sample inbox. Or run the to-do example.

npm install @madeyexz/byoa
bun add @madeyexz/byoa
What byoa works with today.
Everything without a tag works today. Each row links to its page in the docs. To see which plans work and what they cost, read Supported AI subscriptions.




Bring your own agent.
byoa, short for "bring your own agent", is the simplest way to let your users bring their own AI subscription to power the agents in your app.