Skip to content

feat: add OrcaRouter as a first-class provider - #93

Open
Marc-oss-hub wants to merge 1 commit into
FSoft-AI4Code:mainfrom
Marc-oss-hub:feat/orcarouter-provider
Open

feat: add OrcaRouter as a first-class provider#93
Marc-oss-hub wants to merge 1 commit into
FSoft-AI4Code:mainfrom
Marc-oss-hub:feat/orcarouter-provider

Conversation

@Marc-oss-hub

Copy link
Copy Markdown

What

Adds OrcaRouter as a first-class --provider option in codewiki config set, so CodeWiki can run through the OrcaRouter AI gateway out of the box.

Selecting --provider orcarouter auto-fills the base URL (https://api.orcarouter.ai/v1) and reads the API key from ORCAROUTER_API_KEY when --api-key is omitted — mirroring the existing atlas-cloud convenience 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: add ORCAROUTER_BASE_URL constant; document orcarouter in Config docstrings
  • codewiki/cli/commands/config.py: add orcarouter to the provider click.Choice, help text, docstring example, and base-URL/API-key auto-fill block
  • codewiki/cli/models/config.py: document orcarouter in the Configuration.provider docstring
  • README.md: add OrcaRouter to the supported-provider list, config example, and an "About OrcaRouter" note

Verified

  • codewiki config set --provider orcarouter auto-sets base URL and reads ORCAROUTER_API_KEY
  • codewiki config validate --verbose connects to the live endpoint (https://api.orcarouter.ai/v1) successfully
  • pytest tests/ — 40 passed; 2 pre-existing Windows path-separator failures in test_gitignore_filtering.py (unrelated; pass on Linux CI)
  • ruff check on changed files reports only pre-existing issues already present on main

I'm an engineer on the OrcaRouter team.

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>
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