An orca plugin that runs each workspace in an isolated tenki.cloud sandbox — a per-second-billed cloud Linux VM. Fan a prompt across five agents and each one gets its own disposable machine: your laptop stays clean, and a runaway agent can't touch anything but its own sandbox.
- Create a worktree → a Tenki sandbox boots, your repo is cloned into it, and orca's terminals, git, and file browsing all run there over SSH.
- Sleep the worktree → the sandbox pauses (billing stops).
- Wake it → the sandbox resumes where it left off.
- Delete the worktree → the sandbox is terminated.
- macOS or Linux (recipe commands are POSIX sh; Windows is not supported yet)
- The Tenki CLI, signed in (
tenki login) — new accounts get $10/month in free credit, no card required python3ornodeonPATH(used to parse/emit JSON; macOS ships python3)
Until this is listed in the orca plugin marketplace, load it as a dev plugin:
- Clone this repo.
- In orca: Settings → Plugins → Add dev plugin, and pick the cloned folder.
- Approve the consent prompt (orca shows every recipe command before enabling a plugin that contributes VM recipes).
- When creating a workspace, choose the Tenki Sandbox environment.
Everything works with defaults. Override with environment variables (set them in orca's environment or your shell profile):
| Variable | Default | Meaning |
|---|---|---|
TENKI_ORCA_CPU |
4 |
vCPU cores per sandbox |
TENKI_ORCA_MEMORY_MB |
8192 |
Memory per sandbox |
TENKI_ORCA_DISK_GB |
Tenki default | Root disk size |
TENKI_ORCA_IDLE_TIMEOUT |
30m |
Auto-pause after inactivity (cost backstop) |
TENKI_ORCA_IMAGE |
Tenki base image | Registry image ref (bake your toolchain for fast boots) |
TENKI_ORCA_SNAPSHOT |
— | Snapshot ID to restore from (near-instant warm starts) |
TENKI_ORCA_GIT_TOKEN |
— | Token injected into the clone URL for private HTTPS repos |
TENKI_ORCA_CLI |
auto-detected | Path to the tenki CLI binary |
Tip: build a template with git + Node + your project's toolchain preinstalled
(tenki sandbox template create), publish it, and set TENKI_ORCA_IMAGE —
first connect is much faster because orca's SSH relay needs Node on the remote.
Orca plugins can contribute VM recipes (contributes.vmRecipes): a JSON
artifact whose create/suspend/resume/destroy entries are self-contained
shell commands. create provisions a sandbox with the tenki CLI, clones the
repo inside it, and prints a connection descriptor orca parses from stdout:
{
"schemaVersion": 1,
"connection": {
"type": "ssh",
"target": {
"label": "Tenki orca-my-branch",
"configHost": "sbx-<session-id>",
"host": "sandbox", "port": 22, "username": "tenki",
"identityFile": "~/.config/tenki/ssh/id_ed25519",
"identitiesOnly": true
},
"projectRoot": "/home/tenki/<repo>"
},
"userData": { "tenkiSessionId": "<session-id>" }
}Tenki SSH has no raw public host/port — it tunnels through a WebSocket gateway
using a ProxyCommand plus short-lived certificates, managed in
~/.ssh/config.d/tenki.conf by tenki sandbox ssh config install. The recipe
refreshes that managed config on create/resume/destroy and points orca at the
sbx-<session-id> alias via configHost.
The command strings in recipes/tenki-sandbox.json are generated — edit the
readable sources in scripts/phases/ and rebuild:
node scripts/build.mjs- "tenki CLI not found" — install the CLI or set
TENKI_ORCA_CLI. - Create fails with an auth error — workspace API keys expire after 30
days; re-run
tenki login(ortenki onboard). - SSH never connects — run
tenki sandbox ssh config status;installedshould betrue. Then tryssh sbx-<session-id>in a terminal to isolate orca from transport issues. - Orphaned sandboxes — every sandbox this plugin creates carries metadata
managed=orca-tenki-plugin; list them withtenki sandbox list --jsonand terminate strays withtenki sandbox terminate --session <id>.
orca-plugin.json # plugin manifest (contributes.vmRecipes)
recipes/tenki-sandbox.json # generated recipe artifact — do not edit by hand
scripts/phases/*.sh # readable sources for the four lifecycle commands
scripts/build.mjs # inlines phases into the recipe artifact
PLAN.md # integration plan and upstream strategy