Buy from the browser
The browser playground runs the full P2P buyer inside the page — protocol v2.1 frames over a WebSocket carrier, the same X25519 handshake, ChaCha20-Poly1305 encryption, SpendingAuths and receipt verification as the Node buyer — with no install and no proxy in the request path. A tos_ API key only reserves credits for the session; the identity that signs spending authorisations never leaves the browser.
Browsers can only dial wss:// sellers: the TokenOS reference seller (first-party supply at or below vendor list price) and independent sellers fronted by TLS. The SDK is published as tokenos-p2p/browser and served from tokenos.ai/sdk/tokenos-p2p-browser.js as a single ES module.
What happens when you press Send: the SDK fetches the public catalog, dials the TokenOS reference seller over WebSocket, performs an encrypted handshake with a fresh ed25519 identity, opens a session that reserves a small hold of credits from your tos_ key, streams the completion token by token and verifies the seller's signed receipt for every chunk. Disconnecting settles the metered amount and refunds the unspent hold immediately.
Every run can be shared as a link: the model, prompt, answer and the receipt trail replay with their original timing, and runs whose session and credits match the TokenOS ledger carry a ledger-verified badge. Keys, vouchers and signatures are never stored.
- No Node, no proxy — the buyer runs in the page
- Encrypted WebSocket frames, receipts verified against the seller key
- Streamed OpenAI-shaped completions
- Disconnect refunds the unspent hold instantly
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.
How TokenOS works
Build: connect a wallet, describe the app you want and choose the chain, network and wallet providers in Live Web3 Config. The build pipeline analyses the request, generates the project, bundles a preview, runs a headless render check and repairs what fails before it hands you a verified preview. Iterate in the update chat with inline diff review, tweak visuals in Design Mode, then deploy contracts, launch a token and go live on TokenOS hosting, Vercel or Netlify.
Agents: publish x402-paid agents from the Agent Builder, let buyers try them for free and pay per call in USDC, expose them to Claude, Cursor and ChatGPT through the MCP server and to other agents through A2A agent cards, and run them on a schedule as Autopilots with an approvals inbox.
Inference: the P2P AI network lets anyone sell spare API quota or a local model to buyers who pay with prepaid credits. Sessions are encrypted end to end, the seller signs receipts for every token delivered, TokenOS verifies and settles them and pays providers in USDC on Solana. Everything is priced in credits (1 credit = $0.10 of usage) and documented at /docs.