OpenRouter exposes an OpenAI-compatible API and would give users access to hundreds of models with one key.
Where: app/src/main/java/com/crsk/openclaw/data/providers/ProviderCatalog.kt — the four existing providers (nim/oai/ant/gem) are defined there as CUSTOM openai-completions providers with explicit baseUrl + model lists. Adding one more is mostly following the existing pattern.
Acceptance criteria
Good first contribution — the provider catalog is a pure-Kotlin, unit-tested file with no Android dependencies.
OpenRouter exposes an OpenAI-compatible API and would give users access to hundreds of models with one key.
Where:
app/src/main/java/com/crsk/openclaw/data/providers/ProviderCatalog.kt— the four existing providers (nim/oai/ant/gem) are defined there as CUSTOM openai-completions providers with explicitbaseUrl+ model lists. Adding one more is mostly following the existing pattern.Acceptance criteria
openrouterentry in ProviderCatalog (baseUrlhttps://openrouter.ai/api/v1, a few sensible default models)sk-or-…)./gradlew testDebugUnitTest lintDebuggreenGood first contribution — the provider catalog is a pure-Kotlin, unit-tested file with no Android dependencies.