Soba Docs

Get started

Set it up with your agent

Install the Soba skill, connect the MCP server, and let the coding agent you already have open do the integration — read the checklist, make the edits, and confirm each step landed.

Soba's integration is a server half (your LLM calls and a session route) and a browser half (a component for each moment a user meets their compute), all in your repo. The thing best placed to make them is the coding agent already sitting in that repo, so there are two pieces that put Soba in front of it: a skill, which teaches it the integration, and an MCP server, which lets it read and change this app's setup.

They are independent. The skill works on its own; the server makes the skill better by giving it the real checklist instead of a description of one. The skill's text is also a page you can read: Implement Soba, with every component live.

1. The skill#

Terminal
npx skills add https://soba.so/skill

Run it once in your repo root. It writes a SKILL.md into your agent's skills directory — .claude/skills/ for Claude Code, .agents/skills/ for most others — and it works for any agent the skills CLI supports.

What it carries is the half no dashboard can do for you: which files the two edits belong in, the shape of the session route, and the one fact an agent must never guess — that the user id on every request is resolved on your server, from your session, and never from the request body. An id the browser can choose is an id any user can use to spend somebody else's compute.

2. The MCP server#

Terminal
claude mcp add soba -- npx -y @soba-so/mcp --token mk_soba_…

The Integrate page in your dashboard prints this line with a key already in it. The token is a management key: it configures your app and cannot spend anything, cannot serve a run, and cannot act as one of your users.

Without it, an agent that can run commands uses the CLI instead: npx -y @soba-so/cli login --no-link signs its terminal in once you approve in the browser, and soba link --workspace … --app … writes the keys. The skill says which to use and asks you which app it is.

With it connected, your agent stops guessing at what is left:

Tool
soba_status The checklist and which steps are done
soba_next_step The first outstanding one, with an instruction written for an agent
soba_create_key Mints your app's secret key, once
soba_set_connect_url Points Connect back at your app
soba_use_soba Answers the provider step with "Just use Soba for now" and ticks it
soba_set_model_picker Sets the model picker: on or off, menu, presets, search
soba_create_free_plan Adds the free "Bring your own" plan, the default, and starts new users on it
soba_create_plan Creates a plan from numbers you gave it
soba_get_settings, soba_update_settings Connect popup, model picker, which AI users may connect
soba_list_plans Its plans, with every field
soba_update_plan Changes the fields you name on one plan
soba_archive_plan Takes a plan off sale; users on it keep it

There is also a prompt, /soba:set_up in Claude Code, which runs the whole loop: read the checklist, do the next step, read it back, repeat.

The whole dashboard, in production#

A management key reaches development only. To let an agent work in production, or in any of your apps, sign in once and connect the server as you:

Terminal
npx @soba-so/cli login --no-link
claude mcp add soba-account -- npx -y @soba-so/mcp --account

That connection has a tool for every page of an app: settings (Connect popup, model picker, which AI users may connect, limits), providers and their models, custom models, plans, rewards, users, machines, runs, keys and the workspace's people. It asks for the app and the environment each time, and acts with exactly what you may do in each workspace. A provider's key is never said in the conversation: the agent names the variable in your .env.local and the server reads it. A key it makes goes straight into that file too.

Two things end with you in a browser, because Stripe and the Soba app ask for a person: putting a card in or connecting your Stripe, and approving a machine. The agent hands you the link and reads when it is done. Anything that charges you, changes what your users pay or cannot be undone takes a number or a name you gave it. SOBA_ACCESS_TOKEN or a SOBA_WORKSPACE_KEY works in place of --account.

3. Tell it to go#

Set this project up on Soba.

The skill takes it from there. It does not need to be told whether this is an existing app or a new one — it can see which it is looking at, and if there is no app yet it runs npx create-soba@latest rather than writing one from memory.

What it will not do

It will not invent a price. By default it adds only the free "Bring your own" plan. Paid plans, allowances and what connecting a machine earns back are decisions about your business, so it asks before calling soba_create_plan. It will not put your key anywhere but .env.local, and it checks that file is gitignored first. And it cannot pair a machine for you — that is a person installing the Soba app on their own laptop and approving it.

It mounts our components, even in your own UI#

The skill puts our components where they belong — the connect button in your header, the model picker beside your send button, the plans on your billing page — even when your app already has its own composer, cards and design system. It does not rebuild them from the hooks. The components read what you set in this dashboard — the model picker's layout and choices, the connect popup's look — and a copy rebuilt from a hook reads none of it, so your settings would stop reaching your users. Each component takes a className, and theme on <SobaProvider> sets light or dark.

If you want your own markup for one of them, say so and the agent will build it from the hook, showing everything the component shows: a model picker built that way is still a menu with every agent's models in it, not a dropdown of names.

Your chat is the exception, because there is no chat component: your composer and messages stay yours. The skill puts the model picker, the run-limit and error cards and the connect nudge into them, and checks the rest a chat on Soba has to handle — streaming and thinking, Stop, the machine going offline mid-run, copy and retry on answers, and follow-ups that continue the same conversation.

How the step finishes#

The integrate step ticks when a request arrives from your app's own call site. Not when the diff is written, not when the pull request merges, and not on a curl: the gateway stamps a key at authentication, so it cannot tell a test request from a deployment. Run your app and use it.

Doing it by hand#

Everything above is a faster route to the same place. If you would rather type it yourself, the Quickstart is four steps and the Integrate pages are the reference.

Privacy · Terms · DPA · © 2026 Soba resolved = machine grant ∩ broker request