opencode
opencode copied to clipboard
fix: Claude Code API credentials
Question
Problem
When using Anthropic credentials from Claude Code (the official Anthropic CLI), OpenCode displays:
"This credential is only authorized for use with Claude Code and cannot be used for other API requests."
This warning appears but doesn't guide users on what to do next.
Expected Behavior
Either:
- Detect Claude Code-specific keys and prompt users to enter a standard Anthropic API key instead
- Add documentation clarifying that Claude Code credentials won't work with OpenCode
Environment
- Windows 11
- OpenCode TUI
- Model: Claude Opus 4.5