Skip to content

feat(provider): add endpoint-based custom providers and model discovery#29392

Open
dasdkslkd wants to merge 1 commit into
anomalyco:devfrom
dasdkslkd:feat(provider)--add-endpoint-based-custom-providers-and-model-discovery
Open

feat(provider): add endpoint-based custom providers and model discovery#29392
dasdkslkd wants to merge 1 commit into
anomalyco:devfrom
dasdkslkd:feat(provider)--add-endpoint-based-custom-providers-and-model-discovery

Conversation

@dasdkslkd
Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR adds endpoint-based custom provider support across the app and TUI. It lets users enter an API endpoint directly, automatically probes /models and /v1/models to discover models, and persists the provider configuration into the correct project config file.

It also adds provider removal support, fixes the desktop model-discovery fetch path by routing JSON requests through the main process, and updates the generated SDK APIs needed by the new config delete endpoints.

How did you verify your code works?

Ran bun x tsgo --noEmit in packages/opencode
Manually checked the custom provider flow in the app and TUI
Verified the provider remove APIs compile through the generated SDK

Screenshots / recordings

2026-05-26_190102 2026-05-26_190201

Checklist

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

@dasdkslkd dasdkslkd requested a review from adamdotdevin as a code owner May 26, 2026 11:05
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.

2 participants