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
~30 second delay even with packages already installed
Log Evidence
INFO +0ms service=bun cmd=["opencode","add","--force","--exact","--cwd","/home/user/.cache/opencode","@aws-sdk/credential-providers@latest"]
INFO +29183ms service=bun code=143 stdout=bun add v1.3.5 ... stderr=Resolving dependencies
Root Cause
OpenCode's provider detection sees AWS_PROFILE → assumes user wants AWS Bedrock → installs AWS SDK with --force flag on every startup, defeating caching.
Workaround
AWS_PROFILE= opencode
Reacted by Ariel Schiavoni, Mike W and Dallen Pyrah
Activity
github-actions commentedon Jan 10, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
Biacode commentedon Jan 10, 2026
as a fix
Biacode commentedon Jan 10, 2026
OpenCode runs this command on every startup:
bun add --force --exact --cwd ~/.cache/opencode @aws-sdk/credential-providers@latest
This causes:
Log Evidence
INFO +0ms service=bun cmd=["opencode","add","--force","--exact","--cwd","/home/user/.cache/opencode","@aws-sdk/credential-providers@latest"]
INFO +29183ms service=bun code=143 stdout=bun add v1.3.5 ... stderr=Resolving dependencies
Root Cause
OpenCode's provider detection sees AWS_PROFILE → assumes user wants AWS Bedrock → installs AWS SDK with --force flag on every startup, defeating caching.
Workaround
AWS_PROFILE= opencode
fantomc0der commentedon Jan 20, 2026
Experienced extremely slow starts after trying OpenCode for the first time. Attempted this fix by clearing AWS_PROFILE and resolved the issue for me.
fix: cache BunProc.install for 'latest' to avoid repeated AWS SDK ins…
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.