# byoa > 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. byoa is an open-source library (Apache 2.0). It runs inside the app's own backend; it is not a hosted service. Install byoa from npm. Its package is `@madeyexz/byoa`, because npm does not allow the name `byoa`: ```sh npm install @madeyexz/byoa bun add @madeyexz/byoa ``` ## Learn - [Overview](https://byoa.rippling.computer/docs/concepts.md): who brings what, what byoa is and is not, how a job runs, and why real tokens never go into the sandbox - [Getting started](https://byoa.rippling.computer/docs/getting-started.md): install byoa, make one `agents` object, serve its two routes, sign a user in and run a first job ## How it works - [Sandbox lifecycle](https://byoa.rippling.computer/docs/sandbox-lifecycle.md): every sandbox byoa creates, from creation to removal, what carries over between jobs, what each provider does, and what byoa does when your backend dies - [MCP tools and the proxy](https://byoa.rippling.computer/docs/mcp.md): connect a user's MCP servers once, the proxy and job tokens, your app's own tools, and calls with a user's grant - [Security](https://byoa.rippling.computer/docs/security.md): where each secret is kept, and how to report a problem ## How to - [Sign users in](https://byoa.rippling.computer/docs/ai-login.md): the sign-in on the lab's own page, where the login stays between jobs, one job step by step, jobs at the same time with one login, the OpenCode Go key, and sign-out - [Give the agent tools](https://byoa.rippling.computer/docs/agent-tools.md): your app's own tools, the user's MCP servers, skills, AGENTS.md and plugins, which one to choose, and what the agent can do in its sandbox - [Run agents](https://byoa.rippling.computer/docs/running-agents.md): `agents.run` and its events, what the agent may do, sandbox modes, conversations and more messages to a running job, jobs at the same time, models and effort, `session` and `jobToken` - [Pick a sandbox provider](https://byoa.rippling.computer/docs/providers.md): E2B, Daytona, Instabox and the local sandbox, and how to write an adapter - [Store logins and grants](https://byoa.rippling.computer/docs/stores.md): the store adapter, Postgres, Convex, your own database, and a table of its own for the AI logins - [Test your app](https://byoa.rippling.computer/docs/testing.md): test your app with the fake harness, the local sandbox and the memory store, and run byoa's own tests ## Plans and rules - [Supported AI subscriptions](https://byoa.rippling.computer/docs/subscriptions.md): which Claude, ChatGPT, Grok and OpenCode Go (beta) plans your users can bring, and whether their accounts can get banned - [Lab rules](https://byoa.rippling.computer/docs/lab-rules.md): what Anthropic's, OpenAI's, xAI's and OpenCode's terms allow, and what byoa and each app must do - [FAQ](https://byoa.rippling.computer/docs/faq.md): what byoa is, whether a user's AI account can get banned, many agents of one user, whether the agent remembers earlier jobs, models, and what an AI job costs with byoa and with an API key ## Reference - [API reference](https://byoa.rippling.computer/docs/api.md): every import, method, option and event ## Spec - [SPEC.md](https://raw.githubusercontent.com/madeyexz/byoa/main/SPEC.md): the version 1 requirements (R1 to R7) and the checks (V1 to V23) - [Full docs](https://byoa.rippling.computer/llms-full.txt): the docs, SPEC.md, the example and the skill in one file ## Example - [examples/todo](https://raw.githubusercontent.com/madeyexz/byoa/main/examples/todo/README.md): an AI-native to-do list on byoa, with a chat; its backend uses byoa in 49 lines - [examples/todo/app.ts](https://raw.githubusercontent.com/madeyexz/byoa/main/examples/todo/app.ts): all of the example's byoa code, as one fetch handler ## Agent skill - [skills/byoa/SKILL.md](https://raw.githubusercontent.com/madeyexz/byoa/main/skills/byoa/SKILL.md): teaches a coding agent (Claude Code, Codex, Amp and others) to add byoa to an app ## Optional - [Docs home](https://byoa.rippling.computer/docs/index.md): the list of docs pages - [CONTRIBUTING.md](https://raw.githubusercontent.com/madeyexz/byoa/main/CONTRIBUTING.md): how to work on byoa - [Source](https://github.com/madeyexz/byoa): the repository