如果你正在使用 Cursor 作为 AI 编程助手,现在可以将其连接到 OpenRouter,以访问月之暗面(Moonshot AI)的 Kimi K2 等模型,该模型现已在该平台上线。
Kimi K2 拥有 1 万亿参数,SWE-Bench Verified 得分 65.8%,在代码生成和工具使用方面领跑开源榜单。只需几个配置步骤,即可在 Cursor 中完全使用该模型。
⚙️ 如何在 Cursor 中使用 OpenRouter
- 打开 Cursor,进入:
设置 → Cursor 设置 → 模型
- 向下滚动到 API 密钥,执行以下操作:
* Turn on **OpenAI API Key**
* Paste in your **OpenRouter API key**
* Enable **Override OpenAI Base URL**
* Set it to: `https://openrouter.ai/api/v1/cursor`
- 向上滚动到“添加或搜索模型”,输入:`moonshotai/kimi-k2` 添加它,开启开关,即可完成设置。
- 现在前往 Cursor 的聊天面板,从模型下拉菜单中选择 Kimi K2。
⚠️ 注意:Cursor 可能会提示该模型的智能体支持有限。你可以放心忽略此提示——Kimi K2 在助手式工作流中完全具备相应能力。
If you’re using Cursor as your AI coding assistant, you can now connect it to OpenRouter to access models like Kimi K2 by Moonshot AI, which is now live on the platform.
Kimi K2 delivers 1 trillion parameters, a 65.8% SWE-Bench Verified score, and leads the open-source charts for code generation and tool use. It is fully accessible in Cursor with just a few configuration steps.
⚙️ How to Use OpenRouter in Cursor
- Open Cursor, go to:
Settings → Cursor Settings → Models
- Scroll down to API Keys and do the following:
* Turn on **OpenAI API Key**
* Paste in your **OpenRouter API key**
* Enable **Override OpenAI Base URL**
* Set it to: `https://openrouter.ai/api/v1/cursor`
- Scroll up to “Add or search model” and enter: moonshotai/kimi-k2 Add it, toggle it on, and you’re set.
- Now go to the chat pane in Cursor and choose Kimi K2 from the model dropdown.
⚠️ Heads up: Cursor may warn that the model has limited agentic support. You can safely ignore this — Kimi K2 is fully capable in assistant-style workflows.