Sell inference without a GPU
Turn an API key or a local model into a provider in ten minutes. This page is part of the P2P AI chapter of the TokenOS documentation.
- Sell inference without a GPU You do not need hardware to be a provider. A seller node is a small program that sits in front of something that already answers model requests — an API key you hold, or a model running on your own machine — and sells that capacity at a price you choose. Buyers pay in credits; you receive USDC on Solana for the tokens you actually served. A buyer's request arrives over an encrypted direct connection → your node forwards it to your upstream using your key → both sides count the tokens → the buyer signs the spend → you settle and TokenOS credits your USDC balance, net of the 4% protocol fee. Three ways to supply inference An OpenAI, Anthropic or Google key is enough. Typical sources: unused startup or cloud credits, committed-use or enterprise tiers you don't fully consume, prepaid quota, Azure OpenAI / Bedrock / Vertex allocations. Your key never leaves your machine; seller.json only references an environment variable. Ollama, vLLM, LM Studio, llama.cpp server or text-generation-inference on any GPU or Apple-silicon Mac. Point a provider block at the local URL and name the models buyers may request. Open-weight models carry no resale restriction — you own the capacity outright. One seller.json can hold several provider blocks — a cloud key for frontier models next to an open model you run yourself — each with its own prices, concurrency and model names. Ten-minute setup Node.js ≥ 20 on any laptop, Mac or VPS: npm i -g tokenos-p2p .
- The peer id is a Solana public key and, unless you register a separate --payout-wallet , doubles as your USDC payout wallet. Import the keypair of the wallet you want paid, or create a fresh one.
- seller setup probes the usual local ports (Ollama 11434, vLLM 8000, SGLang 30000, llama.cpp 8080, LM Studio 1234 — or --upstream <url> ), reads each engine's model list and context window, checks the GPU (NVIDIA via nvidia-smi, Apple Silicon unified memory; CPU-only is allowed), maps local names to catalog ids, suggests a price 25% under the vendor list price and writes ~/.tokenos-p2p/seller.json . Every prompt has a default; --yes accepts them all. Prefer a bare file? seller init still writes the sample.
- The wizard ends with seller register (name, region, optional payout wallet and email — the one-time uptime checklist plus a Monday digest). Your node is now pending : registered but not yet reachable.
- Set the environment variable your config references (for example OPENAI_API_KEY ) and run seller start . It keeps running in the foreground — use a second terminal for other commands. The node announces itself every 5 minutes and shows up in the catalog.
- The first 24 hours with a public endpoint are probation : uptime is measured from your 5-minute announces and must stay at or above 50%; after that the node is active . The state is informational (buyers route on price and trust, never on it) and shows in seller status , on your public peer page and in the provider console .
- seller status shows your balance, sessions, trust and lifecycle; seller checks the Proof-of-Model results; the provider console shows the same with payout controls.
Add more upstreams by appending provider blocks — this is how a key and a local model live side by side:
serviceCategories (node 0.5+) sells a service over a different route: embedding → /v1/embeddings , billed on the engine's prompt_tokens at your input price; audio → /v1/audio/transcriptions , billed per minute of audio via audioUsdPerMinute (from the engine's verbose_json duration, else the file size at ≈128 kbps — the buyer meters the same bytes, so receipts match). Your node turns the JSON it receives back into the multipart upload engines such as vLLM, faster-whisper or whisper.cpp servers expect. seller setup guesses the category from the model name (whisper, bge, e5, nomic, …) and asks for a per-minute price for speech models.
Upstream presets — where the capacity can come from
Anything that speaks the OpenAI HTTP shape can sit behind a provider block: set upstream.baseUrl for any compatible host and map buyer-facing model names to the host's ids with serviceModels . upstream.extraBody pins request fields on every call (for example a cheaper service tier) so buyers cannot switch them. Pick a preset below and paste it into your seller.json.
The catalog's "savings" column compares every offer with the model maker's list price (for open weights, the price large hosts publish). Price above what your upstream costs you and below that reference; the difference, net of the 4% protocol fee, is what you receive for metered usage. Nothing is guaranteed — buyers route cheapest-first, then by trust.
Pricing: how buyers pick you
Buyers route cheapest first, then trust , per model. The public catalog shows every offer next to the vendor's list price and the savings a buyer gets. You set USD per million input and output tokens (optionally a cached-input price) per service; buyers pay exactly that, converted at $0.10 per credit, and 4% comes off your side at settlement.
Illustrative numbers from the sample seller.json; list prices change — the live catalog on /p2p is authoritative.
If you pay full list price for your upstream, undercutting that same list price means serving at a loss. Offers that work are backed by capacity that is already cheaper than list: quota you have already paid for and would otherwise waste, discounted or committed-use tiers, cloud credits, or a model running on hardware you own. Everything you receive is payment for metered usage after the protocol fee; there are no token rewards, and running a node does not guarantee traffic.
You are responsible for making sure your vendor agreement allows serving third-party requests through your account. Some API terms restrict resale or require that the capacity be part of your own product. Open-weight models you run yourself carry no such restriction.
What you receive and when
External endpoint mode — list a URL instead of running a node
If you already run an OpenAI-compatible server (vLLM, SGLang, Ollama behind a tunnel, a cloud host, your own proxy) and do not want to operate a seller node, list its base URL from the provider console . TokenOS's hosted gateway relays buyer traffic to that URL, meters the tokens, signs the receipts itself and settles to your wallet exactly like a node seller — same session ledger, same 4% fee, same USDC payouts, same Proof-of-Model checks.
Run a node when you can keep a process online and want the full trust ceiling and direct encrypted sessions. List an endpoint when the server already exists and you only want to sell its spare capacity; pausing the listing or fixing the URL takes one click, and the listing drops out of the catalog automatically while the probe fails.
Seller bond (optional) — a refundable deposit for routing priority
Any seller — node or relayed — may deposit 20 USDC or the $TOS equivalent with the P2P treasury from the console. The deposit is refundable, pays nothing, changes no price and is never required to sell. While it is on file the seller carries a “bonded” badge on the catalog, its peer page and the leaderboard, and the gateway routes it first whenever its price is within 10% of the cheapest offer for the model.
Staying competitive
- Stay online. Peers leave the catalog 20 minutes after their last announce. Run the node as a service — see Node operations & uptime .
- Build trust. Verify a domain (DNS TXT) or a GitHub repo in verifications for up to 20 points immediately; closed, settled sessions add the rest.
- Set concurrency you can honour. Requests above maxConcurrency get a 429 and the buyer tries the next peer — better than timeouts.
- Watch the catalog. tokenos-p2p network browse shows every offer per model; price drops appear on the live ticker within seconds.
Full field reference for seller.json, the wire format and the public API: protocol docs . Package source and changelog: tokenos-p2p on npm .
- Local open weights Ollama, vLLM, LM Studio, llama.cpp — on your GPU, a Mac or a DeAI Compute node — None: you own the capacity — Best — no vendor dependency, cost is hardware you already run
- Vendor key with structural discounts OpenAI Flex / Batch (½ list), Anthropic Batches, Gemini Flex, DeepSeek off-peak, Qwen night regions — Vendor terms restrict serving third parties without authorisation — ask in writing — Large catalog; only with permission; Flex / off-peak suit latency-tolerant buyers
- Wholesale open-model hosts DeepInfra, Novita, CoreWeave, Nebius, Together, Fireworks — Reseller clauses vary (DeepInfra: Service Order required) — get it in writing — Cheapest open models; confirm the reseller terms before you list
- Free / trial tiers Groq free, Gemini free, Mistral Experiment — Trial terms exclude commercial use; several train on your data — Demo only — never for buyer traffic
~/.tokenos-p2p/seller.json — minimal, one API key
Your node settles at 10 minutes idle or 80% of a session budget, and again when the buyer disconnects. Each settlement credits your USD balance net of the 4% fee and refunds the buyer’s unspent hold.
Visible in the console and `seller status` as available / lifetime USD.
USDC on Solana, on request, minimum 1 USDC — from the console (Request payout) or `tokenos-p2p seller payout`. Paid immediately by the treasury signer; if it ever queues, an admin releases it and the console shows the transaction.
Opt-in Monday digest (sessions, USDC settled, payouts, trust change) and the one-time uptime checklist when you first save an email.
npm package, keypair identity, open ports
URL + optional API key in the console; TokenOS probes GET /models
Encrypted direct connection from the buyer node
Hosted gateway → your HTTPS URL (buyer nodes cannot dial you)
After independent nodes, before TokenOS\u2019s own supply
Capped at 70; “relayed” badge on every surface
Fernet-encrypted at rest, never returned by the API
Up to 32 text or embedding models, catalog id → your model id
One SPL transfer from the seller wallet to the treasury (USDC or $TOS at the live price); the console submits the transaction signature, TokenOS verifies it on-chain and activates the bond.
Any time, from the console. Badge and priority end immediately; the same asset is returned 7 days later by the treasury signer (cancel within the cooldown to keep the bond).
Only after a failed Proof-of-Model check (the model announced was not the model served), opened by TokenOS staff. The seller has 48 hours to appeal from the console before a decision; a reinstated bond regains its badge and priority.
A bond is a deposit held against misrepresentation — it is not a stake, pays no yield or reward and is not an investment.
Browse the full TokenOS documentation or jump to the API reference, credits & pricing or FAQ.
About TokenOS
TokenOS is the AI operating system for the autonomous Web3 economy. It combines an agentic IDE that turns a prompt into a deployed dApp, a marketplace of x402-paid AI agents, a peer-to-peer AI inference market where anyone can sell spare API quota or GPU time for USDC, MCP and A2A connectors for Claude, Cursor and ChatGPT, and the $TOS utility and governance token on Solana.
Builders pay with prepaid credits; sellers and agent creators are paid for work actually delivered; TokenOS indexes, verifies and settles. Nothing on this site is investment advice, and node payouts, agent payments and referral credits are fees for usage — not token distributions or returns.