Prerequisites
Before you start, make sure you have:- macOS or Linux (ARM64 or x64) — see platform support below
- A Gloo AI account — sign up here if you don’t have one
- API credentials — you’ll create these in Step 2 below
Platform Support
GlooCode ships as a self-contained binary for macOS and Linux:
No runtime dependencies are required. The installer detects your platform and downloads the correct binary.
Windows is not currently supported. Windows users can run GlooCode through WSL (Windows Subsystem for Linux) using the Linux binary.
Step 1: Install the Binary
Run the installer script. It detects your OS and architecture, downloads the correct binary, and adds it to your PATH./usr/local/bin/gloocode on macOS) and updates your shell profile if needed.
Verify it worked in a new terminal:
Step 2: Connect Your Credentials
GlooCode authenticates with the Gloo AI platform using OAuth2 client credentials (Client ID and Client Secret). This is different from the API key authentication used by other Gloo AI services — GlooCode is the only product that still uses client credentials. You create these credentials in Gloo AI Studio. When GlooCode sends a model request, it routes through Gloo AI — which handles provider selection, safety screening, and failover automatically. You don’t need to manage API keys for individual model providers.Option A: Let GlooCode prompt you (easiest)
If you launch GlooCode without credentials configured, it will automatically prompt you to enter your Client ID and Client Secret interactively. Just rungloocode and follow the prompts.
Option B: Set environment variables
If you prefer to configure credentials ahead of time (or want them available to scripts and CI), add them to your shell profile (~/.zshrc, ~/.bashrc, or ~/.config/fish/config.fish):
Getting your credentials
If you don’t have credentials yet:- Sign in to Gloo AI Studio
- Go to API Keys in the sidebar (or open it directly)
- Select the API Credentials tab
- Click Create New Key — copy both the Client ID and Client Secret
Changing credentials later
To switch to different credentials, update the environment variables in your shell profile and open a new terminal. GlooCode reads credentials fresh on each launch.Updating GlooCode
Re-run the installer to update to the latest version:Troubleshooting
”Authentication failed” or “No credentials found”
GlooCode can’t find or validate your API credentials. Check that your environment variables are set:”Command not found: gloocode”
The most common cause is running the command in the same terminal session where you installed. Open a new terminal window and try again. If it still doesn’t work, check where the binary was installed:~/.zshrc or ~/.bashrc) so it persists across sessions.
Binary won’t run on Linux
On older Linux systems, the installer may select the wrong libc variant. If you see errors about missing shared libraries:- Check your libc:
ldd --version(glibc) ormusl-ldd --version(musl) - The installer auto-detects this, but you can also download the correct variant manually from the install URL
Next Steps
Launch GlooCode
Start the TUI or the Web UI and run your first task.

