在 Cursor 中使用 OpenRouter 模型:试用 Moonshot AI 的 Kimi K2
Use OpenRouter Models in Cursor: Try it with Moonshot AI's Kimi K2
OpenRouter 现已上线 Moonshot AI 的 Kimi K2,用户可在 Cursor 中通过配置 OpenRouter API key 直接调用该模型。Kimi K2 拥有 1 万亿参数,SWE-Bench Verified 得分 65.8%,在开源代码生成与工具调用榜单中领先。Cursor 可能提示该模型智能体支持有限,但官方称可忽略,其在助手式工作流中完全可用。
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.
🔗 Get Started
- Sign up and grab your API key from OpenRouter
- Browse available models: openrouter.ai/models
- Join our developer community: openrouter.ai/discord
来源:OpenRouter Blog · openrouter.ai