Skip to content

[Bug]: OpenCode Go + Kimi K2.6/K2.5 returns 'Provider returned error' on CLI 1.14.20 #23887

@byungsker

Description

@byungsker

Description

OpenCode Go provider works perfectly for all models except Kimi K2.6 and K2.5, which consistently return "Provider returned error". Other models (GLM-5, Qwen3.5 Plus, MiniMax M2.5/M2.7) under the same OpenCode Go subscription work fine.

Environment

  • OpenCode Version: 1.14.20
  • OS: macOS
  • Provider: OpenCode Go (paid subscription, $10/month)
  • Affected Models: kimi-k2.6, kimi-k2.5
  • Working Models: glm-5, glm-5.1, qwen3.5-plus, minimax-m2.5, minimax-m2.7

Steps to Reproduce

  1. Run opencode and connect to OpenCode Go via /connect
  2. Select kimi-k2.6 from /models
  3. Send any message (e.g., "hi")
  4. Observe: "Provider returned error" appears immediately

Evidence

  • Same API key works with Kimi on other clients: The exact same OpenCode Go API key works perfectly with Kimi K2.6 on:
    • OpenClaw gateway (same machine, different session)
    • OpenCode Zen provider (same machine, different provider selection)
  • This rules out API key invalidity or server-side Kimi outage.

Troubleshooting Already Attempted

  • Cleared ~/.local/share/opencode and re-authenticated
  • Cleared ~/.cache/opencode to force provider package re-download
  • Reinstalled opencode-ai globally via npm
  • Changed network (WiFi → mobile hotspot) to rule out IP-based blocking
  • Verified same API key works with other OpenCode Go models
  • Verified same API key works with Kimi on OpenCode Zen

Expected Behavior

Kimi K2.6/K2.5 should work through OpenCode Go provider, just like GLM-5 and Qwen3.5 Plus do.

Actual Behavior

Only Kimi models fail with a generic "Provider returned error" message. No detailed error code or HTTP status is exposed in the UI.

Additional Context

This appears similar to previously reported issues:

However, in this case the API key is definitively valid (works on Zen and other models), and the error persists across cache clears, reinstalls, and network changes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions