Skip to content

[Bug] Persistent ProviderInitError on Apple Silicon Mac Despite Clean Install #2950

@manao29

Description

@manao29

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.

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions