dock

Isolated Linux machines for agents.

On your laptop, your servers, or our cloud.

Each dock is a microVM with its own kernel and a disk that stays. Stop it, resume it, branch it into copies. Bring any agent.

curl -fsSL https://usedock.io/install | sh
dock lsone host, many docks
context: local
$ dock new api --image node-22created api (dk_7f3a2c…) state=ready$ dock exec api -- uname -sLinux$ dock branch api --count 3stopping api for a consistent copybranched api -> dk_3e9a41… (dk_3e9a41…)branched api -> dk_b41d07… (dk_b41d07…)branched api -> dk_c08e5a… (dk_c08e5a…)$ dock stop apistopped api state=archived
api stopped · 3 copies running
Its own kernel
Every dock is a Firecracker microVM, or gVisor where KVM is missing. On a laptop, a QEMU VM.
A disk that stays
Stop releases compute. Resume brings back the same id and files.
Copies in one command
Branch a prepared dock into as many as you need.
Open source
AGPL-3.0. Self-hosting is free, with every feature.

Five verbs. That is the product.

The same lifecycle on every machine. Nothing to configure before your first dock.

  • apidk_7f3a2c…ubuntu-24.04 · 2 vCPU · 4 GB · 20 GB

    dock new

    A fresh Ubuntu machine with root, Docker and network. Set CPUs, memory and disk as numbers, or take the defaults.

  • $ dock exec api -- uname -sLinux$ dock ssh apiuser@api:~$

    dock exec · ssh

    Run a command over the API, or open a shell.

  • apidk_7f3a2c…CPUMemoryDiskstopped · disk kept

    dock stop

    Compute is released. The disk is kept.

  • apidk_7f3a2c…running · same id/home/user/worknode_modules/src/.env.local

    dock resume

    The same dock comes back: same id, same files.

  • apidk_3e9a41…dk_b41d07…dk_c08e5a…

    dock branch

    Prepare a dock once, then copy it. Every copy starts where the original is and goes its own way.

  • dock portAn https URL for a port in the dock, private to your organization by default. On a laptop, a forward to localhost.
  • dock lsEvery dock in the workspace, running or stopped.
  • dock contextPoint the same commands at another control plane. dock push and dock pull move a dock between your laptop and a control plane.

Your laptop, your servers, or ours.

Run docks on your laptop with no account, or point the dock CLI at a control plane on your servers or, soon, Dock Cloud.

Your laptop

The dock binary runs docks on your own machine with no account: QEMU with KVM on Linux, or Windows Hypervisor Platform on Windows. macOS builds but is not tested yet.

dock new web

Your servers

One command starts a control plane for your team: shared docks, snapshots and connectors.

./setup.sh --url https://dock.example.com

Dock CloudComing soon

The same API and the same docks, run by us. Point the CLI at it and keep working.

dock login

Hosts dial out. Nothing listens.

A host opens an outbound connection to the control plane and waits for work, so it runs behind a firewall or NAT with no inbound ports. It takes no work until its readiness checks pass.

  • Linux with KVMFirecracker microVMsAvailable
  • Linux with DockergVisorAvailable
  • WindowsFleet host. Local docks run on Windows today.Planned
  • macOSFleet host. Local docks build but are untested.Planned

Connect your tools. Keep the keys.

Connectors let agents in your docks work in GitHub, Figma and the rest of your stack, and let those tools start work in Dock.

  1. Issue #214mentioned

    @dock fix the flaky login test

    acme/api

  2. dock-4e1b9c07finished

    Agent runs in a fresh dock

    branch dock/run-9a2f6d18

  3. Pull request #215opened

    Fix race in session refresh

    3 files changed

The agent calls an API from inside the dock.The request carries a dock-scoped token, not the real one.Dock's gateway adds the real credential.The tool sees an authorized request.The response comes back. The key never entered the dock.DockPOST /graphqlDock's gatewayoutside the dockLinear APIapi.linear.app200 OKWorkspace credentialsreal tokens live heredock tokenBearer ••••••
  • Connect oncePer workspace: an app install, a token, or OAuth.
  • TriggersA mention, an assignment or a new error starts work in a dock.
  • ActionsAgents use the tool through its official API or MCP server.
  • CredentialsThe dock holds a dock-scoped token; Dock's gateway adds the real key on the way out.
  • GitHubAvailable

    Mention @dock on an issue and a dock opens the pull request.

  • Model keysAvailable

    Anthropic, OpenAI and OpenCode keys stay behind Dock's LLM gateway.

  • FigmaAvailable

    Mention @dock in a comment and the agent replies in the thread.

  • LinearAvailable

    Assign an issue and a dock picks it up.

  • SlackAvailable

    Start a dock from a thread and get the result back there.

  • SentryAvailable

    Opt in, and a new issue starts a dock; the result posts back as a note.

A machine, not a container.

How a dock compares with the usual ways to give an agent somewhere to run.

Dock compared with containers, hosted sandbox APIs and cloud VMs
CapabilityDockContainersHosted sandbox APIsCloud VMs
IsolationDockOwn kernel (Firecracker), or gVisorContainersShared host kernelHosted sandbox APIsmicroVM or container, by providerCloud VMsOwn kernel
Disk after stopDockKept, same id on resumeContainersOnly mounted volumesHosted sandbox APIsSnapshots, often time-limitedCloud VMs
Copies of a running machineDockdock branch --count 3ContainersHosted sandbox APIsSome providersCloud VMsFrom images only
Runs on your laptopDockLinux and Windows, no accountContainersHosted sandbox APIsCloud VMs
Open source, self-hostDockAGPL-3.0, one commandContainersHosted sandbox APIsRarelyCloud VMs
Keys kept outsideDockDock's gateway adds keysContainersHosted sandbox APIsSome providersCloud VMs

Comparing products? Read Dock against E2B, Modal, Vercel Sandbox and more

Drive it from code.

The CLI, the REST API, and the TypeScript, Python and Go SDKs use the same verbs. Bring any agent: installing one is a line in your setup script.

  • CLIdock new, exec, stop, resume, branch.
  • REST APIThe same verbs over HTTP.
  • SDKsTypeScript, Python and Go, with the same names. Install from GitHub; not on npm or PyPI yet.
  • dock.tomlA repeatable dock: name, image, size and environment.
import { Dock } from '@usedock/sdk' const dock = new Dock()   // DOCK_API_URL, DOCK_API_KEYconst api = await dock.docks.create({ workspaceId, name: 'api', image: 'node-22' })await dock.docks.exec(api.id, 'git clone https://github.com/acme/api && cd api && npm test')const copy = await dock.docks.branch(api.id, { name: 'api-copy' })await dock.docks.stop(api.id)

Pay only for what runs.

For Dock Cloud when it launches; self-hosting is free. Every dock is the same product, and plans only change limits and support.

  • vCPU-hourCPU while a dock runs
  • GB-hourMemory while a dock runs
  • GB-monthDisk and snapshots, also while stopped
  • GBEgress

Start a dock in a minute.

Install the CLI, run dock new, and you have a machine.