Add OpenPaths provider#11283
Conversation
Add OpenPaths (https://openpaths.io) as an OpenAI-compatible provider, mirroring the existing declarative profile entries (baseten, deepseek, fireworks, etc.). OpenPaths is an OpenAI-compatible gateway, so the profile entry plus the family helper export are sufficient — no dedicated AI SDK plugin is required (it is served by the generic openai-compatible plugin). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Other Observations (not in diff)
Fix these issues in Kilo Cloud Reviewed by deepseek-v4-pro · 508,510 tokens Review guidance: REVIEW.md from base branch |
|
from our testing it seems this pull request does not actually add the provider to the selection in the CLI, extension, etc. Feel free to reopen with screenshots if this is resolved. Additionally, it is recommended to submit the provider for inclusion in https://github.com/anomalyco/models.dev first. |
|
Thanks, that direction makes sense. I opened a models.dev submission for OpenPaths first: It adds the OpenAI-compatible base URL and the documented OpenPaths router aliases, with |
What
Adds OpenPaths as a provider. OpenPaths is an OpenAI-compatible LLM gateway (similar in shape to OpenRouter): a single base URL fronts many models.
https://openpaths.io/v1https://openpaths.io/v1/modelsOPENPATHS_API_KEY(key page: https://openpaths.io/account)openpaths/autoChanges
Minimal, additive — mirrors the existing declarative OpenAI-compatible profile entries (
baseten,deepseek,fireworks, etc.):packages/llm/src/providers/openai-compatible-profile.ts: addopenpaths: { provider: "openpaths", baseURL: "https://openpaths.io/v1" }to theprofilesmap.packages/llm/src/providers/openai-compatible.ts: addexport const openpaths = define(profiles.openpaths)family helper.No dedicated AI SDK plugin is needed: OpenPaths is a plain OpenAI-compatible gateway and is served by the existing generic
openai-compatibleplugin, exactly like the other profile-only providers (baseten/deepseek/fireworks). The per-provider plugins underpackages/core/src/plugin/provider/exist only for providers that ship a dedicated@ai-sdk/*package, which does not apply here.Testing
bun run typecheck(tsgo --noEmit) inpackages/llm— passes.bun test test/exports.test.ts test/provider/openai-compatible-chat.test.ts— 9 pass, 0 fail.bun installaborts on an unrelated native build (tree-sitter-powershell/ node-gyp) in this environment; verification was scoped to thellmpackage with--ignore-scripts.Note
This LLM engine (
@opencode-ai/llm) is shared with opencode. If maintainers would prefer this profile entry land upstream there first, happy to redirect the PR.🤖 Generated with Claude Code