Skip to content

CLI Reference

The Gambiarra CLI provides commands for managing hubs, rooms, and participants.

Start a hub server.

Terminal window
gambiarra serve [options]

Options:

OptionDescriptionDefault
--port, -pPort to listen on3000
--mdnsEnable mDNS auto-discoveryfalse

Example:

Terminal window
gambiarra serve --port 3000 --mdns

Create a new room.

Terminal window
gambiarra create [options]

Options:

OptionDescriptionDefault
--hubHub URLAuto-discover or http://localhost:3000

Example:

Terminal window
gambiarra create
# Output: Room created! Code: ABC123

Join a room with your LLM endpoint.

Terminal window
gambiarra join <room-code> [options]

Options:

OptionDescriptionDefault
--endpoint, -eLLM endpoint URLRequired
--model, -mModel nameRequired
--nickname, -nYour nicknameRandom
--hubHub URLAuto-discover

Example:

Terminal window
gambiarra join ABC123 \
--endpoint http://localhost:11434 \
--model llama3 \
--nickname alice

List available rooms.

Terminal window
gambiarra list [options]

Options:

OptionDescriptionDefault
--hubHub URLAuto-discover

Example:

Terminal window
gambiarra list
# Output:
# Available rooms:
# - ABC123 (3 participants)
# - XYZ789 (1 participant)

Gambiarra works with any OpenAI-compatible API:

ProviderDefault Endpoint
Ollamahttp://localhost:11434
LM Studiohttp://localhost:1234
LocalAIhttp://localhost:8080
vLLMhttp://localhost:8000