This guide walks you through installing GlooCode, connecting your Gloo AI credentials, and running your first task. The whole process takes about 5 minutes.Documentation Index
Fetch the complete documentation index at: https://docs.gloo.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you start, make sure you have:- macOS or Linux (ARM64 or x64) — see platform support
- A Gloo AI account — sign up here if you don’t have one
- API credentials — you’ll create these in Step 2 below
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 needs a Client ID and Client Secret to authenticate with Gloo AI. These are the same credentials used by the Completions API and SDKs — if you already have a set, you can reuse them.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 Credentials in the sidebar (or open it directly)
- 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.Step 3: Launch GlooCode
Navigate to any project directory and start GlooCode:Example Prompts
Not sure what to try first? Here are some good starting points:| Prompt | What GlooCode will do |
|---|---|
Explain this codebase | Read your project structure and give you an overview |
Add input validation to the signup form | Find the form, add validation logic, write tests |
Find and fix the failing test in src/auth | Diagnose the failure, fix the root cause, verify it passes |
Refactor the payment module to use the new Stripe API | Plan the migration, update the code, run tests |
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.
Unexpected update prompts
If GlooCode shows update prompts for versions that don’t match the latest GlooCode release, you may have both GlooCode and OpenCode (the open-source project GlooCode is built on) installed. The two share some internal configuration, and OpenCode’s update mechanism can interfere. To fix this, remove the OpenCode binary and keep only GlooCode: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
Agents
Learn about the four built-in agents and how to create custom agents for specialized workflows.
Supported Models
See all available models — any of them can power your custom GlooCode agents.

