desktop: Providers settings shows "API key" badge for OAuth (account) connections
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start in OpenCode Desktop's Providers settings where the credential badge is rendered, and trace the credential type from the server data. Reproduce the issue with an OAuth-connected OpenAI provider and a key-based provider; done means OAuth shows “Account (OAuth)” while key-based credentials still show “API key”.
Written by the indexing model from the issue text.
Description
Summary
In OpenCode Desktop's Providers settings, connected providers show a generic "API key" badge even when they were connected via OAuth with an account (e.g. OpenAI). The badge does not reflect the actual credential type stored by the server.
Environment
- opencode version: Desktop 2.0.11 (bundled CLI v2.0.11)
- OS: macOS, Darwin 27.0.0, arm64 (Apple Silicon M1)
- Terminal: N/A (Desktop app)
- Shell: /bin/bash
- Install/channel: stable
- Active plugins: none
Reproduction
- Connect the OpenAI provider with an OpenAI account (OAuth flow) in the Desktop app
- Open Settings > Providers
- The OpenAI entry shows the "API key" badge
Expected Behavior
The badge should reflect the actual connection method, e.g. "Account (OAuth)" for OAuth credentials and "API key" for key-based credentials.
Actual Behavior
The UI shows the "API key" badge for the OAuth-connected OpenAI provider.
Additional Context
Server-side the credential is correctly typed as OAuth:
- Server log records
credential created ... integrationID=openai type=oauth(the same session also showsintegrationID=openrouter type=key, whose "API key" badge is correct) - The credential store contains an OAuth JSON payload with access token, refresh token and expiry
So the stored data is right and the label is a UI-only issue, consistent with the display problems reported in #41720.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 20m
- Merged PRs (30d)
- 358
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anomalyco/opencode
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[FEATURE]: Bump gitlab-ai-provider to 6.15.1 on v2 (Fable 5.1, GPT-6 Astra, workflow reconnect fix) Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in anomalyco/opencode
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100