Skip to content

Nix mode support + macOS Info.plist template - #40

Merged
steipete merged 7 commits into
openclaw:mainfrom
joshp123:upstream-preview-nix-2025-12-20
Jan 1, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
joshp123:upstream-preview-nix-2025-12-20

Conversation

@joshp123

@joshp123 joshp123 commented Dec 20, 2025 •

Copy link
Copy Markdown
Contributor

PR #40: Nix mode support + macOS Info.plist template

Quick summary of this PR (human written):

  • It allows declaratively configuring Clawdis using Nix.
  • This is nice if you are a Nix user and means that you can just configure and install the tool (and dependencies, and all the other tools it interfaces with) in a single Nix repo.
  • Nix writes everything immutably (as a side-effect/intended behaviour of having declarative config), so here, once the NIX_MODE feature flag is set, we make all settings pages immutable/read-only. Relevant onboarding pages are also hidden.
  • This behaviour is likely extremely not-desired for normal users, hence the whole thing being behind a feature flag, so that Nix-enjoyers/lunatics like myself can benefit, whilst normal users should notice 0 changes.

A few other fun things:

  • We have to build the MacOS app in a slightly different way, mostly for stupid upstream packaging reasons around Swift versions, which I won't bore you with here, but that's why the Info.plist is extracted from the script and into its own file.
  • If you're using a secrets manager with a nix-setup, then you can integrate with it here too, so your secrets are always... I suppose safe and managed and easily rotatable.
  • There's a small bundled bug fix, previously when using Telegram instead of WhatsApp, the status page mentioned that nothing was linked; now it correctly shows that Telegram is linked but WhatsApp is not.
  • If this PR is successfully merged, my next step would be to create a nix package definition in their package manager, but you shouldn't notice that at all (assuming this PR didn't overlook anything) - that's just upstream packaging.

TL;DR (for Peter)

  • Adds opt‑in Nix mode so config is read‑only + deterministic when CLAWDIS_NIX_MODE=1.
  • Makes macOS packaging deterministic by using the existing Info.plist template (and preserves ATS exceptions).
  • Improves Telegram‑only setups (token file support + health/status no longer falsely red).

Why this is safe

  • Feature‑flagged: normal users see no behavior change unless CLAWDIS_NIX_MODE=1 or the new env vars are set.
  • Packaging change is script‑only: it copies an Info.plist template and patches dynamic fields (same values as before), so standard builds still behave the same but are reproducible.
  • Telegram token file support is additive; fallback to existing botToken remains.

Changes (grouped by commit)

  1. feat: Nix mode config, UX, onboarding, SwiftPM plist, docs

    • Nix‑mode detection + read‑only UI/banner + onboarding skip when CLAWDIS_NIX_MODE=1.
    • Adds CLAWDIS_STATE_DIR + CLAWDIS_CONFIG_PATH overrides + tests.
    • macOS Info.plist moved to a template file; packaging script copies + patches it.
    • Docs: add docs/nix.md and link it.
  2. feat: improve health checks (telegram tokenFile + hints)

    • telegram.tokenFile supported for health probes + status display.
    • UI shows “Telegram ok / WhatsApp not linked” instead of a false red state.
  3. chore(macos): harden mktemp templates in codesign

    • Adds explicit XXXXXX to mktemp templates for portability.
  4. feat(macos): add current TeamID to Peekaboo allowlist

    • Allows locally‑signed builds to use the bridge without weakening allowlist rules.
  5. fix: use telegram token file for sends and guard console EPIPE

    • Sends respect telegram.tokenFile (same fallback path as health).
    • Console capture ignores EPIPE.
  6. macOS: load device models from bundle resources

    • Fixes crash when DeviceModels are packaged as app resources.

Out of scope (intentional)

  • No pnpm lockfile changes.
  • No Nix overlays or package definitions (those live in nixos-config).

Tests

  • pnpm lint

For Peter's agents to review

Scope + intent

  • This is opt‑in via CLAWDIS_NIX_MODE=1 and/or CLAWDIS_STATE_DIR/CLAWDIS_CONFIG_PATH; default behavior remains unchanged.
  • Packaging change is deterministic: the macOS packager now copies an Info.plist template and patches dynamic fields (same values as before), keeping static keys (including ATS exceptions) stable.

Safety checklist (quick pass)

  • Non‑Nix path unchanged: with no env vars set, config path stays ~/.clawdis/clawdis.json, UI remains writable, onboarding remains normal.
  • Nix mode is read‑only: config writes are short‑circuited; config UI is disabled; onboarding is skipped and marked seen.
  • Packaging: Info.plist template includes ATS exceptions for Tailscale (100.100.100.100 control-plane/MagicDNS). Script uses PlistBuddy to update only dynamic keys.
  • Telegram: token resolution order is env → tokenFile → botToken; no hard failure if token file is missing (health + send are safe).
  • Peekaboo allowlist: only adds the running app’s TeamID (no wildcarding).

Primary files to inspect

  • Nix mode + config: src/config/config.ts, src/config/config.test.ts
  • Gateway behavior + telegram token file: src/gateway/server.ts, src/commands/health.ts, src/commands/health.snapshot.test.ts, src/infra/provider-summary.ts
  • macOS UI gating: apps/macos/Sources/Clawdis/ConfigSettings.swift, GeneralSettings.swift, SettingsRootView.swift, Onboarding.swift, ClawdisConfigFile.swift
  • macOS packaging: apps/macos/Sources/Clawdis/Resources/Info.plist, scripts/package-mac-app.sh, apps/macos/Package.swift
  • macOS automation allowlist: apps/macos/Sources/Clawdis/PeekabooBridgeHostCoordinator.swift
  • Device model bundle loading fix: apps/macos/Sources/Clawdis/DeviceModelCatalog.swift

Behavioral assertions worth checking

  • With CLAWDIS_NIX_MODE=1, the Config tab is read‑only and shows Nix banner; onboarding is suppressed.
  • Health status reports “Telegram ok / WhatsApp not linked” instead of a red failure when Telegram is configured.
  • Packaged app still has NSAppTransportSecurity exceptions in Info.plist.

Suggested verification commands

  • pnpm lint
  • (Optional) pnpm test
  • (Optional) pnpm build for TypeScript compile sanity

@joshp123
joshp123 marked this pull request as ready for review December 20, 2025 18:19
@joshp123
joshp123 marked this pull request as draft December 20, 2025 18:20
@joshp123

Copy link
Copy Markdown
Contributor Author

Small note about draft statue: this PR will likely need a rebase on top of #39 if/once that PR is successfully merged, too. Once #39 is merged, I can set this one to "ready for review".

@@ -155,7 +190,7 @@ final class HealthStore {

func describeFailure(from snap: HealthSnapshot, fallback: String?) -> String {
if !snap.web.linked {
return "Not linked — run clawdis login"
return "WhatsApp not linked — run clawdis login"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge error

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed as well :)

hasIdentity: Bool) -> [Int]
{
if nixMode {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd simplify and disable that UI completely on nix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steipete

Copy link
Copy Markdown
Contributor

Thank you! That is not even terrible - I'll still have to sit on that a bit, wanna get a first release out and that'd complicate things.

@joshp123
joshp123 force-pushed the upstream-preview-nix-2025-12-20 branch 2 times, most recently from c70de6e to 2540b8e Compare December 20, 2025 20:33
@joshp123

joshp123 commented Dec 20, 2025 •

Copy link
Copy Markdown
Contributor Author

Thanks! I'll keep re-basing on upstream every now and then too :)

(I squashed the commits into fewer, more focused/atomic commits too).

@joshp123
joshp123 force-pushed the upstream-preview-nix-2025-12-20 branch from 2540b8e to df919fa Compare December 20, 2025 20:41
@joshp123
joshp123 marked this pull request as ready for review December 20, 2025 20:46
@joshp123
joshp123 force-pushed the upstream-preview-nix-2025-12-20 branch 4 times, most recently from 21287e4 to f40a029 Compare December 22, 2025 22:51
@joshp123
joshp123 marked this pull request as draft December 22, 2025 23:00
@joshp123
joshp123 force-pushed the upstream-preview-nix-2025-12-20 branch 6 times, most recently from d49d99d to a9ae91e Compare December 27, 2025 21:23
Problem: The bridge only accepts the upstream TeamID, so packaged builds signed locally (Nix/CI) can’t use the bridge even though they are the same app.

Fix: Include the running app’s TeamID (from its code signature) in the allowlist.

Safety: TeamID gating remains; this just adds the app’s own TeamID to preserve permissions/automation in reproducible installs.
@joshp123
joshp123 force-pushed the upstream-preview-nix-2025-12-20 branch from d4ee40d to 0f70295 Compare December 29, 2025 16:49
@joshp123
joshp123 marked this pull request as ready for review December 29, 2025 17:01
0x666c6f added a commit to 0x666c6f/openclaw that referenced this pull request Mar 26, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…5-12-20

Nix mode support + macOS Info.plist template
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
…5-12-20

Nix mode support + macOS Info.plist template
Only1Antz89 added a commit to IntAillium/aillium-openclaw that referenced this pull request May 26, 2026
Extract two self-contained modules from the 1,122-line server-http.ts:

- server-http-hooks-handler.ts (411 lines): createHooksRequestHandler,
  HookClientIpConfig, HooksRequestHandler, and all hook replay/auth
  internals. Re-exported from server-http.ts to preserve public API.

- server-http-mobile-avatar.ts (119 lines): handleMobileAvatarRequest
  and handleMobileAvatarInteractRequest mobile proxy handlers.

server-http.ts drops from 1,122 to 604 lines. All 32 gateway tests pass
(probe, hooks timeout, plugin auth, canvas auth).

Also fixes copilot-token.test.ts TypeScript errors: properly types the
vi.fn() mock to satisfy CopilotAuthStorage, and uses an object holder
to defeat TS control-flow narrowing in the coalescing test.
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
…5-12-20

Nix mode support + macOS Info.plist template
obviyus added a commit that referenced this pull request Oct 7, 2026
#166738)

Builds on #166737 (merged: curated `scripts/lib/recommended-models.json` + shared `canonicalModelKey`/`canonicalModelFamily`/`compareModelRecency`); this PR only adds the helper script and its test.

## What Problem This Solves

The recommended-models list is now curated by hand, so a maintainer needs a daily, reviewable signal for what to change: new releases, Arena reorderings, and entries that are retired or no longer served.

## User Impact

No user-visible change. Maintainers (and later a daily draft-PR agent) can run

```
OPENROUTER_API_KEY=... node --import ./scripts/tsx.mjs scripts/suggest-recommended-models.mts [--list <path>]
```

and get a markdown report ending in a unified diff against `scripts/lib/recommended-models.json`. The list file is never written; a human edits it.

## Why This Change Was Made

TypeScript port of the recv2 prototype's ranking: LMArena Agent Arena score first; equal scores, and models without one, order by OpenRouter 30-day usage. The newest served family member without its own Arena row takes the slot of its newest ranked older sibling, counting at least that sibling's usage, so it sorts directly ahead of it (release date decides recency, so grok-4.20 does not outrank grok-4.7). DeepSWE is dropped; `-fast` and other serving variants fold into the base model.

- Inputs: every run fetches each source fresh, with no cache; a failed request or a response that fails schema validation fails that run. Sources: LMArena Agent Arena `agent/latest` through the HF datasets-server JSON rows endpoint (no parquet dependency), OpenRouter `/api/v1/models`, OpenRouter `rankings-daily` (only when `OPENROUTER_API_KEY` is set; otherwise curated entries without an Arena score keep their order), Vercel `/v1/models`, and the hosted catalog v2.
- Identity: each source id resolves once through the shared `canonicalModelKey`, with its display name, so dated aliases join their versioned model. Examples: `mistral-small-2603` is Mistral Small 4, OpenRouter `mistral-large-4-0` matches Vercel `mistral-large-4`, and usage arrives through OpenRouter `canonical_slug`. Non-chat models are excluded by gateway modality or type labels; `-latest` aliases are excluded.
- Report sections:
  - **New models:** first seen within 7 days and not listed. Each shows its likely same-family predecessor and both prices, and is flagged `possible new class` when either price differs by more than 2x or the family has no predecessor.
  - **Arena moves:** rank changes among entries both lists keep, largest first.
  - **Gone or deprecated:** first-party retired with its replacement, no longer served, or no signal.
  - **Suggested list:** the full ordered list plus the diff.

No overlap with Pash/Sarah changes (the PR adds one new file).

## Evidence

- Port fidelity: on the live inputs, the helper reproduced the prototype's 86-id suggested list exactly before the review-driven identity fixes. Two differences remain, and #166737's seed list already includes both: `mistral-medium-2604` is folded into `mistral-medium-3.5` because they are the same model, and `ling-3.0-flash-*` is now spelled `ling-3-flash-*` because zero minor versions fold.
- Typecheck: `node scripts/run-tsgo.mjs -p tsconfig.scripts.json` and `tsgo:test:root` report no errors; scoped oxlint and oxfmt are clean. `canonical-model-key.test.ts` passed 32/32.
- Ordering: `test/scripts/suggest-recommended-models.test.ts` feeds stubbed sources through the real entry point. Two models tied on Arena score order by usage (the higher-usage one first, against alphabetical order), and a successor that inherits its sibling's Arena slot still sorts ahead of that higher-usage sibling. With the previous alphabetical tiebreak the test fails.
- Cost: `pnpm test test/scripts/suggest-recommended-models.test.ts --maxWorkers=1` takes 2.2 s wall end to end (Vitest 0.78 s; the test itself 9 ms). CI on this head: run 37692398322, green in 595 s wall and 5,717 job-seconds across 58 jobs for the whole PR; the new test adds about 9 ms of that.
- Error and fallback paths: a list containing `claude-opus-4.8` reported "retired by its first-party provider; replaced by claude-opus-5", and `nonexistent-model-9` reported "no host serves it". A missing `--list` file exits 1 with a clear message. Without a key, the report states that usage was skipped and keeps unscored curated entries. With an invalid `OPENROUTER_API_KEY`, the run exits 1 with `https://openrouter.ai/api/v1/datasets/rankings-daily returned HTTP 401` and prints no report.
- Live run: all inputs were fetched fresh (5 requests, 3.9 s wall). Both outputs below are copied verbatim. In the live data the only exact Arena ties are successor/sibling pairs (`gpt-5.6`/`gpt-5.4`, `mimo-v2.6-pro`/`mimo-v2.5-pro`), and each successor sorts first.

Run against the curated list in #166737, using the default path:

# Recommended models suggestion, 2026-10-07

## Sources
- LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0.
- OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:06:52.590Z. Licensed under CC BY 4.0.
- Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models.

## New models (first seen in the last 7 days, not listed)

| model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note |
| --- | --- | --- | --- | --- | --- | --- |
| glyph-cluster | 2026-10-07 | no signal yet | ? | none |  | possible new class: no predecessor |
| mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 |  |
| apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none |  | possible new class: no predecessor |
| pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none |  | possible new class: no predecessor |

## Arena moves

None.

## Gone or deprecated

None.

## Suggested list

<details><summary>85 models</summary>

| # | model | signal |
| --- | --- | --- |
| 1 | claude-fable-5.1 | Arena 0.143 (#1) |
| 2 | claude-opus-5.5 | Arena 0.138 (#2) |
| 3 | claude-sonnet-5.5 | Arena 0.125 (#3) |
| 4 | gpt-6-astra | Arena 0.123 (#4) |
| 5 | gpt-6.1-sol | Arena 0.112 (#5) |
| 6 | gpt-6-sol | Arena 0.097 (#6) |
| 7 | claude-opus-5 | Arena 0.087 (#7) |
| 8 | claude-fable-5 | Arena 0.082 (#8) |
| 9 | gpt-5.6-sol | Arena 0.065 (#12) |
| 10 | claude-sonnet-5 | Arena 0.044 (#13) |
| 11 | kimi-k3 | Arena 0.042 (#14) |
| 12 | grok-4.7 | Arena 0.040 (#16) |
| 13 | deepseek-v4.1-flash | Arena 0.040 (#17) |
| 14 | muse-spark-1.3 | Arena 0.040 (#18) |
| 15 | hy4-preview | Arena 0.040 (#19) |
| 16 | glm-5.2 | Arena 0.035 (#20) |
| 17 | gemini-3.8-flash | Arena 0.030 (#21) |
| 18 | qwen3.8-max | Arena 0.025 (#22) |
| 19 | glm-5.3 | Arena 0.024 (#23) |
| 20 | gpt-6-luna | Arena 0.014 (#24) |
| 21 | grok-4.6 | Arena 0.013 (#25) |
| 22 | grok-4.5 | Arena 0.012 (#26) |
| 23 | deepseek-v4-pro | Arena 0.012 (#27) |
| 24 | gpt-5.6 | Arena 0.011 (#28) via gpt-5.4 |
| 25 | gpt-5.4 | Arena 0.011 (#28) |
| 26 | step-5-preview | Arena 0.005 (#30) |
| 27 | gpt-5.6-terra | Arena 0.004 (#31) |
| 28 | glm-5.3-flash | Arena -0.004 (#32) |
| 29 | mimo-v2.6-flash | Arena -0.006 (#33) |
| 30 | gpt-5.6-luna | Arena -0.012 (#35) |
| 31 | gemini-3.7-flash | Arena -0.015 (#36) |
| 32 | qwen3.8-27b | Arena -0.017 (#37) |
| 33 | muse-spark-1.2 | Arena -0.033 (#38) |
| 34 | muse-spark-1.1 | Arena -0.049 (#39) |
| 35 | qwen3.7-max | Arena -0.051 (#40) |
| 36 | hy3 | Arena -0.054 (#41) |
| 37 | minimax-m3 | Arena -0.069 (#42) |
| 38 | qwen3.7-plus | Arena -0.072 (#43) |
| 39 | mimo-v2.6-pro | Arena -0.075 (#44) via mimo-v2.5-pro |
| 40 | mimo-v2.5-pro | Arena -0.075 (#44) |
| 41 | gemini-3.6-flash | Arena -0.077 (#45) |
| 42 | gemini-3.1-pro-preview | Arena -0.077 (#46) |
| 43 | inkling-small | Arena -0.103 (#47) |
| 44 | inkling | Arena -0.109 (#48) |
| 45 | mistral-medium-3.5 | Arena -0.124 (#49) |
| 46 | solar-pro4 | Arena -0.159 (#50) |
| 47 | space-bunny-alpha | OpenRouter 56.7T |
| 48 | deepseek-v4-flash | OpenRouter 53.3T |
| 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T |
| 50 | mimo-v2.5 | OpenRouter 18.9T |
| 51 | laguna-s-2.1 | OpenRouter 4.6T |
| 52 | gemini-3-flash-preview | OpenRouter 3.4T |
| 53 | ling-3-flash-fin | OpenRouter 3.4T |
| 54 | gemini-2.5-flash-lite | OpenRouter 3.0T |
| 55 | nemotron-3.5-lightning | OpenRouter 2.7T |
| 56 | gpt-oss-120b | OpenRouter 2.5T |
| 57 | dots-3-note-preview | OpenRouter 2.4T |
| 58 | gemini-3.1-flash-lite | OpenRouter 2.1T |
| 59 | gemini-2.5-flash | OpenRouter 2.0T |
| 60 | qwen3.8-flash | OpenRouter 1.8T |
| 61 | gemma-4-31b | OpenRouter 1.7T |
| 62 | claude-sonnet-4.6 | OpenRouter 1.4T |
| 63 | deepseek-v3.2 | OpenRouter 1.4T |
| 64 | qwen3.7-flash | OpenRouter 1.4T |
| 65 | ling-3-flash-sante | OpenRouter 1.2T |
| 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T |
| 67 | nex-n2.5-pro | OpenRouter 1.1T |
| 68 | ling-3-flash-vl | OpenRouter 1.0T |
| 69 | gpt-6-luna-pro | OpenRouter 853B |
| 70 | gemma-4-26b-a4b | OpenRouter 845B |
| 71 | gpt-5.6-luna-pro | OpenRouter 566B |
| 72 | solar-mini4 | OpenRouter 510B |
| 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B |
| 74 | mistral-nemo | OpenRouter 384B |
| 75 | ling-3.1-flash | OpenRouter 298B |
| 76 | glm-5.3-flashx | OpenRouter 187B |
| 77 | gpt-oss-20b | OpenRouter 127B |
| 78 | gemini-3.5-flash-lite | OpenRouter 124B |
| 79 | minimax-m2.7 | OpenRouter 113B |
| 80 | gpt-4o-mini | OpenRouter 89B |
| 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 |
| 82 | claude-haiku-4.5 | OpenRouter 82B |
| 83 | claude-opus-4.7 | OpenRouter 55B |
| 84 | step-3.7-flash | OpenRouter 50B |
| 85 | claude-sonnet-4.5 | OpenRouter 46B |

</details>

No changes to the curated list.

<details><summary>Same inputs against the 2026-09-27 list (shows Arena moves, a drop, a 10x price flag and the diff)</summary>

# Recommended models suggestion, 2026-10-07

## Sources
- LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0.
- OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:07:02.742Z. Licensed under CC BY 4.0.
- Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models.

## New models (first seen in the last 7 days, not listed)

| model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note |
| --- | --- | --- | --- | --- | --- | --- |
| claude-haiku-5.5 | 2026-10-07 | #81 | $0.1 / $0.5 | claude-haiku-4.5 | $1 / $5 | possible new class: price 10.0x |
| glyph-cluster | 2026-10-07 | no signal yet | ? | none |  | possible new class: no predecessor |
| mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 |  |
| apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none |  | possible new class: no predecessor |
| pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none |  | possible new class: no predecessor |

## Arena moves

| model | listed | suggested | signal |
| --- | --- | --- | --- |
| mimo-v2.6-flash | #47 | #29 | Arena -0.006 (#33) |
| gpt-6-luna | #24 | #20 | Arena 0.014 (#24) |
| grok-4.7 | #15 | #12 | Arena 0.040 (#16) |
| deepseek-v4-pro | #16 | #23 | Arena 0.012 (#27) |
| gemini-3.8-flash | #11 | #17 | Arena 0.030 (#21) |
| hy4-preview | #10 | #15 | Arena 0.040 (#19) |
| mimo-v2.6-pro | #32 | #39 | Arena -0.075 (#44) via mimo-v2.5-pro |
| mimo-v2.5-pro | #33 | #40 | Arena -0.075 (#44) |
| gemini-3.1-pro-preview | #35 | #42 | Arena -0.077 (#46) |
| solar-pro4 | #45 | #46 | Arena -0.159 (#50) |
| gpt-6-sol | #6 | #6 | Arena 0.097 (#6) |
| muse-spark-1.3 | #14 | #14 | Arena 0.040 (#18) |
| qwen3.8-max | #18 | #18 | Arena 0.025 (#22) |
| gpt-5.6-terra | #21 | #27 | Arena 0.004 (#31) |
| qwen3.7-plus | #36 | #38 | Arena -0.072 (#43) |
| claude-opus-5.5 | #3 | #2 | Arena 0.138 (#2) |
| gpt-6-astra | #2 | #4 | Arena 0.123 (#4) |
| claude-opus-5 | #4 | #7 | Arena 0.087 (#7) |
| claude-fable-5 | #5 | #8 | Arena 0.082 (#8) |
| deepseek-v4.1-flash | #12 | #13 | Arena 0.040 (#17) |
| glm-5.2 | #13 | #16 | Arena 0.035 (#20) |
| grok-4.6 | #20 | #21 | Arena 0.013 (#25) |
| grok-4.5 | #19 | #22 | Arena 0.012 (#26) |
| glm-5.3-flash | #23 | #28 | Arena -0.004 (#32) |
| gpt-5.6-luna | #25 | #30 | Arena -0.012 (#35) |
| gemini-3.7-flash | #26 | #31 | Arena -0.015 (#36) |
| qwen3.8-27b | #27 | #32 | Arena -0.017 (#37) |
| muse-spark-1.2 | #28 | #33 | Arena -0.033 (#38) |
| muse-spark-1.1 | #29 | #34 | Arena -0.049 (#39) |
| qwen3.7-max | #30 | #35 | Arena -0.051 (#40) |
| hy3 | #31 | #36 | Arena -0.054 (#41) |
| minimax-m3 | #34 | #37 | Arena -0.069 (#42) |
| inkling-small | #38 | #43 | Arena -0.103 (#47) |
| inkling | #39 | #44 | Arena -0.109 (#48) |
| mistral-medium-3.5 | #40 | #45 | Arena -0.124 (#49) |

29 usage-ranked entries also move; see the diff.

## Gone or deprecated

- ling-3.0-flash-fin: no host serves it
- ling-3.0-flash-vl: no host serves it
- ling-3.0-flash-sante: no host serves it
- kimi-k2.6: no Arena score and no OpenRouter usage in the window

## Suggested list

<details><summary>85 models</summary>

| # | model | signal |
| --- | --- | --- |
| 1 | claude-fable-5.1 | Arena 0.143 (#1) |
| 2 | claude-opus-5.5 | Arena 0.138 (#2) |
| 3 | claude-sonnet-5.5 | Arena 0.125 (#3) |
| 4 | gpt-6-astra | Arena 0.123 (#4) |
| 5 | gpt-6.1-sol | Arena 0.112 (#5) |
| 6 | gpt-6-sol | Arena 0.097 (#6) |
| 7 | claude-opus-5 | Arena 0.087 (#7) |
| 8 | claude-fable-5 | Arena 0.082 (#8) |
| 9 | gpt-5.6-sol | Arena 0.065 (#12) |
| 10 | claude-sonnet-5 | Arena 0.044 (#13) |
| 11 | kimi-k3 | Arena 0.042 (#14) |
| 12 | grok-4.7 | Arena 0.040 (#16) |
| 13 | deepseek-v4.1-flash | Arena 0.040 (#17) |
| 14 | muse-spark-1.3 | Arena 0.040 (#18) |
| 15 | hy4-preview | Arena 0.040 (#19) |
| 16 | glm-5.2 | Arena 0.035 (#20) |
| 17 | gemini-3.8-flash | Arena 0.030 (#21) |
| 18 | qwen3.8-max | Arena 0.025 (#22) |
| 19 | glm-5.3 | Arena 0.024 (#23) |
| 20 | gpt-6-luna | Arena 0.014 (#24) |
| 21 | grok-4.6 | Arena 0.013 (#25) |
| 22 | grok-4.5 | Arena 0.012 (#26) |
| 23 | deepseek-v4-pro | Arena 0.012 (#27) |
| 24 | gpt-5.6 | Arena 0.011 (#28) via gpt-5.4 |
| 25 | gpt-5.4 | Arena 0.011 (#28) |
| 26 | step-5-preview | Arena 0.005 (#30) |
| 27 | gpt-5.6-terra | Arena 0.004 (#31) |
| 28 | glm-5.3-flash | Arena -0.004 (#32) |
| 29 | mimo-v2.6-flash | Arena -0.006 (#33) |
| 30 | gpt-5.6-luna | Arena -0.012 (#35) |
| 31 | gemini-3.7-flash | Arena -0.015 (#36) |
| 32 | qwen3.8-27b | Arena -0.017 (#37) |
| 33 | muse-spark-1.2 | Arena -0.033 (#38) |
| 34 | muse-spark-1.1 | Arena -0.049 (#39) |
| 35 | qwen3.7-max | Arena -0.051 (#40) |
| 36 | hy3 | Arena -0.054 (#41) |
| 37 | minimax-m3 | Arena -0.069 (#42) |
| 38 | qwen3.7-plus | Arena -0.072 (#43) |
| 39 | mimo-v2.6-pro | Arena -0.075 (#44) via mimo-v2.5-pro |
| 40 | mimo-v2.5-pro | Arena -0.075 (#44) |
| 41 | gemini-3.6-flash | Arena -0.077 (#45) |
| 42 | gemini-3.1-pro-preview | Arena -0.077 (#46) |
| 43 | inkling-small | Arena -0.103 (#47) |
| 44 | inkling | Arena -0.109 (#48) |
| 45 | mistral-medium-3.5 | Arena -0.124 (#49) |
| 46 | solar-pro4 | Arena -0.159 (#50) |
| 47 | space-bunny-alpha | OpenRouter 56.7T |
| 48 | deepseek-v4-flash | OpenRouter 53.3T |
| 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T |
| 50 | mimo-v2.5 | OpenRouter 18.9T |
| 51 | laguna-s-2.1 | OpenRouter 4.6T |
| 52 | gemini-3-flash-preview | OpenRouter 3.4T |
| 53 | ling-3-flash-fin | OpenRouter 3.4T |
| 54 | gemini-2.5-flash-lite | OpenRouter 3.0T |
| 55 | nemotron-3.5-lightning | OpenRouter 2.7T |
| 56 | gpt-oss-120b | OpenRouter 2.5T |
| 57 | dots-3-note-preview | OpenRouter 2.4T |
| 58 | gemini-3.1-flash-lite | OpenRouter 2.1T |
| 59 | gemini-2.5-flash | OpenRouter 2.0T |
| 60 | qwen3.8-flash | OpenRouter 1.8T |
| 61 | gemma-4-31b | OpenRouter 1.7T |
| 62 | claude-sonnet-4.6 | OpenRouter 1.4T |
| 63 | deepseek-v3.2 | OpenRouter 1.4T |
| 64 | qwen3.7-flash | OpenRouter 1.4T |
| 65 | ling-3-flash-sante | OpenRouter 1.2T |
| 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T |
| 67 | nex-n2.5-pro | OpenRouter 1.1T |
| 68 | ling-3-flash-vl | OpenRouter 1.0T |
| 69 | gpt-6-luna-pro | OpenRouter 853B |
| 70 | gemma-4-26b-a4b | OpenRouter 845B |
| 71 | gpt-5.6-luna-pro | OpenRouter 566B |
| 72 | solar-mini4 | OpenRouter 510B |
| 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B |
| 74 | mistral-nemo | OpenRouter 384B |
| 75 | ling-3.1-flash | OpenRouter 298B |
| 76 | glm-5.3-flashx | OpenRouter 187B |
| 77 | gpt-oss-20b | OpenRouter 127B |
| 78 | gemini-3.5-flash-lite | OpenRouter 124B |
| 79 | minimax-m2.7 | OpenRouter 113B |
| 80 | gpt-4o-mini | OpenRouter 89B |
| 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 |
| 82 | claude-haiku-4.5 | OpenRouter 82B |
| 83 | claude-opus-4.7 | OpenRouter 55B |
| 84 | step-3.7-flash | OpenRouter 50B |
| 85 | claude-sonnet-4.5 | OpenRouter 46B |

</details>

```diff
--- a/../../../../../../tmp/recprobe/list-20260927.json
+++ b/../../../../../../tmp/recprobe/list-20260927.json
@@ -1,80 +1,87 @@
 [
   "claude-fable-5.1",
-  "gpt-6-astra",
   "claude-opus-5.5",
+  "claude-sonnet-5.5",
+  "gpt-6-astra",
+  "gpt-6.1-sol",
+  "gpt-6-sol",
   "claude-opus-5",
   "claude-fable-5",
-  "gpt-6-sol",
   "gpt-5.6-sol",
   "claude-sonnet-5",
   "kimi-k3",
-  "hy4-preview",
-  "gemini-3.8-flash",
+  "grok-4.7",
   "deepseek-v4.1-flash",
-  "glm-5.2",
   "muse-spark-1.3",
-  "grok-4.7",
-  "deepseek-v4-pro",
-  "glm-5.3",
+  "hy4-preview",
+  "glm-5.2",
+  "gemini-3.8-flash",
   "qwen3.8-max",
-  "grok-4.5",
+  "glm-5.3",
+  "gpt-6-luna",
   "grok-4.6",
-  "gpt-5.6-terra",
+  "grok-4.5",
+  "deepseek-v4-pro",
+  "gpt-5.6",
   "gpt-5.4",
+  "step-5-preview",
+  "gpt-5.6-terra",
   "glm-5.3-flash",
-  "gpt-6-luna",
+  "mimo-v2.6-flash",
   "gpt-5.6-luna",
   "gemini-3.7-flash",
   "qwen3.8-27b",
   "muse-spark-1.2",
   "muse-spark-1.1",
   "qwen3.7-max",
   "hy3",
-  "mimo-v2.6-pro",
-  "mimo-v2.5-pro",
   "minimax-m3",
-  "gemini-3.1-pro-preview",
   "qwen3.7-plus",
+  "mimo-v2.6-pro",
+  "mimo-v2.5-pro",
   "gemini-3.6-flash",
+  "gemini-3.1-pro-preview",
   "inkling-small",
   "inkling",
   "mistral-medium-3.5",
+  "solar-pro4",
+  "space-bunny-alpha",
   "deepseek-v4-flash",
-  "mimo-v2.5",
   "nemotron-3-ultra-550b-a55b",
-  "space-bunny-alpha",
-  "solar-pro4",
+  "mimo-v2.5",
   "laguna-s-2.1",
-  "mimo-v2.6-flash",
-  "ling-3.0-flash-fin",
   "gemini-3-flash-preview",
-  "nemotron-3.5-lightning",
+  "ling-3-flash-fin",
   "gemini-2.5-flash-lite",
-  "claude-sonnet-4.6",
+  "nemotron-3.5-lightning",
   "gpt-oss-120b",
-  "gemini-2.5-flash",
-  "gemini-3.1-flash-lite",
   "dots-3-note-preview",
-  "deepseek-v3.2",
-  "gemma-4-31b",
+  "gemini-3.1-flash-lite",
+  "gemini-2.5-flash",
   "qwen3.8-flash",
+  "gemma-4-31b",
+  "claude-sonnet-4.6",
+  "deepseek-v3.2",
+  "qwen3.7-flash",
+  "ling-3-flash-sante",
   "nemotron-3-super-120b-a12b",
+  "nex-n2.5-pro",
+  "ling-3-flash-vl",
+  "gpt-6-luna-pro",
   "gemma-4-26b-a4b",
   "gpt-5.6-luna-pro",
-  "qwen3.7-flash",
-  "ling-3.0-flash-vl",
-  "minimax-m2.7",
+  "solar-mini4",
   "deepseek-v4-flash-vision-exp",
-  "gpt-oss-20b",
-  "ling-3.0-flash-sante",
-  "step-3.7-flash",
-  "claude-haiku-4.5",
   "mistral-nemo",
-  "gpt-4o-mini",
+  "ling-3.1-flash",
   "glm-5.3-flashx",
+  "gpt-oss-20b",
   "gemini-3.5-flash-lite",
-  "gpt-6-luna-pro",
+  "minimax-m2.7",
+  "gpt-4o-mini",
+  "claude-haiku-5.5",
+  "claude-haiku-4.5",
   "claude-opus-4.7",
-  "claude-sonnet-4.5",
-  "kimi-k2.6"
+  "step-3.7-flash",
+  "claude-sonnet-4.5"
 ]
```

</details>

## Merge danger

This is a two-way door: it adds one new dev script and its test, writes no files, and is never wired into CI or publishing. A revert removes it completely. If it is wrong, the impact is limited to a misleading suggestion report that a human reviews before editing the list.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
openclaw#166738)

Builds on openclaw#166737 (merged: curated `scripts/lib/recommended-models.json` + shared `canonicalModelKey`/`canonicalModelFamily`/`compareModelRecency`); this PR only adds the helper script and its test.

## What Problem This Solves

The recommended-models list is now curated by hand, so a maintainer needs a daily, reviewable signal for what to change: new releases, Arena reorderings, and entries that are retired or no longer served.

## User Impact

No user-visible change. Maintainers (and later a daily draft-PR agent) can run

```
OPENROUTER_API_KEY=... node --import ./scripts/tsx.mjs scripts/suggest-recommended-models.mts [--list <path>]
```

and get a markdown report ending in a unified diff against `scripts/lib/recommended-models.json`. The list file is never written; a human edits it.

## Why This Change Was Made

TypeScript port of the recv2 prototype's ranking: LMArena Agent Arena score first; equal scores, and models without one, order by OpenRouter 30-day usage. The newest served family member without its own Arena row takes the slot of its newest ranked older sibling, counting at least that sibling's usage, so it sorts directly ahead of it (release date decides recency, so grok-4.20 does not outrank grok-4.7). DeepSWE is dropped; `-fast` and other serving variants fold into the base model.

- Inputs: every run fetches each source fresh, with no cache; a failed request or a response that fails schema validation fails that run. Sources: LMArena Agent Arena `agent/latest` through the HF datasets-server JSON rows endpoint (no parquet dependency), OpenRouter `/api/v1/models`, OpenRouter `rankings-daily` (only when `OPENROUTER_API_KEY` is set; otherwise curated entries without an Arena score keep their order), Vercel `/v1/models`, and the hosted catalog v2.
- Identity: each source id resolves once through the shared `canonicalModelKey`, with its display name, so dated aliases join their versioned model. Examples: `mistral-small-2603` is Mistral Small 4, OpenRouter `mistral-large-4-0` matches Vercel `mistral-large-4`, and usage arrives through OpenRouter `canonical_slug`. Non-chat models are excluded by gateway modality or type labels; `-latest` aliases are excluded.
- Report sections:
  - **New models:** first seen within 7 days and not listed. Each shows its likely same-family predecessor and both prices, and is flagged `possible new class` when either price differs by more than 2x or the family has no predecessor.
  - **Arena moves:** rank changes among entries both lists keep, largest first.
  - **Gone or deprecated:** first-party retired with its replacement, no longer served, or no signal.
  - **Suggested list:** the full ordered list plus the diff.

No overlap with Pash/Sarah changes (the PR adds one new file).

## Evidence

- Port fidelity: on the live inputs, the helper reproduced the prototype's 86-id suggested list exactly before the review-driven identity fixes. Two differences remain, and openclaw#166737's seed list already includes both: `mistral-medium-2604` is folded into `mistral-medium-3.5` because they are the same model, and `ling-3.0-flash-*` is now spelled `ling-3-flash-*` because zero minor versions fold.
- Typecheck: `node scripts/run-tsgo.mjs -p tsconfig.scripts.json` and `tsgo:test:root` report no errors; scoped oxlint and oxfmt are clean. `canonical-model-key.test.ts` passed 32/32.
- Ordering: `test/scripts/suggest-recommended-models.test.ts` feeds stubbed sources through the real entry point. Two models tied on Arena score order by usage (the higher-usage one first, against alphabetical order), and a successor that inherits its sibling's Arena slot still sorts ahead of that higher-usage sibling. With the previous alphabetical tiebreak the test fails.
- Cost: `pnpm test test/scripts/suggest-recommended-models.test.ts --maxWorkers=1` takes 2.2 s wall end to end (Vitest 0.78 s; the test itself 9 ms). CI on this head: run 37692398322, green in 595 s wall and 5,717 job-seconds across 58 jobs for the whole PR; the new test adds about 9 ms of that.
- Error and fallback paths: a list containing `claude-opus-4.8` reported "retired by its first-party provider; replaced by claude-opus-5", and `nonexistent-model-9` reported "no host serves it". A missing `--list` file exits 1 with a clear message. Without a key, the report states that usage was skipped and keeps unscored curated entries. With an invalid `OPENROUTER_API_KEY`, the run exits 1 with `https://openrouter.ai/api/v1/datasets/rankings-daily returned HTTP 401` and prints no report.
- Live run: all inputs were fetched fresh (5 requests, 3.9 s wall). Both outputs below are copied verbatim. In the live data the only exact Arena ties are successor/sibling pairs (`gpt-5.6`/`gpt-5.4`, `mimo-v2.6-pro`/`mimo-v2.5-pro`), and each successor sorts first.

Run against the curated list in openclaw#166737, using the default path:

# Recommended models suggestion, 2026-10-07

## Sources
- LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0.
- OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:06:52.590Z. Licensed under CC BY 4.0.
- Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models.

## New models (first seen in the last 7 days, not listed)

| model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note |
| --- | --- | --- | --- | --- | --- | --- |
| glyph-cluster | 2026-10-07 | no signal yet | ? | none |  | possible new class: no predecessor |
| mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 |  |
| apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none |  | possible new class: no predecessor |
| pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none |  | possible new class: no predecessor |

## Arena moves

None.

## Gone or deprecated

None.

## Suggested list

<details><summary>85 models</summary>

| # | model | signal |
| --- | --- | --- |
| 1 | claude-fable-5.1 | Arena 0.143 (#1) |
| 2 | claude-opus-5.5 | Arena 0.138 (#2) |
| 3 | claude-sonnet-5.5 | Arena 0.125 (#3) |
| 4 | gpt-6-astra | Arena 0.123 (#4) |
| 5 | gpt-6.1-sol | Arena 0.112 (#5) |
| 6 | gpt-6-sol | Arena 0.097 (openclaw#6) |
| 7 | claude-opus-5 | Arena 0.087 (openclaw#7) |
| 8 | claude-fable-5 | Arena 0.082 (openclaw#8) |
| 9 | gpt-5.6-sol | Arena 0.065 (openclaw#12) |
| 10 | claude-sonnet-5 | Arena 0.044 (openclaw#13) |
| 11 | kimi-k3 | Arena 0.042 (openclaw#14) |
| 12 | grok-4.7 | Arena 0.040 (openclaw#16) |
| 13 | deepseek-v4.1-flash | Arena 0.040 (openclaw#17) |
| 14 | muse-spark-1.3 | Arena 0.040 (openclaw#18) |
| 15 | hy4-preview | Arena 0.040 (openclaw#19) |
| 16 | glm-5.2 | Arena 0.035 (openclaw#20) |
| 17 | gemini-3.8-flash | Arena 0.030 (openclaw#21) |
| 18 | qwen3.8-max | Arena 0.025 (openclaw#22) |
| 19 | glm-5.3 | Arena 0.024 (openclaw#23) |
| 20 | gpt-6-luna | Arena 0.014 (openclaw#24) |
| 21 | grok-4.6 | Arena 0.013 (openclaw#25) |
| 22 | grok-4.5 | Arena 0.012 (openclaw#26) |
| 23 | deepseek-v4-pro | Arena 0.012 (openclaw#27) |
| 24 | gpt-5.6 | Arena 0.011 (openclaw#28) via gpt-5.4 |
| 25 | gpt-5.4 | Arena 0.011 (openclaw#28) |
| 26 | step-5-preview | Arena 0.005 (openclaw#30) |
| 27 | gpt-5.6-terra | Arena 0.004 (openclaw#31) |
| 28 | glm-5.3-flash | Arena -0.004 (openclaw#32) |
| 29 | mimo-v2.6-flash | Arena -0.006 (openclaw#33) |
| 30 | gpt-5.6-luna | Arena -0.012 (openclaw#35) |
| 31 | gemini-3.7-flash | Arena -0.015 (openclaw#36) |
| 32 | qwen3.8-27b | Arena -0.017 (openclaw#37) |
| 33 | muse-spark-1.2 | Arena -0.033 (openclaw#38) |
| 34 | muse-spark-1.1 | Arena -0.049 (openclaw#39) |
| 35 | qwen3.7-max | Arena -0.051 (openclaw#40) |
| 36 | hy3 | Arena -0.054 (openclaw#41) |
| 37 | minimax-m3 | Arena -0.069 (openclaw#42) |
| 38 | qwen3.7-plus | Arena -0.072 (openclaw#43) |
| 39 | mimo-v2.6-pro | Arena -0.075 (openclaw#44) via mimo-v2.5-pro |
| 40 | mimo-v2.5-pro | Arena -0.075 (openclaw#44) |
| 41 | gemini-3.6-flash | Arena -0.077 (openclaw#45) |
| 42 | gemini-3.1-pro-preview | Arena -0.077 (openclaw#46) |
| 43 | inkling-small | Arena -0.103 (openclaw#47) |
| 44 | inkling | Arena -0.109 (openclaw#48) |
| 45 | mistral-medium-3.5 | Arena -0.124 (openclaw#49) |
| 46 | solar-pro4 | Arena -0.159 (openclaw#50) |
| 47 | space-bunny-alpha | OpenRouter 56.7T |
| 48 | deepseek-v4-flash | OpenRouter 53.3T |
| 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T |
| 50 | mimo-v2.5 | OpenRouter 18.9T |
| 51 | laguna-s-2.1 | OpenRouter 4.6T |
| 52 | gemini-3-flash-preview | OpenRouter 3.4T |
| 53 | ling-3-flash-fin | OpenRouter 3.4T |
| 54 | gemini-2.5-flash-lite | OpenRouter 3.0T |
| 55 | nemotron-3.5-lightning | OpenRouter 2.7T |
| 56 | gpt-oss-120b | OpenRouter 2.5T |
| 57 | dots-3-note-preview | OpenRouter 2.4T |
| 58 | gemini-3.1-flash-lite | OpenRouter 2.1T |
| 59 | gemini-2.5-flash | OpenRouter 2.0T |
| 60 | qwen3.8-flash | OpenRouter 1.8T |
| 61 | gemma-4-31b | OpenRouter 1.7T |
| 62 | claude-sonnet-4.6 | OpenRouter 1.4T |
| 63 | deepseek-v3.2 | OpenRouter 1.4T |
| 64 | qwen3.7-flash | OpenRouter 1.4T |
| 65 | ling-3-flash-sante | OpenRouter 1.2T |
| 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T |
| 67 | nex-n2.5-pro | OpenRouter 1.1T |
| 68 | ling-3-flash-vl | OpenRouter 1.0T |
| 69 | gpt-6-luna-pro | OpenRouter 853B |
| 70 | gemma-4-26b-a4b | OpenRouter 845B |
| 71 | gpt-5.6-luna-pro | OpenRouter 566B |
| 72 | solar-mini4 | OpenRouter 510B |
| 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B |
| 74 | mistral-nemo | OpenRouter 384B |
| 75 | ling-3.1-flash | OpenRouter 298B |
| 76 | glm-5.3-flashx | OpenRouter 187B |
| 77 | gpt-oss-20b | OpenRouter 127B |
| 78 | gemini-3.5-flash-lite | OpenRouter 124B |
| 79 | minimax-m2.7 | OpenRouter 113B |
| 80 | gpt-4o-mini | OpenRouter 89B |
| 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 |
| 82 | claude-haiku-4.5 | OpenRouter 82B |
| 83 | claude-opus-4.7 | OpenRouter 55B |
| 84 | step-3.7-flash | OpenRouter 50B |
| 85 | claude-sonnet-4.5 | OpenRouter 46B |

</details>

No changes to the curated list.

<details><summary>Same inputs against the 2026-09-27 list (shows Arena moves, a drop, a 10x price flag and the diff)</summary>

# Recommended models suggestion, 2026-10-07

## Sources
- LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0.
- OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:07:02.742Z. Licensed under CC BY 4.0.
- Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models.

## New models (first seen in the last 7 days, not listed)

| model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note |
| --- | --- | --- | --- | --- | --- | --- |
| claude-haiku-5.5 | 2026-10-07 | openclaw#81 | $0.1 / $0.5 | claude-haiku-4.5 | $1 / $5 | possible new class: price 10.0x |
| glyph-cluster | 2026-10-07 | no signal yet | ? | none |  | possible new class: no predecessor |
| mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 |  |
| apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none |  | possible new class: no predecessor |
| pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none |  | possible new class: no predecessor |

## Arena moves

| model | listed | suggested | signal |
| --- | --- | --- | --- |
| mimo-v2.6-flash | openclaw#47 | openclaw#29 | Arena -0.006 (openclaw#33) |
| gpt-6-luna | openclaw#24 | openclaw#20 | Arena 0.014 (openclaw#24) |
| grok-4.7 | openclaw#15 | openclaw#12 | Arena 0.040 (openclaw#16) |
| deepseek-v4-pro | openclaw#16 | openclaw#23 | Arena 0.012 (openclaw#27) |
| gemini-3.8-flash | openclaw#11 | openclaw#17 | Arena 0.030 (openclaw#21) |
| hy4-preview | openclaw#10 | openclaw#15 | Arena 0.040 (openclaw#19) |
| mimo-v2.6-pro | openclaw#32 | openclaw#39 | Arena -0.075 (openclaw#44) via mimo-v2.5-pro |
| mimo-v2.5-pro | openclaw#33 | openclaw#40 | Arena -0.075 (openclaw#44) |
| gemini-3.1-pro-preview | openclaw#35 | openclaw#42 | Arena -0.077 (openclaw#46) |
| solar-pro4 | openclaw#45 | openclaw#46 | Arena -0.159 (openclaw#50) |
| gpt-6-sol | openclaw#6 | openclaw#6 | Arena 0.097 (openclaw#6) |
| muse-spark-1.3 | openclaw#14 | openclaw#14 | Arena 0.040 (openclaw#18) |
| qwen3.8-max | openclaw#18 | openclaw#18 | Arena 0.025 (openclaw#22) |
| gpt-5.6-terra | openclaw#21 | openclaw#27 | Arena 0.004 (openclaw#31) |
| qwen3.7-plus | openclaw#36 | openclaw#38 | Arena -0.072 (openclaw#43) |
| claude-opus-5.5 | #3 | #2 | Arena 0.138 (#2) |
| gpt-6-astra | #2 | #4 | Arena 0.123 (#4) |
| claude-opus-5 | #4 | openclaw#7 | Arena 0.087 (openclaw#7) |
| claude-fable-5 | #5 | openclaw#8 | Arena 0.082 (openclaw#8) |
| deepseek-v4.1-flash | openclaw#12 | openclaw#13 | Arena 0.040 (openclaw#17) |
| glm-5.2 | openclaw#13 | openclaw#16 | Arena 0.035 (openclaw#20) |
| grok-4.6 | openclaw#20 | openclaw#21 | Arena 0.013 (openclaw#25) |
| grok-4.5 | openclaw#19 | openclaw#22 | Arena 0.012 (openclaw#26) |
| glm-5.3-flash | openclaw#23 | openclaw#28 | Arena -0.004 (openclaw#32) |
| gpt-5.6-luna | openclaw#25 | openclaw#30 | Arena -0.012 (openclaw#35) |
| gemini-3.7-flash | openclaw#26 | openclaw#31 | Arena -0.015 (openclaw#36) |
| qwen3.8-27b | openclaw#27 | openclaw#32 | Arena -0.017 (openclaw#37) |
| muse-spark-1.2 | openclaw#28 | openclaw#33 | Arena -0.033 (openclaw#38) |
| muse-spark-1.1 | openclaw#29 | openclaw#34 | Arena -0.049 (openclaw#39) |
| qwen3.7-max | openclaw#30 | openclaw#35 | Arena -0.051 (openclaw#40) |
| hy3 | openclaw#31 | openclaw#36 | Arena -0.054 (openclaw#41) |
| minimax-m3 | openclaw#34 | openclaw#37 | Arena -0.069 (openclaw#42) |
| inkling-small | openclaw#38 | openclaw#43 | Arena -0.103 (openclaw#47) |
| inkling | openclaw#39 | openclaw#44 | Arena -0.109 (openclaw#48) |
| mistral-medium-3.5 | openclaw#40 | openclaw#45 | Arena -0.124 (openclaw#49) |

29 usage-ranked entries also move; see the diff.

## Gone or deprecated

- ling-3.0-flash-fin: no host serves it
- ling-3.0-flash-vl: no host serves it
- ling-3.0-flash-sante: no host serves it
- kimi-k2.6: no Arena score and no OpenRouter usage in the window

## Suggested list

<details><summary>85 models</summary>

| # | model | signal |
| --- | --- | --- |
| 1 | claude-fable-5.1 | Arena 0.143 (#1) |
| 2 | claude-opus-5.5 | Arena 0.138 (#2) |
| 3 | claude-sonnet-5.5 | Arena 0.125 (#3) |
| 4 | gpt-6-astra | Arena 0.123 (#4) |
| 5 | gpt-6.1-sol | Arena 0.112 (#5) |
| 6 | gpt-6-sol | Arena 0.097 (openclaw#6) |
| 7 | claude-opus-5 | Arena 0.087 (openclaw#7) |
| 8 | claude-fable-5 | Arena 0.082 (openclaw#8) |
| 9 | gpt-5.6-sol | Arena 0.065 (openclaw#12) |
| 10 | claude-sonnet-5 | Arena 0.044 (openclaw#13) |
| 11 | kimi-k3 | Arena 0.042 (openclaw#14) |
| 12 | grok-4.7 | Arena 0.040 (openclaw#16) |
| 13 | deepseek-v4.1-flash | Arena 0.040 (openclaw#17) |
| 14 | muse-spark-1.3 | Arena 0.040 (openclaw#18) |
| 15 | hy4-preview | Arena 0.040 (openclaw#19) |
| 16 | glm-5.2 | Arena 0.035 (openclaw#20) |
| 17 | gemini-3.8-flash | Arena 0.030 (openclaw#21) |
| 18 | qwen3.8-max | Arena 0.025 (openclaw#22) |
| 19 | glm-5.3 | Arena 0.024 (openclaw#23) |
| 20 | gpt-6-luna | Arena 0.014 (openclaw#24) |
| 21 | grok-4.6 | Arena 0.013 (openclaw#25) |
| 22 | grok-4.5 | Arena 0.012 (openclaw#26) |
| 23 | deepseek-v4-pro | Arena 0.012 (openclaw#27) |
| 24 | gpt-5.6 | Arena 0.011 (openclaw#28) via gpt-5.4 |
| 25 | gpt-5.4 | Arena 0.011 (openclaw#28) |
| 26 | step-5-preview | Arena 0.005 (openclaw#30) |
| 27 | gpt-5.6-terra | Arena 0.004 (openclaw#31) |
| 28 | glm-5.3-flash | Arena -0.004 (openclaw#32) |
| 29 | mimo-v2.6-flash | Arena -0.006 (openclaw#33) |
| 30 | gpt-5.6-luna | Arena -0.012 (openclaw#35) |
| 31 | gemini-3.7-flash | Arena -0.015 (openclaw#36) |
| 32 | qwen3.8-27b | Arena -0.017 (openclaw#37) |
| 33 | muse-spark-1.2 | Arena -0.033 (openclaw#38) |
| 34 | muse-spark-1.1 | Arena -0.049 (openclaw#39) |
| 35 | qwen3.7-max | Arena -0.051 (openclaw#40) |
| 36 | hy3 | Arena -0.054 (openclaw#41) |
| 37 | minimax-m3 | Arena -0.069 (openclaw#42) |
| 38 | qwen3.7-plus | Arena -0.072 (openclaw#43) |
| 39 | mimo-v2.6-pro | Arena -0.075 (openclaw#44) via mimo-v2.5-pro |
| 40 | mimo-v2.5-pro | Arena -0.075 (openclaw#44) |
| 41 | gemini-3.6-flash | Arena -0.077 (openclaw#45) |
| 42 | gemini-3.1-pro-preview | Arena -0.077 (openclaw#46) |
| 43 | inkling-small | Arena -0.103 (openclaw#47) |
| 44 | inkling | Arena -0.109 (openclaw#48) |
| 45 | mistral-medium-3.5 | Arena -0.124 (openclaw#49) |
| 46 | solar-pro4 | Arena -0.159 (openclaw#50) |
| 47 | space-bunny-alpha | OpenRouter 56.7T |
| 48 | deepseek-v4-flash | OpenRouter 53.3T |
| 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T |
| 50 | mimo-v2.5 | OpenRouter 18.9T |
| 51 | laguna-s-2.1 | OpenRouter 4.6T |
| 52 | gemini-3-flash-preview | OpenRouter 3.4T |
| 53 | ling-3-flash-fin | OpenRouter 3.4T |
| 54 | gemini-2.5-flash-lite | OpenRouter 3.0T |
| 55 | nemotron-3.5-lightning | OpenRouter 2.7T |
| 56 | gpt-oss-120b | OpenRouter 2.5T |
| 57 | dots-3-note-preview | OpenRouter 2.4T |
| 58 | gemini-3.1-flash-lite | OpenRouter 2.1T |
| 59 | gemini-2.5-flash | OpenRouter 2.0T |
| 60 | qwen3.8-flash | OpenRouter 1.8T |
| 61 | gemma-4-31b | OpenRouter 1.7T |
| 62 | claude-sonnet-4.6 | OpenRouter 1.4T |
| 63 | deepseek-v3.2 | OpenRouter 1.4T |
| 64 | qwen3.7-flash | OpenRouter 1.4T |
| 65 | ling-3-flash-sante | OpenRouter 1.2T |
| 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T |
| 67 | nex-n2.5-pro | OpenRouter 1.1T |
| 68 | ling-3-flash-vl | OpenRouter 1.0T |
| 69 | gpt-6-luna-pro | OpenRouter 853B |
| 70 | gemma-4-26b-a4b | OpenRouter 845B |
| 71 | gpt-5.6-luna-pro | OpenRouter 566B |
| 72 | solar-mini4 | OpenRouter 510B |
| 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B |
| 74 | mistral-nemo | OpenRouter 384B |
| 75 | ling-3.1-flash | OpenRouter 298B |
| 76 | glm-5.3-flashx | OpenRouter 187B |
| 77 | gpt-oss-20b | OpenRouter 127B |
| 78 | gemini-3.5-flash-lite | OpenRouter 124B |
| 79 | minimax-m2.7 | OpenRouter 113B |
| 80 | gpt-4o-mini | OpenRouter 89B |
| 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 |
| 82 | claude-haiku-4.5 | OpenRouter 82B |
| 83 | claude-opus-4.7 | OpenRouter 55B |
| 84 | step-3.7-flash | OpenRouter 50B |
| 85 | claude-sonnet-4.5 | OpenRouter 46B |

</details>

```diff
--- a/../../../../../../tmp/recprobe/list-20260927.json
+++ b/../../../../../../tmp/recprobe/list-20260927.json
@@ -1,80 +1,87 @@
 [
   "claude-fable-5.1",
-  "gpt-6-astra",
   "claude-opus-5.5",
+  "claude-sonnet-5.5",
+  "gpt-6-astra",
+  "gpt-6.1-sol",
+  "gpt-6-sol",
   "claude-opus-5",
   "claude-fable-5",
-  "gpt-6-sol",
   "gpt-5.6-sol",
   "claude-sonnet-5",
   "kimi-k3",
-  "hy4-preview",
-  "gemini-3.8-flash",
+  "grok-4.7",
   "deepseek-v4.1-flash",
-  "glm-5.2",
   "muse-spark-1.3",
-  "grok-4.7",
-  "deepseek-v4-pro",
-  "glm-5.3",
+  "hy4-preview",
+  "glm-5.2",
+  "gemini-3.8-flash",
   "qwen3.8-max",
-  "grok-4.5",
+  "glm-5.3",
+  "gpt-6-luna",
   "grok-4.6",
-  "gpt-5.6-terra",
+  "grok-4.5",
+  "deepseek-v4-pro",
+  "gpt-5.6",
   "gpt-5.4",
+  "step-5-preview",
+  "gpt-5.6-terra",
   "glm-5.3-flash",
-  "gpt-6-luna",
+  "mimo-v2.6-flash",
   "gpt-5.6-luna",
   "gemini-3.7-flash",
   "qwen3.8-27b",
   "muse-spark-1.2",
   "muse-spark-1.1",
   "qwen3.7-max",
   "hy3",
-  "mimo-v2.6-pro",
-  "mimo-v2.5-pro",
   "minimax-m3",
-  "gemini-3.1-pro-preview",
   "qwen3.7-plus",
+  "mimo-v2.6-pro",
+  "mimo-v2.5-pro",
   "gemini-3.6-flash",
+  "gemini-3.1-pro-preview",
   "inkling-small",
   "inkling",
   "mistral-medium-3.5",
+  "solar-pro4",
+  "space-bunny-alpha",
   "deepseek-v4-flash",
-  "mimo-v2.5",
   "nemotron-3-ultra-550b-a55b",
-  "space-bunny-alpha",
-  "solar-pro4",
+  "mimo-v2.5",
   "laguna-s-2.1",
-  "mimo-v2.6-flash",
-  "ling-3.0-flash-fin",
   "gemini-3-flash-preview",
-  "nemotron-3.5-lightning",
+  "ling-3-flash-fin",
   "gemini-2.5-flash-lite",
-  "claude-sonnet-4.6",
+  "nemotron-3.5-lightning",
   "gpt-oss-120b",
-  "gemini-2.5-flash",
-  "gemini-3.1-flash-lite",
   "dots-3-note-preview",
-  "deepseek-v3.2",
-  "gemma-4-31b",
+  "gemini-3.1-flash-lite",
+  "gemini-2.5-flash",
   "qwen3.8-flash",
+  "gemma-4-31b",
+  "claude-sonnet-4.6",
+  "deepseek-v3.2",
+  "qwen3.7-flash",
+  "ling-3-flash-sante",
   "nemotron-3-super-120b-a12b",
+  "nex-n2.5-pro",
+  "ling-3-flash-vl",
+  "gpt-6-luna-pro",
   "gemma-4-26b-a4b",
   "gpt-5.6-luna-pro",
-  "qwen3.7-flash",
-  "ling-3.0-flash-vl",
-  "minimax-m2.7",
+  "solar-mini4",
   "deepseek-v4-flash-vision-exp",
-  "gpt-oss-20b",
-  "ling-3.0-flash-sante",
-  "step-3.7-flash",
-  "claude-haiku-4.5",
   "mistral-nemo",
-  "gpt-4o-mini",
+  "ling-3.1-flash",
   "glm-5.3-flashx",
+  "gpt-oss-20b",
   "gemini-3.5-flash-lite",
-  "gpt-6-luna-pro",
+  "minimax-m2.7",
+  "gpt-4o-mini",
+  "claude-haiku-5.5",
+  "claude-haiku-4.5",
   "claude-opus-4.7",
-  "claude-sonnet-4.5",
-  "kimi-k2.6"
+  "step-3.7-flash",
+  "claude-sonnet-4.5"
 ]
```

</details>

## Merge danger

This is a two-way door: it adds one new dev script and its test, writes no files, and is never wired into CI or publishing. A revert removes it completely. If it is wrong, the impact is limited to a misleading suggestion report that a human reviews before editing the list.

Co-authored-by: Ayaan Zaidi <[email protected]>
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
…5-12-20

Nix mode support + macOS Info.plist template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants