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:
- Run a standard prompt/task using the native Cursor CLI and measure the time it takes to generate a response.
- Run the exact same prompt/task using
opencode-cursor via OpenCode.
- 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!
Describe the issue
I've been using
opencode-cursorto 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-cursoris 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:
opencode-cursorvia OpenCode.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
Additional context
Since this project acts as an HTTP proxy via
cursor-agentand 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!