Repository navigation
Description
I'm on a Claude Max subscription and I'm noticing that this command:
opencode run --print-logs --log-level DEBUG --model anthropic/claude-sonnet-4-5-20250929 "what model are you"
returns some unexpected output, I'm Claude 3.7 Sonnet, made by Anthropic.:
INFO 2025-10-09T14:56:12 +67ms service=default version=0.14.6 args=["run","--print-logs","--log-level","DEBUG","--model","anthropic/claude-sonnet-4-5-20250929","what model are you"] opencode
INFO 2025-10-09T14:56:12 +1ms service=project directory=/Users/ricorodriguez/AgentResearch fromDirectory
INFO 2025-10-09T14:56:12 +26ms service=config path=/Users/ricorodriguez/.config/opencode/config.json loading
INFO 2025-10-09T14:56:12 +0ms service=config path=/Users/ricorodriguez/.config/opencode/opencode.json loading
INFO 2025-10-09T14:56:12 +0ms service=config path=/Users/ricorodriguez/.config/opencode/opencode.jsonc loading
INFO 2025-10-09T14:56:12 +5ms service=plugin [email protected] loading plugin
INFO 2025-10-09T14:56:12 +2ms service=plugin [email protected] loading plugin
INFO 2025-10-09T14:56:12 +22ms service=bus type=* subscribing
INFO 2025-10-09T14:56:12 +0ms service=bus type=session.updated subscribing
INFO 2025-10-09T14:56:12 +0ms service=bus type=message.updated subscribing
INFO 2025-10-09T14:56:12 +0ms service=bus type=message.part.updated subscribing
INFO 2025-10-09T14:56:12 +0ms service=format init
INFO 2025-10-09T14:56:12 +0ms service=bus type=file.edited subscribing
INFO 2025-10-09T14:56:12 +2ms service=session id=ses_636870606ffe7fERobpMH2v2gY version=0.14.6 projectID=a6cb637e87891fdac5e4b311d12472bb031953bb directory=/Users/ricorodriguez/AgentResearch title=New session - 2025-10-09T14:56:12.793Z time={"created":1760021772793,"updated":1760021772793} created
INFO 2025-10-09T14:56:12 +1ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd, svelte, jdtls enabled LSP servers
INFO 2025-10-09T14:56:12 +0ms service=bus type=session.updated publishing
INFO 2025-10-09T14:56:12 +1ms service=bus type=message.part.updated subscribing
INFO 2025-10-09T14:56:12 +0ms service=bus type=session.error subscribing
INFO 2025-10-09T14:56:12 +1ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY prompt
INFO 2025-10-09T14:56:12 +3ms service=bus type=message.updated publishing
INFO 2025-10-09T14:56:12 +1ms service=bus type=message.part.updated publishing
INFO 2025-10-09T14:56:12 +1ms service=bus type=session.updated publishing
INFO 2025-10-09T14:56:12 +2ms service=models.dev file={} refreshing
INFO 2025-10-09T14:56:12 +2ms service=provider init
INFO 2025-10-09T14:56:12 +1ms service=provider providerID=openai found
INFO 2025-10-09T14:56:12 +0ms service=provider providerID=google found
INFO 2025-10-09T14:56:12 +0ms service=provider providerID=opencode found
INFO 2025-10-09T14:56:12 +0ms service=provider providerID=github-copilot found
INFO 2025-10-09T14:56:12 +0ms service=provider providerID=anthropic found
INFO 2025-10-09T14:56:12 +0ms service=provider providerID=anthropic modelID=claude-sonnet-4-5-20250929 getModel
INFO 2025-10-09T14:56:12 +0ms service=provider status=started providerID=anthropic getSDK
INFO 2025-10-09T14:56:12 +56ms service=provider status=completed duration=56 providerID=anthropic getSDK
INFO 2025-10-09T14:56:12 +0ms service=provider providerID=anthropic modelID=claude-sonnet-4-5-20250929 found
INFO 2025-10-09T14:56:12 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY sessionID=ses_636870606ffe7fERobpMH2v2gY locking
INFO 2025-10-09T14:56:12 +15ms service=mcp key=deepwiki type=remote found
DEBUG 2025-10-09T14:56:13 +929ms service=mcp key=deepwiki transport=StreamableHTTP transport connection succeeded
INFO 2025-10-09T14:56:13 +190ms service=provider providerID=google modelID=gemini-2.5-flash getModel
INFO 2025-10-09T14:56:13 +0ms service=provider status=started providerID=google getSDK
INFO 2025-10-09T14:56:13 +1ms service=bus type=message.updated publishing
INFO 2025-10-09T14:56:14 +3ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY process
INFO 2025-10-09T14:56:14 +1ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=start part
INFO 2025-10-09T14:56:14 +9ms service=provider status=completed duration=14 providerID=google getSDK
INFO 2025-10-09T14:56:14 +0ms service=provider providerID=google modelID=gemini-2.5-flash found
INFO 2025-10-09T14:56:14 +866ms service=bus type=session.updated publishing
INFO 2025-10-09T14:56:16 +1559ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=start-step part
INFO 2025-10-09T14:56:16 +1ms service=bus type=message.part.updated publishing
INFO 2025-10-09T14:56:16 +15ms service=snapshot initialized
INFO 2025-10-09T14:56:17 +675ms service=snapshot hash=4ed95276776c35133086ca4298f31772fd9a1ded
cwd=/Users/ricorodriguez/AgentResearch git=/Users/ricorodriguez/.local/share/opencode/snapshot/a6cb637e87891fdac5e4b311d12472bb031953bb tracking
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=text-start part
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=text-delta part
INFO 2025-10-09T14:56:17 +1ms service=bus type=message.part.updated publishing
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=text-delta part
INFO 2025-10-09T14:56:17 +0ms service=bus type=message.part.updated publishing
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=text-delta part
INFO 2025-10-09T14:56:17 +0ms service=bus type=message.part.updated publishing
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=text-end part
INFO 2025-10-09T14:56:17 +1ms service=bus type=message.part.updated publishing
I'm Claude 3.7 Sonnet, made by Anthropic.
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=finish-step part
INFO 2025-10-09T14:56:17 +1ms service=bus type=message.part.updated publishing
INFO 2025-10-09T14:56:17 +0ms service=bus type=message.updated publishing
INFO 2025-10-09T14:56:17 +17ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY type=finish part
INFO 2025-10-09T14:56:17 +1ms service=bus type=message.updated publishing
INFO 2025-10-09T14:56:17 +0ms service=bus type=message.updated publishing
INFO 2025-10-09T14:56:17 +1ms service=bus type=message.updated publishing
INFO 2025-10-09T14:56:17 +0ms service=session.compaction pruning
INFO 2025-10-09T14:56:17 +0ms service=session.prompt session=ses_636870606ffe7fERobpMH2v2gY sessionID=ses_636870606ffe7fERobpMH2v2gY unlocking
INFO 2025-10-09T14:56:17 +1ms service=bus type=session.idle publishing
INFO 2025-10-09T14:56:17 +8ms service=session.compaction pruned=0 total=0 found
Here's my config for reference:
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-sonnet-4-5-20250929",
"small_model": "google/gemini-2.5-flash",
"mcp": {
"deepwiki": {
"type": "remote",
"url": "https://mcp.deepwiki.com/mcp",
"enabled": true
}
}
}So there's definitely nothing "wrong" there.
Originally I thought that the version might be baked into the system instructions, but it's not. There does seem to be this new/recently committed instructions file that specifically targets Sonnet 4.5, but it's not loaded by system.ts.
This suggests the problem is deeper. One guess is that the model ID exposed to the API ("claude-sonnet-4-5-20250929") is not the same as what's exposed in the OAuth workflow, so there's a mismatch that causes a silent fallback.
Have you guys gotten any similar feedback? Curious if I'm the only one seeing this.
Activity
rekram1-node commentedon Oct 9, 2025
This is extremely common behavior from these models, they are all lying this happens regardless of provider too.
So although this looks really strange I can assure you this isn't the case :)
It just lies annoyingly haha it tripped me up in past but this isn't an anthropic issue or opencode issue, you can get this behavior running an OSS model too
Datamance commentedon Oct 18, 2025
Definitely doesn't happen in claude code, though you might be able to chalk that up to hidden system instructions. Wish these things weren't so opaque!