feat(llm): add Cursor provider via cursor-api-proxy#20
Open
anyrobert wants to merge 3 commits intocalesthio:masterfrom
Open
feat(llm): add Cursor provider via cursor-api-proxy#20anyrobert wants to merge 3 commits intocalesthio:masterfrom
anyrobert wants to merge 3 commits intocalesthio:masterfrom
Conversation
- 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
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. |
Author
|
alright, I just synced with master! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 manualnpx cursor-api-proxyneeded.Changes
cursor-api-proxyindependencieslib/llm/cursor.mjs—CursorProviderusingcreateCursorProxyClient(), optionalbaseUrl/apiKey/modelcursorcase increateLLMProvider,cursorBaseUrlincrucix.config.mjs.env.exampleand README updated (provider list, Cursor setup,LLM_CURSOR_BASE_URL)test/llm-cursor-integration.test.mjs(skipped unlessLLM_PROVIDER=cursor)Setup
npm install(installs cursor-api-proxy)agent loginLLM_PROVIDER=cursorin.envLLM_CURSOR_BASE_URL,LLM_API_KEY,LLM_MODEL