Repository navigation
Expand file tree
/
Copy pathopencode.jsonc
More file actions
5661 lines (5650 loc) · 274 KB
/
Copy pathopencode.jsonc
File metadata and controls
5661 lines (5650 loc) · 274 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
// PROVIDER RENAME (2026-11-07, Drew; opencode#1823): providers the
// fleet custom-built in the fork now carry a leading underscore —
// claude-code -> _claude, antigravity-direct -> _antigravity,
// vibe-direct -> _vibe, commandcode -> _commandcode,
// muse-direct -> _muse (config and fork source ids converged).
// Upstream providers keep their ids (meta included: the fork's
// meta provider is upstream code). Config-only doors over upstream
// SDK packages (opendesign, cline-pass) are unchanged. The
// underscore is a config/source marker only; display surfaces
// strip it. Older comments below narrate the pre-rename ids as
// history. Quota keeps the old spellings as aliases.
// PROVIDER ALIGNMENT (2026-10-24, Drew): both machines carry the same
// providers; unneeded ones are disabled here, identically on both.
// - Token-based Google/Gemini paths are OFF. EARMARK: when a token-based
// Gemini path is wanted one day, use the "google" provider below — it is
// THE token path (Gemini API key; working muse-sandbox free-tier key is
// in the credential store as "Google API (muse-sandbox)").
// 2026-11-16 (Drew): the earmark is EXERCISED -- the "google" provider
// is defined and enabled below (AI Studio free tier, our own key;
// see its block note).
// 2026-11-16 (Drew, later): reshaped the same day into per-project
// aliases -- google.muse / google.gen-lang / google.personal /
// google.drew (free) and google.developing-today (PAYG) -- grouped
// by the google-free / google-payg provider routes below. The bare
// "google" id returns to the tombstone set (no definition).
// - THE Antigravity provider is "antigravity-ls" (warm language-server
// route). "antigravity-agy" (CLI spawn route) sat disabled as the
// fallback until 2026-10-28, when Drew re-enabled it for one seated
// purpose: the agy CLI is a door that serves Gemini 4 Argon, so
// argon-plan seats antigravity-agy/gemini-4-argon. Its other models
// stay route-gated (seated nowhere).
// - 2026-10-30 (Drew): the Antigravity doors consolidated on
// "antigravity-direct" — a proxy that speaks the agy CLI's own wire
// protocol directly (keyring OAuth credential, the CLI's refresh
// client, its v1internal envelope to daily-cloudcode-pa) with no
// spawned CLI and no spawned language server. "antigravity-ls" and
// "antigravity-agy" are in disabled_providers below and their proxy
// services are retired in home/common/default.nix; their definitions
// stay FULL below per the switchboard rule. The Gemini seats moved
// to antigravity-direct (gemini-hydrogen-plan, argon-plan). The Claude
// seats in sonnet-plan and opus-plan still name antigravity-ls:
// they are inert while the provider is disabled, until they are
// re-pointed or the door is restored. Undo: delete both ids from
// disabled_providers, restore the two proxy units, re-point seats.
// 2026-10-30 (Drew, later the same day): "only the direct —
// replace all others": the sonnet-plan and opus-plan Claude seats
// are re-pointed to antigravity-direct as well; no route leaf
// names antigravity-ls or antigravity-agy anymore.
// - 2026-11-04 (opencode#1414): the antigravity-direct block below no
// longer names the :18751 proxy — it resolves to the fork native
// antigravity provider (opencode#1457). Same id, same wire; the
// door unit and bin/antigravity-direct.mjs retire once :18751
// shows a zero-traffic window.
// - "claude-code" was TEMPORARILY disabled (2026-10-27, Drew; RE-ENABLED 2026-11-06, Drew - see the dated note above disabled_providers): the Claude
// plan is on the FREE tier for now and the API may be down. The setup
// itself was confirmed working at pause time — the proxy (:18749)
// was live and served claude-haiku-5-5 (verified 2026-10-27) — and
// the pause began as config-level only. That changed on 2026-11-05:
// the provider block below was repointed from the proxy to the
// fork's native claude-code provider (code#6117, opencode#1749),
// and on 2026-11-06 the proxy itself (bin/claude-code-proxy.mjs,
// its systemd unit and :18749) was removed in the proxy-infra
// decommission. Claude MODELS via other plans (antigravity-ls,
// cline-pass, opendesign leaves in haiku/sonnet/opus-plan) are NOT the
// Claude plan and are unaffected. To re-enable: delete "claude-code"
// from disabled_providers and restore the "default" below.
// To re-enable a provider: delete its id from disabled_providers.
// That list is the PROVIDER SWITCHBOARD — see the comment block directly
// above it for the full mechanism.
"$schema": "https://opencode.ai/config.json",
"autoupdate": true,
// ==========================================================================
// PROVIDER SWITCHBOARD — the ONE place providers are turned on and off.
//
// A provider is ON unless its id appears in disabled_providers below.
// To turn a provider OFF: add its id to the list. To turn it back ON:
// delete its id from the list. That one-line edit is the whole job —
// nothing else in this file needs to change.
//
// Every fleet provider keeps its FULL definition (models, options) in the
// "provider" block below at all times, disabled or not, so re-enabling
// never requires reconstructing config. The only step beyond the flip is
// the provider's own sign-in / credential, which lives outside this file.
//
// Providers with NO definition below (google-vertex, nvidia, vercel,
// huggingface, opencode, github-copilot) are opencode built-ins: the app
// ships their catalogs, so the list alone switches them — no definition
// is missing.
//
// Route pools need no edits either: a pool leaf pointing at an OFF
// provider simply yields nothing until that provider is flipped back on
// (the pools below already ship that way — haiku-plan seats claude-code
// while it is off).
//
// WORKED EXAMPLE — Claude (resolved 2026-11-06, when claude-code
// left the list): "claude-code" sat in the list because the Claude
// plan was on the free tier (see the header note). The day it
// comes back, delete the "claude-code" line from the list and Claude is
// live: its definition, model catalog, and haiku-plan seat are already in
// place, and every tier that consumes haiku-plan (scout, workhorse,
// speed, luna-haiku-100k) picks it up on its own. The only remaining step
// is the claude.ai sign-in. (Restoring "default" to
// claude-code/claude-haiku-5-5 is an optional preference, NOT part of
// enabling — the workhorse default works either way.)
//
// REVERSED 2026-10-30 (Drew, direct order): "muse" leaves this list.
// The direct "meta" door is dead by Meta's design (attestation —
// see the note at the "muse" provider), so muse-proxy is now the
// only working door into the same single Meta pool, and the
// routes seat muse/* leaves where the meta/* leaves sat, at the
// same weights and positions.
//
// KNOWN EXCEPTION -- RESOLVED 2026-11-03 (Drew, direct order): the
// design-code / code-design / open-design proxy blocks that stayed
// commented out here as preserved legacy were DELETED, together with
// the design-code door's persona routes. The only design provider in
// this config is "opendesign" (on).
// ==========================================================================
// 2026-10-30 (route audit): "deepseek" joins the list below. Its
// definition is the DeepSeek OFFICIAL API — a pay-as-you-go funds
// door, not a plan pool — and no route seats it (DeepSeek models
// reach the tiers through the plan doors: OpenCode Go, ClinePass,
// OpenDesign, Command Code). It has taken no traffic since
// 2026-10-25. Per the switchboard rule this flip is the whole job;
// its full definition stays in the provider block, and deleting
// the line re-enables it if the direct door is ever wanted.
// 2026-11-05 (Drew, direct order — supersedes the 2026-10-30 note
// above for this seat): "deepseek" LEAVES the list. The official-API
// door is re-enabled to serve one seat: deepseek/deepseek-flash
// ("1017") joins the deepseek-flash-plan route as its API leg under a
// weighted 2:1 plan:API split (see that route). The NEVER-FUNDS
// default stands for every other route; this seat is Drew's named
// exception, sized at the minority share of one pool.
// CORRECTED 2026-11-05 (Drew, later direct order — supersedes the
// paragraph directly above): "no don't re enable deepseek." The
// provider RETURNS to the list below. Its deepseek-flash-plan seat
// is a named SLOT, not an enablement exception: it stays in the
// pool in LAST position, and while the provider is disabled the
// seat contributes no leaf and can never be drawn (disabled
// providers are absent from the catalog, so route expansion drops
// the target entirely — it appears in neither the candidate list
// nor the exclusion list of the route's decision records, unlike
// quota/cooldown exclusions, which are recorded with reasons; the
// quota-block mechanism is a separate key and is untouched by
// this). The NEVER-FUNDS default stands with NO exception: the
// seat exists so that re-enabling, if Drew ever orders it, is the
// usual one-line flip. The DEEPSEEK_API_KEY plumbing
// (nixos/agent-auth + home/common materializer) is KEPT for the
// same reason — slotted and ready, just disabled.
// UPDATE 2026-11-06 (#6414): the seat itself was later removed
// from deepseek-flash-plan — the metered-provider guard rejects a
// metered selection even while disabled, and the seated target
// failed main's bin-tests CI. The provider, its definition, and
// the key plumbing above are unchanged; see the REMOVED note on
// the route for the two-step re-enable.
// 2026-11-23 (Drew, direct order): "deepseek" LEAVES the list
// again, TEMPORARILY. The two-step re-enable the 2026-11-06 note
// prescribes is executed in this pass: deepseek/deepseek-flash is
// re-seated as deepseek-flash-plan's LAST target (tier 0.1, with
// the metered guard's exception marker on the seat) in the same
// change that deletes the line below. The same order seats two
// more temporary PAYG tails -- claude-payg into haiku-plan and
// openai-payg into luna-plan, each last at low effort; both of
// those providers were already enabled, so no flip is needed for
// them. All three tails are temporary wiring on Drew's word;
// removing the seats and restoring this line is the revert.
// 2026-10-30 (Drew, direct order): "meta" joins the list below.
// The direct api.meta.ai door is dead by Meta's design — the plan
// API key returns 403 client_attestation_denied from any
// non-Muse-Code client and the OAuth token 401s (see the note at
// the "muse" provider). The routes no longer seat meta/* leaves
// (#2635 moved them to muse/* via muse-proxy, the working door).
// Per the switchboard rule the full definition stays in the
// provider block; deleting this line re-enables it if Meta ever
// serves this client again.
// 2026-10-30 (Drew, direct order — supersedes the two notes above):
// "muse" joins the list too, and "muse-direct" replaces BOTH older
// Meta doors. muse-proxy's direct mode (#2753) exchanges the Muse
// CLI account token for the plan's minted key and speaks the
// Responses API — the route that accepts that key — so the fleet no
// longer needs the CLI-harness door ("muse") or the attestation-dead
// direct door ("meta"). muse-direct is the ONLY enabled Meta-family
// provider; both older definitions stay FULL below per the
// switchboard rule, and the routes' Meta leaves were retargeted to
// muse-direct contributor models in the same pass.
// 2026-10-31 (Drew, direct order): "commandcode" joins the list.
// Its credits are exhausted (about ten cents left, expired the morning
// of 2026-10-31) and an empty pool must not run: sessions were
// still being routed onto its leaves (deepseek-flash-plan,
// spark-plan, sol-plan, beam-plan, mimo-flash-plan, scout) and
// retry-looping on "insufficient credits". Per the switchboard
// rule the definition and every seat stay in place; deleting
// this line re-enables Command Code if it is ever refilled.
// 2026-11-06: "commandcode" LEAVES the list. The blocker named in the
// 2026-10-31 note was twofold — an empty balance, and a router that kept
// retry-looping its leaves. The router half is fixed by the provider-
// availability system (opencode#1828): an exhausted-balance provider now
// classifies as quota/balance, benches on its first failure, and costs a
// session nothing while stopped; its seats stay seated and it rejoins
// automatically when the balance shows a measured increase. Evidence:
// the #1828 harness scenarios (seamlessness + measured-increase release).
// 2026-11-01 (Drew, direct order): "muse-direct" joins the list.
// The Meta pool is quota-exhausted until 2026-11-02T00:00:00Z and
// sessions dealt its muse-spark leg die on the 429 with no local
// fall (code#3325; 46 dead by 06:03 CST, incl. two full waves).
// Drew: disable the provider, do NOT change the routes - every
// seat and definition stays in place per the switchboard rule.
// To re-enable after the pool resets: delete this one line.
// REVERSED 2026-11-02 (Drew, direct order): "muse-direct" leaves
// the list. The Meta pool reset at 2026-11-02T00:00:00Z and reads
// fresh 0% with 100 pts headroom; the door is back in service.
// 2026-11-06 (Drew, direct order): "claude-code" LEAVES the list
// below - the Claude plan is back (Claude Max enabled on the
// account) and the provider is re-enabled by this one-line flip,
// per the switchboard rule. Its seats were already in place:
// haiku-plan (leads), sonnet-plan (leads; feeds specialist head
// and workhorse-primary), opus-plan (leads; feeds summit head).
// No route edits: Drew ordered no new seats in speed/workhorse,
// and the seats there (via haiku-plan / sonnet-plan) are the ones
// already shipped. NOTE: re-enabling makes claude-code the live
// lead of haiku-plan again, ahead of opendesign - the
// haiku-plan re-enable lead-order question (ledger item
// haiku-plan-claude-code-reenable-order, issue #1132) is still
// open; if Drew rules OpenDesign keeps the lead, that is a
// one-line targets reorder in haiku-plan, not a switchboard
// change. Credential: ~/.claude/.credentials.json (native
// provider reads it in place); live-probed at enable time.
// 2026-11-14 (Drew, direct order - code#9549): "_claude" joins the
// list below. Its 7-day window is at 100% until 2026-11-18 13:00 CT
// and every call returns a rate-limit error; sessions dealt its
// leaves (fable-plan, sonnet-plan, opus-plan, haiku-plan,
// workhorse-last-resort) do not fail over - they sit in the retry
// loop on the dead door (attempt counters past 10, sessions wedged
// 40+ minutes; the fleet minder interrupt-stopped 100+ of them on
// 2026-11-13/14). Drew's re-login did not revive it (probes:
// 236 failures / 0 successes in the trailing 30 minutes). Per the
// switchboard rule the definition and every seat stay in place;
// deleting this line re-enables it. Re-enable at the 2026-11-18
// reset, or sooner if a live probe shows the door answering again.
// 2026-11-14 (code#9856): "_antigravity" joins the list below.
// Google has disabled the whole Antigravity account for a Terms of
// Service violation - this is not a quota wall and not one dead
// model: route_attempt probes in the trailing 3 hours at 03:32 CT
// on 2026-11-14 show every _antigravity leaf failing with the same
// "This service has been disabled in this account for violation of
// Terms of Service. Please submit an appeal..." error
// (gemini-4-hydrogen 717 failures, gemini-4-argon 332 failures,
// claude-opus-5-5 failing too; last _antigravity success ~02:50 CT).
// Every _antigravity seat is dead: hydrogen (summit, speed,
// workhorse-weighted), argon (summit, specialist), sonnet-5-5
// (workhorse-weighted) and opus via antigravity. Per the switchboard
// rule the definition and every seat stay in place. CORRECTION
// (2026-11-14): the re-enable condition first written here was
// wrong. This disable is PERMANENT for fleet use, regardless of the
// appeal outcome: the appeal gives each account exactly one
// remediation, Google's terms ban third-party/wrapper access to
// Antigravity outright, and a single fleet call after reinstatement
// risks permanent suspension of the account. Do NOT delete this
// line, do NOT re-enable this provider, and do NOT probe it. If the
// account is reinstated, it is for use inside Google's own
// Antigravity app only.
// 2026-11-14 (code#9859): "_muse" joins the list below. Its
// subscription quota is exhausted - a quota wall, not an account
// death: route_attempt probes in the trailing 3 hours at 03:55 CT
// on 2026-11-14 show every _muse leaf failing with
// "Subscription quota exhausted. Your usage window resets at
// 2026-11-16T00:00:00Z." (muse-wonder-1.0-contributor 10 failures,
// muse-spark-1.3-contributor 9 failures; no _muse success in
// 24h). Sessions dealt its leaves do not fail over - they sit in
// the retry loop on the dead door (the fleet minder
// interrupt-stopped 9 wedged sessions in run398 alone). Every
// _muse seat is inert while it lasts: spark #high
// (workhorse-weighted), wonder #xhigh (summit), spark #xhigh
// (speed) and the spark-plan reserve leaf. Per the switchboard
// rule the definition and every seat stay in place; deleting
// this line re-enables it. Re-enable after the window resets at
// 2026-11-16T00:00:00Z (Sun 2026-11-15 18:00 CT) AND a live
// probe shows the door answering again.
// 2026-11-14 (Drew, direct order - code#10128): "_commandcode"
// joins the list below. Its monthly window has sat at 99.5%+
// ($9.95 of the $10 included credits) since 2026-11-10 - 99.513%
// on the 2026-11-14 09:15 CT gatherer tick, weekly 64.6%, 5h 0 -
// and Drew ruled today that a window at >=99.5% sustained across
// reads is WALLED: the residual fraction is not drawable and
// the door is not to be retried into new work. Every
// _commandcode door was already removed from the plan pools on
// 2026-11-13 (code#9397); this flip makes the wall formal at the
// switchboard and makes the provider definition's own "STILL in
// disabled_providers" note below true. Per the switchboard rule
// the definition and every seat stay in place; deleting this
// line re-enables it. Re-enable only when a fresh read shows
// the monthly window back under 99.5% after its reset AND
// restoration is proven by a live completion (the code#9397
// re-seat condition).
// 2026-11-15 (Drew, direct order): "_commandcode" LEAVES the list.
// Drew's ruling: a quota-walled provider is enabled and skipped,
// not disabled. _commandcode has had ZERO seats since 2026-11-13
// (code#9397) - no route target references it anywhere in this
// file (verified 2026-11-15: no "_commandcode/" or bare
// "commandcode/" target strings, no commandcode-plan references) -
// so this enable is inert: no walk can reach the door whatever the
// skip machinery does, and its gathered read is not even full
// (monthly 99.513%, no reset stated; the aggregator calls it
// "near", not walled). This supersedes the 2026-11-14 re-enable
// condition above for this provider. _claude and _muse were NOT
// removed in the same pass: the proactive gathered-quota skip is
// proven for per-credential pools (Go/Zen legs are excluded as
// quota-known-full with zero attempts) but NOT for provider-wide
// snapshot pools - opendesign (7d 100%) took 42 attempts in 6h and
// cline-pass (monthly 100%) 8 in the same window on 2026-11-15,
// all quota failures, in the running build that contains the
// code#8086 plant. Filed as fork issue #2479; _claude/_muse
// un-disable when that closes, and _claude additionally only on a
// build that includes fork PR #2466 (code#9549). _antigravity
// stays: banned account, not a quota wall.
// 2026-11-15 (Drew, direct order — later the same day): "restore
// claude and muse. do the switch." Both conditions named above
// are now met: fork #2479 is FIXED and merged (opencode#2480 —
// the gathered provider-wide wall now gates the provider scope,
// so a walled provider's legs are excluded before any attempt),
// fork PR #2466 is merged, and the fork pin in this repo points
// at the revision carrying both. "_claude" and "_muse" LEAVE
// the list below: _claude's 7d window reads 100% until
// 2026-11-18T19:00Z and _muse's weekly 100% until
// 2026-11-16T00:00Z — both stay seated, are skipped while
// walled, and revive at their resets. The _commandcode seats
// are restored in the same pass (see the per-pool notes); its
// gathered read is "near", not walled (monthly 99.513%, no
// reset stated), so its legs serve and bench reactively on
// failure, per Drew's stated tolerance.
// 2026-11-16 (Drew, correction): the pool-composition run 42
// unseating of _commandcode (PR #10875, R34), its MiniMax Zen
// leaf removal (R35), and the flint-plan emptying (PR #10882)
// are REVERTED in this pass. Entries stay in the pools: dead
// doors are sidelined by walls and benches, not by hand-removal
// — a quota-walled provider is enabled and skipped, not
// disabled and not unseated (Drew's 2026-11-15 ruling, above).
// Why the quota wall never fired on _commandcode: its gathered
// read sits at 99.5% ("near", under the wall trigger) and its
// refusals are permanent plan errors (the free Beam tier has
// ended; Sol is not in the plan), which a quota read cannot
// see. The fork's plan-wall bench (opencode#2570, merged
// 2026-11-16) walls a leaf on that error class once deployed;
// until then the legs serve and bench reactively, per the
// tolerance above. The MiniMax and flint Zen leaves are
// restored on the same ruling.
// 2026-11-16 (Drew, direct order - INTERIM): "_commandcode"
// JOINS the list below, and its two permanently-refused models
// (gpt-6.1-sol, reflection/beam:free) are commented out at their
// seats. This is a temporary hand measure, NOT the design. The
// design is the wall doctrine of 2026-11-10 (fork opencode#2256:
// a binding window <1% remaining AND plan-limit errors walls the
// pool itself - still OPEN, never built) plus the plan-wall bench
// (fork #2570, merged and pin-bumped in #10894, awaiting a
// switch). RESTORE CONDITION: remove "_commandcode" from this
// list and uncomment the two models once the system walls as it
// should - the plan-wall build deployed AND the #2256
// near-plus-erroring wall working. Until then the door stays
// dark rather than eating attempts.
// 2026-11-23 (Drew, free-wiring order - code#13677): "_commandcode"
// LEAVES the list below. Its five free models join through the new
// commandcode-free-plan (see model_routes below), seated in scout's
// and background's free clusters; its paid DeepSeek legs at #low in
// the per-model pools reactivate with the flip, exactly as the
// switchboard doctrine provides. No credential step: the native
// provider reads ~/.commandcode/auth.json in place and a
// credential-store row (integrationID commandcode) already exists.
// The 2026-11-16 interim restore condition above is superseded by
// this direct order.
"disabled_providers": [
"google",
"google-vertex",
"cloudflare-ai-gateway",
"vercel",
"huggingface",
"github-copilot",
"cloudflare-workers-ai",
"meta",
"_antigravity"
],
// 2026-11-03 (Drew): muse, antigravity-ls, antigravity-agy, code-design,
// design-code, cloudflare-gateway and chatgpt left this list together with
// their provider definitions -- retired and deleted, not just disabled.
// google, google-vertex, cloudflare-ai-gateway, cloudflare-workers-ai and
// github-copilot had their definitions deleted too, but their entries STAY
// as tombstones: the provider catalog auto-activates those five ids unless
// they are listed here (verified live 2026-11-03 -- with the entries removed
// all five reappeared in the running server within minutes). The entries are
// the only trace of them left; there are no definitions to flip back on.
// 2026-11-16 (Drew, free-provider pass): google LEAVES the tombstone set
// in this pass -- it carries a full definition again below (AI Studio
// free tier) and its entry leaves disabled_providers above. The other
// four stay tombstoned.
// 2026-11-16 (Drew, later the same day): google RETURNS to the
// tombstone set. The exercised door was reshaped into per-project
// alias providers (google.muse, google.gen-lang, google.personal,
// google.drew, google.developing-today), each with its own
// definition and credential row, so the bare id once again has no
// definition -- and without this entry the catalog would
// auto-activate it. The aliases are distinct ids; this entry does
// not touch them.
// openai-codex followed on 2026-11-03: its ten route legs were re-seated
// onto openai-plan (the ChatGPT provider route) and the definition was
// deleted with the rest. It is a custom id with no catalog entry, so --
// unlike the five tombstones above -- no entry stays for it here.
// "open-design" (the design-code door shell) followed on 2026-11-03 too:
// its commented-out definition and the door's 11 persona routes were
// deleted on Drew's direct order, and -- a custom id like openai-codex,
// not a catalog id -- no entry stays for it here either.
// Default was "claude-code/claude-haiku-5-5" until the 2026-10-27 Claude
// pause (see the header note). Workhorse is the fleet's standard tier and
// what agent configs already default to; restoring the Haiku default
// when claude-code is re-enabled is an optional preference, not part of
// enabling it (see the PROVIDER SWITCHBOARD above).
// claude-code is re-enabled.
// The v2 default-model key is "model" (config normalize.ts reads only
// input.model; the "default" key above is not consumed by the 2.x schema
// and the server otherwise falls back to its first-available model —
// which was commandcode/gpt-5.6-terra, failing over to gpt-6-luna.
// Verified 2026-10-29 against /api/model/default. Drew’s ruling: a
// session with no model chosen resolves to the workhorse route.
"model": "opencode-route/workhorse",
// Small-model slot (2026-10-29, Drew): the route `speed`, never a direct
// provider leaf. OpenChamber’s small-model resolver reads this key (or
// the title agent’s model) when no settings override applies; a capable
// route is deliberate — compaction and summaries have to read a lot, so
// the slot is a real tier, not the cheapest model on any plan.
"small_model": "opencode-route/speed",
// Messaging embeddings OFF (2026-10-29, Drew): the messaging.embedding
// tier defaults to a local Qwen3-Embedding llama-server that autostarts
// with every OpenCode process (standing server + OpenChamber managed
// instance). Tier off disables it; semantic message search degrades to
// the fuzzy FTS fallback. Re-enable by removing this key.
"messaging": {
"embedding": "off"
},
// Provider catalogs for antigravity-direct, openai-codex, google, openai and
// cloudflare-gateway are sync-owned: their "models" live in the runtime overlay
// (~/.local/state/opencode/opencode-runtime.jsonc), layered over this file via
// OPENCODE_CONFIG — see code#4544. Everything else here is deliberate config.
"provider": {
"_claude": {
// 2026-11-05 (code#6117, opencode#1749): repointed from the CLI proxy
// (:18749, @ai-sdk/openai-compatible) to the in-fork native claude-code
// provider - same provider id, native wire emulation of the Claude Code
// CLI, credential read in place from ~/.claude/.credentials.json; no
// baseURL/apiKey (the provider owns auth). STILL in disabled_providers:
// re-enabling stays a separate deliberate step.
"npm": "@opencode/ai/providers/claude-code",
"name": "Claude Code (native wire emulation)",
"models": {
"claude-haiku-5-5": {
"name": "Haiku 5.5 (Claude Code)",
"variants": {
"low": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 4096
}
}
},
"medium": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 8192
}
}
},
"high": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 16384
}
}
},
"xhigh": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 32768
}
}
},
"max": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 65536
}
}
}
},
"limit": {
"context": 1000000,
"output": 64000
}
},
"claude-sonnet-5-5": {
"name": "Sonnet 5.5 (Claude Code)",
"variants": {
"low": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 4096
}
}
},
"medium": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 8192
}
}
},
"high": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 16384
}
}
},
"xhigh": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 32768
}
}
},
"max": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 65536
}
}
}
},
"limit": {
"context": 1000000,
"output": 64000
}
},
"claude-opus-5-5": {
"name": "Opus 5.5 (Claude Code)",
"variants": {
"low": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 4096
}
}
},
"medium": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 8192
}
}
},
"high": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 16384
}
}
},
"xhigh": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 32768
}
}
},
"max": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 65536
}
}
}
},
"limit": {
"context": 1000000,
"output": 64000
}
},
// 2026-11-10 (Drew, direct order): Claude Fable 5.2 joins the
// _claude catalog, same shape as the three models above. The
// door serves it today: the wire probe on the laptop's Claude
// Code credential returned "pong" for --model claude-fable-5-2
// (preceded by a [claude-code:unrecognized_model] notice from
// the CLI's local catalog, which the endpoint answered
// anyway). Seated as fable-plan's lead at #low in specialist,
// summit, and the new workhorse-last-resort stage (see those
// routes) - it draws the dedicated Fable quota (Drew,
// 2026-11-07), not the shared Claude Max allowance.
"claude-fable-5-2": {
"name": "Fable 5.2 (Claude Code)",
"variants": {
"low": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 4096
}
}
},
"medium": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 8192
}
}
},
"high": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 16384
}
}
},
"xhigh": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 32768
}
}
},
"max": {
"options": {
"thinking": {
"type": "enabled",
"budget_tokens": 65536
}
}
}
},
"limit": {
"context": 1000000,
"output": 64000
}
}
}
},
"_antigravity": {
"npm": "@opencode/ai/providers/antigravity",
"name": "Antigravity Direct (CLI wire clone)"
// 2026-11-04 (opencode#1414): repointed from the :18751 door to
// the native in-fork provider (opencode#1457) — same provider id,
// same v1internal wire protocol, keyring credential read in place
// by the server; no baseURL/apiKey (the provider owns auth). The
// door unit + bin/antigravity-direct.mjs retire after a
// zero-traffic window on :18751.
// "models": maintained by sync-models in the runtime overlay (~/.local/state/opencode/opencode-runtime.jsonc) — see code#4544.
},
"mistral": {
"npm": "@opencode/ai/providers/mistral",
"name": "Mistral API (drewrypope)"
// Credential: the enrolled server credential (integration
// "mistral", Bitwarden mistral.api-key) — the only source.
// MISTRAL_API_KEY is deliberately NOT materialized into the
// server environment: vibe-direct's env-first resolution would
// spend this API-budget key (see home/common, opencode#1653).
// "models": maintained by sync-models in the runtime overlay (~/.local/state/opencode/opencode-runtime.jsonc) — see code#4544.
},
"_vibe": {
"npm": "@opencode/ai/providers/vibe",
"name": "Mistral Vibe Direct (native wire clone)",
// 2026-11-04 (opencode#1653, PR #1661): native in-fork emulation of
// the mistral-vibe binary — same Mistral wire, Vibe's presets and
// the attribution stamp (metadata.call_source "vibe_code"; billing
// follows the KEY, not the stamp — see the credential note).
// No vibe subprocess.
// Credential: vibe-auth resolution mirrors the binary (config ->
// env -> ~/.vibe/.env -> keyring) and the server env must NOT
// carry MISTRAL_API_KEY: that key is the API-budget key and
// Mistral meters per key, so with the env slot empty vibe-direct
// falls through to the keyring "ai.mistral.vibe" sign-in key —
// the Vibe plan key.
// Models are declared HERE: models.dev has no vibe entry, so
// sync-models cannot maintain this catalog. The entries are the
// preset ids + names from Vibe's own catalog (opencode#1653).
// A model "limit" here must carry "output" alongside
// "context": the v1 provider schema requires both, and an
// entry that fails schema decode is dropped WHOLE at config
// normalization — a context-only limit on the default model
// is exactly what kept vibe-direct out of the provider catalog
// until code#5934 (2026-11-04→05, opencode#1146). The default
// model's limit below restores the binary-verified context
// (262144, opencode#1661's preset); its "output" is the fork's
// config-model default (32000), NOT a binary-verified figure.
// The other models declare no limit and take that same
// default (200000/32000) until someone verifies theirs.
"models": {
"mistral-vibe-cli-latest": {
"name": "Mistral Medium 3.5",
"limit": {
"context": 262144,
"output": 32000
}
},
"mistral-medium-latest": {
"name": "Mistral Medium"
},
"mistral-large-latest": {
"name": "Mistral Large"
},
"mistral-small-latest": {
"name": "Mistral Small",
// Variants declared 2026-11-05: the models.dev catalog
// attests none/high (reasoning effort) for this model id on
// the Mistral wire this provider clones — the same variants
// the "mistral" provider's catalog entry carries. Declaring
// them is load-bearing, not cosmetic: a provider-route
// group's variant set is the intersection of its legs'
// producible variants, so an empty list here emptied
// mistral-plan's variant set entirely — and because a
// route's offered variants are likewise an intersection
// across its targets, seating mistral-plan in
// deepseek-flash-plan collapsed that pool's variant set and
// broke every pinned-variant session on it (Variant
// unavailable: low/high) until these were declared.
"variants": {
"none": {
"options": {
"reasoning_effort": "none"
}
},
"high": {
"options": {
"reasoning_effort": "high"
}
}
}
},
"deepseek-v4-1-flash-1017": {
"name": "DeepSeek V4.1 Flash 1017",
// Declared 2026-11-07 (Drew, direct order): NOT a Vibe
// preset — a La Plateforme catalog model the Mistral wire
// also serves (the "mistral" provider's catalog carries
// this id, family deepseek-flash). Declaring it here makes
// mistral-plan's ordered draw land on THIS leg for the
// model, so deepseek-flash-plan's mistral-plan member
// rides the Vibe plan key instead of the account API
// budget (billing follows the key — see the credential
// note above). The limit mirrors the mistral catalog
// entry (context + output both, per the schema warning
// above). The variants mirror the same catalog entry
// (none/low/high/max) so the provider-route group's
// variant intersection for this model is unchanged.
"limit": {
"context": 1048576,
"output": 128000
},
"variants": {
"none": {
"options": {
"reasoning_effort": "none"
}
},
"low": {
"options": {
"reasoning_effort": "low"
}
},
"high": {
"options": {
"reasoning_effort": "high"
}
},
"max": {
"options": {
"reasoning_effort": "max"
}
}
}
},
"zai-glm-5-3": {
"name": "GLM 5.3",
// Declared 2026-11-07 (Drew, direct order): NOT a Vibe
// preset — a La Plateforme catalog model the Mistral wire
// also serves, billed under Vibe Code on the account's
// usage page (verified there 2026-11-07). Declaring it
// here makes it addressable through this door at all (the
// same move as deepseek-v4-1-flash-1017 above); the
// glm-5-3-plan pool seats this leg directly. No limit
// declared — most preset entries above declare none and
// take the default. The variants mirror the wire set of
// the sibling third-party catalog model above
// (none/low/high/max).
"variants": {
"none": {
"options": {
"reasoning_effort": "none"
}
},
"low": {
"options": {
"reasoning_effort": "low"
}
},
"high": {
"options": {
"reasoning_effort": "high"
}
},
"max": {
"options": {
"reasoning_effort": "max"
}
}
}
},
"zai-glm-5-3-flash": {
"name": "GLM 5.3 Flash",
// Declared 2026-11-07 (Drew, direct order): same basis
// as zai-glm-5-3 above — billed under Vibe Code on the
// account's usage page (verified 2026-11-07); declared
// so the glm-5-3-flash-plan pool can seat this leg
// directly. Variants mirror the same wire set
// (none/low/high/max).
"variants": {
"none": {
"options": {
"reasoning_effort": "none"
}
},
"low": {
"options": {
"reasoning_effort": "low"
}
},
"high": {
"options": {
"reasoning_effort": "high"
}
},
"max": {
"options": {
"reasoning_effort": "max"
}
}
}
},
"codestral-latest": {
"name": "Codestral"
},
"ministral-14b-latest": {
"name": "Ministral 14B"
},
"ministral-8b-latest": {
"name": "Ministral 8B"
},
"ministral-3b-latest": {
"name": "Ministral 3B"
}
}
},
// "openai": model catalog maintained by sync-models in the runtime overlay (~/.local/state/opencode/opencode-runtime.jsonc) — see code#4544.
// "openai-codex": retired 2026-11-03 -- definition deleted after its
// route legs were re-seated onto openai-plan (see the note at
// disabled_providers). The codex door program (:18744) was retired
// 2026-11-06 in the proxy-infra decommission, completing the
// #1154 cutover.
// "open-design" (the design-code door shell, :18746): the commented-out
// proxy block preserved here since 2026-10-25 was DELETED 2026-11-03
// (Drew, direct order) together with the door's persona routes below.
// The only design provider in this config is "opendesign" (further down).
// "openai.alternate": retired 2026-11-12 -- definition deleted. The
// popesdrew door has been _openai.alt since the #8163 rename
// (2026-11-10); a parsed-config walk of this file found no reference
// to the old id outside its own definition (evidence in the
// retirement PR). Revert that PR to restore the definition.
// _openai.alt (2026-11-10, Drew direct order): the popesdrew account
// as an _openai-pattern instance - the second of the two self-contained
// OpenAI doors (with _openai.main below). Same pattern as _openai.main:
// its credential is its own, seeded without the externalRefresh stamp
// and refreshed in-process by the provider; no Muse, no
// ~/.codex/auth.json read, no codex-sync in its path. Seeded from the
// popesdrew account credential openai.alternate already serves with -
// the credential-store seeding is tracked with the #8163 follow-up;
// this definition is the config side. openai.alternate kept its
// definition above, unseated, while the pool sat on this id; that
// definition was retired 2026-11-12 (tombstone above).
// 2026-11-11 (code#8653): the models maps pinned below these
// doors by the #8163 rename are REMOVED. With a declared map the
// fork resolves the models as plain Platform-API models and the
// ChatGPT OAuth credential is rejected on every call with
// "Missing scopes: api.responses.write" - the workhorse route
// lost its only un-walled legs for a full morning. The bare
// instanceOf shape (the proven _openai form, which authenticated
// against the ChatGPT door hours before the rename) inherits
// the base catalog as-is. Do not re-pin a catalog here.
"_openai.alt": {
"instanceOf": "openai",
"name": "OpenAI Self-Contained Alt (popesdrew, no Codex)"
},
// "openai.main": retired 2026-11-12 -- definition deleted. The
// drewrypope door has been _openai.main since the #8163 rename
// (2026-11-10); a parsed-config walk of this file found no reference
// to the old id outside its own definition (evidence in the
// retirement PR). Revert that PR to restore the definition.
// _openai (2026-11-10, Drew direct order, #8163): the self-contained
// main OpenAI door. Same drewrypope ChatGPT account as openai.main, but
// its credential is its own: seeded into the store without the
// externalRefresh stamp, refreshed in-process by the provider (the
// openai.alternate pattern, #8102). No Muse, no ~/.codex/auth.json
// read, no codex-sync in its path (the fork's CodexSync explicitly
// never targets it). Seated in openai-plan by the stage-2 change once
// proven with real route traffic; until then openai.main keeps the seat.
// 2026-11-10 (Drew, direct order): this door's id is now _openai.main -
// the provider id IS the credential key, so the rename pairs with the
// credential-store move re-keying this door's credential from _openai
// to _openai.main (tracked with the #8163 follow-up; store moves are
// not config). The bare _openai id is retired by this rename.
"_openai.main": {
"instanceOf": "openai",
"name": "OpenAI Self-Contained (drewrypope, no Codex)"
},
"opendesign": {
"npm": "@ai-sdk/openai-compatible",
"name": "Open Design",
"options": {
"baseURL": "https://amr-link.open-design.ai/v1",
// Membership caps declared on the provider definition (fork #2253): the
// router meters every start against this one account — 10 concurrent,
// 100 requests/minute — waits briefly for a slot, then fails over
// silently instead of letting a session see tier_limit_exceeded.
"membership": {
"concurrent": 10,
"requestsPerMinute": 100
}
},
"models": {
"claude-haiku-5.5": {
"name": "Claude Haiku 5.5 (Open Design)"
},
"deepseek-v4-flash": {
"name": "DeepSeek V4 Flash"
},
"deepseek-v4-flash-vision-exp": {
"name": "DeepSeek V4 Flash Vision Exp"
},
"deepseek-v4-pro": {
"name": "DeepSeek V4 Pro"
},
"deepseek-v4.1-flash": {
"name": "DeepSeek V4.1 Flash"
},
"deepseek-v4.1-flash-eco": {
"name": "DeepSeek V4.1 Flash Eco"
},
"glm-5.3-flash": {
"name": "GLM-5.3 Flash"
},
"glm-5.3-flashx": {
"name": "GLM-5.3 Flash-X"
},
"gpt-6-luna": {
"name": "GPT-6 Luna (Open Design)"
},
"gpt-6.1-sol": {
"name": "GPT-6.1 Sol (Open Design)"
},
"hy4-preview": {
"name": "Hunyuan H4 Preview"
},
"kimi-k2.7-code": {
"name": "Kimi K2.7 Code"
},
"mimo-v2.6-flash": {
"name": "MiMo V2.6 Flash"
},
"mimo-v2.6-pro": {
"name": "MiMo V2.6 Pro"
}
}
},
// NEW 2026-11-15 (Drew, free-provider pass): Z.ai direct door.
// GLM-4.7-Flash and GLM-4.5-Flash are $0 per token PERMANENTLY on
// Z.ai's own pricing page (verified 2026-11-15, docs.z.ai pricing;
// live chat probes on our key the same day). Explicit model list —
// NOT instanceOf the built-in catalog, which would also expose the
// paid GLM models. Key is ours: Bitwarden `zai.api-key`, bound via