spov

Run OpenCode in disposable cloud sandboxes

spov spins up a fresh Modal sandbox with only the repos you choose, connects your terminal to OpenCode inside it, and syncs the agent's commits and edits back to your checkout when you quit.

Or hand off a goal and walk away. Jobs run unattended until they open a pull request or write a report, and spov verifies the result before marking them successful.

Built on

Local or hosted

Local

Nothing to deploy. The CLI starts a local background server automatically when you need it, and shuts it down after a minute idle.

  • spov init

    Checks for Modal, GitHub, a model, and the sandbox image, and walks you through setting up anything missing.

  • Secrets in your keyring

    Tokens and API keys live in your OS keyring (or a locked-down local file). spov credentials add verifies forge tokens before saving them.

  • History on disk

    The local server keeps session history for 30 days, so spov ls, spov attach, and spov resume still work after a restart.

  • Your own Modal account

    Sandboxes run and are billed in your Modal account. Launch shows an estimated hourly cost, and spov ls tracks how long each sandbox has been running.

Hosted

One server for a team, or for yourself. spov serve with Postgres adds autonomous and scheduled jobs, a web dashboard, and multi-user access. You can also run it locally with the Compose file.

  • GitHub sign-in

    An allowlist controls who can sign in, and quotas limit each user's sessions and jobs.

  • Credentials per user

    Stored encrypted on the server. With a GitHub App, each session gets a short-lived token scoped only to its own repos.

  • The same CLI

    spov login points the CLI at your server. spov fly and the rest work just like local mode.

The dashboard's Sessions page: sessions on acme/app and acme/api, each with its state, its job and how long it has run. The dashboard's Sessions page: sessions on acme/app and acme/api, each with its state, its job and how long it has run.

Sessions. Every session, live, with its status, linked job, and how long it has been running.

A pull request job's page: the agent's transcript as it fixes the flaky retry test, and the verdict with each gate passed and pull request #482 verified. A pull request job's page: the agent's transcript as it fixes the flaky retry test, and the verdict with each gate passed and pull request #482 verified.

A job. Live transcript, verification checks, and the pull request it opened.

The Jobs page: pull request, report and sync jobs with their outcomes, filtered by All, Active, Needs you and Finished. The Jobs page: pull request, report and sync jobs with their outcomes, filtered by All, Active, Needs you and Finished.

Jobs. Every job's status and deliverable. Needs you filters for jobs waiting on your input.

The New job form, with acme/api picked and a goal typed in. The New job form, with acme/api picked and a goal typed in.

New job. The same as spov jobs create, with a repo picker.

The dashboard, with sample data.

Why spov

The agent never holds your tokens

It runs in a Modal sandbox with only the repositories you chose. Your home directory, SSH keys, and other projects aren't there, and neither are your tokens. A sidecar proxy outside the sandbox holds them and injects your git token only on allowed requests for those repos. Inside the sandbox, git remote -v shows no credentials. The agent can still push through the proxy, so protect your default branch.

Not only GitHub

spov clones, pushes, and opens pull or merge requests on GitHub, GitLab, Forgejo, and Gitea, on their public sites or your own self-hosted server, including GitHub Enterprise. Every forge token stays with the proxy outside the sandbox. See forges for setup and tested platforms.

From your branch and back

Run spov fly in a clean checkout and the sandbox starts from your current branch, including unpushed commits. When you quit, the agent's commits and uncommitted changes sync back to your checkout, or to a spov/<session> branch if your local checkout changed while you were away. The sync never overwrites untracked or ignored files like .env, and never runs your git hooks.

Hand off a goal, not a prompt

Jobs are a separate mode for larger tasks. spov hands OpenCode the goal and keeps it working until the task is finished or time runs out. The job outlives your terminal and ends in a pull request, a report, or changes you apply to your checkout. Follow it from the terminal or the dashboard, and steer or take over at any point. spov verifies that the pull request or report exists before marking the job successful.

spov jobs create --repo acme/app --check './app/scripts/check.sh' \
  "Fix the flaky retry test in internal/queue and open a pull request"

Jobs need a server with Postgres. The Compose file in deploy/ runs one locally.

Jobs on a schedule

Run jobs hourly, daily, weekly, monthly, or on a cron schedule in your time zone. Each run is a regular job with the same checks and deliverables. A run is skipped if the previous one is still working, and a schedule that fails to start three times in a row pauses itself. Create one with spov jobs schedule create or on the Schedules page in the dashboard.

spov jobs schedule create deps --daily 02:00 \
  --repo acme/app --kind pr \
  "Update the dependencies and open a pull request"

Schedules run on a server with Postgres, just like jobs. Nothing runs while your laptop is asleep.

Ended when you quit, not lost

Modal bills a sandbox for as long as it runs, busy or idle. spov stops a session's sandbox when you quit, and by default after 30 minutes idle or 4 hours total. Leaving a dashboard tab open doesn't count as activity; an attached terminal does. Stopped sessions aren't lost: for 7 days, spov resume reopens them from a snapshot with your uncommitted edits and installed packages intact.

Terminal or browser

spov fly hands your terminal to OpenCode's TUI, and spov fly --web opens its web UI. A server with Postgres adds a web dashboard to start and steer sessions and jobs, attach images and skills to messages, answer agent questions, and track estimated sandbox costs.

A session

  1. You run spov fly in a clean git checkout.Commit or stash uncommitted changes first. Or start remote-first from anywhere: spov fly --repo owner/name clones one or more repositories directly from your forge.
  2. spov creates a Modal sandbox and clones the repository at your current branch, including unpushed commits.With --repo, it clones each repository's default branch.
  3. It waits for OpenCode, then hands your terminal to the TUI.While it boots, the launcher shows progress and an estimated hourly cost.
  4. You work with the agent in OpenCode's TUI. It edits files and runs commands inside the sandbox, not on your machine.It can also push a branch and open a pull request from there.
  5. You quit. The agent's commits and uncommitted changes sync back to your checkout, and the sandbox is terminated.A --repo session has no local checkout to sync to; its work leaves the sandbox as a push or pull request.
Fig. 2. How the parts connect. spov serve holds credentials, creates sandboxes, and supervises jobs. Locally, the CLI starts and stops it automatically.

Install

Pre-1.0. Everything here works and is tested against real Modal, GitHub, GitLab, and Forgejo, though flags and interfaces may still change between releases.

You need

  • Linux or macOS (WSL on Windows) with git
  • a Modal account, where sandboxes run and are billed
  • a GitHub account with gh signed in, or a GitHub App (Forgejo, Gitea, and GitLab work too)
  • a model: an API key like ANTHROPIC_API_KEY, or an OpenCode Go or Zen subscription
  1. Install spov with the pinned OpenCode 2 client

    curl -fsSL https://github.com/jimutt/spov/releases/latest/download/install.sh | sh -s -- --with-opencode

    spov installs to ~/.local/bin and updates cleanly with spov update. The install script verifies release checksums (and Sigstore signatures if cosign is installed).

    With Homebrew, brew install jimutt/tap/spov installs spov alone; install OpenCode 2 separately.

  2. Set up this machine

    spov init

    Walks you through connecting Modal, GitHub, a model, and building the base sandbox image, asking before every change.

  3. Launch a session from a checkout

    cd your-repo
    spov fly

    From any other directory, spov fly --repo owner/name launches a repository's default branch instead.

Questions

Something else? Ask in an issue.

What does it cost?

spov itself is free under the MIT license. You pay Modal for sandboxes while they're running, and your model provider for the model.

Which models can I use?

Anthropic, OpenAI, OpenRouter, or any other provider spov supports, or an OpenCode Go or Zen subscription. spov init sets up either. See model providers.

Does it only work with GitHub?

No. GitLab, Forgejo, Gitea, self-hosted servers, and GitHub Enterprise all work too. spov init sets up GitHub; other forges are configured manually as described in forges.

Is it ready to use?

Yes. It's pre-1.0, so interfaces may still change between releases, but it's built for daily use. Be more cautious with hosted mode on a shared team server, as more security review is still planned there.

Does it run on Windows?

Through WSL. spov runs on Linux and macOS.

Is there a managed version?

No. You run spov on your own Modal account, or on your own server for a team. If you'd use a managed version, open an issue and let us know.

Does it work with agents other than OpenCode?

No, and none are planned. spov is built specifically for OpenCode: sessions, jobs, and the dashboard all work through it.

Can it use sandboxes other than Modal?

Not right now. Other providers may come if there's demand, so if you need one, open an issue.

Why the birds?

spov comes from storspov, Swedish for the Eurasian curlew: the long-billed bird in the launcher at the top of the page. I'm a birder and bird photographer, so the name stuck. The smaller birds flying past in the background are just passing through, like the sandboxes.

What spov does, in three minutes