docs: add HopBase to the OpenAI-compatible providers section
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- documentation
Research direction
Start in content/providers/04-openai-compatible-providers/ and compare the ModelRush (#20680) and Cheaper Inference (#21457) pages to follow the existing format. Use the linked HopBase setup guide and the supplied base URL, authentication, and model-discovery details as references. Done means a HopBase page is added with setup information consistent with those references.
Written by the indexing model from the issue text.
Description
Description
Please add a HopBase page to content/providers/04-openai-compatible-providers/.
HopBase is an OpenAI-compatible AI API gateway. One key reaches chat models from Anthropic, OpenAI, Google, xAI, DeepSeek, Z.ai, Moonshot, Alibaba and ByteDance, plus image and video generation models. It also serves DeepSeek V4.1 Flash from a Singapore data center (deepseek-v4.1-flash-1017-sg).
The integration needs no provider package: createOpenAICompatible with a baseURL is the full setup, the same shape as the ModelRush (#20680) and Cheaper Inference (#21457) pages.
The provider docs list the AI SDK
- Setup guide "Vercel AI SDK": https://hop-base.com/en/docs/tools/vercel-ai-sdk (also in zh-cn, zh-tw, ja and es)
- Docs index, section "Tool Compatibility: OpenCode, Vercel AI SDK and LiteLLM": https://hop-base.com/llms.txt
Setup facts
- Base URL:
https://api.hop-base.com/v1 - Auth:
Authorization: Bearer <key>. Keys are created in the console at https://api.hop-base.com - Model IDs:
GET https://api.hop-base.com/v1/models(needs an API key). Public catalog: https://hop-base.com/models - Claude models are served over the Anthropic Messages protocol and work with
@ai-sdk/anthropicusingbaseURL: 'https://api.hop-base.com/v1'; this is documented on the setup page above.
Reproduction
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
import { generateText, streamText } from 'ai';
const hopbase = createOpenAICompatible({
name: 'hopbase',
apiKey: process.env.HOPBASE_API_KEY,
baseURL: 'https://api.hop-base.com/v1',
});
const { text } = await generateText({
model: hopbase('deepseek-v4.1-flash-1017'),
prompt: 'Reply with the single word: ready',
});
console.log(text); // ready
const result = streamText({
model: hopbase('deepseek-v4.1-flash-1017'),
prompt: 'Count from 1 to 5, separated by spaces.',
});
for await (const part of result.textStream) process.stdout.write(part); // 1 2 3 4 5
Live test on 2026-10-31: both calls returned the expected output. Tool calling with tool() was also verified.
Disclosure: I work on HopBase.
AI SDK Version
- ai: 7.0.159, @ai-sdk/openai-compatible: 3.0.82
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- TypeScript
- Stars
- 27.6k
- Forks
- 5.5k
- Avg merge
- 12h 44m
- Merged PRs (30d)
- 500
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel/ai
-
convertBase64ToUint8Array peaks at ~25-30x the decoded size and blocks the event loop (~0.9 s for a 20 MB image on Node 24)Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
docs: describe the intermediate agent_step telemetry spanPossibly taken @lazerg claimed this 1 day ago. Openfactory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
vercel/ai#24230 · 4 comments ·
Maintainers usually reply within 1 day
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster maturity:stable no-stale P1
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openclaw/openclaw#190772 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
flisk-sh/run-my-agents#61 ·
-
Difficulty 2/5 3-5 days Newbie friendliness 62/100
career-ops-hq/career-ops#6399 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
BoardGamesEmpire/board-games-empire-backend#1027 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
johnfrog76/connected-deck#21 ·