feat: add Cursor Bridge provider#3284
Conversation
|
I have enough to finalize. All 35 Action items
|
Action items
|
|
Addressed both action items in Reasoning-option evidenceCursor Bridge now documents its model metadata contract at https://cursorbridge.dev/docs#model-metadata. Authenticated Reproduction example: curl -H "Authorization: Bearer $CURSOR_API_KEY" https://cursorbridge.dev/v1/models/claude-fable-5That response currently reports: {"reasoning_options":["low","medium","high","xhigh","max"]}All 20 configurable model TOMLs now cite their model-specific endpoint. I also programmatically compared every TOML effort array against its live endpoint response; all 20 match. Models with fixed reasoning behavior retain Inline limits and datesThe docs define the metadata fields and clarify that
The comments in both TOMLs now state exactly what each citation supports. The stale PR wording about having no provider-wide reasoning control has also been removed. |
|
The repository checkout is the trusted base revision, so the new files don't exist yet — my analysis is based on the diff content. I have completed my review of all changed files, the schema, base model metadata, conventions, and documentation. Action items
|
Summary
Why
Cursor Bridge lets users access models available to their Cursor account through an OpenAI-compatible API. Adding it to models.dev makes the provider and its model catalog selectable in OpenCode without requiring a custom provider definition.
Cursor Bridge is unofficial community software and is not affiliated with or endorsed by Cursor.
Provider details
CURSOR_API_KEY@ai-sdk/openai-compatibleModel metadata
base_modelmetadatadefaultand Cursor-proprietarycomposer-2.5are defined directlylow,medium,high,xhigh, and/ormaxeffort variantsProvider evidence
Authenticated
GET /v1/models/{model}responses expose the exactcontext_window,max_output_tokens,reasoning,reasoning_options, and applicablerelease_datevalues represented in this PR:curl -H "Authorization: Bearer $CURSOR_API_KEY" https://cursorbridge.dev/v1/models/claude-fable-5Each TOML with configurable reasoning links directly to its corresponding endpoint. The public documentation defines the response fields and explains that effort values come from Cursor usable-model variants. Unsupported effort values are rejected rather than silently substituted.
For Cursor-owned virtual models,
release_dateis documented as the first date that ID was observed in the live Cursor Bridge catalog.Validation
defaultandcomposer-2.5endpoint responsesbase_modeltarget existscurrentColorrequirementsgit diff --checkpassesFull repository validation runs in GitHub Actions because Bun is not installed in the local environment.