Edgee CLI setup (recommended)
The fastest way to connect CodeBuddy to Edgee is the CLI, no environment variables to set by hand.1
Install the Edgee CLI
- macOS / Linux
- Homebrew (macOS)
- Windows (PowerShell)
2
Launch CodeBuddy through Edgee
Choose how you want to launch. Both options route requests through Edgee.If you are not signed in, Edgee starts sign-in automatically at launch. Follow the prompts and select your organization when asked.The CLI authenticates, configures routing, and starts CodeBuddy, all in one command. Token compression is enabled automatically.
- With aliases (recommended)
- Without aliases
With aliases installed in the previous step, use your usual command:The alias runs
edgee launch for you, so requests go through Edgee.CodeBuddy must already be installed. See the CodeBuddy repository for install instructions.
Manual setup (advanced)
Get your coding-agent key
Manual setup uses the key of your enrolled CodeBuddy agent, not a standard API key created for LLM Router applications.- Open the Edgee Console and select your organization.
- In the header, click Set up coding agent or +, select CodeBuddy, and click Enroll. If your agent is already enrolled, use its existing icon.
- Click the agent’s icon, then Advanced settings → Advanced.
- Under Edgee API key (for manual setup), click Reveal key, then the copy icon.
<YOUR_CODING_AGENT_KEY>.
Configure CodeBuddy
CodeBuddy reads its endpoint and headers from environment variables. Set the following in your shell configuration (~/.bashrc, ~/.zshrc, etc.):
Replace
<YOUR_CODING_AGENT_KEY> with the coding-agent key copied above.Next Steps
- Learn more about the Edgee CLI and its launch commands
- Set up observability to monitor usage and costs
- Explore retry and fallback for resilient routing