English | Bahasa Indonesia | 日本語 | 简体中文
Ready-to-use configuration templates, base URL cheat sheet, and an endpoint verifier for connecting Cursor, Cline / Roo Code, Zed, Codex CLI, OpenCode, and Continue to Hostlinku.
| Client | Provider / Mode | Base URL | Template |
|---|---|---|---|
| Cursor | Override OpenAI Base URL | https://api.hostlinku.com/v1 |
UI settings |
| Cline / Roo Code | OpenAI Compatible (recommended) | https://api.hostlinku.com/v1 |
UI settings |
| Cline / Roo Code | Anthropic (custom base URL) | https://api.hostlinku.com (no /v1) |
UI settings |
| Zed | openai_compatible.hostlinku |
https://api.hostlinku.com/v1 |
configs/zed-settings.json |
| Codex CLI | Custom provider (wire_api = "responses") |
https://api.hostlinku.com/v1 |
configs/codex-config.toml |
| OpenCode | @ai-sdk/openai-compatible |
https://api.hostlinku.com/v1 |
configs/opencode.json |
| Continue | openai |
https://api.hostlinku.com/v1 |
configs/continue-config.json |
Test /v1/models, /v1/chat/completions, and /v1/responses before pasting the key into your editor (no dependencies, Node.js ≥ 18):
HOSTLINKU_API_KEY=sk-your-api-key node scripts/verify-ide-endpoint.mjs- Cursor:
Verifysends requests from Cursor servers (localhostURLs fail;https://api.hostlinku.com/v1works). Cursor Tab (autocomplete) stays on Cursor's own backend; Chat, Cmd-K, and Agent use Hostlinku. If streaming stalls, set HTTP Compatibility Mode to HTTP/1.1. - Cline & Roo Code: Use OpenAI Compatible to access any catalog slug (Claude, GPT, DeepSeek). If using Anthropic, drop
/v1from the base URL (https://api.hostlinku.com) and pick only Claude IDs recognized by Cline. - Zed: Declare every model under
language_models.openai_compatible.hostlinku.available_modelsinsettings.json, then paste your key in Agent Panel settings (or exportHOSTLINKU_API_KEY). Zed Edit Predictions use/v1/completions(FIM) which Hostlinku does not expose — keep Edit Predictions on default. - Codex CLI: Must go in
~/.codex/config.toml(not project-local.codex/config.toml) withwire_api = "responses". In Performance/Economy modes, use OpenAI/GPT slugs (gpt-5-5,gpt-5-6-luna,gpt-6-astra); Claude and domestic models are not supported in Codex CLI. - OpenCode: Put your key in
~/.config/opencode/hostlinku-api-key.txtand reference it with{file:~/.config/opencode/hostlinku-api-key.txt}insideconfigs/opencode.json. Restart OpenCode after saving. - Continue: Works for
chat,edit, andapplyroles (configs/continue-config.json, or translate to~/.continue/config.yaml). Leaveautocomplete/embed/rerankto dedicated local/other providers.
| Error | Likely cause |
|---|---|
401 UNAUTHORIZED |
Extra whitespace in key, revoked key, or HOSTLINKU_API_KEY not exported before starting IDE/CLI. |
404 on every request |
Missing /v1 on OpenAI-compatible URL, or extra /v1 on Anthropic-compatible URL. |
404 MODEL_NOT_FOUND |
Slug typo or model not available in your key's Service Mode. Check GET /v1/models. |
400 max_tokens |
Output limit exceeds the model's maxOutputTokens; lower max_tokens in config. |
- All IDE & Agent Docs: https://docs.hostlinku.com/en/integrations
- Claude Code Guide: https://github.com/dyocodes/hostlinku-claude-code-setup
- API Examples: https://github.com/dyocodes/hostlinku-api-examples
- Console: https://console.hostlinku.com
MIT. Config templates use placeholder keys only.