[PR #9812] fix(opentui): add 'Other' option to /connect menu for custom providers #13227

Open
opened 2026-02-16 18:18:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9812

State: open
Merged: No


Summary

  • Adds the missing "Other" option to the /connect menu in the TUI, allowing users to configure custom OpenAI-compatible providers
  • This matches the behavior of the CLI auth login command, which already has an "Other" option

Changes

  • Add "Other" option at the end of the provider list in DialogProvider
  • Add OtherProviderMethod component to prompt for custom provider ID with validation
  • Add CustomApiMethod component to handle API key entry for custom providers
  • Include helpful message about configuring opencode.json after setup

Test plan

  1. Run opencode and enter /connect
  2. Scroll down to the "Other" section
  3. Select "Other" - should now be a selectable option (not just a category header)
  4. Enter a custom provider ID (e.g., my-custom-provider)
  5. Enter an API key
  6. Verify credential is saved

Fixes #9802
Fixes #8820
Fixes #9071

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9812 **State:** open **Merged:** No --- ## Summary - Adds the missing "Other" option to the `/connect` menu in the TUI, allowing users to configure custom OpenAI-compatible providers - This matches the behavior of the CLI `auth login` command, which already has an "Other" option ## Changes - Add "Other" option at the end of the provider list in `DialogProvider` - Add `OtherProviderMethod` component to prompt for custom provider ID with validation - Add `CustomApiMethod` component to handle API key entry for custom providers - Include helpful message about configuring `opencode.json` after setup ## Test plan 1. Run `opencode` and enter `/connect` 2. Scroll down to the "Other" section 3. Select "Other" - should now be a selectable option (not just a category header) 4. Enter a custom provider ID (e.g., `my-custom-provider`) 5. Enter an API key 6. Verify credential is saved Fixes #9802 Fixes #8820 Fixes #9071 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:18:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13227