Tool connection guide
NextHub exposes one API endpoint, https://api.nexthub.cc, speaking three protocols: OpenAI Chat Completions, Anthropic Messages and OpenAI Responses. Whether the base URL carries /v1 depends on the protocol and the client — the table lists the verified value per tool. Authentication uses a NextHub API key.
| Tool / client | Protocol | Base URL | Key handling | Step-by-step |
|---|---|---|---|---|
| Claude Code | Anthropic Messages | https://api.nexthub.cc | ANTHROPIC_BASE_URL (no /v1; the client appends /v1/messages) | tutorial |
| Codex | OpenAI Responses | https://api.nexthub.cc/v1 | Authorization: Bearer | tutorial |
| OpenCode | Anthropic Messages | https://api.nexthub.cc | provider.anthropic baseURL (no /v1) | tutorial |
| Kilocode | OpenAI-compatible (Responses) | https://api.nexthub.cc/v1 | API provider: OpenAI Compatible (Responses) | tutorial |
| Zed | OpenAI-compatible | https://api.nexthub.cc/v1 | OpenAI request prefix (with /v1) | tutorial |
| Anthropic SDK / cURL | Anthropic Messages | https://api.nexthub.cc | x-api-key + anthropic-version: 2023-06-01 | tutorial |
OpenAI-style direct calls (Chat Completions, Responses) use https://api.nexthub.cc/v1; Anthropic-style usage takes https://api.nexthub.cc without /v1. Group multipliers: /groups; billing and 429: /billing.