anomalyco / anomalyco/opencode
API Key 401 Invalid API key — muse-spark-1.2-contributor models list works but chat rejected
@MrMushrooooom is already working on this.
Since Aug 29, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I am located in Taiwan, which is not among Meta's restricted territories for API access.
API Key (sk-Nkp...) successfully calls the /models endpoint (HTTP 200) and correctly returns the model list including muse-spark-1.2-contributor.
However, all chat completion / responses endpoints return 401 Invalid API key regardless of which model is used:
muse-spark-1.2-contributor→ 401Invalid API keymuse-spark-1.2-contributor-free→ 401Model muse-spark-1.2-contributor-free is not supported(confirmed this is not a valid model name)gpt-5.3-codex→ 401Invalid API key
Endpoints tested:
https://opencode.ai/zen/go/v1/chat/completions→ 401https://opencode.ai/zen/go/v1/responses→ 401
Test time: 2026-08-31 ~01:00 +08:00 (UTC+8)
Relevant settings:
- "Allow models that use request data for training" is enabled (this is a data privacy setting and likely unrelated to API key validation)
Expected behavior:
API Key with /models access should be able to call chat completion endpoints.
Actual behavior:
All chat-related endpoints return 401 Invalid API key.
Request:
Please confirm whether this API key has chat completion / responses permissions enabled, or if a new key needs to be generated.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
Operating System
No response
Terminal
No response
Contributor 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.
Assessment
This issue has not been assessed yet.