feat(hermes): add OrcaRouter as a first-class Hermes provider - #605
Open
lovejones2914-spec wants to merge 1 commit into
Open
feat(hermes): add OrcaRouter as a first-class Hermes provider#605lovejones2914-spec wants to merge 1 commit into
lovejones2914-spec wants to merge 1 commit into
Conversation
Register orcarouter in the curated Hermes provider tables so the settings panel can wire it up like any other API-key provider: codeg writes the ORCAROUTER_API_KEY var to ~/.hermes/.env and sets model.provider to orcarouter, which Hermes resolves through its models.dev fallback (the same path it uses for openrouter). Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Codeg drives a curated set of Hermes providers through structured fields: the settings panel writes the chosen provider's API key into
~/.hermes/.envand setsmodel.providerinconfig.yaml, so a named provider works without treating it as an anonymous custom base URL. This PR registers OrcaRouter as a first-class provider in both mirrored tables — the Rust source of truth incommands/acp.rsand the TypeScript table the panel binds to insrc/lib/types.ts— mirroring the existingopenrouterentry.Changes
src-tauri/src/commands/acp.rs: addedorcaroutertoHERMES_PROVIDERS(right afteropenrouter) withkey_env_var: "ORCAROUTER_API_KEY"and no user-supplied base URL — its endpoint is fixed, exactly like OpenRouter. Also added the entry to thehermes_provider_key_env_vars_match_authoritative_registrytest's expected list, which locks the table down against drift.src/lib/types.ts: added the matchingorcarouterentry to the TSHERMES_PROVIDERStable (label: "OrcaRouter",kind: "apiKey",needsBaseUrl: false). The Rust↔TS parity test (src/lib/hermes-providers.test.ts) asserts the two tables stay in lockstep on id order and key-presence.How it resolves
Hermes resolves
orcarouterthrough its models.dev fallback — the same path it already uses foropenrouter, which also has no entry inauth.py'sPROVIDER_REGISTRY.hermes_cli/providers.py::get_providerfindsorcarouterin the models.dev catalog (ORCAROUTER_API_KEY,https://api.orcarouter.ai/v1, 117 models), somodel.provider: orcarouterworks end to end with no application-level changes in Hermes.Verification
tsc --strictonsrc/lib/types.tspasses; Prettier check passes.POST https://api.orcarouter.ai/v1/chat/completionswith modelorcarouter/fusion-minireturned HTTP 200 with a normal completion (routed toopenai/gpt-oss-120b), confirming the endpoint and model namespace work exactly as OpenRouter-style aggregators do.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 first-class provider means Codeg's users can use that stack directly, without treating OrcaRouter as an anonymous custom base 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.
Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter
I'm an engineer on the OrcaRouter team.