mrpava GitHub avatar

kimi-anthropic-native

mrpava

一个为 OpenCode 提供的最小 Anthropic 兼容 provider,通过始终向 Kimi Messages API 发送 thinking: {type: 'disabled'} 来启用 Kimi K2.6 “nothink” 模式。

Stars

4

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它绕过了当前固定的 @ai-sdk/anthropic 3.x 会静默丢弃 thinking.type='disabled' 的 bug,让 OpenCode 能真正使用 K2.6 Code Nothink,而不是在不知情的情况下为 K2.7 推理 token 付费。

适合谁使用

  • 拥有 Kimi Code 订阅并想使用 K2.6 Nothink 的 OpenCode 用户
  • 使用 Kimi Anthropic 兼容编程端点的开发者
  • 受 AI SDK 版本锁定和字段被静默丢弃问题影响的人
  • 希望参考最小 LanguageModelV3 provider 实现的开发者

典型使用场景

  • 在 OpenCode 中使用 Kimi K2.6 Code Nothink,无需等待上游 SDK 更新
  • 确保每次请求 kimi-for-coding 时都禁用 thinking
  • 在 OpenCode 中为 Anthropic 兼容 API 使用一个小而可读的 provider 实现
  • 通过 Kimi 计费控制台验证实际模型路由

项目优势

  • 无条件发送 thinking: {type: 'disabled'},直接解决 SDK 不转发该字段的问题
  • 实现了 LanguageModelV3,支持 doGenerate/doStream、SSE 和消息格式转换
  • 刻意不实现未使用的 Claude API,减小代码面并降低出错概率
  • 提供通过计费控制台确认模型是否被重路由的具体验证方法

使用前须知

  • 未发布到 npm,需要本地依赖配置并手动构建
  • 262144 上下文限制是继承来的,未针对 K2.6 路径独立验证
  • 非官方项目,依赖对 API 的经验观察;模型名称和行为可能随时变化

README 快速开始

Usage

项目描述

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.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

Jakubantalik
精选
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 与机器学习AI 智能体
1,191
makecindy
精选
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 与机器学习大语言模型
958
mereyabdenbekuly-ctrl
精选
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 与机器学习AI 智能体
859