[Feature]: optional API Route BYOK provider
Problem / pain point
API Route users need to enter a custom OpenAI-compatible endpoint and credentials manually. A built-in optional provider would make initial configuration easier to discover. I maintain API Route and am asking about the preferred scope before implementing anything.
Proposed solution
Following the optional Atlas Cloud provider in #404, add API Route to provider onboarding and settings using the existing pi-ai OpenAI-compatible path:
- Endpoint:
https://global.api-route.com/v1. - User supplies their own API Route key, stored locally using the existing configuration mechanism.
- Offer exact catalog model IDs;
deepseek-v4-flashis currently listed publicly. Avoid inferred pricing or capabilities. - Keep existing defaults and use the existing provider adapter, without a new SDK dependency, bundled runtime, app-operated proxy, cloud account requirement, or telemetry.
Would another opt-in gateway provider be welcome? If so, I can submit a focused PR with configuration tests, documentation, and the required changeset. If built-in discovery is not desired, a documented custom-provider recipe would also work.
Alternatives considered
Retain custom OpenAI-compatible configuration and only add a short setup guide. This has less built-in surface area, but users must find and enter the endpoint themselves.
Scope
Provider / model.
Hard-constraints check
- I have read the hard constraints in CLAUDE.md and this proposal does not conflict with them: BYOK with locally stored credentials and state, no bundled runtime, no new shipped dependencies/assets, and no eager heavy feature loading.
I also reviewed the public VISION document. The template's ROADMAP path currently returns 404; CLAUDE.md permits using the public repository context when internal documents are unavailable.
Documentation: https://www.api-route.com/docs/overview. API key management: https://www.api-route.com/tokens. Current models: https://www.api-route.com/pricing.
This issue was prepared with AI assistance; I am responsible for the proposed integration.
Source: OpenCoworkAI/open-codesign