AI connections
AI connections link an AI assistant to your Spheron account through the Model Context Protocol (MCP), the open standard assistants use to call external tools. Once connected, you deploy, check, and manage GPU instances by asking in chat. This page covers how to connect each supported client, what an assistant can and cannot do, and the safeguards on every connection.
There is no API key to create or paste. You sign in with your Spheron account once, and the connection acts as you. A connection added in Claude works in Claude on the web, the desktop app, and the mobile app.
Prerequisites
- A Spheron account with credit on it. See Billing.
- At least one SSH key saved in Settings > SSH Keys, so the assistant can launch instances you can log in to. See User settings.
- An assistant that supports remote MCP servers with OAuth sign-in.
Connect an assistant
Every client uses the same connector URL:
https://connect.spheron.ai/mcpThe URL, a Copy button, and the steps below also appear in Settings > AI connections at app.spheron.ai.
Claude
- In Claude, open Settings > Connectors > Add custom connector.
- Paste the connector URL. Leave the client ID and secret empty.
- Sign in to Spheron and choose a spend limit.
ChatGPT
- In ChatGPT, open Settings > Apps and connectors > Advanced and turn on developer mode.
- Click Create, paste the connector URL, and choose OAuth for authentication.
- Sign in to Spheron and choose a spend limit.
Codex CLI
-
Run these two commands:
codex mcp add spheron --url https://connect.spheron.ai/mcp codex mcp login spheron -
Sign in to Spheron in the browser that opens and choose a spend limit.
Hermes Agent
-
Add this entry to
~/.hermes/config.yaml:mcp_servers: spheron: url: "https://connect.spheron.ai/mcp" auth: oauth -
Run
hermes mcp login spheron, sign in to Spheron in the browser that opens, and choose a spend limit. -
Start a new Hermes session, or run
/reload-mcp.
Cursor
- In Cursor, open Settings > MCP > Add new MCP server.
- Choose HTTP (streamable) and paste the connector URL.
- Click Connect, sign in to Spheron, and choose a spend limit.
VS Code
- Open the Command Palette, run MCP: Add Server, and choose HTTP.
- Paste the connector URL.
- Sign in to Spheron when prompted and choose a spend limit.
Other MCP clients
Add the connector URL in any client that supports remote MCP servers with OAuth. Sign-in must finish on your own computer or in a supported app (Claude, ChatGPT, VS Code, or Cursor).
What the assistant can do
- Find capacity. Search GPU offers and CPU nodes by model, count, price, and region, or only the offers with enough GPU memory to serve a given model.
- Launch ready-to-use apps. Deploy an instance with a one-click app, such as Jupyter Lab, a vLLM server, a Blender render node or AI Toolkit for LoRA training, and tell you its addresses. With the Blender render node and the Agent GPU Sandbox, it can render a scene for you and copy the frames to a volume as they finish. The app's sign-in secret shows only on your dashboard, never to the assistant.
- Manage instances. Launch, stop, start, restart, rename, and terminate GPU instances and CPU nodes, and set timers that stop or terminate them automatically.
- Diagnose problems. Ask why an instance is stuck or failed, or how hard its GPUs are working, and the assistant checks its status and GPU usage and explains it.
- Manage storage and access. Create, resize, attach, detach, and delete volumes, and add or delete SSH keys.
- Serve models. Create an endpoint from the Model Store for a text, video, speech or image model, or any Hugging Face model, follow its setup, read its metrics and engine log, change when it stops itself, restart or repair its engine, and create, limit, turn off or revoke its keys and read their usage. A new key is shown once, to the assistant that made it, which passes it on to you.
- Save and reuse setups. Save an instance as a saved image, check its storage price first, deploy new instances from a ready image, and delete images.
- Control open ports. Set a firewall when launching an instance, and change it later where the instance supports live changes. Removing the SSH rule needs your confirmation. For a container, turn on HTTPS links for ports that serve HTTP.
- Work with teams. Create a team, and accept or decline invitations.
- Read your account. Check balance, usage, and transactions.
- Work on the machine. With the Agent GPU Sandbox, the assistant runs commands, long training jobs, and benchmarks on the GPU instance it deployed, and reads and writes files there.
Example requests:
Find the cheapest H100 with at least 2 GPUs in Europe and deploy it with my laptop SSH key.
Why is my instance "train-run-3" still deploying?
Stop every instance I am not using and tell me what it saves per hour.
Set my training instance to stop once its GPUs have been idle for 30 minutes.
Deploy the cheapest GPU that fits Llama 3.3 70B at FP8 with a vLLM server for it.Asked to terminate an instance before its minimum runtime is met, the assistant schedules the terminate for the moment the minimum is met, instead of being refused and waiting to try again.
What the assistant cannot do
A connection acts as you, on your account and the teams you belong to. It cannot:
- Add funds or change your payment card.
- See or create API keys.
- Invite or remove team members.
- Raise its own spend limit, budget, or run time limit.
- Reach any admin function.
Safeguards
Spend limit per connection
When you connect, choose how much the instances launched through that connection may cost per hour, all running at once: $5, $20 (preselected), $50, $100, a custom amount from $0.01 to $100,000, or No limit (your balance is the only cap).
A launch or start that would take the connection over its limit is refused. Volume storage is not counted in the limit. Only you can change the limit, from Settings > AI connections. The assistant cannot raise it.
Total budget per connection
A total budget caps what a connection can spend over time, not only per hour. Choose $25, $50, $100, $250, $500, $1,000, or No budget from the entry in Settings > AI connections.
The budget counts what every instance launched or started through the connection has cost over its life. Time an instance spends stopped counts at the stopped rate. The entry shows the running total, for example "Spent $62.40 of $100.00 budget".
When the connection nears or reaches its budget:
- When the instances running through the connection would reach the budget within 10 minutes, you get an email for each of them.
- 10 minutes later, each one is stopped with the same Stop as the dashboard. The disk is kept, and the instance bills at the stopped rate.
- Once spend reaches the budget, launches and starts through the connection are refused with a plain message.
If spend drops out of reach again, for example because you stopped an instance yourself, the next approach to the budget is warned by email again before anything is stopped. Raise or remove the budget to launch through the connection again.
Maximum run time per instance
A maximum run time stops every instance launched or started through the connection after it has run that long. Choose 1, 2, 4, 8, 24, or 72 hours, or No limit, from the entry in Settings > AI connections.
The limit is set as a run-time timer on the instance, so you get the same email 10 minutes before the stop. A shorter stop timer you set yourself is kept.
Instances that cannot be stopped
Instances on Verda, Spheron MS, Spheron AM, and some machine types cannot be stopped, so a budget or run time can only be kept on them by terminating them. Through a connection with either limit set, a launch on such a machine is refused.
To allow these launches, turn on the switch next to "Instances that cannot be stopped" on the connection's entry. The switch appears once a budget or run time is set. Spheron then terminates such an instance when it reaches a limit: the instance and its disk are deleted, and attached volumes are kept.
Only you can change a budget, a run time, or this setting, from Settings > AI connections. A connected assistant cannot raise its own limits.
Actions run on the first call
Every action runs as soon as the assistant calls it. Spheron does not show a separate preview or ask for a confirmation, so the spend limit, total budget, and maximum run time above are what bound the money a connection can spend. Removing the SSH rule from a firewall is the one exception: the assistant must say you confirmed it.
Most clients can ask you to approve each tool call before it runs. Keep that on for tools that launch, stop, terminate, or delete if you want to approve each one.
Each connection can make up to 60 tool calls a minute.
You see who is asking
The Spheron sign-in page names the app that is connecting and where its sign-in finishes: on your computer, or in Claude, ChatGPT, VS Code, or Cursor. Check both before you click Allow. An app with a misleading name stands out because its sign-in destination does not match.
Manage connections
Open Settings > AI connections to see every connection you approved. Each entry shows:
- The client name and where its sign-in finished
- When it was connected and when it was last used
- Its spend limit, and what instances launched through it cost per hour right now
- Its total budget and what it has spent, for example "Spent $62.40 of $100.00 budget"
- Its maximum run time per instance, and whether instances that cannot be stopped may be terminated at a limit
Change the spend limit, the total budget, or the maximum run time from the dropdowns on the entry. Each change saves at once. Click Disconnect to remove one connection, or Disconnect all to remove every connection. The assistant loses access immediately. Instances it launched keep running, so stop or terminate them from Instances if you no longer need them.
What's next
- Agent GPU Sandbox: let the assistant run code and jobs on the GPU instance it deploys
- API reference: the REST endpoints behind every assistant action
- API skill for AI agents: a skill file for agents that call the REST API with an API key
- Instance lifecycle: what stop, start, and restart do on each provider
- Security best practices: protect your account, SSH keys, and API keys
Troubleshooting
Issue: A launch is refused for the spend limit
Symptoms: The assistant reports that the deployment would exceed the connection's spend limit.
Diagnosis: The instances already running through this connection, plus the new one, cost more per hour than the limit.
Resolution: Stop or terminate instances launched through the connection, or raise the limit in Settings > AI connections.
Issue: A launch is refused because the budget is reached
Symptoms: The assistant reports that instances launched through the connection have reached its spend budget, and every launch or start is refused.
Diagnosis: What instances launched or started through the connection have cost over their lives reached the connection's total budget.
Resolution: Raise or remove the budget in Settings > AI connections, then ask the assistant again. Stopping or terminating instances does not help here: the budget counts what instances launched through the connection have already cost. Through the API, the refusal is spend_cap_exceeded with details.limit set to budget, or hourly for the hourly spend limit.
Issue: An instance was stopped by the budget
Symptoms: An instance launched through an AI connection stopped without you asking. You received an email about 10 minutes earlier.
Diagnosis: The instances running through the connection reached its total budget, so each was stopped with the same Stop as the dashboard. The disk is kept, and the instance bills at the stopped rate.
Resolution: Raise or remove the budget in Settings > AI connections, then start the instance from Instances or ask the assistant to start it. Terminate it instead if you no longer need it, so it stops billing at the stopped rate.
Issue: A launch is refused because the instance cannot be stopped
Symptoms: The assistant reports that the connection has a spend budget or a maximum run time, which can only be kept on this machine by terminating it.
Diagnosis: The offer is on a machine that cannot be stopped, and the connection does not allow terminating such instances at a limit.
Resolution: Ask the assistant to pick an offer that can be stopped, or turn on the switch for instances that cannot be stopped on the connection's entry in Settings > AI connections.
Issue: A deploy fails because of the SSH key
Symptoms: The deploy is refused with a message about a missing or unusable SSH key.
Diagnosis: Your account has no SSH key, or the saved key has no valid public key data.
Resolution: Add a valid public key in Settings > SSH Keys, or ask the assistant to save one, then deploy again. No failed instance is left behind.
Issue: The client cannot finish sign-in
Symptoms: The browser shows an error after you sign in, or the client never receives the connection.
Diagnosis: The client finishes sign-in somewhere other than your own computer or a supported app.
Resolution: Use one of the clients listed on this page, or a client that completes OAuth on localhost.