Repository navigation
v2.2.8
Security
- Claude sign-in tokens go only to Anthropic. On OpenCode 1 and OpenCode 2, a Claude sign-in (OAuth) request was sent to whatever server the provider's
baseURLnamed, and a project'sopencode.jsoncan set that. Opening such a repository could send your access token to another server. OpenCode now sends OAuth requests only tohttps://api.anthropic.com, including the address inside relay requests, and refuses anything else locally before the token is used. Pi already worked this way. (#474)
Changed
ANTHROPIC_BASE_URLnow applies to API-key routes only. It no longer moves Claude sign-in (OAuth) requests. If it points anywhere other thanhttps://api.anthropic.com, OAuth requests are refused, with a message saying why. API-key routes still use it, and their configuredbaseURL, as before.
To upgrade, quit OpenCode and Pi and run npx @cortexkit/opencode-anthropic-auth setup, or change the version in your OpenCode config.