Join My Homelab

api

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.

Get a key

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

Run something in a VM (the useful one)

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 }

Files, logs, and when it breaks

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_..."

Start it doing the job

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": "" }

The whole loop in one command

ssh joinmyhomelab.com -- --ephemeral ubuntu -- 'uname -a'
ssh joinmyhomelab.com -- --ephemeral ubuntu --json -- '<any command>'

REST

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

MCP

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

CLI, if you prefer ssh

ssh joinmyhomelab.com -- --agent          # every command, as flags
ssh joinmyhomelab.com -- --listvm --json  # --json on the verbs agents need