You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom baseURL configuration returns "Route /api/messages not found" error #5163
I'm trying to use opencode with Claude via a custom API endpoint. The same configuration works fine with Claude Code, but opencode returns the error: Not Found: Route /api/messages not found.
ERROR 2025-12-06T09:45:46 +56ms service=session.prompt error={"error":{"name":"AI_APICallError","url":"my_url","requestBodyValues":{"model":"claude-opus-4-5-20251101","max_tokens":32000, xxx
ERROR 2025-12-06T09:45:46 +0ms service=session.processor error=Not Found stack="AI_APICallError: Not Found\n at <anonymous> (../../node_modules/.bun/@[email protected]+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:950:18)\n at processTicksAndRejections (native:7:39)" process
Activity
github-actions commentedon Dec 6, 2025
This issue might be a duplicate of existing issues. Please check:
ProviderInitErrorwith Anthropic #1635:ProviderInitErrorwith Anthropic - related to Anthropic API configuration issuesFeel free to ignore if none of these address your specific case.
nicehiro commentedon Dec 6, 2025
Found a workaround.
Appending
/v1to the base URL (i.e.,my_url/v1) resolves the issue.I'm leaving this open as it may warrant either:
/v1yyyfor commentedon Dec 13, 2025
fixed my issue. thanks
douglas commentedon Jan 24, 2026
Solved my issue as well, thanks a lot!