unclear error issue #3415

Closed
opened 2026-02-16 17:40:00 -05:00 by yindo · 5 comments
Owner

Originally created by @SvenMeyer on GitHub (Dec 9, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

  • kimi cli is working with my account + monthly subscription
  • i did opencode auth login with provider Moonshot AI
  • start opencode
  • select model Kimi K2 Thinking from provider list Moonshot AI
  • prompt "what is your name" ... and get this (incomplete) error
Image

OpenCode version

1.0.137

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Manjaro Linux KDE

Terminal

Konsole

Originally created by @SvenMeyer on GitHub (Dec 9, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description - kimi cli is working with my account + monthly subscription - i did `opencode auth login` with provider `Moonshot AI` - start `opencode` - select model `Kimi K2 Thinking` from provider list `Moonshot AI` - prompt "what is your name" ... and get this (incomplete) error <img width="714" height="168" alt="Image" src="https://github.com/user-attachments/assets/8915433e-671e-4b23-9761-cf6bdb4b19af" /> ### OpenCode version 1.0.137 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Manjaro Linux KDE ### Terminal Konsole
yindo added the bug label 2026-02-16 17:40:00 -05:00
yindo closed this issue 2026-02-16 17:40:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 9, 2025):

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

  • #5103: Missing support tool calls in thinking tokens for Kimi K2 Thinking - This exact issue describes the problem with Kimi K2 Thinking model not working due to tool calls in thinking tokens
  • #1071: token count not working for some providers (moonshot.ai for example) - Related to Moonshot AI provider issues
  • #4190: [FEATURE]: Add kimi-k2-thinking and minimax-m2 model support for OpenCode Zen provider - Feature request that may be related to your issue

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 9, 2025): This issue might be a duplicate of existing issues. Please check: - #5103: Missing support tool calls in thinking tokens for Kimi K2 Thinking - This exact issue describes the problem with Kimi K2 Thinking model not working due to tool calls in thinking tokens - #1071: token count not working for some providers (moonshot.ai for example) - Related to Moonshot AI provider issues - #4190: [FEATURE]: Add kimi-k2-thinking and minimax-m2 model support for OpenCode Zen provider - Feature request that may be related to your issue Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

Ugh some dumb bug try this:

opencode run hello --print-logs --model moonshotai/kimi-k2-thinking

@rekram1-node commented on GitHub (Dec 9, 2025): Ugh some dumb bug try this: `opencode run hello --print-logs --model moonshotai/kimi-k2-thinking`
Author
Owner

@SvenMeyer commented on GitHub (Dec 9, 2025):

ok, i comes back with a lot of text (likely the system prompt) and at the end with "error=Your account org-18411144e9104296************ is suspended due to insufficient balance, please recharge your account or check your plan and billing details".

I have already sent a request to moonshot.ai to look into this, because I should have enough balance and strangely it works with Kimi CLI.

Regarding opencode, it would be great if there would be a way to display longer error messages as what was displayed in the CLI, it was not really helpful.

@SvenMeyer commented on GitHub (Dec 9, 2025): ok, i comes back with a lot of text (likely the system prompt) and at the end with "error=Your account org-18411144e9104296************ <ak-f4g5tt95i7s111b3pnui> is suspended due to insufficient balance, please recharge your account or check your plan and billing details". I have already sent a request to moonshot.ai to look into this, because I should have enough balance and strangely it works with Kimi CLI. Regarding opencode, it would be great if there would be a way to display longer error messages as what was displayed in the CLI, it was not really helpful.
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

yep ill fix

@rekram1-node commented on GitHub (Dec 9, 2025): yep ill fix
Author
Owner

@rekram1-node commented on GitHub (Dec 12, 2025):

fix: https://github.com/sst/opencode/commit/b41051b4ee99efdda2c709b4384cef0f3325e831

@rekram1-node commented on GitHub (Dec 12, 2025): fix: https://github.com/sst/opencode/commit/b41051b4ee99efdda2c709b4384cef0f3325e831
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3415