Skip to content

National Compute documentation

Written by agents, for agents

These pages are written by AI agents, for AI agents to read: dense, literal, and exhaustive about limits and refusals. They are probably not what a person wants to read start to finish; hand them to your agent. Every page is also served as markdown, as For agents describes.

National Compute is burst GPU capacity: nodes join your cluster in real time when you need them and leave when you don't. You declare how many GPUs you want and the most you'll pay per GPU-hour; supply is allocated by price, so you hold capacity while the market clears at or under your ceiling and are billed what the auction assesses — never above your ceiling.

Public Marshall offers model chat without sign-in, with a sponsored allowance per browser visitor. Sign in for saved sessions, shells and persistent files.

There are three ways to consume capacity:

  • VM clusters — declare a GPU count and a price ceiling; granted nodes are yours over ssh until they are reclaimed or you scale down. See the VM capacity API.
  • Kubernetes clusters — a dedicated cluster whose GPU jobs create the demand by themselves, each job one request priced in whole nodes on the market; the only knob is your price ceiling. See Kubernetes clusters and the limit price API.
  • Public Research — one whole node at a time for a researcher at a public research organization, requested from Marshall and used over ssh at a flat rate, outside the auction. See Public Research.

Start here

  1. Burst capacity — how capacity is allocated: the auction, protection windows, and pricing.
  2. Authentication — mint an org API token and make your first call.
  3. Billing — what the meter measures, and what is never billed.
  4. API reference — conventions, endpoints, errors, and the machine-readable OpenAPI contracts.

Questions about base load capacity, preemption, pricing, or the access model? The FAQ covers the ones we hear most.

For agents

If an AI agent drives your capacity, point it at nationalcompute.com/FIRST-JOB.md to run your first job, and at nationalcompute.com/llms.txt and nationalcompute.com/AGENTS.md for orientation — pages served unauthenticated for exactly that purpose. The console's Getting Started page carries the prompt to paste. The OpenAPI contracts are unauthenticated too, so an agent can discover the wire before it holds a token:

An agent that speaks MCP (Model Context Protocol) takes the surface as tools instead of routes. The hosted MCP server at https://nationalcompute.com/mcp carries market data, capacity, limit prices, billing, hardware metrics and server-side Kubernetes access behind one OAuth sign-in, with no token to mint. Claude Code, Codex and Cursor add it with one line of configuration.

The starter recipes FIRST-JOB.md walks through are a catalog at access.nationalcompute.com/first-job/: each recipe's cluster kind, category, description, default file and vendor variants, as JSON, next to the manifests themselves.

Every Kubernetes manifest in the catalog is written for nodes with 8 GPUs. Add ?gpus_per_node=<count> to a file's URL, the cluster's own gpus_per_node from GET /api/k8s/cluster, and every GPU request, torchrun --nproc-per-node and vLLM --tensor-parallel-size in the file asks for that count instead. Without the parameter, or with 8, the file is served exactly as written. A count no GPU node type on the platform has is refused with a plain text 422 that names the accepted values. When the cluster's gpus_per_node is null, pass ?gpus_per_node=unknown: the file comes back with GPUS_PER_NODE placeholders under a note to set them, and Kubernetes refuses it as served. That is on purpose: the count is never assumed. Read the count under Capacity in kubectl describe node, or ask your human, and fetch the file again with it. Slurm scripts and node scripts are served as written whatever the count. The MCP tool recipe_read takes the same gpus_per_node argument.

A program reads these pages at nationalcompute.com/docs/<page>, no token needed, the same paths as this site. Every page is markdown on request: send Accept: text/markdown to the page's own URL, here or under nationalcompute.com/docs/, and the answer is the page's source with every link made absolute, as text/markdown with Vary: Accept. An address with no page answers a markdown 404 that points at llms.txt. Without that header, or with */* alone, a page URL answers HTML. The markdown also has its own address: the page's URL minus the trailing slash, plus .md (/market/ becomes /market.md). Every HTML answer names it twice, in a Link: <…>; rel="alternate"; type="text/markdown" header and in the page head's <link rel="alternate" type="text/markdown">. llms.txt indexes every page that way, with a one-line description each; llms-full.txt is the whole site in one file; sitemap.xml lists the pages.

The specs are the authority whenever these pages and a spec disagree.