chore: wire Ask LLM models into Cursor cloud environment config

Merged
MS
2mo ago
+1-1

Adds the Anthropic language model provider to the install-time config.json generated by .cursor/environment.json, while preserving the existing github-public connection.

The configured model is claude-sonnet-4-5 and references the runtime environment variable ANTHROPIC_API_KEY only. OpenAI is intentionally not configured because OPENAI_API_KEY is not present in the Sourcebot Cursor environment.

The Runtime Secret must be set on the Cursor environment for Ask to call Anthropic. Listing a model in config can make it appear in the Ask selector; this change does not claim that a provider call succeeds without its secret.

Validation: the extracted generated config validates against the repository v3 schema and contains an Anthropic-only models array.

Open in Web Open in Cursor 

Summary by cubic

Adds the Anthropic model provider to the install-time config.json generated by .cursor/environment.json, so Cursor cloud environments can call Ask with Claude Sonnet 4.5. OpenAI is intentionally not wired in.

  • The model reads its API key from the ANTHROPIC_API_KEY environment variable; set it as a Runtime Secret on the Cursor environment for Ask to call the provider.
  • Keeps the existing github-public connection untouched.

Summary by CodeRabbit

  • New Features
    • Added configuration support for the Anthropic Claude Sonnet 4.5 model in the environment setup.