code-cli
code-cli copied to clipboard
Add OpenPaths provider
What
Adds OpenPaths as a first-class named provider. OpenPaths is an OpenAI-compatible model gateway (like OpenRouter), so it slots into the existing provider architecture and reuses the generic OpenAI-compatible client.
- Base URL:
https://openpaths.io/v1 - Models endpoint:
https://openpaths.io/v1/models - Default model:
openpaths/auto(alsoopenpaths/auto-code,-fast,-reasoning) - API key:
OPENPATHS_API_KEY(key page: https://openpaths.io/account)
Changes
Additive and minimal — mirrors the OpenRouter wiring exactly across every parallel provider list.
src/types.ts: add'openpaths'toProviderName, addOpenPathsSettings, addopenpaths?toAutohandConfig.src/providers/OpenPathsProvider.ts: new provider (reuses the generic OpenAI-compatible client at the OpenPaths base URL; lists models from/v1/modelswith a static fallback).src/providers/ProviderFactory.ts:case 'openpaths'+ entries ingetProviderNames()/isValidProvider().src/config.ts:validProviders,isModernConfig,getProviderConfig(Record + api-key validation branch),defaultBaseUrlFor.src/onboarding/setupWizard.ts&src/core/agent/ProviderConfigManager.ts: addopenpathsentries to the exhaustiveRecord<ProviderName, ...>maps (required to keep typecheck green).tests/providers/ProviderFactory.test.ts: coverage foropenpaths(create configured / unconfigured,isValidProvider, updatedgetProviderNamesordering).
Testing
tsc --noEmit(typecheck): passes.eslinton changed files: passes, no warnings.vitestProviderFactory + config suites: 41 passed.
Note: I've reviewed CONTRIBUTING.md and COMMERCIAL.md — there's no CLA/DCO requirement and the changes are additive under Apache-2.0. If you do require a contributor agreement, I'm happy to sign your CLA.
🤖 Generated with Claude Code