Multiplayer reference
Section titled “Multiplayer reference”Lookup tables for Multiplayer by Default.
Access recipes
Section titled “Access recipes”Each recipe writes default: deny and lets in a team group with a password, two office IP groups, or (CLI only) a realm group whose requests carry a shared-secret token in the Authorization header, with grants to the terminal, files, display and port 8080. Writing any of them changes who can open the computer’s URLs.
Deny refuses only requests that no group allows. Groups the computer’s document already has (CLI recipe 1) and the project’s groups still let their members in, so read both documents first. To share Hoody Code, SQLite or the agent as well, also grant code, sqlite or agent (programs): under deny, a program no group is granted answers 403.
| Tab | What it writes |
|---|---|
| Hub | The computer’s own rules, chosen from a list. |
| CLI | Run one recipe. Recipe 1 sets default to deny first, then adds the group and its grants one field per call to the computer’s current document. Recipes 2 and 3 replace the whole document in one write. |
| SDK, HTTP, URL | The computer’s whole permissions document in one request, replacing what was there. |
Every write needs the document’s current etag in If-Match: file:v<N>, where <N> is its file_version. A write bumps the version; a stale or malformed value is refused with 412. A saved change can take several seconds or longer to affect requests. Fields and other group types are in the proxy permissions reference.
Replace team-access-2026 and team-salt-2026 with your own password and salt before running, and share the password securely.
In the Hub, open Computers, select the computer and open Permissions. Under Who can open its programs, choose Only these IPs, list the office addresses or ranges, press Save and confirm.
To add a person instead, choose Only people or keys I pick, press Add a person, enter a name, pick what they can open, press Continue and confirm with Add. Copy the generated password when shown.
Use the CLI, SDK or HTTP tab for the exact recipes, including a grant to port 8080.
set -eo pipefail# Run ONE of the three recipes below.# Writes are optimistic-concurrency guarded, and every successful write bumps# file_version, so read a fresh ETag before each mutation (a stale --if-match# is rejected with 412).v() { hoody computers proxy permissions get -c "$COMPUTER_ID" -o json | jq -r '.file_version'; }
# Recipe 1: password, one field at a time. Adds to the computer's document:# groups already in it keep their grants.# Deny requests no group allows first, so the computer is never left openhoody computers proxy default set --default deny -c "$COMPUTER_ID" --if-match "file:v$(v)"
# Set a password on the computerhoody computers proxy groups password set team -c "$COMPUTER_ID" \ --auth-username team --auth-password 'team-access-2026' \ --salt team-salt-2026 --algorithm sha256 \ --if-match "file:v$(v)"
# Grant the services the group may reach, one program per callfor program in terminal files display; do hoody computers proxy groups permissions set team "$program" -c "$COMPUTER_ID" \ --access true --if-match "file:v$(v)"done
hoody computers proxy groups permissions set team http -c "$COMPUTER_ID" \ --access '[8080]' --if-match "file:v$(v)"
# Recipe 2: replace this computer's whole document in one write, restricted by IP.# Each IP group takes one CIDR; add multiple groups for multiple ranges.hoody computers proxy permissions set -c "$COMPUTER_ID" --project "$PROJECT_ID" --if-match "file:v$(v)" \ --groups '{"office_primary": {"type": "ip", "range": "203.0.113.50/32"}, "office_subnet": {"type": "ip", "range": "198.51.100.0/24"}}' \ --permissions '{"office_primary": {"terminal": true, "files": true, "display": true, "http": [8080]}, "office_subnet": {"terminal": true, "files": true, "display": true, "http": [8080]}}' \ --default deny
# Recipe 3: replace this computer's whole document in one write; requests that carry# the shared-secret token in the Authorization header get in.hoody computers proxy permissions set -c "$COMPUTER_ID" --project "$PROJECT_ID" --if-match "file:v$(v)" \ --groups "$(jq -nc --arg t "$REALM_TOKEN" '{realm: {type: "token", header: "Authorization", value: $t}}')" \ --permissions '{"realm": {"terminal": true, "files": true, "display": true, "http": [8080]}}' \ --default denyimport { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://api.hoody.com', token: process.env.HOODY_TOKEN });
// GET returns the current precondition values as response.data.file_version and// response.data.etag; pass the returned etag via the ifMatch option.// Read etag from the GET first: 'file:v<N>' below stands for it.
// Password protectionawait client.api.computers.proxy.setPermissions(COMPUTER_ID, { project: PROJECT_ID, computer: COMPUTER_ID, groups: { team: { type: 'password', username: 'team', password: 'team-access-2026', salt: 'team-salt-2026', algorithm: 'sha256' } }, permissions: { team: { terminal: true, files: true, display: true, http: [8080] } }, default: 'deny'}, { ifMatch: 'file:v<N>' });
// Or IP restrictionawait client.api.computers.proxy.setPermissions(COMPUTER_ID, { project: PROJECT_ID, computer: COMPUTER_ID, groups: { office_primary: { type: 'ip', range: '203.0.113.50/32' }, office_subnet: { type: 'ip', range: '198.51.100.0/24' } }, permissions: { office_primary: { terminal: true, files: true, display: true, http: [8080] }, office_subnet: { terminal: true, files: true, display: true, http: [8080] } }, default: 'deny'}, { ifMatch: 'file:v<N>' });# Password protection# Writes require an If-Match precondition (read the current file_version via GET first)curl -X PUT "https://api.hoody.com/api/v1/computers/$COMPUTER_ID/proxy/permissions" \ -H "Authorization: Bearer $HOODY_TOKEN" \ -H "Content-Type: application/json" \ -H "If-Match: file:v<N>" \ -d '{"project":"'"$PROJECT_ID"'","computer":"'"$COMPUTER_ID"'","groups":{"team":{"type":"password","username":"team","password":"team-access-2026","salt":"team-salt-2026","algorithm":"sha256"}},"permissions":{"team":{"terminal":true,"files":true,"display":true,"http":[8080]}},"default":"deny"}'
# Or IP restrictioncurl -X PUT "https://api.hoody.com/api/v1/computers/$COMPUTER_ID/proxy/permissions" \ -H "Authorization: Bearer $HOODY_TOKEN" \ -H "Content-Type: application/json" \ -H "If-Match: file:v<N>" \ -d '{"project":"'"$PROJECT_ID"'","computer":"'"$COMPUTER_ID"'","groups":{"office_primary":{"type":"ip","range":"203.0.113.50/32"},"office_subnet":{"type":"ip","range":"198.51.100.0/24"}},"permissions":{"office_primary":{"terminal":true,"files":true,"display":true,"http":[8080]},"office_subnet":{"terminal":true,"files":true,"display":true,"http":[8080]}},"default":"deny"}'Replaces the computer’s whole permissions document: the first link password-protects it for the team, the second instead lets two office IP ranges in. Project groups still admit their members. Route the links through a different running computer’s curl-1 (OTHER_COMPUTER_ID above). No group here is granted curl, so once this document is in place, COMPUTER_ID’s own curl-1 would deny the request that applied it. Fetch the current document first and put file:v and its file_version in place of file:v<N>, or the call is rejected.
# Password protectionhttps://PROJECT_ID-OTHER_COMPUTER_ID-curl-1.SERVER.computers.hoody.com/api/v1/curl/request?url=https://api.hoody.com/api/v1/computers/COMPUTER_ID/proxy/permissions&method=PUT&bearer_token=HOODY_TOKEN&header=If-Match:%20file:v<N>&json={"project":"PROJECT_ID","computer":"COMPUTER_ID","groups":{"team":{"type":"password","username":"team","password":"team-access-2026","salt":"team-salt-2026","algorithm":"sha256"}},"permissions":{"team":{"terminal":true,"files":true,"display":true,"http":[8080]}},"default":"deny"}&response=transparent
# IP restrictionhttps://PROJECT_ID-OTHER_COMPUTER_ID-curl-1.SERVER.computers.hoody.com/api/v1/curl/request?url=https://api.hoody.com/api/v1/computers/COMPUTER_ID/proxy/permissions&method=PUT&bearer_token=HOODY_TOKEN&header=If-Match:%20file:v<N>&json={"project":"PROJECT_ID","computer":"COMPUTER_ID","groups":{"office_primary":{"type":"ip","range":"203.0.113.50/32"},"office_subnet":{"type":"ip","range":"198.51.100.0/24"}},"permissions":{"office_primary":{"terminal":true,"files":true,"display":true,"http":[8080]},"office_subnet":{"terminal":true,"files":true,"display":true,"http":[8080]}},"default":"deny"}&response=transparentOne request, one link
cURL runs inside your computer and can wrap any HTTP request into a single GET URL. The call stops being something you need a client for and becomes something you can paste into a browser, send in a chat, bookmark, schedule with cron, or drop into a no-code tool.
Nothing is installed on the machine that opens it. The link does carry whatever credentials the call needs, so treat it as you would treat those credentials. It also appears in the cURL service's request log, not only the target's. Prefer a delegated token with minimal permissions and an expiry: see API tokens.
Slashes, colons and braces pass through as they are. The one character you must
encode is an & inside a value, which happens when the wrapped URL
carries its own query string. Left raw it ends the value early, and the rest is
read as cURL's own parameters, so you get a 200 on a request you did
not make.
How the wrapping works Chaining calls into one link Turning a link into a shortcut
Recipes
Section titled “Recipes”| Recipe | Who opens what | What it gives you |
|---|---|---|
| Pair programming | Two developers share one computer from two browser tabs. Both open the code-1 URL, one editing src/components/Header.tsx, the other src/components/Footer.tsx; both open terminal-1 to see each other’s commands and display-1 to see the app update live. | Both developers work in the same computer without handing over control. Both have full access, and the filesystem is the single source of truth. Display updates still have network and encoding latency. |
| Client demo | You present the running application on display-1. The client opens the same URL, clicks around, tests features and asks questions; you make live changes in terminal-1 in response to feedback. | The client sees changes immediately in display-1. They do not install anything and do not need an account: opening a URL in their browser is the entire onboarding. |
| Team debugging | During a production issue: the lead tails the error logs in terminal-1, backend queries the database for corrupted records in terminal-2, frontend reproduces the bug in display-1, DevOps checks network configuration in terminal-3, and everyone opens each other’s terminal URLs. | Four people bring four perspectives to one computer and coordinate in real time, without a Zoom call. |
| Live debugging | Everyone opens the same display, with the same browser. | One person triggers the bug while the rest watch the network tab, the console and the DOM at the same time. |
| Design review | A designer opens Figma in the computer’s browser; the team opens the display. | The team reviews together, pointing at elements and making live changes. |
| Watching an agent | The agent runs browser automation through browser-1, whose window appears on display-501; the team opens display-501. | The team watches it navigate, click and fill forms, and verifies the behavior is correct. |
Splitting terminal instances by task:
terminal-1 → Alice and Bob debug the backend togetherterminal-2 → Carol works on the frontendterminal-3 → Dave monitors logs independentlyterminal-4 → Shared team standup terminal for commandsEveryone on one display:
Display URL: https://PROJECT_ID-COMPUTER_ID-display-1.SERVER.computers.hoody.com/?sharing=true&steal=false
Alice sees: The React app running in the computer's ChromeBob sees: The exact same view, in real timeCarol clicks: A button in the app; Alice and Bob see the result instantlyCompared with screen sharing
Section titled “Compared with screen sharing”Traditional collaboration tools add a sharing layer on top of single-user systems. In Hoody, multiplayer is a property of the architecture: a service URL accepts concurrent connections, with terminals shared as they are and displays shared through ?sharing=true&steal=false.
| Traditional | Hoody |
|---|---|
| Install screen sharing software | Share the URL |
| One person drives at a time | Everyone has full control |
| Video encoding introduces lag | Each viewer connects to the display service; the display supports image and video encodings. |
| Requires same time zone for effectiveness | Asynchronous access to the same URL |
| Setup per collaboration session | None; a URL lasts as long as its computer |
| Cannot share with AI agents | Agents use the same URLs as humans |
Troubleshooting
Section titled “Troubleshooting”| Symptom, status or message | Cause | What to do |
|---|---|---|
| Opening a display disconnects the person already on it | steal defaults to true: the newest viewer takes the session | Add ?sharing=true&steal=false to every copy of the URL. |
| A second person cannot join a display | sharing defaults to false: one viewer at a time | Add ?sharing=true&steal=false. |
| Each visitor of a shared page takes the display over from the one before | The display pane’s URL has no query string | Give the pane ?sharing=true&steal=false. |
| You cannot see where a colleague is typing in VS Code | There are no shared cursors | Give each person their own instance, code-1 and code-2. |
| A colleague’s SQLite query or results do not show in your pane | Each visitor gets their own Studio session on the same database: editor contents and query results are not shared live | Nothing to fix; the data in the database is shared. |
A permissions write answers 412 | The If-Match value is stale: another write bumped file_version | Read the document again and send its current file_version. |
A permissions link run through the computer’s own curl-1 is denied after the change | No group in the new document is granted curl | Route the links through another running computer’s curl-1. |
prompt:sync answers 503 with details.turn_id | The turn is still running after 290 seconds; it is not cancelled | Follow it with GET /api/v1/agent/sessions/{id}/turns/{turn_id}. |