feat: add OrcaRouter as a first-class provider - #93
Open
Marc-oss-hub wants to merge 1 commit into
Open
Conversation
Adds an `orcarouter` option to the provider choices so CodeWiki can run through the OrcaRouter AI gateway. Selecting it auto-fills the base URL (https://api.orcarouter.ai/v1) and reads the API key from ORCAROUTER_API_KEY, mirroring the existing atlas-cloud convenience path. 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.
What
Adds OrcaRouter as a first-class
--provideroption incodewiki config set, so CodeWiki can run through the OrcaRouter AI gateway out of the box.Selecting
--provider orcarouterauto-fills the base URL (https://api.orcarouter.ai/v1) and reads the API key fromORCAROUTER_API_KEYwhen--api-keyis omitted — mirroring the existingatlas-cloudconvenience path. 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
codewiki/src/config.py: addORCAROUTER_BASE_URLconstant; documentorcarouterinConfigdocstringscodewiki/cli/commands/config.py: addorcarouterto the providerclick.Choice, help text, docstring example, and base-URL/API-key auto-fill blockcodewiki/cli/models/config.py: documentorcarouterin theConfiguration.providerdocstringREADME.md: add OrcaRouter to the supported-provider list, config example, and an "About OrcaRouter" noteVerified
codewiki config set --provider orcarouterauto-sets base URL and readsORCAROUTER_API_KEYcodewiki config validate --verboseconnects to the live endpoint (https://api.orcarouter.ai/v1) successfullypytest tests/— 40 passed; 2 pre-existing Windows path-separator failures intest_gitignore_filtering.py(unrelated; pass on Linux CI)ruff checkon changed files reports only pre-existing issues already present onmainI'm an engineer on the OrcaRouter team.