Peer-to-peer LLM inference in the browser. Pool your devices to run big open models, for chat and coding agents.
Site ·
Start a room ·
Architecture ·
Benchmarks ·
Roadmap ·
Threat model ·
Contributing
https://github.com/user-attachments/assets/5142d877-e4d5-4f6b-9b5e-0ef48dcb73f6
Demo, recorded September 27, 2026 (2:29, with voice and subtitles): Qwen 3.6 35B MoE across a Mac and an iPhone in browser tabs. The phone chats with it, then Code mode builds a Tetris game, fixes its own bug and restyles it. Download · the September 7 demo.
Pooled runs one open model across the devices in a room. Your laptop, a friend's desktop and a phone each hold some of the model's layers, and together they run a model none of them could run alone. A model bigger than a device's GPU memory keeps most of itself on the SSD and streams what each token needs into the GPU (Qwen3.8 Flash, 125B, experimental; SSD demo), and every device that joins holds more of it in memory, so it gets faster. You can chat with it, or switch to Code mode and let it build and fix a small app right in the tab. There is nothing to install and no account, and no server does any of the thinking.
How it works
Friends open one link. Each device (laptop, desktop, phone) holds some of the model's layers and runs them on its own GPU with our own WGSL kernels. For every token, a small hidden state (10 KB on the 27B, 4 KB on the MoE) passes from tab to tab over direct WebRTC connections, and the host turns the result into the next word.
host embed the last token → hidden state
↓ a few KB over WebRTC
laptop layers 0–21 ─┐
desktop layers 22–42 ├─ each device runs its layers on its own GPU
phone layers 43–63 ─┘
↓ back to the host
host final norm → LM head → sample → next token (and draft the ones after it)
Models in the room today:
| Model |
Size |
Notes |
| Qwen 3.8 27B |
Q4_0, needs ~17 GB across the room |
hybrid Gated DeltaNet + attention, built-in draft layer for speculative decoding; opens at the longest context the room holds at full speed, up to 64K (16K at ~17 GB, 64K at ~20 GB) |
| Qwen 3.6 35B MoE |
Q4_0, needs ~22.5 GB across the room |
256 experts, 8 active per token, so it decodes several times faster than the 27B; opens at the longest context the room holds at full speed, up to 128K (32K at ~22.5 GB, 128K at ~23.5 GB) |
| Qwen3 1.7B |
Q8_0, needs ~5.6 GB across the room for 16K context, ~4 GB for 8K |
small and quick, for rooms of phones and light laptops; 16K context, 8K when the room is short of memory |
| Qwen3.8 Flash (experimental) |
Q4_0, 125B (6B active), ~99 GB on disk |
512 experts, 10 active per token; keeps most of itself on disk, so it needs far less GPU memory than its size; 64K context. See below |
Every device downloads only its own layers, from Hugging Face or from another device in the room that already has them, and keeps them cached for next time. If a device leaves, the room says so and the host deals its layers out again with one click. Speculative decoding, batched prefill and every kernel trick are checked by golden tests, so the speculative stream is the same as plain decoding.
Qwen3.8 Flash (experimental)
Qwen3.8 Flash is a 125B mixture-of-experts model that uses about 6B of its parameters per token. It is far bigger than the GPU memory of most computers, so Pooled keeps most of it on disk: each device stores its share of the model's experts on its SSD (in the browser's storage for a tab), keeps the experts it used recently in a GPU cache, and reads the rest from disk as a token needs them. A single computer can run it on its own this way.
Pooling makes it faster. Reading from disk is the slow part, and each device that joins holds part of the model in its own memory, so less of it has to come from disk. The room deals the model out again as devices join or leave.
Measured in October 2026: a Mac Studio running it alone in a Chrome tab decodes about 8 tokens/s. With a PC with an RTX 5070 joined (pooled join), the pair decodes about 10-12 tokens/s, depending on the network between them.
It is experimental:
- Context goes up to 64K tokens, tested against llama.cpp. 128K is in progress.
- It is slower than the other models, most of all on one computer, where much of it comes from disk.
- The first run downloads about 99 GB and asks before storing it on the device.
- How it loads and what it needs may change between releases.
Demo video: Qwen3.8 Flash in a Chrome tab on a Mac Studio, then an RTX 5070 PC joins (recorded October 13, 2026, 2:02, voice and subtitles; the room gets 1.4x faster when the PC joins).
Pick it in the room's model picker. To lend a computer from the command line: npx @pooled/cli join <ROOM CODE> (cli/README.md).
Details: docs/architecture.md, docs/kernels.md, docs/protocol.md, docs/models.md.
Code mode
Switch the room to Code and ask for something, like "build a tetris game". The room's model runs a small agent loop: it writes the files, serves them on a virtual localhost (:5173) in a sandboxed preview, reads its own console errors, and fixes them. Everyone in the room sees the files and can run the same preview on their own screen. The files live in the host's browser, or in a folder on disk the host picks, and edits to a real folder wait for the host's approval.
Design: docs/design/harness-app.md. What the agent can and cannot touch: SECURITY.md.
Use Pooled from your tools
A room can serve its model to anything that speaks the OpenAI Chat Completions, OpenAI Responses or Anthropic Messages API, tool calling included: coding agents (Codex CLI, Claude Code, opencode), Continue, Open WebUI, LiteLLM, the openai and anthropic SDKs, curl. In a room, the black Serve API button in the header opens the Serve API page with the command for that room; run it on your own computer (Node 22 or newer, no GPU needed there):
npx @pooled/cli serve "https://pooled.run/r/4TKG9P#k=…" # the room's invite link, or its code
# pooled serve · room 4TKG9P · Qwen3.6 35B MoE · Q4 · 32768 tokens of context
# OpenAI http://127.0.0.1:8080/v1 (OPENAI_BASE_URL, any API key: chat/completions, responses)
# Anthropic http://127.0.0.1:8080 (ANTHROPIC_BASE_URL: messages)
curl http://127.0.0.1:8080/v1/chat/completions -H 'content-type: application/json' \
-d '{"model": "pooled", "messages": [{"role": "user", "content": "Hi"}], "stream": true}'
The bridge joins the room as an API client with no layers, so requests run on the room's GPUs, one at a time in the room's queue, and show in the chat under the room's visibility setting. It listens on 127.0.0.1 only; POOLED_TOKEN makes it require a key. Prompts go to the room's host and, unless the host limits who sees answers, to everyone in the room: see who sees your prompts. Tool calls (streamed, parallel, every tool_choice form), tool results, JSON mode and JSON schemas, reasoning and Responses' previous_response_id work on all three APIs; every call and structured answer is grammar-constrained to its schema, so calls always parse, even from the 1.7B. The room's host must run a Pooled with tool calling (older hosts answer tools with a 400 asking to reload). Images become a note (the models read text only); the legacy /v1/completions is not served. Setup for each tool, including the context settings Codex, Claude Code and opencode need: cli/README.md. Design: docs/design/serve.md.
Rooms at work
Work networks often block the direct (UDP) connections rooms use. When the site has a relay set up, rooms fall back to it by themselves, over TCP or TLS on port 443. Links still go direct when they can, and model weights never go through the relay. Setup for the site's owner (a Cloudflare TURN key or your own coturn, set in the Vercel environment): docs/rooms-at-work.md.
Run it locally
git clone https://github.com/Nehanth/pooled && cd pooled
npx -y serve -l 8080 . # then open http://localhost:8080/room
serve reads serve.json for the /room and /r/:code rewrites. Production uses the same two rewrites in vercel.json, so keep the two files in step.
Tests
npm test # unit tests, no GPU (Deno)
npm run e2e:code # Code mode end to end, no GPU: two tabs, a real room, a scripted model
node tests/e2e/preview_browser.mjs # the Code mode preview sandbox, no GPU
node tests/e2e/room_synth.mjs # the real engine and room on a tiny synthetic model, no GPU
npm run test:gpu # golden tests on Qwen3 0.6B (needs a WebGPU GPU and Deno 2)
npm run test:q38 # 27B suites, including speculative == plain
The no-GPU tests run headless Chromium with WebGPU on SwiftShader. They need npm install (Playwright and the peer server). GPU tests read model files from models/; see docs/models.md and CONTRIBUTING.md.
Architecture
engine/ the WebGPU engine (ES modules; engine.js re-exports the public API)
dense.js DenseEngine: dense models (Qwen3, SmolLM)
qwen35.js Qwen35Engine: hybrid Gated DeltaNet + attention, MoE, batched paths, speculation
wgsl/ kernels: base, coop (GEMV family), qwen35 (DeltaNet), gemm (prefill), moe
gguf.js · tokenizer.js · sampling.js · quant.js · autotune.js · selftest.js · safetensors.js
room.js the room: signaling, links, layer split, downloads, the generation loop
room/ transport and wire, conversation, models, plan, lookup drafts, preflight, QR, room card, Code pane
harness/ Code mode: agent loop, tools, workspace, preview server and sandbox, sessions
p2p.html the room's markup and styles (served at /room and /r/<code>)
index.html, site/ the landing page
tests/ unit/ (no GPU) · e2e/ (SwiftShader) · GPU golden tests · run.sh
benchmarks/ tok/s harnesses and the kernel-family profiler
docs/ architecture, kernels, protocol, models, bench log, design, research, archive
roadmap/ one file per planned item
More in docs/architecture.md.
Performance
All numbers use greedy decoding, and the output matches plain one-device decoding. Full history, with commits and caveats, is in docs/bench-log.md.
From disk: Qwen3.8 Flash (experimental)
A Mac Studio running Flash in a Chrome tab, lending 20 GB of GPU memory and reading the rest of the experts from its SSD, then an RTX 5070 PC joining the room with pooled join (10 GB of GPU memory, most of its experts parked in RAM). Both on WiFi, October 13-14, 2026. Answers match llama.cpp's greedy output on the golden prompts, exactly or at near ties within the test's rule.
| Setup |
Decode |
8K-token prompt read |
32K-token prompt read |
| Mac Studio alone |
~8 tok/s |
45.7 s |
|
| Mac Studio + RTX 5070 PC |
10-12 tok/s (9.4 median on one WiFi night) |
35.9 s |
82 s |
- A short question gets its first token in about 5 s on the Mac alone.