eigent icon indicating copy to clipboard operation
eigent copied to clipboard

[Feature Request] Add OrcaRouter as a BYOK provider

Open zhenjunchen-png opened this issue 6 months ago • 1 comments

Motivation

I'm an engineer on the OrcaRouter team. OrcaRouter (https://orcarouter.ai) is an OpenAI-compatible LLM gateway that routes each request to the cheapest or fastest provider across many upstream model providers.

We'd like to add OrcaRouter as a dedicated BYOK provider card in Agents → Models, alongside the other configured providers. Today users can technically use OrcaRouter via the generic "OpenAI Compatible" card by manually filling in the base URL, but a dedicated card gives them a pre-configured URL, a recognizable brand, and a consistent UX with the rest of the listed providers.

Solution

Follow the existing alias pattern for OpenAI-compatible gateways (ModelArk, grok, llama.cpp): add orcarouter to PLATFORM_ALIAS_MAPPING (aliased to openai-compatible-model), register the card in INIT_PROVODERS, ship an SVG icon, register the icon in Models.tsx, and add a row in the BYOK supported-providers table. No backend model_platform changes required.

Alternatives

  • Generic "OpenAI Compatible" card (current state): users must look up the base URL themselves and there's no brand recognition. Works, but inferior UX.
  • First-class ModelPlatformType.ORCAROUTER upstream in CAMEL: would be more invasive (CAMEL PR + waiting for release + bumping camel-ai here) without functional benefit for the alias path used by ModelArk/grok/llama.cpp.

Additional context

Resources

  • Website: https://orcarouter.ai
  • API base URL: https://api.orcarouter.ai/v1
  • Docs: https://docs.orcarouter.ai/
  • API key signup: https://orcarouter.ai

Implementation

A working branch is ready and end-to-end tested locally (configured the card, set as default, ran a project task, request hit OrcaRouter successfully):

https://github.com/zhenjunchen-png/eigent/tree/feat/add-orcarouter-provider

Happy to open the PR once this is accepted.

zhenjunchen-png avatar May 12 '26 07:05 zhenjunchen-png

Closing for now — preparing additional changes to the integration. Will reopen with the updated scope.

zhenjunchen-png avatar May 12 '26 08:05 zhenjunchen-png