Skip to content

feat: improve the third-party provider configuration workflow - #2038

Open
1parado wants to merge 2 commits into
XiaomiMiMo:mainfrom
1parado:feat/third-party-provider-configuration
Open

feat: improve the third-party provider configuration workflow#2038
1parado wants to merge 2 commits into
XiaomiMiMo:mainfrom
1parado:feat/third-party-provider-configuration

Conversation

@1parado

@1parado 1parado commented Aug 5, 2026

Copy link
Copy Markdown

Issue for this PR

Closes # #2037

Type of change

  • Bug fix
  • New feature
  • [√] Refactor / code improvement
  • Documentation

What does this PR do?

  • API-key-only authentication without OAuth.
  • Support for OpenAI-compatible Chat Completions, OpenAI Responses, and Anthropic Messages.
  • A paged provider setup wizard with back navigation.
  • Model discovery through the provider's /models endpoint.
  • Multi-select model configuration.
  • Global provider deletion, including the stored API key and provider config.
  • Updated documentation and generated SDK types for the new API.

How did you verify your code works?

  • bun typecheck from packages/opencode
  • bun test test/cli/provider-models.test.ts test/auth/auth.test.ts
  • bun test test/config/config.test.ts
  • bun test --timeout 15000 test/provider/provider.test.ts
  • Prettier checks for the changed files

Screenshots / recordings

You can switch the configuration protocol.
image

You can automatically retrieve the list of available models.
image

verfy

v1/chat/completions
image

/v1/responses
image

/v1/messages
image

manage your third party provider
image

Checklist

  • [√] I have tested my changes locally
  • [√] I have not included unrelated changes in this PR

@1parado

1parado commented Aug 5, 2026

Copy link
Copy Markdown
Author

hi,@yanyihan-xiaomi. Please review the changes in this PR when you have time. Any feedback is welcome—I'll make the necessary updates. Thanks for your contributions to the open-source community!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant