Skip to content

feat: add support for custom openai compatible provider (fixes #2102)#2294

Open
ashishSoni1234 wants to merge 1 commit into
different-ai:devfrom
ashishSoni1234:dev
Open

feat: add support for custom openai compatible provider (fixes #2102)#2294
ashishSoni1234 wants to merge 1 commit into
different-ai:devfrom
ashishSoni1234:dev

Conversation

@ashishSoni1234

@ashishSoni1234 ashishSoni1234 commented Jun 16, 2026

Copy link
Copy Markdown

Summary

  • Added support for a custom OpenAI-compatible provider. Users can now input a Base URL, Model Name, and API Key to connect any OpenAI-compatible API endpoint via the AI Providers settings UI.

Why

  • To address the need for using custom endpoints and API keys, specifically allowing users to connect to Nous Research's OpenAI-compatible inference API or other smaller providers.

Issue

Scope

  • Modified store.ts to handle custom provider storage in opencode.jsonc.
  • Updated provider-auth-modal.tsx to display the "Custom OpenAI Compatible" option.
  • Hooked up routing changes in session-route.tsx and settings-route.tsx.

Out of scope

  • N/A

Testing

Ran

  • pnpm run dev

Result

  • pass/fail: pass
  • if fail, exact files/errors: N/A

CI status

  • pass: Yes (Assumed pending CI run)
  • code-related failures: N/A
  • external/env/auth blockers: N/A

Manual verification

  1. Opened the AI Providers section in Settings.
  2. Clicked on "Custom OpenAI Compatible".
  3. Entered Base URL, Model Name, and API key.
  4. Saved and verified the connection successfully.

Evidence

  • N/A

Risk

  • Low. Only adds a new provider option without modifying existing provider logic.

Rollback

  • Simply revert the added provider ID and related UI options. No breaking changes introduced.

Review in cubic

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jun 16, 2026 6:04pm

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@ashishSoni1234 is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Re-trigger cubic

@ashishSoni1234

Copy link
Copy Markdown
Author

Hi @SongotenU, I have implemented the custom OpenAI-compatible provider as requested in issue #2102. The PR is ready for review. Could you please take a look and authorize the Vercel CI workflows whenever you have time? Let me know if any changes are needed. Thanks!

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.

Support Nous provider / custom OpenAI-compatible endpoint

1 participant