Skip to content

feat(ai): add OrcaRouter as a named model provider - #702

Open
XiaoHuo888-hue wants to merge 1 commit into
codedogQBY:mainfrom
XiaoHuo888-hue:feat/orcarouter-provider
Open

feat(ai): add OrcaRouter as a named model provider#702
XiaoHuo888-hue wants to merge 1 commit into
codedogQBY:mainfrom
XiaoHuo888-hue:feat/orcarouter-provider

Conversation

@XiaoHuo888-hue

Copy link
Copy Markdown

Summary

Adds OrcaRouter as a first-class model provider in ReadAny. OrcaRouter is an OpenAI-compatible model routing gateway that exposes 150+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, MiniMax, xAI and others behind a single endpoint and API key, with gateway-level security controls for AI agents.

I'm an engineer on the OrcaRouter team.

What this changes

  • packages/core/src/types/chat.ts: adds "orcarouter" to the AIProviderType union.
  • packages/core/src/utils/api.ts: registers OrcaRouter in PROVIDER_CONFIGS (base URL https://api.orcarouter.ai/v1, keys prefixed sk-orca-, no /v1 auto-append) and in detectProviderFromUrl.
  • Desktop & mobile UI: adds OrcaRouter to the provider dropdown in the chat/AI settings screens (AISettings.tsx, EndpointEditor.tsx) and the onboarding AI step (AIPage.tsx on both desktop and Expo app).
  • packages/core/src/utils/api.test.ts: unit tests for the new provider.
  • README.md / README_CN.md: mentions OrcaRouter in the provider lists and "Get API Key" table.

How to use it

  1. Get an API key at https://www.orcarouter.ai/console (keys start with sk-orca-).
  2. In Settings → AI, pick OrcaRouter as the provider, paste the key, and choose a model id such as orcarouter/auto, deepseek/deepseek-v4-flash, or openai/gpt-4o.
  3. ReadAny talks to https://api.orcarouter.ai/v1 exactly like any OpenAI-compatible endpoint, so model listing, chat, and embeddings all work through the gateway.

Verification

  • pnpm --filter @readany/core test — API URL helper tests pass (including the new OrcaRouter case).
  • pnpm exec biome check on the changed files — clean.

Registers OrcaRouter in AIProviderType, PROVIDER_CONFIGS and
detectProviderFromUrl, surfaces it in the desktop + mobile provider
dropdowns and onboarding AI step, and documents it in the READMEs.

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