Skip to content

Agent tools are built for one person.With Gambi, you build for many.

Each person connects the agents and models on their own machine. Your app reaches all of them through one hub.

Agents
Claude Code, Codex, OpenCode
Models
Ollama, vLLM, or any OpenAI-compatible server
Stays local
Keys and logins

Session ABC123 example

Six people connected to one hubConcentric rings: people's machines on the outside, the tunnels in between, the hub at the centre. Each track is one person's tunnel, opened from their own machine.machinestunnelshub
People
6
Machines
6
Key holders
6

Pick a person to see what crosses their tunnel and what stays home.

An example session with six people. Switch between one person running six agents from one machine, and six people each bringing their own.

What changes with a group

Most orchestrators that run many agents at once assume one person at the keyboard. Put a group in the same session and each of these questions gets a different answer.

QuestionOne person, many agentsMany people, many agents
Where the agents run

One machine or one cloud account.

On each person's own machine.

Whose keys pay

One set of keys for every agent.

Each person's own. The hub never sees them.

Where an agent works

In one person's checkout.

In the folder its owner picked. The hub can't write there.

Who opens the connection

One process calls out to the rest.

Each machine dials out. The hub never dials in.

Gambi handles these four. What the group does together is your code: who drafts, who decides, who reviews.

One request, end to end

Your app calls the hub. The hub sends the work down the tunnel the participant opened, and the answer comes back the same way.

  1. Your app

    Calls /rooms/ABC123/v1/responses, or attaches to an agent by participant id.

  2. Hub

    Picks a participant by id, model:<name>, or *, and emits llm.request to the room's events.

  3. Tunnel

    A WebSocket the participant opened. tunnel.request goes down, tunnel.response.chunk comes back.

  4. Their machine

    The runtime adds the provider key, calls the model on localhost, and streams the answer up.

What a participant sends to the hub, and what stays on their machine
Crosses the tunnelNever leaves the machine
Participant id, display name, model name, and a capability summary.Provider auth headers set with --header or --header-env.
The provider URL, as a label. The hub never calls it.The provider itself, which can keep listening on localhost.
Model responses, streamed back up the tunnel.The agent's login. It is not part of registration, room events, or tunnel frames.
ACP messages for an attached session, and the files the agent writes in its workspace.The agent process, its tools, and everything outside its workspace folder.

What a group can build on it

Each example is your app's code running on one hub, with participants on different machines. The event logs are illustrative.

Model arena

Send one prompt to every model in the room and compare the answers side by side, with timing from the room's events.

See the pattern

In your code

Models answer on an OpenAI-compatible endpoint, so the AI SDK or any OpenAI client works. To reach an agent, attach to the person who shared it.

import { generateText } from "ai";
import { createGambi } from "gambi-sdk";

const gambi = createGambi({
  roomCode: "ABC123",
  hubUrl: "http://192.168.1.10:3000",
});

const { text } = await generateText({
  model: gambi.model("llama3"), // or gambi.any()
  prompt: "Draft the release note for v0.7.",
});

Run your first session

Install the CLI on each machine, start the hub on one of them, and have each person join from their own. The quick start walks through it in four commands.

Read the quick start

Paste it into your coding agent. It reads the docs and walks you through the same steps.