Uh oh!
There was an error while loading. Please reload this page.
feat(cursor-proxy): support model selection via CURSOR_MODEL env var - #3423
Merged
la14-1 merged 2 commits intoMay 21, 2026
Merged
Conversation
CollaboratorAuthor
aulorbeforce-pushed
the
cursor-proxy-model-selection
branch
from
May 20, 2026 22:57
2dddbcc to
d0dcb35Compareaulorbe
marked this pull request as ready for review
May 20, 2026 23:00
aulorbeforce-pushed
the
cursor-proxy-model-selection
branch
from
May 20, 2026 23:01
d0dcb35 to
e5ef0fbCompareaulorbeforce-pushed
the
cursor-proxy-model-selection
branch
from
May 20, 2026 23:21
e5ef0fb to
74484d8Compare2 tasks
aulorbeforce-pushed
the
macos-cursor-local-fix
branch
from
May 20, 2026 23:39
2a49db3 to
7290220Compareaulorbeforce-pushed
the
cursor-proxy-model-selection
branch
from
May 20, 2026 23:39
74484d8 to
8115e85Compare1 task
- Detect OS/arch at runtime for cross-platform Caddy installation - Install Caddy to ~/.local/bin (user-writable on all platforms) - Fix /etc/hosts configuration to work on both macOS and Linux - Replace setsid (Linux-only) with nohup (POSIX) - Ensure ~/.local/bin is in PATH for Caddy commands - Add comprehensive comments explaining platform-specific choices Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
louisgvforce-pushed
the
macos-cursor-local-fix
branch
from
May 21, 2026 00:14
7290220 to
08799bdComparelouisgv
approved these changes
May 21, 2026
Replace freeform text input fallback with a direct return of openrouter/auto, removing the unnecessary prompt and validateModelId import.
louisgvforce-pushed
the
cursor-proxy-model-selection
branch
from
May 21, 2026 00:14
8115e85 to
6d0a9e7CompareUh oh!
There was an error while loading. Please reload this page.
Base automatically changed from
macos-cursor-local-fix to
fix/cursor-proxy-local-guardMay 21, 2026 03:04
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 freeto 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
Stacked on #3422.
The Cursor proxy previously hardcoded
"openrouter/auto"for all OpenRouter API calls, always reportedClaude Sonnet 4.6as the default model, and offered no way to pick a different model.This PR:
modelEnvVar: "CURSOR_MODEL"to the Cursor agent config so the orchestrator injects the user's model choice into.spawnrc/api/v1/modelsendpoint (cached after first fetch, falls back to a default if it fails)CURSOR_MODELfrom the environment and forwards it to OpenRouter; the unary proxy'sGetDefaultModelForCliandGetUsableModelsresponses reflect the configured modelUsers can set their preferred model via:
MODEL_IDenv var~/.config/spawn/preferences.jsonTest plan
bunx @biomejs/biome check src/passesbun test src/__tests__/cursor-proxy.test.ts— all 13 tests passbun test src/__tests__/cmd-interactive-cov.test.ts— all 10 tests pass