← All guides

2026-06-25

Getting Started with Heyo Computer and Agents

Agents need some isolation to protect the host (your laptop). As a bonus, a sandbox VM is a convenient container for the work, one you can share and deploy without repackaging it. Going a step further, the coding agent you already use can scaffold sandbox VMs and infrastructure on Heyo Computer for you.

Outside of the Sandbox

Agents such as Claude Code and Codex can drive Heyo through its MCP server: create VMs, run commands in them, move files, deploy apps behind public URLs, read logs, and explain why a deployment won't boot.

First create a token: sign in to the dashboard at admin.us5.heyo.work and use the Get started card (or App-tokens → New token). It starts with applb_ and is confined to your namespace. Then add the hosted server to your agent:

claude mcp add --transport http heyo https://mcp.heyo.work/mcp \
  --header "Authorization: Bearer applb_…"

Other MCP clients take the same URL and header in their settings. Ask the agent to call heyo_status to confirm it is connected, then just describe what you want, e.g. create a sandbox VM in my namespace with an 8 GB workspace disk and install Node 22 in it. The MCP server docs list every tool.

For extra guidance on Heyo workflows, also install the agent skills:

# from the Skill CLI:
npx skills add heyo-computer/skills

# or get them from the public repo:
git clone https://github.com/heyo-computer/skills

Inside the Sandbox

The VM sandbox is a perfect isolation mechanism for agent workloads: headless jobs, autonomous agents, or an agent you run remotely and check in on from a browser.

Let's do that by hand with heyctl: create a VM with a public URL, grab a shell, install OpenCode and expose its web interface.

# install heyctl and log in with the same token
curl -fsSL https://heyo.computer/heyctl/install.sh | sh
heyctl login --server https://admin.us5.heyo.work --token-stdin

# a VM that serves port 3000 at a public URL; the health check watches sshd,
# so the VM counts as ready before OpenCode is running
heyctl create deployment opencode -n <namespace> \
  --host opencode-<namespace>.us5.heyo.work \
  --port 3000 --health-tcp --health-port 22 \
  --disk-gb 8 --min 0 --max 1 --idle-action retain

# get a shell (this boots the VM if it isn't running)
heyctl shell opencode
> heyo:~$

# install OpenCode and start the web interface
> heyo:~$ curl -fsSL https://opencode.ai/install | bash
> heyo:~$ OPENCODE_SERVER_PASSWORD=secret opencode web --hostname 0.0.0.0 --port 3000

Now open https://opencode-<namespace>.us5.heyo.work and log in to OpenCode (user opencode and the password you set above). OpenCode Login

(PS - don't throw an agent on the web unprotected, the web will not be kind to you. Set a password, or put the deployment behind a sign-in gate; see app-lb auth.)

Your agent can do the same thing through the MCP server: ask it to create the opencode deployment and install OpenCode with applb_exec.

Next Steps

Running Heyo on your own hardware instead? The heyvm CLI creates the same sandboxes on your machine; see the CLI docs.