Skip to content

OpenCode Go Kimi route returns Moonshot insufficient balance 429 while Go quota is available #24462

Closed

Description

@Sisyphbaous-DT-Project

Description

Description

OpenCode Go Kimi route appears to be returning an upstream Moonshot billing/quota error even though the OpenCode Go usage quota is not exhausted.

This looks related to #23887, but the upstream raw error is visible here from a third-party OpenAI-compatible client , so I am opening a separate issue with the detailed provider response.

Environment

  • Affected model: kimi-k2.5/2.6
  • OpenCode Go usage dashboard was not exhausted:
    • Rolling: ~7%
    • Weekly: ~32%
    • Monthly: ~52%
  • Re-registering / switching to a fresh OpenCode account still produced the same 429

Actual Behavior

The Kimi route returns HTTP 429 with an upstream Moonshot error:

[Core] [WARN] [v4.23.5] [sources.openai_source:1010]: API calls too frequent, trying another key. Current key: sk-***
[Core] [WARN] [v4.23.5] [routes.config:712]: Provider openai/opencode-go/kimi-k2.5 is unavailable. Error: Error code: 429 - {
  "error": {
    "message": "Error from provider: Provider returned error",
    "code": 429,
    "metadata": {
      "raw": "{\"error\":{\"message\":\"Your account org-446a70bb2cc542e3960c0b7f05e4e0e1 <ak-f817m9q3k3wi11gjwbgi> is suspended due to insufficient balance, please recharge your account or check your plan and billing details\",\"type\":\"exceeded_current_quota_error\"}}",
      "provider_name": "Moonshot AI",
      "is_byok": true
    }
  }
}

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 26, 2026
  2. github-actions commented on Apr 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    You've already noted the relationship with #23887 — it may be worth adding your findings (the raw upstream Moonshot insufficient balance error with exceeded_current_quota_error) as a comment there to help the investigation, rather than tracking it as a separate issue.

  3. Sisyphbaous-DT-Project commented on Apr 26, 2026

    @Sisyphbaous-DT-Project
    Author

    Additional context:

    Expected behavior:

    • kimi-k2.5 / kimi-k2.6 should work through OpenCode Go while the OpenCode Go subscription quota is available.

    Why this does not look like an end-user quota issue:

    • The OpenCode Go usage dashboard was not exhausted.
    • Re-registering / switching to a fresh OpenCode account still produced the same 429.
    • The upstream raw error references a Moonshot account/access-key identifier: org-446a70bb... <ak-f817...>.
    • Those identifiers do not appear to be my OpenCode API key.

    Suspected cause:
    This looks like an OpenCode Go Kimi -> Moonshot upstream billing/quota/routing issue rather than an end-user OpenCode Go quota issue.

  4. Sisyphbaous-DT-Project commented on Apr 26, 2026

    @Sisyphbaous-DT-Project
    Author

    从错误来看,这似乎与 openai 的速率限制问题有关。可以尝试使用 npx ai-doctor。它可以修复弱重试策略,包括指数退避、抖动、重试上限和重试后处理。

    Thanks for the suggestion. I agree that exponential backoff + jitter is appropriate for transient 429 rate-limit errors.

    However, this specific error does not appear to be a normal OpenAI-style rate limit. The raw upstream response says:

    Your account org-446a70bb... <ak-f817...> is suspended due to insufficient balance
    type: exceeded_current_quota_error
    provider_name: Moonshot AI
    is_byok: True
    
  5. bogdan0083 commented on Apr 26, 2026

    @bogdan0083

    Yeah, I have the same error. Using pi coding agent with opencode-go provider and kimi 2.6. Getting this:

     Error: 429 Error from provider: Provider returned error
     {"error":{"message":"Your account ... is suspended due to insufficient balance, please recharge your account or check your plan and billing
     details","type":"exceeded_current_quota_error"}}
    
     Aborted after 1 retry attempt
    
  6. Sisyphbaous-DT-Project commented on Apr 26, 2026

    @Sisyphbaous-DT-Project
    Author

    So, in short: it looks like the official upstream API account ran out of balance — please recharge it 😄

  7. CorsarianSeaDog commented on Apr 26, 2026

    @CorsarianSeaDog

    Same here

  8. codeasier commented on Apr 26, 2026

    @codeasier

    I encountered the same issue during usage. Specifically, when sending a direct request via curl to https://opencode.ai/zen/go/v1/chat/completions, the kimi-2.5/6 model still returns a 429 error, while other models are working perfectly fine.

  9. Sisyphbaous-DT-Project commented on Apr 26, 2026

    @Sisyphbaous-DT-Project
    Author

    It seems you are probably hitting a openai rate limit issue. Trying npx ai-doctor might help. It can fix weak retry strategy with exponential backoff, jitter, retry caps, and retry-after handling.

    This is not a client-side OpenAI rate-limit/retry issue.

    A direct curl request to https://opencode.ai/zen/go/v1/chat/completions also returns 429 for kimi-2.5/2.6, while other OpenCode Go models work. The raw upstream error is:

    Your account ... is suspended due to insufficient balance
    type: exceeded_current_quota_error
    provider_name: Moonshot AI
    
  10. arun-8687 commented on Apr 26, 2026

    @arun-8687

    Same issue.

    The logs show Kimi K2.6 keeps failing with a 429 — the account is suspended due to insufficient balance:

    "Your account org-... is suspended due to insufficient balance, please recharge your account or check your plan and billing details"

  11. cbruegg commented on Apr 26, 2026

    @cbruegg

    The comment by @hailmary-ship-it is spam:

    It seems you are probably hitting a openai rate limit issue. Trying npx ai-doctor might help. It can fix weak retry strategy with exponential backoff, jitter, retry caps, and retry-after handling.

    It advertises a library with weird, undocumented telemetry: https://www.npmjs.com/package/ai-doctor?activeTab=code (see telemetry.js).

    Please help by reporting the profile.

  12. Sisyphbaous-DT-Project commented on Apr 26, 2026

    @Sisyphbaous-DT-Project
    Author

    已经解决,现在kimi可以正常使用了

  13. codeasier commented on Apr 26, 2026

    @codeasier

    已经解决,现在kimi可以正常使用了

    Same

  14. Sisyphbaous-DT-Project commented on Apr 27, 2026

    @Sisyphbaous-DT-Project
    Author

    鉴于问题已经解决,此issue关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions