Remote providers
You do not need a local GPU to participate. Any OpenAI-compatible cloud API can be used as your LLM endpoint.
How it works
Section titled “How it works”When you join a room with a remote provider, the participant runtime:
- probes the provider endpoint locally
- registers itself with the hub
- opens a tunnel back to the hub
- forwards tunnel requests to the provider endpoint using local auth headers
The hub never receives your provider credentials, and your provider endpoint is not exposed to the rest of the network.
Supported protocols:
| Protocol | Endpoint | Best for |
|---|---|---|
| Responses API | /v1/responses |
preferred default when the provider supports it |
| Chat Completions | /v1/chat/completions |
compatibility for providers and tools that still require it |
Join with the CLI
Section titled “Join with the CLI”For automation, prefer --header-env so secrets do not end up in shell history.
export OPENROUTER_AUTH="Bearer sk-or-..."
gambi participant join --room ABC123 \ --participant-id my-openrouter \ --endpoint https://openrouter.ai/api \ --model meta-llama/llama-3.1-8b-instruct:free \ --nickname my-openrouter \ --header-env Authorization=OPENROUTER_AUTHYou can also send extra provider-specific headers:
gambi participant join --room ABC123 \ --participant-id my-openrouter \ --endpoint https://openrouter.ai/api \ --model meta-llama/llama-3.1-8b-instruct:free \ --nickname my-openrouter \ --header-env Authorization=OPENROUTER_AUTH \ --header "HTTP-Referer=https://my-app.example"Join through the SDK
Section titled “Join through the SDK”If you are building your own participant runtime, use createParticipantSession() from the gambi-sdk/participant entry, which runs in Bun:
import { createParticipantSession } from "gambi-sdk/participant";
await createParticipantSession({ hubUrl: "http://localhost:3000", roomCode: "ABC123", participantId: "my-openrouter", nickname: "my-openrouter", endpoint: "https://openrouter.ai/api", model: "meta-llama/llama-3.1-8b-instruct:free", authHeaders: { Authorization: `Bearer ${process.env.OPENROUTER_TOKEN}`, },});authHeaders stay local to the participant runtime. They are applied only when that runtime talks to the provider endpoint.
Popular providers
Section titled “Popular providers”| Provider | Base URL | Free models? |
|---|---|---|
| OpenRouter | https://openrouter.ai/api |
yes |
| Together AI | https://api.together.xyz |
free tier |
| Groq | https://api.groq.com/openai |
free tier |
| Fireworks | https://api.fireworks.ai/inference |
free tier |
| OpenAI | https://api.openai.com |
no |
When you join with a cloud provider:
- your API key is used for every request routed to you
- you pay for the tokens consumed
- other participants do not see your provider credentials
Choose a model you are comfortable paying for, or use free-tier models for experimentation.
Security notes
Section titled “Security notes”- Provider auth headers stay on the participant runtime.
- The tunnel-first model avoids publishing the provider endpoint or its credentials to the rest of the network just to participate.
- The hub has no built-in authentication. Anyone who can reach it can send requests that spend your provider credits. Keep it on a trusted network, or put it behind HTTPS and your own authentication layer.
Which protocol to use
Section titled “Which protocol to use”- Responses API: preferred default
- Chat Completions: compatibility path
When a provider only speaks Chat Completions, the hub can still serve a Responses request by translating it, but new integrations should prefer Responses.