Skip to content

feat: add OrcaRouter as a preset provider for OpenAI-Responses accounts - #1258

Open
kuswardhanietidims-svg wants to merge 1 commit into
Wei-Shaw:mainfrom
kuswardhanietidims-svg:feat/orcarouter-provider-preset
Open

feat: add OrcaRouter as a preset provider for OpenAI-Responses accounts#1258
kuswardhanietidims-svg wants to merge 1 commit into
Wei-Shaw:mainfrom
kuswardhanietidims-svg:feat/orcarouter-provider-preset

Conversation

@kuswardhanietidims-svg

Copy link
Copy Markdown

Add OrcaRouter as a preset provider for the existing OpenAI-Responses account type, so this self-hosted Claude API relay service can route to OrcaRouter as a first-class named provider instead of an anonymous custom base URL.

OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models — but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Adding orcarouter as a preset means this project's users can point the OpenAI-Responses relay at orcarouter/auto and get that whole stack, without treating OrcaRouter as a random third-party URL. It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.

The account form gains a Provider selector (OrcaRouter / Custom) mirroring how providerEndpoint is already handled; choosing OrcaRouter auto-fills https://api.orcarouter.ai/v1, and the relay passes model names like orcarouter/auto through unchanged.

Validation

  • npx prettier --write + npx eslint clean on touched files
  • New unit tests in tests/openaiResponsesProviderPresets.test.js (7 cases) pass; full suite: 204 tests passed
  • Live check: POST https://api.orcarouter.ai/v1/chat/completions with model orcarouter/auto → HTTP 200

Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter

I'm an engineer on the OrcaRouter team.

Add a provider selector to the OpenAI-Responses account type so OrcaRouter
can be used as a first-class, named provider instead of an anonymous custom
base URL. Selecting orcarouter auto-fills the preset gateway endpoint while
the existing custom workflow keeps accepting a manual baseApi.

- src/services/account/openaiResponsesAccountService.js: provider field with
  preset base URL resolution on create/update, defaulting to custom
- src/services/relay/openaiResponsesRelayService.js: default provider for
  legacy accounts without the field
- web/admin-spa/src/components/accounts/AccountForm.vue: provider selector
  that pre-fills/clears the base URL
- tests/openaiResponsesProviderPresets.test.js: unit coverage for the presets

Co-Authored-By: Claude <noreply@anthropic.com>
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