feat: add OpenRouter to CLI installer
Closed
CL
6mo ago+65+65+01234567890123456789-3-3-0123456789
Summary
oh-my-openagent engine already supports OpenRouter at runtime. This change adds OpenRouter as a first-class provider during the CLI/TUI installation flow.
What's added
bunx oh-my-openagent install --openrouter <yes|no>— CLI flag- TUI installer prompt for OpenRouter subscription selection
- Auto-detect existing OpenRouter config from
openrouter/model prefix orOPENROUTER_API_KEYenv var - Provider availability mapping (
hasOpenRouter) insrc/cli/provider-availability.ts - Install config validation for
--openrouterarguments - Model fallback type coverage (
openrouteradded toKnownProviderunion) - Test mocks/helpers updated to include
hasOpenRouterfield - AGENTS.md — documents OpenRouter integration gap checklist (technical debt, not personal subscriptions)
What's NOT changed
- Runtime OpenRouter support (already existed via model routing)
model-requirements.tsfallback chains (deferred per AGENTS.md gap doc)
Verification
bun test: installer, TUI, model-fallback tests updated and passing
Files changed
13 files, +65 / -3 lines.
Need help on this PR? Tag @codesmith with what you need.
- Let Codesmith autofix CI failures and bot reviews
Summary by cubic
Adds OpenRouter as a first-class provider in the CLI/TUI installer. Users can now choose OpenRouter during setup, and model fallback recognizes it.
- New Features
- Adds
--openrouter <yes|no>tobunx oh-my-openagent installand a TUI prompt. - Auto-detects OpenRouter via
openrouter/model prefix orOPENROUTER_API_KEY. - Introduces
hasOpenRouteracross types, provider availability mapping, arg validation, and config summary. - Updates model fallback to include OpenRouter; tests and docs (gap checklist in AGENTS.md) updated.
- Adds