← Back to PRs

#19199: feat: add MegaNova AI as built-in provider

by bq1024 open 2026-02-17 14:23 View on GitHub →
docs cli commands agents size: M
## 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