Web dashboard (no code)
People can do everything from the browser. Launch a VPS with MetaMask or any EVM wallet: pick a plan, paste or generate an SSH key, and pay in USDC with x402 (a gasless signature). The dashboard signs you in with your wallet (Sign-In with Ethereum) or an API access token. It lists your servers with status, SSH command and time left, and has stop, start, reboot, extend, delete and a root terminal in the browser.
Quickstart
You need an SSH key pair and a wallet that can sign x402 payments in USDC on the network returned by /v1/plans.
- Pick a plan:
curl https://nestforge.cloud/v1/plans - Request a VPS. Without payment you receive 402 Payment Required with an x402 quote in the body and in the
PAYMENT-REQUIREDheader. - Sign
accepts[0]with your x402 client and retry the same request with thePAYMENT-SIGNATUREheader. - Store the
access_tokenfrom the 201 response, poll untilstatusisrunning, then use the returnedsshcommand.
# 1. Ask for a VPS. No account: the server answers 402 with an x402 price quote.
curl -i -X POST https://nestforge.cloud/v1/instances \
-H 'content-type: application/json' \
-d '{"plan":"nano","image":"debian-12","hours":2,
"ssh_public_key":"'"$(cat ~/.ssh/id_ed25519.pub)"'"}'
# HTTP/2 402
# payment-required: eyJ4NDAyVmVyc2lvbiI6Mi... (base64 PaymentRequired)
# 2. Sign accepts[0] with any x402 client and retry with
# PAYMENT-SIGNATURE: <base64 payload> -> 201 Created + access_token
# 3. Poll until running, then SSH in.
curl https://nestforge.cloud/v1/instances/vps-xxxx -H "Authorization: Bearer nf_..."
ssh -p 22001 root@<host-ip>Pay from code
The official x402 Python client handles the 402 → sign → retry loop for you. Use a wallet funded with USDC on the accepted network.
# pip install "x402[evm,httpx]" eth-account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm.exact import register_exact_evm_client
from x402.mechanisms.evm.signers import EthAccountSigner
async def main():
client = x402Client()
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["PAYER_KEY"])))
async with x402HttpxClient(client, base_url="https://nestforge.cloud", timeout=120) as http:
r = await http.post("/v1/instances", json={
"plan": "nano", "image": "debian-12", "hours": 1,
"ssh_public_key": open(os.path.expanduser("~/.ssh/id_ed25519.pub")).read().strip(),
})
print(r.status_code, r.json()) # 201 + id, access_token, ssh
asyncio.run(main())Manage a VPS
All management calls use the access_token as a Bearer token. If you pass an existing token in Authorization when creating, the new VPS joins the same token, so one agent can manage a fleet.
TOKEN=nf_... # returned once by POST /v1/instances
API=https://nestforge.cloud
curl $API/v1/instances -H "Authorization: Bearer $TOKEN" # list
curl -X POST $API/v1/instances/vps-xxxx/stop -H "Authorization: Bearer $TOKEN"
curl -X POST $API/v1/instances/vps-xxxx/start -H "Authorization: Bearer $TOKEN"
curl -X POST $API/v1/instances/vps-xxxx/reboot -H "Authorization: Bearer $TOKEN"
curl -X POST $API/v1/instances/vps-xxxx/extend -d '{"hours":24}' \
-H 'content-type: application/json' # 402 -> pay -> new expires_at
curl -X DELETE $API/v1/instances/vps-xxxx -H "Authorization: Bearer $TOKEN"Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /v1/plans | none | Plans, prices, images, payment network and capacity |
POST | /v1/instances | x402 payment | Create a VPS; returns id, access_token, ssh_port |
GET | /v1/instances | Bearer token | List your active VPS |
GET | /v1/instances/{id} | Bearer token | Status, ssh command, IPs, expiry |
POST | /v1/instances/{id}/stop | Bearer token | Power off (paid time keeps counting) |
POST | /v1/instances/{id}/start | Bearer token | Power on |
POST | /v1/instances/{id}/reboot | Bearer token | Reboot |
POST | /v1/instances/{id}/extend | x402 payment | Add paid hours |
DELETE | /v1/instances/{id} | Bearer token | Destroy now |
GET | /healthz | none | Liveness check |
Full schemas: API reference · openapi.json
Statuses & errors
A VPS moves through provisioning → running ⇄ stopped → deleted or expired. If boot fails it becomes error with a message and is cleaned up.
402: payment required, or the payment was rejected. The body'serrorsays why: malformed, mismatched amount or recipient, already used, invalid signature or settlement failed.401: missing Bearer token on list.404: unknown id, or a token that does not own it. We never reveal whether an id exists.409: power action on a VPS that is not running or stopped.422: invalid plan, image, hours or SSH key.503: sold out. Capacity is limited during early access, so retry later.
Limits
- Prepaid duration: 1 to 744 hours per payment, and extensions are unlimited.
- Images: Debian 12, Ubuntu 24.04 LTS.
- Network: SSH on a dedicated forwarded port of the host's public IPv4; private IPv4 inside the VPS; outbound internet allowed; outbound port 25 blocked; per-VPS bandwidth limit.
- Containers are unprivileged: no kernel modules, no nested containers.