Use Bonya from anywhere. One API underneath.
Call the REST API from any language, script it with the bonya CLI, build on the Python, TypeScript and Go SDKs, or give it to your AI agent through the MCP server. One API key works in all of them.
REST API
Plain HTTPS and JSON at api.bonya.ai. Everything else is built on it.
api.bonya.ai/v1
Terminalbonya CLI
Every product from your shell, your scripts and your CI.
brew install bonyai/tap/bonya
AI agentsMCP server
Tools for Claude, Cursor, Codex and any other MCP client.
npx -y @bonya-ai/bonya-mcp
BrowserConsole
The same sandboxes, jobs, keys, members and billing on the web.
console.bonya.ai
SDKPython
Typed, synchronous client for Python 3.10 and newer.
pip install bonya
SDKTypeScript
ESM with bundled types, for Node 18.17 and newer.
npm install @bonya-ai/bonya
SDKGo
Idiomatic client with context support, for Go 1.24 and newer.
go get github.com/bonyai/go-sdk
All channelsOne API key
The same key and settings work in every channel.
BONYA_API_KEY=byk_...
Plain HTTPS, from any language.
Every product is a JSON API at api.bonya.ai. The CLI, the SDKs, the MCP server and the console all use it, so anything they can do, you can do with an HTTP client.
- Authenticate with a personal API key as a Bearer token
- Send an Idempotency-Key on create calls, so a retry never creates two
- Act for a team with the X-Bonya-Organization-ID header
- Streaming exec and terminal sessions over WebSocket
bonya, in your terminal.
One binary for macOS and Linux. Log in once in the browser and drive sandboxes, jobs and schedules from your shell, your scripts and your CI.
- Sandboxes, exec, files, sessions, previews, snapshots and forks
- Jobs, cron schedules, templates and organizations
- An interactive shell in any sandbox with bonya console
- In CI, set BONYA_API_KEY and skip the login
brew install bonyai/tap/bonyacurl -fsSL https://get.bonya.ai/install.sh | shGive your AI agent a computer.
The Bonya MCP server gives any Model Context Protocol client tools for your Bonya account. Your agent creates sandboxes, runs code, writes files and sends you preview links, with no code on your side.
- Works with Claude Code, Claude Desktop, Cursor, Windsurf, Cline, Codex CLI and Gemini CLI
- Tools for sandboxes, exec and files, sessions, previews, snapshots, jobs and schedules, templates and secrets
- Runs on demand with npx. Nothing to install
- The key goes in the client's MCP settings, never in your code
npx -y @bonya-ai/bonya-mcpSandboxes from Python.
A typed, synchronous client. Context managers delete what you create, so a script never leaves a sandbox running.
- Python 3.10 or newer, fully typed
- Exec with live output, files, sessions, previews, snapshots and forks
- Jobs, cron schedules, templates and secrets
- Retries with idempotency keys built in
pip install bonyaSandboxes from TypeScript and JavaScript.
Promise-based client for Node. Ships ESM with bundled type declarations.
- Node 18.17 or newer
- Exec with live output, files, sessions, previews, snapshots and forks
- Jobs, cron schedules, templates and secrets
- Typed errors you can catch by kind
npm install @bonya-ai/bonyaSandboxes from Go.
An idiomatic client: every call takes a context, and options are plain structs.
- Go 1.24 or newer
- Exec, files, sessions, previews, snapshots, forks and keepalive
- Jobs, cron schedules, templates, secrets and registry connections
- Pause a sandbox warm or cold from code
go get github.com/bonyai/go-sdkOne key, every channel.
The CLI, the SDKs and the MCP server read the same environment variables. Set them once and switch between channels freely.
BONYA_API_KEYBONYA_ORGANIZATION_IDBONYA_ENDPOINThttps://api.bonya.aiNot sure where to start?
Ask your coding agent. With the MCP server or the CLI, it can do the whole thing for you.
Which one should I use?
For an AI agent in Claude, Cursor or another MCP client, use the MCP server. For your own app, use the SDK for your language, or the REST API from anything else. For scripts, CI and trying things by hand, use the CLI.
Do the CLI, SDKs or MCP server cost anything?
No. They are free. You pay only for the compute you use, at the same rates whichever way you call it.
Can they all do the same things?
They all use the same REST API, so a sandbox created from one shows up in all the others and in the console. Each covers sandboxes, exec, files, sessions, previews, snapshots, jobs and schedules. The REST API is where new features arrive first.
My language has no SDK. Can I still use Bonya?
Yes. Call the REST API at api.bonya.ai with any HTTP client. The API reference lists every endpoint with examples.
How do I get an API key?
Create one in the console at console.bonya.ai, or run bonya login and the CLI signs you in through your browser. Keys start with byk_.
Start building on Bonya.
Free on the Solo plan. Pick a channel and run your first sandbox in minutes.