One key for the HTTP API and MCP. The ssh dashboard and the API are the same machine — anything you can do there, you can do here.
ssh joinmyhomelab.com -- --api-key-new ci # shown once
ssh joinmyhomelab.com -- --api-keys # list
ssh joinmyhomelab.com -- --api-key-revoke <id> # cut it off
--ro for a read-only key. On your own machine you need no key at all: your SSH key is the account.curl -s https://joinmyhomelab.com/v1/vms/myvm/exec \
-H "Authorization: Bearer rmhl_..." -H 'Content-Type: application/json' \
-d '{"command":"uname -a","timeout_seconds":60}'
{ "vm": "myvm", "stdout": "Linux myvm 6.8.0 ...\n", "stderr": "", "exit_code": 0, "truncated": false }
curl -s -X PUT https://joinmyhomelab.com/v1/vms/myvm/files?path=/root/run.sh \
-H "Authorization: Bearer rmhl_..." --data-binary @run.sh
curl -s "https://joinmyhomelab.com/v1/vms/myvm/files?path=/etc/os-release" -H "Authorization: Bearer rmhl_..."
curl -s https://joinmyhomelab.com/v1/vms/myvm/console -H "Authorization: Bearer rmhl_..."
curl -s https://joinmyhomelab.com/v1/vms/myvm/diag -H "Authorization: Bearer rmhl_..."
curl -s https://joinmyhomelab.com/v1/vms \
-H "Authorization: Bearer rmhl_..." -H 'Content-Type: application/json' \
-d '{"distro":"ubuntu","cpu":2,"ram":4,"disk":20,"name":"job","start":"apt-get update && ./seed.sh"}'
{ "name": "job", "state": "creating", "arch": "amd64", "startup_state": "" }
startup_state, startup_exit and startup_log — no console-watching, and no orchestration on your side.ssh joinmyhomelab.com -- --ephemeral ubuntu -- 'uname -a'
ssh joinmyhomelab.com -- --ephemeral ubuntu --json -- '<any command>'
GET /v1/me account, credits, month spend
GET /v1/usage per-VM charges
GET /v1/vms list
POST /v1/vms {"distro":"ubuntu","cpu":2,"ram":4,"disk":20,"name":"x"}
GET /v1/vms/<n> one VM
POST /v1/vms/<n>/exec {"command":"..."} -> stdout, stderr, exit_code
POST /v1/vms/<n>/start|stop|restart|delete|pause|unpause
POST /v1/vms/<n>/resize {"cpu":4,"ram":8,"disk":40}
GET /v1/vms/<n>/snapshots POST .../snapshots POST .../restore {"snapshot":"..."}
POST /v1/vms/<n>/clone POST .../export POST .../ports POST .../domains
{"error": "..."} with a real HTTP status. Read-only keys may only GET.https://joinmyhomelab.com/mcp # streamable HTTP JSON-RPC
tools: list_vms vm_info create_vm vm_action vm_resize vm_exec
vm_put_file vm_get_file vm_console vm_diag
vm_snapshot vm_snapshots vm_restore vm_clone usage list_env set_env apply_env
vm_exec {name, command} is the same thing as the REST exec. Drop the URL and your key into Claude Code, Codex, opencode or any MCP client.ssh joinmyhomelab.com -- --agent # every command, as flags
ssh joinmyhomelab.com -- --listvm --json # --json on the verbs agents need
--json works on --createvm --listvm --vminfo --credits --vm-start/stop/restart/delete --ephemeral, and returns the same fields as the API.