Public: anyone can read this; nobody can change it.

feat(subscriptions): Anthropic-compatible API base URL (0.7.56) #14

Merged opened this view on origin

Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.

Merged

Crew subscriptions only accepted sk-ant- tokens and always hit Anthropic. OpenRouter (and other Anthropic-compatible gateways) need a custom base URL and a different key shape.

Notes

shipped merged

opened this view on origin

Why

Crew subscriptions only accepted sk-ant-* tokens and always hit Anthropic. OpenRouter (and other Anthropic-compatible gateways) need a custom base URL and a different key shape.

What

  • Migration 71: subscription.api_base (plain URL, not sealed)
  • Accept sk-or-v1-… always; accept other API key shapes when api_base is set
  • Crew injects ANTHROPIC_BASE_URL; for OpenRouter also ANTHROPIC_AUTH_TOKEN + empty ANTHROPIC_API_KEY, and allows the gateway host in the sandbox
  • UI: /settings/subscriptions + new-forge modelEndpoint
  • Spawn: modelEndpoint with starter key
  • Tests: kindOfToken, parseApiBase, credentialEnvOf, OpenRouter spawn dry-run
  • releases.json → 0.7.56 (migrations 71)

Notes

OpenRouter Claude Code base is https://openrouter.ai/api (no /v1 — SDK appends it). Pasted …/api/v1 is normalized on save.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs