selfhost
Self-host on Vast.ai
A GPU marketplace — the cheapest 4090s/A100s anywhere, rented from other people's machines. Great for experiments; expect variable reliability (hosts can be interruptible).
Credentials
cloud.vast.ai → Keys → VAST_API_KEY.
pip install vastai
vastai set api-key $VAST_API_KEYDeploy
Find a machine and rent it with the vLLM-friendly PyTorch image:
vastai search offers 'gpu_name=RTX_4090 num_gpus=1 inet_down>200' -o 'dph+' | head
vastai create instance <offer-id> \
--image pytorch/pytorch:latest --disk 60 --ssh --direct
vastai show instances # grab ssh host/port when it's runningSSH in (note the custom port) and serve:
ssh -p <port> root@<host>
pip install vllm
vllm serve Qwen/Qwen3-8B --host 0.0.0.0 --port 8000 \
--enable-auto-tool-choice --tool-call-parser hermesReach it via an SSH tunnel (recommended on a marketplace box — don't expose an unauthenticated server):
ssh -p <port> -N -L 8000:localhost:8000 root@<host>/connect http://localhost:8000/v1 Qwen/Qwen3-8BTeardown
vastai destroy instance <instance-id> # bills while it existsLet your agent do it
mkdir -p ~/.claude/skills/selfhost-vastai
curl -o ~/.claude/skills/selfhost-vastai/SKILL.md https://mantisagent.cc/skills/vastai.md