Docs / Coding agents

Use with coding agents

Any agent or tool that lets you set an OpenAI-compatible base URL can use HummingRelay. For Pi there is an installer.

Pi

Run this in a terminal:

Shell
curl --proto '=https' --tlsv1.2 -fsSL https://hmbrd.dev/setup.sh | sh

The script adds HummingRelay as a provider to the Pi coding agent and asks for your API key. Have a key from the dashboard ready. Then pick one of the HummingRelay models in Pi. The two flags after curl keep the download on HTTPS with TLS 1.2 or newer, including any redirect.

Piping a script into a shell runs it as you. To read it first, download it once and run the file you read:

Shell
curl --proto '=https' --tlsv1.2 -fsSL https://hmbrd.dev/setup.sh -o hummingrelay-setup.sh
less hummingrelay-setup.sh
sh hummingrelay-setup.sh

What the installer trusts

The script sends your API key to https://api.hmbrd.dev/v1 to check it, and nowhere else. It is then written to Pi’s models.json, which only your user can read. With HMBRD_KEY_MODE=env the file refers to the HMBRD_API_KEY environment variable instead of holding the key. The previous models.json is kept next to it as a backup.

Other tools

Look for an “OpenAI-compatible” or “custom OpenAI” provider and fill in:

Settings for OpenAI-compatible tools
SettingValue
Base URLhttps://api.hmbrd.dev/v1
API keyhr_live_…
Modelmodel-zero, model-one-flash or model-one
API typeChat Completions

Tools that only speak the Responses API or the Anthropic Messages API will not work: HummingRelay serves Chat Completions and legacy Completions only.

Keeping agent costs predictable

Agents send long prompts many times and often in parallel. A few settings matter more than usual: