Skip to content

[Performance] opencode-cursor is ~4x slower than native Cursor CLI #92

Description

@mohammad154

Describe the issue

I've been using opencode-cursor to access Cursor Pro models via OpenCode, and while the functionality and setup are great, I'm experiencing a significant performance overhead.

Compared to using the native Cursor CLI directly, opencode-cursor is about 4 times slower in terms of response and processing speed. This latency is highly noticeable and is really bothering my daily workflow.

To Reproduce

Steps to reproduce the behavior:

  1. Run a standard prompt/task using the native Cursor CLI and measure the time it takes to generate a response.
  2. Run the exact same prompt/task using opencode-cursor via OpenCode.
  3. Compare the execution/response times.

Expected behavior

I expected the performance to be relatively close to the native Cursor CLI. I understand there might be a slight overhead due to the HTTP proxy and SSE streaming architecture, but not a massive slowdown.

Actual behavior

The tool takes roughly 4 times longer to process and stream responses compared to the official Cursor CLI.

Environment

  • OS: [Ubuntu 22.04]
  • opencode-cursor version: [latest]
  • OpenCode version: [e.g. v1.17.7]

Additional context

Since this project acts as an HTTP proxy via cursor-agent and relies on SSE streaming, I suspect the bottleneck might be in how the proxy handles the stream or how OpenCode consumes it compared to the native CLI.

Is there any specific configuration, optimization, or architectural change that could help reduce this latency? Any advice on how to debug this further (e.g., specific debug logs to check with CURSOR_ACP_LOG_LEVEL=debug) would be greatly appreciated.

Thanks for your hard work on this project!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions