goose configure on the CLI. With dynamic_models: true, Goose fetches the active model list directly from GET https://api.hostlinku.com/v1/models scoped to your API key’s Service Mode.
One API key = one Service ModeCreate an API key in the Hostlinku Console for the Service Mode you need (Economy, Performance, or Dedicated). Never place real API keys inside
hostlinku.json so the config file stays safe to share across teams or repositories.Option 1: custom_providers/hostlinku.json (Recommended)
1
Create hostlinku.json
Create the JSON file inside Goose’s The
custom_providers directory for your OS (create the folder first if it does not exist):- macOS / Linux:
~/.config/goose/custom_providers/hostlinku.json - Windows:
%APPDATA%\Block\goose\config\custom_providers\hostlinku.json
hostlinku.json:models array acts as a fallback list if discovery is temporarily unreachable. Once your API key is configured, Goose queries GET https://api.hostlinku.com/v1/models automatically and displays the exact models enabled for your key’s Service Mode.2
Configure your API key
Choose either credential storage option:
- Goose Desktop (system keychain — recommended): restart Goose Desktop, open Settings → Models → Configure providers, select Hostlinku, paste your Hostlinku API key (
sk-...), and click Submit. - Environment variable (CLI / terminal):
3
Select a model and start a session
In Goose Desktop, open Settings → Models → Switch models (or click the active model name at the bottom of the window), choose Hostlinku, and pick any model discovered for your API key. On the CLI, run
goose configure → Configure Providers → Hostlinku.Option 2: Goose Desktop GUI or goose configure
If you prefer not to create the JSON file manually:
- Goose Desktop: open Settings → Models → Configure providers → Add Custom Provider, then enter:
- Provider Type:
OpenAI Compatible - Display Name:
Hostlinku - API URL:
https://api.hostlinku.com/v1 - API Key: your Hostlinku API key (
sk-...) - Available Models: comma-separated Hostlinku slugs available to your key’s mode, e.g.
claude-sonnet-5-5, gpt-6-2-sol, deepseek-v4-1-flash-hyper - Streaming Support: enabled, then click Create Provider
- Provider Type:
- Goose CLI: run
goose configure→ Custom Providers → Add A Custom Provider and enter the same values.
Optional Anthropic Messages Dialect
To use the Anthropic Messages dialect directly (for example with Claude models), create a separate filecustom_providers/hostlinku_anthropic.json with "engine": "anthropic" and "base_url": "https://api.hostlinku.com".
Troubleshooting
- Hostlinku does not appear in the provider list — check that the file is saved at
~/.config/goose/custom_providers/hostlinku.json(macOS/Linux) or%APPDATA%\Block\goose\config\custom_providers\hostlinku.json(Windows) with valid JSON, then restart Goose. 401 Unauthorized— verifyHOSTLINKU_API_KEYis saved in Goose Desktop’s keychain or exported in the shell runninggoose.404 model_not_foundorMODEL_NOT_IN_SERVICE_MODE— confirm the model slug is enabled for your API key’s Service Mode in the model catalog or viaGET /v1/models.

