opencode-cursor  by Nomadcxx

Integrate Cursor Pro AI models into OpenCode

Created 2 months ago
297 stars

Top 89.3% on SourcePulse

GitHubView on GitHub
Project Summary

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

  • Removes prompt limits and resolves broken stream issues for a more robust AI interaction.
  • Enables full AI thinking capabilities and tool support directly within the OpenCode editor.
  • Supports a wide array of Cursor models, including various versions of Claude, GPT, Gemini, Grok, and Kimi.
  • Features an MCP Tool Bridge that automatically discovers and integrates MCP servers (e.g., hybrid-memory, Playwright) via the 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.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
3
Issues (30d)
7
Star History
148 stars in the last 30 days

Explore Similar Projects

Starred by George Hotz George Hotz(Author of tinygrad; Founder of the tiny corp, comma.ai), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
42 more.

opencode by anomalyco

3.0%
142k
CLI tool for AI-assisted coding in the terminal
Created 11 months ago
Updated 1 hour ago
Feedback? Help us improve.