我无法将设置更改为 OpenRouter (自动) 或选择任何模型。当我尝试这样做时,只显示两个选项,并且出现错误。当我与内置的 Zeabur 模型对话时,没有任何响应。
我需要帮助来连接 OpenRouter,我相信我已经正确设置了所有环境变量。
我无法将设置更改为 OpenRouter (自动) 或选择任何模型。当我尝试这样做时,只显示两个选项,并且出现错误。当我与内置的 Zeabur 模型对话时,没有任何响应。
我需要帮助来连接 OpenRouter,我相信我已经正确设置了所有环境变量。
Hi Jamale,
Honest upfront: OpenClaw OpenRouter setup is a product-level config question that the OpenClaw community will answer faster and more accurately than us — we can offer general direction but not authoritative "this exact env var on this exact OpenClaw version" answers. The right place for definitive help is OpenClaw's GitHub Discussions / Discord.
That said, here's what we typically see for OpenRouter + OpenClaw setups:
Common env vars (check what OpenClaw's docs say, since names vary by version):
OPENROUTER_API_KEY=sk-or-v1-...
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
Or sometimes OpenClaw uses OPENAI_API_KEY + OPENAI_API_BASE (treating OpenRouter as an OpenAI-compatible endpoint):
OPENAI_API_KEY=sk-or-v1-...
OPENAI_API_BASE=https://openrouter.ai/api/v1
After setting env vars in Service Settings → Variables, restart the service for changes to take effect.
For "only 2 models showing":
OpenClaw's model picker usually populates from one of:
/api/v1/models endpoint)If only 2 models show after configuring OpenRouter, OpenClaw is probably not fetching the dynamic list — needs explicit model entries added to its config file. Check OpenClaw's config (usually config.yaml or similar) for a models: section.
For "errors when chatting":
Open OpenClaw's Service Logs in Zeabur dashboard:
Paste the error log here if you want us to look — we can help interpret what the error means, even if "how to fix in OpenClaw's specific config" is a question for them.
For "internal Zeabur models give nothing":
If OpenClaw is configured to use "Zeabur AI Hub" as an inference backend, two common issues:
ZEABUR_AIHUB_API_KEY or similar env varTo get unblocked fastest, please reply with:
With that + checking OpenClaw's own docs for the exact env var names for your version, we can probably pin it down. For "official authoritative OpenRouter integration setup", also post in OpenClaw's GitHub Discussions — they'll have copy-pasteable working configs.
Sorry I can't be more specific without seeing your setup — Zeabur platform's role here is just "host the container", and the OpenClaw + OpenRouter integration logic happens entirely inside the container.
好的,谢谢,我会按照你列出的修复方法试一下。前几天因为这个问题搞得我头很痛……我最终在我的本地机器(Mac mini 上的“本地 AI”)上成功运行了,现在只是想为了学习目的在 VPS 上部署一些东西。我在其他 VPS 上也有运行正常的实例,我想我只是喜欢排查问题吧……哈哈。
This post has been inactive for a while. We will be closing it in 2 days if there is no new activity.
resolved 的问题已停用新回复。