claudecodeui
claudecodeui copied to clipboard
[Feature] Count WALLY_API_KEY as an OpenCode provider login
Is your feature request related to a problem? Please describe.
OpenCode reads WALLY_API_KEY from the environment (Wally is a provider in the models.dev catalog OpenCode uses) and lists wally/<model> models. CloudCLI does not know that key:
- With only
WALLY_API_KEYset, the OpenCode status reads "OpenCode not configured". - With any other provider also connected, the OpenCode model picker drops every
wally/model, because the connected-provider check only knowsOPENCODE_API_KEY,ANTHROPIC_API_KEYandOPENAI_API_KEYfrom the environment.
Describe the solution you'd like
Add WALLY_API_KEY to OPENCODE_ENV_CREDENTIAL_KEYS in opencode-auth.provider.ts and to OPENCODE_ENV_PROVIDER_IDS in opencode-models.provider.ts, with tests. A small PR follows.
Additional context Wally is an OpenAI-compatible API for open-weight models, by RunAnywhere (we maintain it): https://docs.runanywhere.ai/wally-cloud/api