Skip to content

Conversation

@zerone0x
Copy link
Contributor

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

The /connect menu in the TUI was missing the "Other" option that allows
users to configure custom OpenAI-compatible providers. This option was
available in the CLI `auth login` command but not in the TUI.

Changes:
- Add "Other" option at the end of the provider list in DialogProvider
- Add OtherProviderMethod component to prompt for custom provider ID
- Add CustomApiMethod component to handle API key entry for custom providers
- Include validation for provider ID format (lowercase, numbers, hyphens)
- Show helpful message about configuring opencode.json after setup

Fixes anomalyco#9802
Fixes anomalyco#8820
Fixes anomalyco#9071

Co-Authored-By: Claude <[email protected]>
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant