Skip to content

feat: add OrcaRouter as a named LLM backend - #552

Open
JinhaoSong322 wants to merge 1 commit into
agiresearch:mainfrom
JinhaoSong322:add-orcarouter-provider
Open

feat: add OrcaRouter as a named LLM backend#552
JinhaoSong322 wants to merge 1 commit into
agiresearch:mainfrom
JinhaoSong322:add-orcarouter-provider

Conversation

@JinhaoSong322

Copy link
Copy Markdown

Summary

This PR adds OrcaRouter as a first-class LLM backend, mirroring the existing vLLM/SGLang OpenAI-client wiring.

OrcaRouter is an OpenAI-compatible gateway that exposes 160+ models (OpenAI, Anthropic, DeepSeek, Qwen, and more) behind a single API key at https://api.orcarouter.ai/v1. 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.

Changes

  • aios/llm_core/adapter.py: register ORCAROUTER_API_KEY in _setup_api_keys and add a dedicated orcarouter case in _initialize_single_llm (default base URL https://api.orcarouter.ai/v1, key from config/env, optional hostname override).
  • aios/config/config_manager.py: map orcarouterORCAROUTER_API_KEY in get_api_key.
  • aios/config/config.yaml.example: document the orcarouter api_key entry and an example model.
  • aios/utils/commands/launch.py: list ORCAROUTER_API_KEY in aios env list.
  • README.md: document the backend, API key setup, and add an OrcaRouter row to the Supported LLM Cores table.

Verification

  • python3 -m py_compile passes on all changed Python files.
  • Live L3 test: OpenAI client pointed at https://api.orcarouter.ai/v1 with model orcarouter/auto returned HTTP 200 and a valid completion.

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

Add a first-class 'orcarouter' backend mirroring the existing vLLM/SGLang
OpenAI-client wiring, targeting the OpenAI-compatible gateway at
https://api.orcarouter.ai/v1:

- aios/llm_core/adapter.py: register ORCAROUTER_API_KEY in _setup_api_keys
  and add the 'orcarouter' case in _initialize_single_llm (default base_url
  https://api.orcarouter.ai/v1, key from config/env).
- aios/config/config_manager.py: map orcarouter -> ORCAROUTER_API_KEY.
- aios/config/config.yaml.example: document the orcarouter api_key and model.
- aios/utils/commands/launch.py: list ORCAROUTER_API_KEY in aios env list.
- README.md: document the backend, key, and Supported LLM Cores entry.

Signed-off-by: JinhaoSong322 <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