Cloud agents

Run Claude Code, Codex or OpenCode in a cloud workspace on Shiped, from your browser. The workspace keeps your files and your login between visits, and the agent can deploy what it builds to https://{slug}.shiped.site with no extra login step.

This is separate from connecting a coding agent on your own machine to Shiped over MCP (see the other guides in this folder).

What you need

  • A Shiped account on the Pro or Team plan, or prepaid agent credits (see "Hours and credits"). The Free plan has no included hours.
  • A login for the agent you want to use: a Claude account or Anthropic API key, a ChatGPT account or OpenAI API key, or an API key for OpenCode. You bring your own; Shiped does not supply model access.

Starting a session

  1. Sign in and open Agents in the dashboard.
  2. Pick an agent (Claude Code, Codex or OpenCode) and start a session. The first start can take a little while while the workspace boots; if you return to a sleeping session it restores your saved files first.
  3. A terminal opens in the page. Sign in to the agent (below), then talk to it as you would on your own machine.

You can have up to 2 live sessions at once. Shiped also limits the total number of live sessions across all users, so a start can be refused with a "busy" message; try again later.

Logging in

Do this inside the terminal the first time. The login is saved with your workspace, so you should not need to repeat it after a sleep.

Claude Code

Run claude and choose to sign in with your Claude account, or set ANTHROPIC_API_KEY for an API key. For the account sign-in, the terminal prints a sign-in link. Shiped shows an "Open sign-in link" button when it recognises the link. Open it, approve, copy the code the page gives you, and paste it back into the terminal. Links to hosts Shiped does not recognise as Anthropic or OpenAI are shown with the host name and a Copy button only; check the host before you open one.

Codex

Use device-code login:

codex login --device-auth

Before you do, turn on device-code login in your ChatGPT security settings (personal account). If it is off, the command will not work. Plain codex login does not work here: it redirects to http://127.0.0.1:1455/..., which points at your own computer, not the workspace. Alternatively set OPENAI_API_KEY and use an API key.

OpenCode

Use an API key for your provider (for example by setting the provider's key environment variable, or with opencode auth login and pasting the key). Provider sign-in flows other than API keys have not been tested in a Shiped workspace.

Whether using your own subscription login this way is allowed by your provider's terms is your call to check; see docs/superpowers/specs/2026-10-27-cloud-agents-terms-check.md for what we found and what is unclear.

Hours and credits

  • Pro includes 20 agent hours per month and Team includes 60. The Free plan includes none.
  • When included hours run out, usage is paid from prepaid credits. A credit pack is $10, bought from the agents page.
  • The standard size (standard-1) uses 1 hour of included time per hour and costs $0.07 per hour of credit. The larger size (standard-2) uses 1.5 hours of included time per hour and costs $0.10 per hour of credit.
  • Time counts while the container is running, including while you are away but have not yet gone idle. A sleeping session does not use hours.
  • The page shows what you have left. If both included hours and credits reach zero, the session saves a checkpoint and goes to sleep. Add credits, then reopen the session to wake it with your files restored.
  • Included hours reset each month.

What is saved

Each session has its own saved workspace. When a session goes to sleep (idle, or out of hours and credit), Shiped saves /workspace and the agent's login and settings (for example ~/.claude, ~/.claude.json, ~/.codex, and OpenCode's data and config folders) to encrypted storage, and restores them when you reopen that session. Anything else on the container disk is lost, including packages installed system-wide.

  • Sleeping sessions are restored. Stopped sessions are gone: Stop session deletes that session's saved workspace and logins, and a new session starts empty. Push your work (for example to GitHub) or deploy it before you stop.

  • A session left asleep for 14 days is stopped automatically, and its saved workspace is deleted.

  • The saved copy is capped at about 2 GB. If your workspace is bigger than the cap, no new checkpoint is written and the previous one stays; the terminal warns you. Keep large build output and caches out of /workspace.

  • If a saved checkpoint cannot be read, the session starts empty and you will need to log in again. The terminal tells you when this happens.

  • A redeploy of Shiped's agents service restarts live containers. Work done since the last checkpoint can be lost, so commit or ask the agent to wrap up before a known deploy window.

Idle shutdown

After 15 minutes with no terminal activity and no agent activity, the session saves a checkpoint and sleeps. Leaving the browser tab open does not keep it awake. Opening the session again wakes it and restores your files. If the save fails, Shiped retries every minute and shuts the container down after 30 minutes idle regardless, to stop charges.

Deploying from the workspace

Each session gets its own deploy token, so the agent can publish to Shiped as you, within your plan limits. It is in the terminal environment as SHIPED_API_KEY (scopes: list and deploy). The workspace starts with an AGENTS.md and a CLAUDE.md that explain how to deploy. The hosted Shiped MCP server is already registered for Claude Code (.mcp.json in the workspace; approve it once when asked) and Codex (~/.codex/config.toml). Both read the token from the environment. OpenCode and other tools can call the HTTP API described in AGENTS.md. Ask the agent to deploy what it built and it will give you a https://{slug}.shiped.site URL.

  • The token works only while the session is starting or running. It stops working when the session sleeps or stops, and a new one is issued when the session wakes.
  • Deleting a project still needs your approval, the same as with MCP.

Limits

  • Network access is restricted to a list of hosts: the model providers (Anthropic, OpenAI, OpenRouter, Google's generative language API, OpenCode), npm, PyPI, GitHub over HTTPS, and the Shiped API. Other sites, including example.com and other shiped.site subdomains, are blocked. SSH to GitHub does not work; use HTTPS.
  • 2 live sessions per user.
  • Sizes: standard-1 (default) and standard-2.
  • The workspace is for building and publishing. It cannot accept inbound connections; publish through Shiped.
  • Refunds or disputes for credit packs are handled manually by Shiped support.
  • Shiped does not guarantee that a provider will accept a login from a hosted workspace. If a sign-in is refused, use an API key.