Skip to content

feat(opencode): add Moonshot AI Kimi K2.5 model#10835

Closed
MPavleski wants to merge 3 commits into
anomalyco:devfrom
MPavleski:dev
Closed

feat(opencode): add Moonshot AI Kimi K2.5 model#10835
MPavleski wants to merge 3 commits into
anomalyco:devfrom
MPavleski:dev

Conversation

@MPavleski

@MPavleski MPavleski commented Jan 27, 2026

Copy link
Copy Markdown

What does this PR do?

Adds support for the new Moonshot AI Kimi K2.5 model to both the China (moonshot-ai-china) and international (moonshot-ai) providers.

How did you verify your code works?

Changes:

  • Registers kimi-k2.5 model with full capabilities (attachments, reasoning, tool calls, temperature control)
  • Updates temperature detection to recognize k2.5 variants
  • Fixes type assertion in build script

Tested by running bun dev and verifying the model appears in the model list.
Also this message was written by Kimi K2.5 based on the commit.

Resolves #10811

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@MPavleski

Copy link
Copy Markdown
Author

Resolves #10811

@ShivamB25

Copy link
Copy Markdown

thank you @MPavleski for your work

@ShivamB25

Copy link
Copy Markdown

@palmamartin @vvarp @ndarilek @rmoriz please have it merged fast. it is a good model

"last_updated": "2026-01-27",
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
"open_weights": true,
"cost": { "input": 0.6, "output": 2.5, "cache_read": 0.15 },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed it, Kimi K2.5 confirmed pricing from screencap:

Thinking: The user has provided a screenshot of the pricing for kimi-k2.5. Let me compare it with what's in the JSON file:
From the image:
- Model: kimi-k2.5
- Input Price (Cache Hit): $0.10 per 1M tokens
- Input Price (Cache Miss): $0.60 per 1M tokens  
- Output Price: $3.00 per 1M tokens
- Context Window: 262,144 tokens
Current JSON configuration:
- cost.input: 0.6 (matches Cache Miss price)
- cost.output: 3 (matches Output price)
- cost.cache_read: 0.1 (matches Cache Hit price)
- limit.context: 262144 (matches Context Window)
All the prices match perfectly! The configuration is correct.
All prices match perfectly:
| Metric | Screenshot | Current JSON | Status |
|--------|-----------|--------------|--------|
| Input (Cache Miss) | $0.60 | 0.6 | ✓ |
| Input (Cache Hit) | $0.10 | 0.1 (cache_read) | ✓ |
| Output | $3.00 | 3 | ✓ |
| Context Window | 262,144 | 262144 | ✓ |
The kimi-k2.5 configuration is correct and up to date.

@ndarilek

Copy link
Copy Markdown
Contributor

@ShivamB25 It's rude to at-mention people randomly to make them do your work. I have no affiliation with this project other than contributing a few PRs so you're just spamming.

@ShivamB25

ShivamB25 commented Jan 27, 2026

Copy link
Copy Markdown

@ndarilek appolgies was just excited for model.

@oldjs

oldjs commented Jan 28, 2026

Copy link
Copy Markdown

@ndarilek

What's the excitement? This is just a Chinese model

@zortos293

Copy link
Copy Markdown

@ndarilek

What's the excitement? This is just a Chinese model

It beats Claude Sonnet 4.5 for a fraction of the price.

@eusip eusip mentioned this pull request Jan 29, 2026
1 task
@eusip

eusip commented Jan 29, 2026

Copy link
Copy Markdown

Is this going to be approved and merged?

@MPavleski

Copy link
Copy Markdown
Author

I'm closing this down, it is already available on the dev branch / npm repository version,.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: kimi k2.5 integration

7 participants