在 Cursor 中使用 OpenRouter 模型:以 Moonshot AI 的 Kimi K2 为例
Use OpenRouter Models in Cursor: Try it with Moonshot AI's Kimi K2
用户现可通过 OpenRouter 灵活的路由服务,在 Cursor IDE 中直接调用 Moonshot AI 最新推出的 Kimi K2 模型。这一集成简化了开发流程,无需复杂配置即可在编码环境中访问高性能大语言模型。OpenRouter 作为统一接口,支持用户便捷切换包括 GPT、Claude、LLaMA 及 Kimi 在内的多种模型,显著提升了 AI 辅助编程工具的可用性和选择自由度。
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.
来源:OpenRouter:Announcements · openrouter.ai