Goose
Connect Goose CLI and Goose Desktop to HeyEly with a custom provider JSON file.
Goose supports custom inference gateways through a standalone JSON provider definition. Selecting the openai engine routes requests over Chat Completions to https://heyely.si/v1.
Set up
- Create a key in Developers and export it as
HEYELY_API_KEYin the shell launching Goose. - Save
heyely.jsoninside Goose's custom providers directory:~/on macOS and Linux, or. config/ goose/ custom_ providers/ %APPDATA%\on Windows.Block\ goose\ config\ custom_ providers\
{
"name": "heyely",
"engine": "openai",
"display_name": "HeyEly",
"api_key_env": "HEYELY_API_KEY",
"base_url": "https://heyely.si/v1",
"supports_streaming": true,
"dynamic_models": true,
"models": [
{
"name": "anthropic/claude-sonnet-5.5",
"context_limit": 1000000,
"max_tokens": 128000
}
]
}
- Point Goose at your new provider and start a session.
export GOOSE_PROVIDER=heyely
export GOOSE_MODEL=anthropic/claude-sonnet-5.5
goose session
Using Goose Desktop? Open Settings, Models, Configure providers, click Add Custom Provider, and enter the same values. Goose Desktop saves your key directly in your OS keychain.
Make sure name uses only lowercase letters, digits, _, or -. Never place your key inside config.yaml, since Goose ignores keys stored there.
Verify
- Run
goose info -vto inspect active configuration paths and provider settings. - Send a one-shot verification prompt:
GOOSE_PROVIDER=heyely GOOSE_MODEL=anthropic/claude-sonnet-5.5 \
goose run -t "Reply with exactly: gateway-ok"
- Check Credit and usage to confirm the call appears first under Spend with your selected model.
Pick a model
- Enabling
dynamic_modelslets Goose pull available models fromGET /v1/models, while yourmodelsarray defines exact context and output token caps. - Context and output limits default to
context_limitandmax_tokens, and can be overridden per session viaGOOSE_CONTEXT_LIMITandGOOSE_MAX_TOKENS. - Prefer Anthropic Messages? Switch
enginetoanthropicand drop/v1sobase_urlishttps://heyely.si. GOOSE_PROVIDERandGOOSE_MODELoverride your saved defaults for a single shell. You can also pass--provider heyelydirectly ongooseorsession start --provider heyely goose.run --provider heyely
Troubleshooting
| You see | Cause | Fix |
|---|---|---|
missing | Variable not exported in Goose's shell | Export it in your terminal, or save it via Goose Desktop |
401 missing_api_key, "No api key passed in" | Key was put inside config.yaml, which Goose skips | Export HEYELY_API_KEY or configure it in Desktop |
| Provider missing from list | Invalid filename, invalid name, or broken JSON | Validate name characters and JSON syntax |
404 model_not_found | Model name does not match HeyEly's catalog | Copy the exact ID from the Models page |
402 insufficient_credit | No credit available on the account | Add credit |
402 | Account holds only free credit and this request does not qualify | Pick an eligible open-weight text model, reduce max_tokens, or add credit |
402 key_limit_reached | This API key hit its dollar cap | Raise the cap in Developers or swap keys |