Skip to content

feat: add OrcaRouter to the default LLM egress allowlist - #1907

Open
XiaoHuo888-hue wants to merge 1 commit into
rivet-dev:mainfrom
XiaoHuo888-hue:add-orcarouter-provider
Open

feat: add OrcaRouter to the default LLM egress allowlist#1907
XiaoHuo888-hue wants to merge 1 commit into
rivet-dev:mainfrom
XiaoHuo888-hue:add-orcarouter-provider

Conversation

@XiaoHuo888-hue

Copy link
Copy Markdown

What

Add OrcaRouter to the default LLM egress allowlist, so a VM can reach the OrcaRouter gateway with zero extra network configuration (same as the existing openrouter.ai entry).

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.

OrcaRouter serves both OpenAI-compatible (/v1/chat/completions) and Anthropic-compatible (/v1/messages) surfaces, so it works for the Claude, Codex, Pi, and OpenCode agents without any per-agent wiring.

Changes

  • Add api.orcarouter.ai to DEFAULT_EGRESS_HOSTS in crates/client/src/agent_os.rs (both dns:// and tcp:// patterns are generated automatically).
  • Update the default-network-egress unit test to assert the new host.
  • Document ORCAROUTER_API_KEY on the OpenCode and Pi agent pages.

Validation

  • cargo test -p agentos-client --lib: 45 passed (includes the updated egress allowlist test).
  • cargo check -p agentos-client: clean.
  • cargo fmt -p agentos-client -- --check: clean.
  • cargo clippy -p agentos-client --lib: clean (pre-existing e2e test clippy warnings on the base branch are unrelated).
  • Live: POST https://api.orcarouter.ai/v1/chat/completions (Bearer) and POST https://api.orcarouter.ai/v1/messages (x-api-key) both return 200 with real model routing.

Disclosure: I'm an engineer on the OrcaRouter team.

Add api.orcarouter.ai to the client's default egress allowlist so VMs
can reach the OrcaRouter gateway without extra network configuration,
mirroring the existing openrouter.ai entry.

Also document ORCAROUTER_API_KEY as a supported provider variable on
the OpenCode and Pi agent pages.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.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