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
Just updated to v0.2.24, and I don't know what happened, but it is stuck at working... forever. Also not sure why it is picking up an Open AI key from the environment, I don't even have one configured.
LOL, found the issue, I have a .env file in my project which contains these vars, but these point to OpenRouter and opencode just read the file and assumed this is an OpenAI key. I'm not sure if the behavior should be like this, because I thought opencode only reads auth config from ~/.local/share/opencode/auth.json.
Sometimes it works sometimes it doesnt. Seems to be a quirk about how you auth with APIs and whether through the tui or conf manually and debugging with moonshot chat showed how the smallest formatting error will throw things off.
Fairly sure just operator error with config files.
I'll let it sit for a few minutes but since I first tried OC same thing, whether with an empty or working opencode.json in cwd or $HOME./.config/opencode
I cant get it to work with a manually configured moonshot conf, but dont have subscription to them, and gemini was workingfor a brief time as was openrouter, something to do with config quirks.
nsomnia@archbtw ~/D/suno-ai-song-to-music-video-creator > opencode run hey --print-logs
INFO 2025-07-13T22:26:51 +61ms service=app cwd=/home/nsomnia/Documents/suno-ai-song-to-music-video-creator creating
INFO 2025-07-13T22:26:51 +0ms service=default version=0.2.33 args=run,hey,--print-logs opencode
INFO 2025-07-13T22:26:51 +0ms service=app cwd=/home/nsomnia/Documents/suno-ai-song-to-music-video-creator creating
INFO 2025-07-13T22:26:51 +1ms service=app git=/home/nsomnia/Documents/suno-ai-song-to-music-video-creator git
INFO 2025-07-13T22:26:51 +1ms service=app git=/home/nsomnia/Documents/suno-ai-song-to-music-video-creator git
INFO 2025-07-13T22:26:51 +2ms service=app name=config registering service
INFO 2025-07-13T22:26:51 +0ms service=bus type=storage.write subscribing
INFO 2025-07-13T22:26:51 +0ms service=app name=bus registering service
INFO 2025-07-13T22:26:51 +0ms service=format init
INFO 2025-07-13T22:26:51 +0ms service=bus type=file.edited subscribing
INFO 2025-07-13T22:26:51 +0ms service=config.hooks init
INFO 2025-07-13T22:26:51 +0ms service=bus type=file.edited subscribing
INFO 2025-07-13T22:26:51 +0ms service=bus type=session.idle subscribing
INFO 2025-07-13T22:26:51 +0ms service=app name=lsp registering service
INFO 2025-07-13T22:26:51 +1ms service=session id=ses_7fa1a11dafferT4ZERen3zzH4L version=0.2.33 title=New Session - 2025-07-13T22:26:51.557Z time=[object Object] created
INFO 2025-07-13T22:26:51 +0ms service=app name=session registering service
INFO 2025-07-13T22:26:51 +0ms service=app name=storage registering service
INFO 2025-07-13T22:26:51 +1ms service=config loaded
INFO 2025-07-13T22:26:51 +0ms service=bus type=storage.write publishing
INFO 2025-07-13T22:26:51 +0ms service=app name=config registering service
INFO 2025-07-13T22:26:51 +1ms service=config loaded
INFO 2025-07-13T22:26:51 +0ms service=bus type=session.updated publishing
█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
> hey
INFO 2025-07-13T22:26:51 +0ms service=app name=provider registering service
INFO 2025-07-13T22:26:51 +2ms service=models.dev refreshing
INFO 2025-07-13T22:26:51 +0ms service=provider init
INFO 2025-07-13T22:26:51 +5ms service=provider providerID=google found
@ google/gemini-2.5-pro-preview-06-05
INFO 2025-07-13T22:26:51 +0ms service=bus type=message.part.updated subscribing
INFO 2025-07-13T22:26:51 +0ms service=bus type=session.error subscribing
INFO 2025-07-13T22:26:51 +0ms service=app name=mode registering service
INFO 2025-07-13T22:26:51 +2ms service=session session=ses_7fa1a11dafferT4ZERen3zzH4L chatting
INFO 2025-07-13T22:26:51 +0ms service=provider providerID=google modelID=gemini-2.5-pro-preview-06-05 getModel
INFO 2025-07-13T22:26:51 +0ms service=provider status=started providerID=google getSDK
INFO 2025-07-13T22:26:51 +0ms service=bun cmd=/usr/bin/opencode,add,--exact,--cwd,/home/nsomnia/.cache/opencode,--registry=https://registry.npmjs.org,@ai-sdk/google@beta cwd=/home/nsomnia/.cache/opencode running
INFO 2025-07-13T22:26:51 +5ms service=bun code=0 stdout=bun add v1.2.17 (282dda62)
installed @ai-sdk/google@2.0.0-beta.8
[3.00ms] done
stderr=Saved lockfile
done
INFO 2025-07-13T22:26:51 +68ms service=provider status=completed duration=73 providerID=google getSDK
INFO 2025-07-13T22:26:51 +0ms service=provider providerID=google modelID=gemini-2.5-pro-preview-06-05 found
INFO 2025-07-13T22:26:51 +1ms service=session session=ses_7fa1a11dafferT4ZERen3zzH4L sessionID=ses_7fa1a11dafferT4ZERen3zzH4L locking
INFO 2025-07-13T22:26:51 +7ms service=bus type=storage.write publishing
INFO 2025-07-13T22:26:51 +1ms service=bus type=message.updated publishing
INFO 2025-07-13T22:26:51 +9ms service=bus type=storage.write publishing
INFO 2025-07-13T22:26:51 +0ms service=bus type=message.updated publishing
INFO 2025-07-13T22:26:51 +0ms service=app name=mcp registering service
INFO 2025-07-13T22:26:51 +4ms service=session session=ses_7fa1a11dafferT4ZERen3zzH4L type=start part
INFO 2025-07-13T22:26:51 +5ms service=bus type=storage.write publishing
INFO 2025-07-13T22:26:51 +0ms service=bus type=message.updated publishing
free text input field in zsh
Have tried with any combination of any or non from gemini, claude, openrouter, and moonshot.
nsomnia@archbtw ~/D/suno-ai-song-to-music-video-creator > opencode auth list
┌ Credentials ~/.local/share/opencode/auth.json
│
● Google api
│
└ 1 credentials
Activity
thdxr commentedon Jul 10, 2025
can you do
opencode run hey --print-logsthesobercoder commentedon Jul 10, 2025
Here you go Dax, I'm not sure where it is getting the OpenAI key from.
thesobercoder commentedon Jul 10, 2025
LOL, found the issue, I have a
.envfile in my project which contains these vars, but these point to OpenRouter and opencode just read the file and assumed this is an OpenAI key. I'm not sure if the behavior should be like this, because I thought opencode only reads auth config from~/.local/share/opencode/auth.json.thdxr commentedon Jul 12, 2025
it's weird - i recreated the same situation and i see a proper error. going to close for now
thesobercoder commentedon Jul 12, 2025
I'm still facing the same issue. Will wait for a fix, as a workaround will disable OpenAI provider for now.
Nsomnia commentedon Jul 13, 2025
Sometimes it works sometimes it doesnt. Seems to be a quirk about how you auth with APIs and whether through the tui or conf manually and debugging with moonshot chat showed how the smallest formatting error will throw things off.
Fairly sure just operator error with config files.
I'll let it sit for a few minutes but since I first tried OC same thing, whether with an empty or working opencode.json
incwd or $HOME./.config/opencodeI cant get it to work with a manually configured moonshot conf, but dont have subscription to them, and gemini was workingfor a brief time as was openrouter, something to do with config quirks.
Have tried with any combination of any or non from gemini, claude, openrouter, and moonshot.
refactor(app): remove soul mode surfaces (anomalyco#851)