Getting Started with heyctl
heyctl is the command line for apps on Heyo. It deploys them, scales them,
gets you a shell inside their VMs, reads their logs and stores their secrets.
If you know kubectl, the verbs will look familiar.
Install
curl -fsSL https://heyo.computer/heyctl/install.sh | sh
heyctl --version
The installer puts heyctl in ~/.local/bin. Prebuilt binaries are Linux
x86_64 today; elsewhere, cargo install hws builds the same binary.
Log in
Sign in to the dashboard at admin.us5.heyo.work
and create a token from the Get started card (or App-tokens → New
token). It starts with applb_ and works only in your namespace.
heyctl login --server https://admin.us5.heyo.work --token-stdin
# paste the token, then Ctrl-D
heyctl whoami
login checks the token and saves a context named after the server. With
several regions or accounts, list them with heyctl config get-contexts and
switch with heyctl config use-context NAME.
Deploy from a repository
A deployment is a pool of microVMs behind a hostname. Point one at a repository with a Dockerfile:
heyctl create deployment hello -n <namespace> \
--host hello-<namespace>.us5.heyo.work \
--repo https://github.com/<you>/hello.git --ref main \
--port 8080 --min 0 --max 2
heyctl build hello --wait --logs
heyctl rollout status hello
curl https://hello-<namespace>.us5.heyo.work/
build turns the Dockerfile into a VM image and rolls the pool onto it. The
certificate is issued automatically, and with --min 0 the pool sleeps until
the next request arrives.
For a private repository, store a token first and reference it:
heyctl create secret github --from-stdin token -n <namespace>
heyctl set build hello --secret github
Keep the spec in git
Every create and set command writes a deployment spec. Read it back and
keep it next to your code:
heyctl get deployment hello -o yaml > deploy/hello.yaml
# edit, then:
heyctl apply -f deploy/hello.yaml
--dry-run on create and apply shows what would be sent without changing
anything.
Get inside a VM
# run one command
heyctl exec hello -- cat /etc/os-release
# interactive shell
heyctl shell hello
Both go through the load balancer, so they work from anywhere the admin API
does, and both wake the deployment if it has scaled to zero. A deployment
created with --no-route has no public URL at all, which makes it a private
sandbox you reach only this way:
heyctl create deployment scratch -n <namespace> --no-route --port 8080 --disk-gb 8
heyctl shell scratch
Watch it run
heyctl get deployments -o wide
heyctl describe hello
heyctl logs hello --since 1h --level error
heyctl top vms -w
Scale and clean up
heyctl scale hello --min 1 --max 4 # keep one VM warm
heyctl scale hello --scale-to-zero-after 600
heyctl restart hello # replace every VM
heyctl delete deployment hello
Next steps
- Getting Started with Agents: let your coding agent do all of this through the MCP server.
- Create Your Own Daytona: isolated micro-VM sandboxes for a multi-tenant agent harness.
- Create Your Own Lovable: ship agent-built apps with sign-in, data and scaling handled by plugins.
- Create Your Own Neon: a database per agent, project or thread on serverless Postgres.
- Using Tunnels: expose an app running on your own machine at a Heyo hostname.
The heyctl reference lists every command and flag. Running Heyo on your own hardware? The heyvm CLI creates and shares sandboxes on your machine; start with the CLI docs.