mrpava GitHub avatar

kimi-anthropic-native

mrpava

A minimal Anthropic-compatible provider for OpenCode that forces Kimi K2.6 'nothink' mode by always sending thinking: {type: 'disabled'} to the Kimi Messages API.

Stars

4

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-30

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It works around a silent bug in the pinned @ai-sdk/anthropic 3.x that drops thinking.type='disabled', ensuring OpenCode can actually use the K2.6 Code Nothink model instead of unknowingly paying for K2.7 reasoning tokens.

Who it is for

  • OpenCode users with a Kimi Code subscription who want K2.6 Nothink
  • Developers using Kimi's Anthropic-compatible coding endpoint
  • People affected by AI SDK version pinning and silent field-dropping
  • Developers looking for a minimal LanguageModelV3 provider example

Use cases

  • Run OpenCode against Kimi K2.6 Code Nothink without waiting for upstream SDK updates
  • Ensure thinking is disabled on every request to kimi-for-coding
  • Use a small, readable provider implementation for Anthropic-compatible APIs in OpenCode
  • Verify actual model routing via the Kimi billing console

Strengths

  • Sends thinking: {type: 'disabled'} unconditionally, directly addressing the SDK's failure to forward it
  • Implements LanguageModelV3 and handles doGenerate/doStream with SSE and message translation
  • Deliberately minimizes the provider surface by omitting unused Claude APIs, reducing potential breakage
  • Provides concrete verification steps to confirm the reroute via the billing console

Considerations

  • Not published to npm; requires local dependency setup and a manual build
  • Context limit of 262144 is inherited and explicitly not independently verified for K2.6
  • Unofficial and empirically based; provider-side model names and API behavior may change without notice

README quick start

Usage

Description

Minimal Anthropic-compatible OpenCode provider that unlocks Kimi K2.6 "nothink" mode by sending thinking:disabled unconditionally. Related / Upstream https://github.com/MoonshotAI https://github.com/anomalyco/opencode https://github.com/vercel/vercel Independent, unofficial project. Not affiliated with SST/OpenCode, Moonshot AI, or Vercel.

Related repositories

Similar projects matched by category, topics, and programming language.

Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191
makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958
mereyabdenbekuly-ctrl
Featured
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI & Machine LearningAI Agents
859