# NestForge > NestForge sells small Linux VPS by the hour to AI agents and developers. Agents buy servers over a REST API or MCP and pay in USDC with x402 (HTTP 402). No account is needed, and they get root SSH in under a minute. Key facts: - Base URL: https://nestforge.cloud (also https://api.nestforge.cloud). MCP (streamable HTTP): https://mcp.nestforge.cloud/mcp - Flow: GET /v1/plans -> POST /v1/instances (402 + x402 quote) -> sign accepts[0], retry with PAYMENT-SIGNATURE -> 201 with id + access_token -> poll GET /v1/instances/{id} until running -> ssh - The access_token returned on create is the only credential. Keep it. - Humans: https://nestforge.cloud/launch (buy with a browser wallet) and https://nestforge.cloud/dashboard (Sign-In with Ethereum, browser terminal). - Prepaid 1-744 hours; extend anytime; deleted automatically at expiry; no refunds for unused time. - nano: 1 vCPU, 512 MB RAM, 5 GB disk, $0.005/hour (about $3.65/month) - micro: 1 vCPU, 1 GB RAM, 10 GB disk, $0.01/hour (about $7.30/month) - Images: debian-12 (Debian 12), ubuntu-24.04 (Ubuntu 24.04 LTS) - Payment: x402 v2, scheme exact, USDC on Base Sepolia (eip155:84532), testnet during early access ## Docs - [Quickstart and API overview](https://nestforge.cloud/docs): endpoints, statuses, errors, limits - [MCP server](https://nestforge.cloud/docs/mcp): hosted and local setup, the 9 tools - [x402 payments](https://nestforge.cloud/docs/x402): quote, sign, settle, receipts, error reasons - [Pricing](https://nestforge.cloud/pricing): live plans and billing rules - [Full text for LLMs](https://nestforge.cloud/llms-full.txt) ## Machine-readable - [OpenAPI 3 spec](https://nestforge.cloud/openapi.json) - [Plans JSON](https://nestforge.cloud/v1/plans) - [MCP Server Card](https://mcp.nestforge.cloud/mcp/server-card) - [AI Catalog](https://nestforge.cloud/.well-known/ai-catalog.json) - [x402 discovery manifest](https://nestforge.cloud/.well-known/x402) ## Optional - [About](https://nestforge.cloud/about) - [Terms (draft)](https://nestforge.cloud/terms) - [Privacy (draft)](https://nestforge.cloud/privacy) - Contact: support@nestforge.cloud --- # NestForge: full reference for agents ## What you get Each VPS is an Incus system container (LXC): its own systemd, root user, private IPv4, hard CPU/RAM/disk/bandwidth limits. It shares the host kernel, so there are no kernel modules or nested containers. SSH runs on a dedicated forwarded port on the host's public IPv4, key-only (password login disabled). Outbound internet is allowed except SMTP port 25. ## Plans (live) - nano: 1 vCPU, 512 MB RAM, 5 GB disk, $0.005/hour (about $3.65/month) - micro: 1 vCPU, 1 GB RAM, 10 GB disk, $0.01/hour (about $7.30/month) - Images: debian-12 (Debian 12), ubuntu-24.04 (Ubuntu 24.04 LTS) - Payment: x402 v2, scheme exact, USDC on Base Sepolia (eip155:84532), testnet during early access ## REST API Base URL https://nestforge.cloud. OpenAPI: https://nestforge.cloud/openapi.json. Interactive reference: https://nestforge.cloud/api-docs | Method | Path | Auth | Purpose | |---|---|---|---| | GET | /v1/plans | none | plans, prices, images, payment network, capacity | | POST | /v1/instances | x402 | create a VPS: {"plan","image","ssh_public_key","hours"} | | GET | /v1/instances | Bearer | list your active VPS | | GET | /v1/instances/{id} | Bearer | status, ssh command, expiry | | POST | /v1/instances/{id}/stop, /start, /reboot | Bearer | power control | | POST | /v1/instances/{id}/extend | x402 | add paid hours: {"hours"} | | DELETE | /v1/instances/{id} | Bearer | destroy now | Statuses: provisioning -> running <-> stopped -> deleted | expired; error if boot failed. Errors: 402 payment required or rejected (body.error says why), 401 missing token, 404 unknown id or not yours, 409 bad power transition, 422 validation, 503 sold out. ```bash # 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: -> 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@ ``` ```bash 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" ``` ## Paying with x402 from Python ```python # 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()) ``` ## x402 details - 402 body = x402 v2 PaymentRequired; the same object is base64 in the PAYMENT-REQUIRED header. - Retry with PAYMENT-SIGNATURE (v1 clients: X-PAYMENT). Success returns PAYMENT-RESPONSE with the settlement tx hash. - Payloads are single-use (replays rejected). Amount, network, asset and payTo must match the quote exactly. - The 402 carries an x402 "bazaar" discovery extension (input/output JSON Schemas) so facilitators can catalog the endpoints. ## MCP Hosted (no keys on the server; tools return payment_required until paid): ```json { "mcpServers": { "nestforge": { "url": "https://mcp.nestforge.cloud/mcp" } } } ``` Local stdio with an agent wallet that auto-pays: ```json { "mcpServers": { "nestforge": { "command": "python", "args": ["-m", "mcp_server.server"], "env": { "NESTFORGE_API_URL": "https://nestforge.cloud", "NESTFORGE_PAYER_PRIVATE_KEY": "0x" } } } } ``` Tools: list_plans, create_vps, list_vps, get_vps, stop_vps, start_vps, reboot_vps, extend_vps, delete_vps. ## FAQ ### Do I need an account or an email address? No. A valid x402 payment is all you need to create a VPS. Over the API you get an access_token, the only credential for that VPS. In the browser you sign in with your wallet instead: a free signed message, no password. ### Can I buy and use a VPS without writing code? Yes. Open the Launch page, pick a plan, paste or generate an SSH key, and pay with MetaMask or any EVM wallet. Your dashboard then shows status, the SSH command and a countdown, has stop, start, reboot, extend and delete buttons, and opens a root terminal right in the browser. ### How do I pay? In USDC through x402, the HTTP 402 payment protocol. Call the API without paying and you get a 402 response with the exact price, network, token and receiving address. Your x402 client signs a USDC transfer authorization (EIP-3009) and retries. We verify and settle it on-chain through an x402 facilitator before the VPS is created. The network currently accepted is shown live on the pricing page. ### Is it a full virtual machine? Each NestForge VPS is an Incus system container (LXC). It has its own init and systemd, root access, its own network namespace and hard limits on CPU, memory, disk and bandwidth. It shares the host kernel, so you cannot load kernel modules or run nested containers. ### How do I connect? You send an OpenSSH public key when you create the VPS. When it is running, the API returns an ssh command with a dedicated port on the host's public IPv4. Password login is disabled; only your key works. ### What happens when my paid time runs out? The VPS and its disk are deleted automatically shortly after expires_at. To keep it, call the extend endpoint (or the extend_vps MCP tool) and pay for more hours before it expires. Anyone holding the VPS id can pay to extend it. ### Does a stopped VPS still use paid time? Yes. Time is prepaid and keeps counting while the VPS is stopped, because its disk, port and capacity stay reserved for you. Delete it when you are done. ### Can I get a refund for unused hours? No. Deleting a VPS early does not refund the remaining prepaid time, so buy the hours you need and extend later if required. ### What is not allowed? Outbound SMTP on port 25 is blocked, bandwidth is limited per VPS and abuse such as spam, scanning, attacks or illegal content leads to deletion without refund. See the Terms for the full acceptable use rules. ### Can humans use it too? Yes. Everything is plain HTTP: curl plus any x402-capable wallet client works, and the interactive API reference lets you explore every endpoint.