#19199: feat: add MegaNova AI as built-in provider
docs
cli
commands
agents
size: M
Cluster:
Provider Support Enhancements
## Summary
- Add MegaNova AI (https://meganova.ai) as a first-class LLM provider with 15 open-source and reasoning models
- OpenAI-compatible API at `api.meganova.ai/v1` with reasoning and open-source models
- Full onboard wizard integration (interactive + non-interactive + CLI flags)
### Models included
Reasoning: GLM-5, GLM-4.7, GLM-4.6, DeepSeek-R1, DeepSeek-V3.1, Kimi-K2-Thinking
Open-source: DeepSeek-V3.2, DeepSeek-V3-0324, Llama-3.3-70B, Qwen3-235B, Kimi-K2.5, MiniMax-M2.1/M2.5, MiMo-V2-Flash, Mistral-Nemo
### Files changed (20)
| File | Change |
|------|--------|
| `src/agents/meganova-models.ts` | New — 15 model catalog with pricing |
| `src/agents/models-config.providers.ts` | Provider builder + implicit env var detection |
| `src/agents/model-auth.ts` | `MEGANOVA_API_KEY` env var mapping |
| `src/commands/onboard-auth.credentials.ts` | `setMeganovaApiKey()` helper |
| `src/commands/onboard-auth.config-core.ts` | `applyMeganovaConfig()` / `applyMeganovaProviderConfig()` |
| `src/commands/onboard-auth.ts` | Barrel exports |
| `src/commands/onboard-types.ts` | `meganova-api-key` auth choice + options type |
| `src/commands/auth-choice-options.ts` | Group + option definitions |
| `src/commands/auth-choice.preferred-provider.ts` | Provider mapping |
| `src/commands/auth-choice.apply.api-providers.ts` | Interactive onboard flow |
| `src/commands/onboard-non-interactive/local/auth-choice.ts` | Non-interactive flow |
| `src/commands/onboard-non-interactive/local/auth-choice-inference.ts` | Flag type |
| `src/commands/onboard-provider-auth-flags.ts` | `--meganova-api-key` CLI flag |
| `src/cli/program/register.onboard.ts` | Pass flag to onboard command |
| `src/cli/program.smoke.e2e.test.ts` | Smoke test for `--meganova-api-key` |
| `src/commands/auth-choice-options.e2e.test.ts` | Auth choice option test |
| `src/commands/onboard-non-interactive.provider-auth.e2e.test.ts` | Non-interactive onboard e2e test |
| `docs/providers/meganova.md` | New — provider documentation |
| `docs/providers/index.md` | Add to provider list |
### Compat notes
- `compat.supportsReasoningEffort: false` — MegaNova API does not support the `reasoning_effort` parameter
- Default model: `zai-org/GLM-5` (reasoning, 202K context, $0.8/$2.56 per M tokens)
## Test plan
- [x] `pnpm build` — compiles without errors
- [x] `pnpm test` — 5,359 tests pass (656 files), zero failures
- [x] `openclaw onboard --non-interactive --meganova-api-key <key>` — creates auth profile, registers models, sets default
- [x] `openclaw onboard` interactive flow — MegaNova AI appears as selectable provider with API key entry and model picker
- [x] Live chat tested via Discord channel with multiple models
Most Similar PRs
#15991: feat: add Novita AI provider support with dynamic model discovery
by Alex-wuhu · 2026-02-14
70.9%
#7418: feat (amazon-nova): add Amazon Nova 1P provider
by 5herlocked · 2026-02-02
70.8%
#12907: feat: add Gonka.ai as optional LLM provider with ECDSA signing
by ultragenez · 2026-02-09
67.9%
#19710: feat(nvidia): expand NIM model catalog from 3 to 38 models
by 88plug · 2026-02-18
67.3%
#20476: Providers: add DigitalOcean Gradient AI inference endpoint
by adugan-do · 2026-02-19
67.0%
#8216: Feat: Add sambanova provider
by luisfucros · 2026-02-03
66.0%
#12020: feat: add AIsa provider, production-grade Chinese AI models
by renning22 · 2026-02-08
65.8%
#15742: feat: add Edgee AI Gateway as provider
by manthis · 2026-02-13
65.7%
#11561: fix: respect supportsReasoningEffort compat flag for xAI/Grok reaso...
by baxter-lindsaar · 2026-02-08
65.7%
#17845: feat(onboard): add built-in Fireworks provider
by Autumn-Whisper · 2026-02-16
65.4%