Skip to content

feat(llm): add Cursor provider via cursor-api-proxy#20

Open
anyrobert wants to merge 3 commits intocalesthio:masterfrom
anyrobert:feat/cursor-llm-provider
Open

feat(llm): add Cursor provider via cursor-api-proxy#20
anyrobert wants to merge 3 commits intocalesthio:masterfrom
anyrobert:feat/cursor-llm-provider

Conversation

@anyrobert
Copy link

Summary

Adds a sixth LLM provider, cursor, using the cursor-api-proxy npm package. The proxy starts in the background on first request when using the default URL—no separate process or manual npx cursor-api-proxy needed.

Changes

  • Dependency: cursor-api-proxy in dependencies
  • New: lib/llm/cursor.mjsCursorProvider using createCursorProxyClient(), optional baseUrl / apiKey / model
  • Config: cursor case in createLLMProvider, cursorBaseUrl in crucix.config.mjs
  • Docs: .env.example and README updated (provider list, Cursor setup, LLM_CURSOR_BASE_URL)
  • Test: test/llm-cursor-integration.test.mjs (skipped unless LLM_PROVIDER=cursor)

Setup

  1. npm install (installs cursor-api-proxy)
  2. Install Cursor agent CLI and run agent login
  3. Set LLM_PROVIDER=cursor in .env
  4. Optional: LLM_CURSOR_BASE_URL, LLM_API_KEY, LLM_MODEL

- Add cursor-api-proxy as dependency; use createCursorProxyClient() SDK
- Proxy auto-starts on first use when using default URL (no separate process)
- New lib/llm/cursor.mjs: CursorProvider with optional baseUrl, apiKey, model
- Wire cursor into createLLMProvider and crucix.config.mjs (cursorBaseUrl)
- Update .env.example and README: 5 providers, Cursor setup, LLM_CURSOR_BASE_URL
- Add test/llm-cursor-integration.test.mjs (skipped unless LLM_PROVIDER=cursor)

Setup: npm install, agent login, LLM_PROVIDER=cursor. Optional: LLM_API_KEY,
LLM_CURSOR_BASE_URL, LLM_MODEL.

Made-with: Cursor
@anyrobert anyrobert requested a review from calesthio as a code owner March 16, 2026 23:41
@calesthio
Copy link
Owner

I haven't been able to get to this yet because work has been busy, but I definitely plan to review it over the weekend.

@anyrobert
Copy link
Author

alright, I just synced with master!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants