Sokko Docs
Devboxes

Devboxes from your agent

Ask an agent to deploy a branch and hand you a link. What it can do, what it will ask you first, and how to correct a wrong guess.

Start without GitHub

A repository is optional. For a new site, WordPress, or an experiment, ask the user which network to use. Keep a network choice they already gave you. Call sokko_devbox_create with network and a descriptive name, omitting repo. When the box is ready (empty), call sokko_devbox_deploy with files: a map of relative paths to UTF-8 source. Include compose.yaml for a multi-service stack, or pass run and expose for a single process. The limit is 64 files and 512 KB of source. Install larger dependencies during deployment.

Sokko saves these files for later redeploys. Omit files to reuse the saved source. Status, logs, exec, TTL, network access, and deployment checks work as for repository-backed boxes. Files and database volumes are temporary and are removed when the devbox expires. Export anything you need to keep.

Do not put credentials in source files or tool arguments. Generate temporary credentials inside the devbox. GitHub is not required for this workflow. For an existing repository, use sokko_github_repos and Sokko's native GitHub integration. Do not send a Composio GitHub authorization link to repair native access. Check the exact failed operation before reporting a permission limit.

Your agent can run the whole devbox loop by itself: create the box, deploy a branch, watch it come up, and give you a URL to click. You never have to open the dashboard for it.

Works with OpenClaw and Hermes. Cursor cannot drive devboxes today.

What to say

Plain English is enough. These all work:

  • "Deploy this branch to a devbox and send me the link."
  • "Spin up a preview of the checkout-redesign branch."
  • "The preview is showing the old build — redeploy it."
  • "Keep that preview alive until tomorrow."
  • "Show me the logs from the last deploy."
  • "Tear the devbox down."

For repository-backed deployments, your agent needs the repo to be covered by your organization's GitHub App installation. If it is not, connect it under Settings → GitHub and ask again. See Integrations.

The one question it must ask you

Which network. If you did not specify it, your agent must ask and cannot choose for you, because the three answers have very different consequences:

AnswerWho can open the preview
Sokko networkAnyone with the link who signs in to Sokko and is a member of your organization. Sokko checks every visit.
PrivateOnly devices on your Tailscale tailnet. Your tailnet's rules are the lock — Sokko does not check visitors.
PublicAnyone at all. No sign-in. Ask for this only when you truly want an open link.

The choice is permanent for that devbox. To change it, create a sibling devbox for the same repo — it shares the repo's secrets, so nothing is set up twice.

Cloudflare Tunnel devboxes are not available yet; private devboxes are Tailscale only.

What it can do

Ask forYour agent does
A new devboxCreates it with optional GitHub repository binding
A deployDeploys a branch or source files, replacing the running app
StatusReports the state, the services, and any error with a fix
A dry runReports what Sokko would run, without deploying
LogsPulls the build and app output
A linkGives you the preview URL, or a share link for tools outside Sokko
More timeExtends the lifetime, up to the plan cap
CleanupDestroys the devbox — permanent, and it will confirm first

If you want to test a preview with something that cannot sign in to Sokko — curl, Playwright, a CI job — ask your agent for a share link and how long you want it to live (5 minutes to 24 hours).

A share link is a password in URL form. Anyone who has it can open the preview until it expires, and it cannot be revoked early — destroying the devbox is the only way to kill it. Keep the lifetime short.

When the guess is wrong

Sokko works out how to run most repos on its own. When it cannot, or when it picks the wrong command, every deploy tells you what it ran and where that came from — so the fix is one message:

"That's wrong, it needs npm ci && npm run build && npm start on port 8080."

Your agent passes that with the next deploy. From then on:

  1. This devbox stops guessing. The command is stored and reused on every later deploy.
  2. Once it comes up healthy, your whole organization benefits. Sokko saves the working setup for that repository, so the next devbox anyone creates for it starts from what worked. A setup that crash-looped is never saved.

No repo change, no commit, no push. If you would rather have it written down and reviewable, put the same values in sokko.devbox.yml — the keys are identical.

Things worth knowing

  • "Empty" means ready, not stuck. A fresh devbox sits at empty until something is deployed. That is a resting state.
  • One deploy at a time per devbox. A second one while the first is running is refused; the agent waits instead of retrying.
  • Never dictate secrets to an agent. Anything you type into a chat goes through a model. Put credentials in the Repo secrets tab instead, and tell your agent to redeploy.
  • Destroying is permanent. The machine, the disk and the URL all go. Repo secrets survive.

On this page