feat(config): add OrcaRouter gateway template as alternative LLM provider - #473
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat(config): add OrcaRouter gateway template as alternative LLM provider#473XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
…ider Add config-templates/openclaw-orcarouter.json mirroring the existing openclaw-awk.json structure: an OpenAI-compatible provider pointing at https://api.orcarouter.ai/v1 with models orcarouter/auto, fusion, fusion-mini, fusion-flash, free, open-code and code-review, using the openai-completions API adapter and ORCAROUTER_API_KEY env var. Also: - docker-entrypoint.sh: make API-key rendering provider-aware so each configured provider gets its own key (AWK_API_KEY for bailian-token-plan/awk, ORCAROUTER_API_KEY for orcarouter), and validate the required key based on which provider the active openclaw.json actually uses. - docker-compose.yml / docker/.env.example: pass through ORCAROUTER_API_KEY. - README / config README / env templates: document the OrcaRouter alternative template. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.com>
|
XiaoHuo888-hue seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
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
Add OrcaRouter as an alternative LLM gateway provider for xiaobei, mirroring the existing
openclaw-awk.jsontemplate.OrcaRouter is an OpenAI-compatible model gateway: one key routes DeepSeek, GLM, Qwen, Claude, Gemini and other mainstream models, with a single OpenAI-compatible endpoint (
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
config-templates/openclaw-orcarouter.json(new): alternative OpenClaw config template with a namedorcarouterprovider —baseUrl: https://api.orcarouter.ai/v1,api: openai-completions,apiKey: ${ORCAROUTER_API_KEY}, and curated models (orcarouter/auto,orcarouter/fusion,orcarouter/fusion-mini,orcarouter/fusion-flash,orcarouter/free,orcarouter/open-code,orcarouter/code-review). Structured exactly like the existingopenclaw-awk.json/openclaw.jsontemplates.docker/docker-entrypoint.sh: made API-key rendering provider-aware. Each configured provider now gets its own key env var (AWK_API_KEY→bailian-token-plan/awk,ORCAROUTER_API_KEY→orcarouter), and the required-key check validates whichever provider the activeopenclaw.jsonactually uses (so the OrcaRouter template no longer requiresAWK_API_KEY).docker/docker-compose.yml/docker/.env.example: pass throughORCAROUTER_API_KEY.README.md,config/README.md,config/.env.template: document the OrcaRouter alternative template and key.Usage
Copy
config-templates/openclaw-orcarouter.jsonto~/.openclaw/openclaw.json(or swap it into the Docker seed), setORCAROUTER_API_KEY(starts withsk-orca-) in.env, and start as usual.Verification
openclaw.jsonfrom the template.git diff --checkclean.POST https://api.orcarouter.ai/v1/chat/completionswithmodel: orcarouter/autousing a real key → HTTP 200, OpenAI-compatible response.Disclosure: I'm an engineer on the OrcaRouter team.