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
Maybe even separate logs into ~/.local/state/opencode/, but that's not really that important...
so i think the commenter made a mistake - that format is for opencode.json which right now sits inside your repo and is meant to be checked in. the readme has info on how to configure additional providers
i'm going to add better validation to the auth flow so you don't end up with an invalid config
that opencode can talk to model(Qwen3),
but it also have some problem : I can't save api-key in ~/local/share/opencode/auth.json,It will lead to the emergence of the first problem
I will close this Issues
Thank you for your assistance @thdxr@manuelmaceira @luuk00101
Activity
morphishk commentedon Jun 16, 2025
I just write ~/.local/share/opencode/auth.json
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"@ai-sdk/openai-compatible": {
"name": "Qwen3",
"options": {
"baseURL": "http://localhost:8888/v1"
},
"models": {
"Qwen3": {
"name": "Qwen3"
}
}
}
}
}
akuuly-7 commentedon Jun 16, 2025
@thdxr @adamdottv
Shouldn't these kind of config files be rather put into ~/.config/opencode/ instead of ~/.local/share/opencode/? Seems a bit confusing to me and off-spec based on https://specifications.freedesktop.org/basedir-spec/latest/
Maybe even separate logs into ~/.local/state/opencode/, but that's not really that important...
manuelmaceira commentedon Jun 16, 2025
did that work for you? im having the same errors when trying to use opencode with llama.cpp
thdxr commentedon Jun 16, 2025
so i think the commenter made a mistake - that format is for
opencode.jsonwhich right now sits inside your repo and is meant to be checked in. the readme has info on how to configure additional providersi'm going to add better validation to the auth flow so you don't end up with an invalid config
morphishk commentedon Jun 16, 2025
I has re-write to ~/cache/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"@ai-sdk/openai-compatible": {
"name": "Qwen3",
"options": {
"baseURL": "http://localhost:8888/v1"
},
"models": {
"Qwen3": {
"name": "Qwen3"
}
}
}
}
}
that opencode can talk to model(Qwen3),
but it also have some problem : I can't save api-key in ~/local/share/opencode/auth.json,It will lead to the emergence of the first problem
I will close this Issues
Thank you for your assistance
@thdxr @manuelmaceira @luuk00101
feat(desktop): add review pane resizing, padding fix, and share commands
feat(#134): remove Task[general] fallback, require user clarification…