ChatbotX icon indicating copy to clipboard operation
ChatbotX copied to clipboard

OrcaRouter provider support for ChatbotX

Open clementguarino06510-glitch opened this issue 2 months ago • 1 comments

ChatbotX is a self-hosted, white-label alternative to ManyChat, and its BYOK choice is what makes that positioning credible. Rather than selling AI credits, the README's comparison table has self-hosters bring their own keys and point agents at OpenAI, Claude, Gemini, DeepSeek, OpenRouter, NVIDIA NIM or a local model — so an omnichannel setup across WhatsApp, Instagram, Telegram and Zalo stays something a team can host and audit themselves.

Your provider layer already supports this shape: openaiCompatibleProviderPresets handles custom, NIM and LM Studio through a base URL, key and model id, while aiChatProviders defines an ordered fallback list. OrcaRouter would slot in as another OpenAI-compatible preset — one endpoint fronting multiple chat and reasoning models, so choosing a model per flow stops meaning juggling several vendors' keys and billing.

Proposal

I'm an engineer on the OrcaRouter team, and I'd like to propose OrcaRouter as an optional provider for ChatbotX. It would be strictly additive — no existing provider, default model or fallback order would be replaced or changed.

What it would offer ChatbotX users

  • One endpoint, many models — chat, reasoning and image models reachable through a single OpenAI-compatible API, which suits the per-flow model selection the agent config already exposes.
  • Routing and provider failover — OrcaRouter can route a request and fall back to another provider on failure, complementing the ordered aiChatProviders fallback the runtime already walks.
  • Usage tracking and budgets — per-key spend visibility and caps, useful for teams running broadcasts and drip sequences that can quietly burn tokens.

OrcaRouter exposes an OpenAI-compatible API and uses standard API-key authentication, so the natural integration point is a new preset in packages/ai/src/openai-compatible/presets.ts (base URL, default model, model options) plus an entry in the provider registry — no bespoke client required. I have not written or tested any code for this; it is a proposal only.

Ecosystem

OrcaRouter is already used in open-source projects including RAGFlow, Dify, promptfoo and models.dev / OpenCode.

Disclosure

OrcaRouter runs an optional open-source partner program: approved OSS projects can receive a 5% revenue share from OrcaRouter usage attributed to their integration. Participation is optional and is not a prerequisite for the integration — I'm happy to follow whatever disclosure or governance rules ChatbotX requires.

More detail on the program: https://www.orcarouter.ai/built-with

Would you be open to this? If it fits your roadmap, I'd be glad to prepare an implementation PR for your review.

@clementguarino06510-glitch Hi,

Yes, please go ahead and submit a pull request! This aligns well with our goal of expanding the range of AI providers supported by ChatbotX.

We appreciate your initiative and look forward to reviewing your implementation.

Thanks for contributing to ChatbotX!

phongmaker avatar Oct 16 '26 06:10 phongmaker