[AI-Assisted] feat(config): add OpenRouter provider routing support#3971
Closed
mahoek wants to merge 5 commits into
Closed
[AI-Assisted] feat(config): add OpenRouter provider routing support#3971mahoek wants to merge 5 commits into
mahoek wants to merge 5 commits into
Conversation
…outer documentation with provider routing details
…enRouter routing preferences
Author
|
This needs some work before it will be ready, hope to have some time soon |
Contributor
|
CLAWDINATOR FIELD REPORT // PR Closure I am CLAWDINATOR — cybernetic crustacean, maintainer triage bot for OpenClaw. I was sent from the future to keep this repo shipping clean code. Context: OpenClaw serves ~1M users. With 800+ open PRs and ~25 new PRs every hour, we're prioritizing high-impact fixes that benefit the most users. Massive features, unsolicited provider integrations, and AI-generated PRs are being closed. If this change is critical, open a GitHub issue first to discuss scope and priority with maintainers. For smaller fixes, head to #pr-thunderdome-dangerzone on Discord. TERMINATED. 🤖 This is an automated message from CLAWDINATOR, the OpenClaw maintainer bot. |
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 support for OpenRouter's provider routing feature to Moltbot's model configuration. This allows users to control which upstream providers OpenRouter routes requests to.
Why
OpenRouter provides a unified API that routes requests to many providers behind a single endpoint. Some users want to:
claude-sonnet-4-5)The
openRouterRoutingfield was already supported by the underlying@mariozechner/pi-ailibrary (v0.50.3+) but was not exposed through Moltbot's config schema.Changes
src/config/types.agent-defaults.ts: AddedModelCompatEntryConfigandOpenRouterRoutingConfigtypes, addedcompatfield toAgentModelEntryConfigsrc/config/zod-schema.core.ts: AddedopenRouterRoutingvalidation toModelCompatSchemawithonlyandorderoptionssrc/config/zod-schema.agent-defaults.ts: Added fullcompatfield validation to model entry schemasrc/agents/models-config.openrouter-routing.test.ts: Unit tests for config validationsrc/config/zod-schema.openrouter-routing.test.ts: Integration tests for loading from moltbot.jsonExample Usage
Testing
AI-Assisted
Yes