Multiplayer by Default
Section titled “Multiplayer by Default”Every service in a computer has a URL, and sending that URL is how you share it. Whoever opens it is in the same computer as you, at the same time: the same terminal, file system, database, browser and desktop. Joining takes no installation, no invitation, no account at your end, no VPN and no SSH key.
Unlike screen sharing, nobody takes turns: like Google Docs, but for a whole computer, with people and AI agents.
Copy or build a terminal URL and send it; anyone who opens it joins the session:
- In the Hub, open Computers and select the computer.
- Open the Connect tab. Under Program links, use the copy icon next to Terminal, Desktop, Code or Agent, or show its address as a QR code.
You can also choose Copy terminal URL in the computer’s menu on the Computers list.
# Read the computer details; nothing else is requiredhoody computers get "$COMPUTER_ID"
# Output includes id, project_id, name, status, server_name, etc.# Construct and share the terminal URL:# https://PROJECT_ID-COMPUTER_ID-terminal-1.SERVER.computers.hoody.comimport { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://api.hoody.com', token: process.env.HOODY_TOKEN });
// Get the terminal URLconst computer = await client.api.computers.get(COMPUTER_ID);
const terminalUrl = `https://${computer.data.project_id}-${computer.data.id}-terminal-1.${computer.data.server_name}.computers.hoody.com`;
// Share this URL; anyone who opens it joins the terminal sessionconsole.log('Share this URL:', terminalUrl);# Get computer details to construct the terminal URLcurl "https://api.hoody.com/api/v1/computers/$COMPUTER_ID" \ -H "Authorization: Bearer $HOODY_TOKEN"
# The terminal URL is:# https://{project_id}-{computer_id}-terminal-1.{server}.computers.hoody.com# Share it; anyone who opens it joins the session.Fetches the computer’s details so you can assemble the terminal URL from project_id, id, and server_name in the response.
https://PROJECT_ID-COMPUTER_ID-curl-1.SERVER.computers.hoody.com/api/v1/curl/request?url=https://api.hoody.com/api/v1/computers/COMPUTER_ID&method=GET&bearer_token=HOODY_TOKEN&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
Other services:
Your terminal: https://PROJECT_ID-COMPUTER_ID-terminal-1.SERVER.computers.hoody.comYour display: https://PROJECT_ID-COMPUTER_ID-display-1.SERVER.computers.hoody.com/?sharing=true&steal=falseYour VS Code: https://PROJECT_ID-COMPUTER_ID-code-1.SERVER.computers.hoody.comYour database: https://PROJECT_ID-COMPUTER_ID-sqlite-1.SERVER.computers.hoody.comYour agent: https://PROJECT_ID-COMPUTER_ID-agent-1.SERVER.computers.hoody.comNone of this is a separate feature: a second participant is one more connection to the same URL.
Share a terminal
Section titled “Share a terminal”A terminal URL takes several people at once. Everyone sees the same live screen and can type; a client that adds ?readonly=true only watches. What the shell shows, including the typed text it echoes, appears for everyone as it happens; hidden input such as a password stays hidden.
┌─────────────────────────────────────────────────┐│ root@computer:~# ││ ││ $ npm test ← Alice ││ Running 47 tests... ││ ✓ All tests passed ││ ││ $ git status ← Bob ││ On branch feature/auth ││ modified: src/auth.ts ││ │└─────────────────────────────────────────────────┘Two people share one live shell: one screen, one cursor and one stream of output. There is nothing to set up. An AI agent does not type into this shell: its commands run separately, and it reports their output in its chat.
From a terminal, hoody shell "$COMPUTER_ID" joins too, also from the hosted CLI at ssh hoody.com. It attaches to terminal 1 unless you pass --terminal-id.
Share a display
Section titled “Share a display”A display URL shares a desktop, a browser or any GUI program: everyone sees it live and can click and type. No one rebroadcasts a monitor; everyone connects to the same display session, with full input.
Add ?sharing=true&steal=false to every copy of the URL. Without it, a display admits one viewer at a time (sharing defaults to false) and hands the session to whoever connects last (steal defaults to true), so a second person disconnects the first. An address copied from the Hub has no query, so add ?sharing=true&steal=false to a Desktop address before you send it.
To watch an agent’s browser automation, open https://PROJECT_ID-COMPUTER_ID-display-501.SERVER.computers.hoody.com/?sharing=true&steal=false: browser-1 shows on display-501. More team setups are in the recipes.
Edit code together
Section titled “Edit code together”Hoody Code gives everyone VS Code in a browser:
https://PROJECT_ID-COMPUTER_ID-code-1.SERVER.computers.hoody.comEveryone opening code-1 reaches the same Code instance and filesystem, but each browser has its own editor state and unsaved text. Saved file changes appear in other editors unless they have unsaved changes to the same file.
Unlike Google Docs, there are no shared cursors: nobody sees where anyone else is typing. For an editor each, send code-1 and code-2: separate processes with separate settings and extensions on the same filesystem. When Alice saves a file, Bob’s editor picks up the change, so they can work on different files without conflict.
Share the agent or a whole workspace
Section titled “Share the agent or a whole workspace”The Hoody Agent URL opens its terminal interface. Everyone opening the same URL shares that interface. Open terminal, files and display URLs separately, or compose them into your own workspace.
https://PROJECT_ID-COMPUTER_ID-agent-1.SERVER.computers.hoody.comYou can also compose your own view: put terminal-1, display-1, code-1 and sqlite-1 in iframes on a plain HTML page and send its link; each pane is the real, live service. Give the display pane ?sharing=true&steal=false, or each visitor takes the display over from the one before. The SQLite pane gives each visitor their own Studio session on the same database: editor contents and query results are not shared live. Embed a kit UI builds the URL of one view for a frame.
┌──────────────────────────────────────────────────────────────┐│ SHARED WORKSPACE: "Team Dashboard" ││ ││ ┌─────────────────────┐ ┌──────────────────────────────┐ ││ │ Terminal-1 │ │ Display-1 │ ││ │ (Backend logs) │ │ (App preview) │ ││ │ │ │ │ ││ │ Alice & Bob here │ │ Everyone sees this │ ││ └─────────────────────┘ └──────────────────────────────┘ ││ ││ ┌─────────────────────┐ ┌──────────────────────────────┐ ││ │ Code-1 │ │ SQLite-1 │ ││ │ (VS Code) │ │ (Database browser) │ ││ │ │ │ │ ││ │ Carol editing │ │ Dave checking data │ ││ └─────────────────────┘ └──────────────────────────────┘ ││ │└──────────────────────────────────────────────────────────────┘Work alongside an AI agent
Section titled “Work alongside an AI agent”Give an agent session a task while the team watches the computer through its URLs. In the Hub, select the computer in the top bar, open AI, choose New chat, select Work on this computer, enter the task and press Send. Full API: Script the agent over HTTP.
set -eo pipefail# Open an agent session, then dispatch a turn into it# --agent-realm sets the agent's realm scope ("global" or a 24-hex id); it is the# same selector the HTTP tab spells as ?realm=.SESSION_ID=$(hoody agent sessions create --agent-realm global --computer "$COMPUTER_ID" -o json | jq -r '.session_id')
# `turns run` holds one request open until the turn ends, and the CLI stops# waiting for a request after 30 s, so dispatch the turn and follow its receipt.# The idempotency key makes a re-sent dispatch return the same turn, never a second one.# Every kit command needs its own target: --computer does not carry overTURN_KEY="profile-page-$SESSION_ID-1"TURN_ID=$(hoody agent sessions turns create --id "$SESSION_ID" --computer "$COMPUTER_ID" --agent-realm global \ --gate-policy auto_approve --idempotency-key "$TURN_KEY" \ --text "Implement the user profile page based on the design in /docs/profile-mockup.png" -o json | jq -r '.turn_id')
# The receipt's state stays accepted or dispatched while the turn runs, and while# it waits at a gate that needs a person (the session then shows pending_gate, or# pending_helper_gates for a helper's gate, which auto_approve never answers).while STATE=$(hoody agent sessions turns get --id "$SESSION_ID" --turn-id "$TURN_ID" \ --computer "$COMPUTER_ID" --agent-realm global -o json | jq -r '.state') \ && { [ "$STATE" = "accepted" ] || [ "$STATE" = "dispatched" ]; }; do GATE=$(hoody agent sessions get --id "$SESSION_ID" --computer "$COMPUTER_ID" --agent-realm global -o json | jq -c '(.pending_gate // empty | select(.type != "confirm" or .human_only == true or .lease_required == true)), (.pending_helper_gates[]? // empty)') if [ -n "$GATE" ]; then echo "The turn waits for a person: $GATE" >&2; exit 1; fi sleep 10done# A failed read of the receipt also ends the loop: stop unless the turn completed.[ "$STATE" = "completed" ] || { echo "The turn ended as ${STATE:-unknown}" >&2; exit 1; }echo "Turn ended: $STATE"
# While the agent works, you and your team observe in real time:# terminal-1 URL → Inspect the computer's shell# code-1 URL → Watch the agent write code# display-1 URL → Watch the app update# Follow this session's live events with GET /api/v1/agent/sessions/SESSION_ID/stream?realm=global on the agent host.import { HoodyClient } from 'hoody-sdk';
const client = new HoodyClient({ baseURL: 'https://api.hoody.com', token: process.env.HOODY_TOKEN });
// Agent routes live on the computer, not on api.hoody.com, so scope the client firstconst box = await client.withComputer({ id: COMPUTER_ID, project_id: PROJECT_ID, server: SERVER });
// First open a session, then dispatch a blocking turn into it.const session = await box.agent.sessions.create({}, { agentRealm: 'global' });const sessionId = session.data.session_id as string;
// The server answers within 290 s (a turn still running then answers 503 and// keeps running), so give the call longer than the SDK's 30 s default.const result = await box.agent.sessions.turns.run( sessionId, { text: 'Implement the user profile page based on the design in /docs/profile-mockup.png' }, { gatePolicy: 'auto_approve', agentRealm: 'global', timeoutMs: 300_000 },);
// Or call the HTTP surface directly with raw fetch:// const agentBase = `https://${PROJECT_ID}-${COMPUTER_ID}-agent-1.${SERVER}.computers.hoody.com`;// await fetch(`${agentBase}/api/v1/agent/sessions/${sessionId}/prompt:sync?policy=auto_approve&realm=global`, {// method: 'POST',// headers: { 'Content-Type': 'application/json' },// body: JSON.stringify({ text: 'Implement the user profile page...' }),// });
// Team observes via URLs:// terminal-1 → The computer's shell, to inspect results// code-1 → Code changes as they happen// display-1 → App preview updates live// Follow this session's live events with GET /api/v1/agent/sessions/SESSION_ID/stream?realm=global on the agent host; replace SESSION_ID with sessionId.# 1. Create a sessionAGENT_BASE="https://$PROJECT_ID-$COMPUTER_ID-agent-1.$SERVER.computers.hoody.com"SESSION_ID=$(curl -sX POST "$AGENT_BASE/api/v1/agent/sessions?realm=global" \ -H "Content-Type: application/json" -d '{}' | jq -r '.session_id')
# 2. Dispatch a blocking turn (auto-approve via the ?policy query param,# or pass -H "X-Hoody-Gate-Policy: auto_approve" instead)curl -X POST "$AGENT_BASE/api/v1/agent/sessions/$SESSION_ID/prompt:sync?policy=auto_approve&realm=global" \ -H "Content-Type: application/json" \ -d '{ "text": "Implement the user profile page based on the design in /docs/profile-mockup.png" }'
# Team watches via service URLs:# https://$PROJECT_ID-$COMPUTER_ID-terminal-1.$SERVER.computers.hoody.com → The computer's shell# https://$PROJECT_ID-$COMPUTER_ID-code-1.$SERVER.computers.hoody.com → Code changes# https://$PROJECT_ID-$COMPUTER_ID-display-1.$SERVER.computers.hoody.com/?sharing=true&steal=false → Live preview# curl -N "$AGENT_BASE/api/v1/agent/sessions/$SESSION_ID/stream?realm=global" → Follow this session's live events.Run the first link, take the session_id from its response, and put it in SESSION_ID in the second. The second runs the turn, which edits files in the computer.
# Create the sessionhttps://PROJECT_ID-COMPUTER_ID-curl-1.SERVER.computers.hoody.com/api/v1/curl/request?url=https://PROJECT_ID-COMPUTER_ID-agent-1.SERVER.computers.hoody.com/api/v1/agent/sessions?realm=global&method=POST&json={}&response=transparent
# Dispatch a blocking turnhttps://PROJECT_ID-COMPUTER_ID-curl-1.SERVER.computers.hoody.com/api/v1/curl/request?url=https://PROJECT_ID-COMPUTER_ID-agent-1.SERVER.computers.hoody.com/api/v1/agent/sessions/SESSION_ID/prompt:sync?policy=auto_approve%26realm=global&method=POST&json={"text":"Implement%20the%20user%20profile%20page%20based%20on%20the%20design%20in%20/docs/profile-mockup.png"}&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
The turn call waits until the turn ends or parks at a gate. A turn still running after 290 seconds answers 503 with details.turn_id and keeps running; follow it by that id. policy=auto_approve approves confirm gates unattended, except that gates raised by your tool rules or destructive command patterns (such as recursive force deletion, piping curl into a shell, sudo or a force push) are declined; human-only gates and questions still come back to you.
Meanwhile anyone can correct the agent with a follow-up prompt, or fix what it missed in the terminal.
Give each person an instance
Section titled “Give each person an instance”The number in a service’s label picks an instance: a separate URL you can share on its own, open to several people at once. All instances share the computer’s filesystem and network, so people and agents can split up without stepping on each other:
terminal-1 → Team lead (oversight, commands)terminal-2 → Backend developer (database queries)terminal-3 → Frontend developer (build tools)
display-1 → App preview (shared)display-501 → AI agent's browser automation through browser-1 (shared observation)
agent-1 → Agent window for feature workagent-2 → Another window on the same agent, for testing
code-1 → Developer A's VS Codecode-2 → Developer B's VS CodeControl who can join
Section titled “Control who can join”Open by default does not mean open forever. Proxy permissions apply at the proxy, so one document protects every service in the computer.
A typical progression:
- Development: wide open. Share the URL and anyone can join.
- Staging: password protected. Team members know the password; external parties have to ask.
- Production: IP restricted or token gated. Only authorized traffic reaches the services.
The access recipes let a team in with a password, two office IP ranges or a shared-secret header token, grant chosen services and refuse requests no group allows; project groups still let their members in. Each write needs the document’s current etag in If-Match: file:v<N>, where <N> is its file_version.
In the Hub, open Computers, select the computer and open Permissions. Under Who can open its programs, choose an access option. For Only people or keys I pick, press Add a person or Add a key link, enter a name, choose what they can open, press Continue and confirm with Add. For the other choices, press Save and confirm. Rules using a JWT or a hook are summarized there and changed with the API.
Advanced
Section titled “Advanced”- Rules for a whole project: a project’s permissions document covers all its computers, and a computer’s own document overrides it where they overlap; project groups the computer does not name stay in force. See Give one computer its own rules.
- Other ways to sign in: a group can also accept a JWT you issued (your application’s users) or a signed Hoody identity claim (CLIs, SDKs, server calls). See Choose how people sign in.
Reference
Section titled “Reference”Recipes, a comparison with screen sharing and troubleshooting: Multiplayer reference.
What’s Next
Section titled “What’s Next”- Building a Full-Stack Application: build something together
- The Vibe Coding Revolution: AI and human collaborative development
- Deploying Autonomous AI Agents: multi-agent orchestration patterns
- Proxy permissions: fine-grained access control