Discover and explore top open-source AI tools and projects—updated daily.
NomadcxxIntegrate Cursor Pro AI models into OpenCode
Top 89.3% on SourcePulse
Summary
This project provides a seamless integration for using Cursor Pro models within the OpenCode editor. It addresses limitations such as prompt limits and broken streams, enabling full AI thinking and tool support directly in OpenCode by leveraging a user's existing Cursor subscription. The primary benefit is enhanced AI-powered coding assistance and automation within the OpenCode environment.
How It Works
The project functions as an HTTP proxy that intercepts OpenCode's requests and forwards them to the Cursor API via the cursor-agent CLI. This architecture bypasses typical API constraints, allowing for unlimited prompt lengths and reliable streaming. It integrates with OpenCode's tool runtime, enabling models to execute local commands and interact with MCP (Model Context Protocol) servers through the mcptool CLI, effectively bridging AI reasoning with local system capabilities. The core components include the open-cursor proxy, cursor-agent, and the @ai-sdk/openai-compatible provider.
Quick Start & Requirements
Multiple installation options are available: a one-line bash installer (curl ... | bash), configuration within ~/.config/opencode/opencode.json, global npm installation (npm install -g @rama_nigg/open-cursor), a Go TUI installer, or manual build from source. Authentication is managed via opencode auth login or cursor-agent login. Key dependencies include cursor-agent and potentially bun or go depending on the chosen installation method.
Highlighted Details
mcptool CLI, allowing models to trigger local actions.Maintenance & Community
The project roadmap includes stabilizing the current implementation and enhancing the MCP Bridge functionality, with future plans for simplification and deeper ACP+MCP integration. Stabilisation and MCP Bridge are marked as complete. No specific community channels or contributor details are provided.
Licensing & Compatibility
The project is licensed under the BSD-3-Clause license. It is designed for integration with OpenCode and is compatible with Linux and macOS environments.
Limitations & Caveats
The project README acknowledges that no single Cursor plugin for OpenCode is "perfect," advising users to select the "least worst" option. While this plugin supports Linux and macOS and offers unlimited prompt lengths, its future architecture relies on Cursor ACP's ability to reliably propagate MCP servers, a feature currently deferred. Tool calling is integrated via OpenCode's runtime and mcptool, with some aspects noted as experimental in alternative plugins.
3 weeks ago
Inactive
anomalyco