-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Hello, I am experiencing a persistent ProviderInitError when running opencode on my Apple Silicon Mac. The error occurs immediately upon sending the first message in the interface.
I have already gone through extensive troubleshooting, but the issue remains unchanged.
Error Message:
failed to send message: POST "http://127.0.0.1:xxxxx/session/..." 400 Bad Request
{"name":"ProviderInitError", "data":{"providerID":"opencode"}}
System Information:
macOS Version: (26.0.1)
Hardware: (arm64)
Node.js Version: v20.19.5 (managed by nvm)
npm Version: (10.8.2)
Troubleshooting Steps Performed:
I have tried all ofthe following steps, but the error persists in all scenarios:
Performed a complete wipe and re-installation multiple times (including deleting ~/.opencode and ~/.config/opencode directories and clearing npm cache).
Tested with both OpenAI and Zhipu AI providers. The result is the same.
Confirmed that I am not in a Conda environment.
Used nvm to switch from Node.js v22 to the stable LTS version v20.
Resolved potential .npmrc conflicts using nvm use --delete-prefix.
Given that the issue persists across different Node.js versions, providers, and after a complete re-installation outside of any Conda environment, this appears to be a bug related to the application's core initialization on an Apple Silicon (ARM64) macOS environment.
