- CLI (
gambiarra) - Command-line tool for managing hubs and participants - SDK (
gambiarra-sdk) - TypeScript library for integrating with the Vercel AI SDK
CLI installation
The CLI allows you to start hubs, create rooms, and join as a participant.The standalone binary installation via curl is recommended as it requires no additional dependencies.
- curl (recommended)
- npm
- bun
Install the standalone binary:This installs a single binary to
/usr/local/bin/gambiarra with no dependencies.Verify installation
Check that the CLI is installed correctly:Getting help
View available commands:SDK installation
The SDK provides Vercel AI SDK integration for using shared LLMs in your applications.The
ai package (Vercel AI SDK) is a peer dependency required for the SDK to work.Basic usage
Once installed, you can use the SDK in your TypeScript/JavaScript applications:Uninstall
Uninstall CLI
Remove the CLI based on how you installed it:- curl
- npm
- bun
Remove the standalone binary:
Uninstall SDK
Remove the SDK from your project:Requirements
CLI requirements
- No dependencies when using the standalone binary (curl installation)
- Node.js 18+ or Bun 1.0+ when using npm/bun installation
- Linux, macOS, or Windows (via WSL)
SDK requirements
- Node.js 18+ or Bun 1.0+
- Vercel AI SDK (
aipackage) version 3.0 or higher
Platform-specific notes
macOS
The CLI works out of the box on macOS. If you install via curl, you may need to grant execute permissions:Linux
For mDNS support on Linux, you need Avahi:Windows
Windows support is available through WSL (Windows Subsystem for Linux):- Install WSL 2: https://docs.microsoft.com/en-us/windows/wsl/install
- Install Ubuntu or your preferred Linux distribution
- Follow the Linux installation instructions above
Updating
Update CLI
- curl
- npm
- bun
Re-run the installation script:
Update SDK
Update the SDK in your project:Troubleshooting
CLI not found after installation
If thegambiarra command is not found after installation:
-
Check your PATH - Ensure
/usr/local/binis in your PATH: -
Reload your shell - Close and reopen your terminal, or run:
-
Verify the binary exists:
Permission denied
If you get a permission denied error when installing via curl:SDK import errors
If you get import errors with the SDK:-
Check that
aiis installed - The Vercel AI SDK is a peer dependency: -
Ensure TypeScript is configured - Add to your
tsconfig.json: -
Check Node.js version - Ensure you’re running Node.js 18 or higher:
mDNS not working
If mDNS discovery isn’t working:- On Linux: Install and start Avahi (see Linux section above)
- On macOS: mDNS should work out of the box
- Firewall: Ensure UDP port 5353 is not blocked
- Network: Both hub and clients must be on the same local network
Next steps
Quickstart
Get up and running with Gambiarra
CLI reference
Learn about all CLI commands
SDK reference
Use Gambiarra in your apps
Troubleshooting
Common issues and solutions