@khalilgharbaoui/opencode-claude-code-plugin 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,7 +25,7 @@ claude --version
25
25
 
26
26
  That's it. Restart opencode, pick a `claude-code` model, done.
27
27
 
28
- The plugin self-registers the `claude-code` provider, all current Claude Code models (Haiku 4.5, Sonnet 4.5/4.6, Opus 4.5/4.6/4.7/4.8, Fable 5, Mythos 5) with reasoning variants (`low` / `medium` / `high` / `xhigh` / `max`), and sensible defaults for tool proxying. You don't need to write a `provider` block at all unless you want to override something.
28
+ The plugin self-registers the `claude-code` provider, all current Claude Code models (Haiku 4.5, Sonnet 4.5/4.6/5, Opus 4.5/4.6/4.7/4.8/5, Fable 5/5.1, Mythos 5/5.1) with reasoning variants (`low` / `medium` / `high` / `xhigh` / `max`), and sensible defaults for tool proxying. You don't need to write a `provider` block at all unless you want to override something.
29
29
 
30
30
  ---
31
31
 
@@ -73,7 +73,7 @@ The plugin auto-registers the following. They appear in the model picker without
73
73
  | `claude-haiku-4-5` | Claude Haiku 4.5 | 200k | 64,000 | – | 1× |
74
74
  | `claude-sonnet-4-5` | Claude Sonnet 4.5 | 200k | 64,000 | low/medium/high/xhigh/max | 3× |
75
75
  | `claude-sonnet-4-6` | Claude Sonnet 4.6 | 1M | 128,000 | low/medium/high/xhigh/max | 3× |
76
- | `claude-sonnet-5` | Claude Sonnet 5 | 1M | 128,000 | low/medium/high/xhigh/max | 2×* |
76
+ | `claude-sonnet-5` | Claude Sonnet 5 | 1M | 128,000 | low/medium/high/xhigh/max | |
77
77
  | `claude-opus-4-5` | Claude Opus 4.5 | 200k | 64,000 | low/medium/high/xhigh/max | 5× |
78
78
  | `claude-opus-4-6` | Claude Opus 4.6 | 1M | 128,000 | low/medium/high/xhigh/max | 5× |
79
79
  | `claude-opus-4-7` | Claude Opus 4.7 | 1M | 128,000 | low/medium/high/xhigh/max | 5× |
@@ -82,13 +82,17 @@ The plugin auto-registers the following. They appear in the model picker without
82
82
  | `claude-opus-5` | Claude Opus 5 | 1M | 128,000 | low/medium/high/xhigh/max | 5× |
83
83
  | `claude-opus-5-fast` | Claude Opus 5 Fast | 1M | 128,000 | low/medium/high/xhigh/max | 10× |
84
84
  | `claude-fable-5` | Claude Fable 5 | 1M | 128,000 | low/medium/high/xhigh/max | 10× |
85
+ | `claude-fable-5-1` | Claude Fable 5.1 | 1M | 128,000 | low/medium/high/xhigh/max | 10× |
85
86
  | `claude-mythos-5` | Claude Mythos 5 | 1M | 128,000 | low/medium/high/xhigh/max | 10× |
87
+ | `claude-mythos-5-1` | Claude Mythos 5.1 | 1M | 128,000 | low/medium/high/xhigh/max | 10× |
86
88
 
87
- `claude-mythos-5` is Mythos-class like Fable 5 but without safety classifiers, and is **limited availability via [Project Glasswing](https://anthropic.com/glasswing)**. It's registered unconditionally; if your Claude account lacks access, `claude --model claude-mythos-5` just errors. Use `claude-fable-5` (generally available) otherwise.
89
+ `claude-mythos-5` and `claude-mythos-5-1` are Mythos-class counterparts to the corresponding Fable models, but without safety classifiers, and are **limited availability via [Project Glasswing](https://anthropic.com/glasswing)**. They're registered unconditionally; if your Claude account lacks access, `claude --model` just errors. Use the corresponding generally available `claude-fable-5` or `claude-fable-5-1` otherwise.
88
90
 
89
91
  Capabilities for every model: text + image input, text output, tool use, attachments. No temperature control, no PDF/audio/video, no interleaved streaming.
90
92
 
91
- **Price ×** is each model's per-token list price relative to Haiku, the cheapest model. It's derived exactly from Anthropic's published pricing (input and output ratios both come out the same: Haiku $1/$5 = 1×, Sonnet $3/$15 = 3×, Opus $5/$25 = 5×, Fable 5 / Mythos 5 / Opus fast mode $10/$50 = 10×). So **Fable 5, Mythos 5, and fast-mode Opus all cost 2× standard Opus 5**. Sonnet 5's `2×` uses its introductory $2/$10 pricing through August 31, 2026; standard $3/$15 pricing begins September 1. The same multiplier is shown as a `(N×)` suffix on the display name in opencode's model picker, since opencode has no dedicated multiplier field. On a flat Max/Pro subscription it doubles as a rough guide to how fast each model drains your usage limit.
93
+ **Price ×** is each model's per-token list price relative to Haiku, the cheapest model. It's derived exactly from Anthropic's published pricing (input and output ratios both come out the same: Haiku $1/$5 = 1×, Sonnet $3/$15 = 3×, Opus $5/$25 = 5×, Fable/Mythos 5 and 5.1 / Opus fast mode $10/$50 = 10×). So **Fable/Mythos 5 and 5.1, and fast-mode Opus, all cost 2× standard Opus 5**. The same multiplier is shown as a `(N×)` suffix on the display name in opencode's model picker, since opencode has no dedicated multiplier field. On a flat Max/Pro subscription it doubles as a rough guide to how fast each model drains your usage limit.
94
+
95
+ Fable 5.1 and Mythos 5.1 keep the same $10/M input and $50/M output rates as 5.0, but cache reads cost $0.25/M instead of $1/M. Their cache-write rate remains $12.50/M.
92
96
 
93
97
  The model ID is passed straight through to `claude --model`, so anything Claude Code accepts works. The two `-fast` IDs are the one exception, described below.
94
98
 
@@ -819,9 +823,9 @@ The GitHub Actions workflow at `.github/workflows/publish.yml` runs `npm publish
819
823
 
820
824
  <a href="https://www.star-history.com/?repos=khalilgharbaoui%2Fopencode-claude-code-plugin&type=date&legend=top-left">
821
825
  <picture>
822
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=khalilgharbaoui/opencode-claude-code-plugin&type=date&theme=dark&legend=top-left" />
823
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=khalilgharbaoui/opencode-claude-code-plugin&type=date&legend=top-left" />
824
- <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=khalilgharbaoui/opencode-claude-code-plugin&type=date&legend=top-left" />
826
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=khalilgharbaoui/opencode-claude-code-plugin&type=date&theme=dark&legend=top-left&sealed_token=XBPNnYotm7Eti4lpRGsbKl_dsq6XGUtRkvCxE4UpQH2HM4LifiiTNV1hqjCOsivRZ-e2hFDohid8iERSP5XO5JdkNhHcuS2bLZFIdQIWZO1NldJLD2TjaaSYK6GJcnXYZHivkbiiynG7b8-V8z9LLn8Uo2ED15OWnUd3devehrMyKJJO_dtOW1ivZ3yJ" />
827
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=khalilgharbaoui/opencode-claude-code-plugin&type=date&legend=top-left&sealed_token=XBPNnYotm7Eti4lpRGsbKl_dsq6XGUtRkvCxE4UpQH2HM4LifiiTNV1hqjCOsivRZ-e2hFDohid8iERSP5XO5JdkNhHcuS2bLZFIdQIWZO1NldJLD2TjaaSYK6GJcnXYZHivkbiiynG7b8-V8z9LLn8Uo2ED15OWnUd3devehrMyKJJO_dtOW1ivZ3yJ" />
828
+ <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=khalilgharbaoui/opencode-claude-code-plugin&type=date&legend=top-left&sealed_token=XBPNnYotm7Eti4lpRGsbKl_dsq6XGUtRkvCxE4UpQH2HM4LifiiTNV1hqjCOsivRZ-e2hFDohid8iERSP5XO5JdkNhHcuS2bLZFIdQIWZO1NldJLD2TjaaSYK6GJcnXYZHivkbiiynG7b8-V8z9LLn8Uo2ED15OWnUd3devehrMyKJJO_dtOW1ivZ3yJ" />
825
829
  </picture>
826
830
  </a>
827
831
 
package/dist/index.js CHANGED
@@ -772,9 +772,9 @@ function defineModel(opts) {
772
772
  }
773
773
  var haikuCost = { input: 1, output: 5, cacheRead: 0.1, cacheWrite: 1.25 };
774
774
  var sonnetCost = { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3.75 };
775
- var sonnet5Cost = { input: 2, output: 10, cacheRead: 0.2, cacheWrite: 2.5 };
776
775
  var opusCost = { input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25 };
777
776
  var fableCost = { input: 10, output: 50, cacheRead: 1, cacheWrite: 12.5 };
777
+ var fable51Cost = { input: 10, output: 50, cacheRead: 0.25, cacheWrite: 12.5 };
778
778
  var opusFastCost = { input: 10, output: 50, cacheRead: 1, cacheWrite: 12.5 };
779
779
  function toConfigModel(model) {
780
780
  const inputMods = [];
@@ -849,8 +849,8 @@ var defaultModels = {
849
849
  reasoning: true,
850
850
  context: 1e6,
851
851
  output: 128e3,
852
- cost: sonnet5Cost,
853
- multiplier: 2,
852
+ cost: sonnetCost,
853
+ multiplier: 3,
854
854
  releaseDate: "2026-06-30"
855
855
  }),
856
856
  "claude-opus-4-5": defineModel({
@@ -950,10 +950,21 @@ var defaultModels = {
950
950
  multiplier: 10,
951
951
  releaseDate: "2026-06-09"
952
952
  }),
953
- // Mythos 5 shares Fable 5's capabilities and pricing without the safety
954
- // classifiers; limited availability via Project Glasswing. `claude --model
955
- // claude-mythos-5` simply errors for accounts without access, so it's safe to
956
- // register unconditionally.
953
+ "claude-fable-5-1": defineModel({
954
+ id: "claude-fable-5-1",
955
+ name: "Claude Fable 5.1",
956
+ family: "fable",
957
+ reasoning: true,
958
+ context: 1e6,
959
+ output: 128e3,
960
+ cost: fable51Cost,
961
+ multiplier: 10,
962
+ releaseDate: "2026-09-01"
963
+ }),
964
+ // Mythos 5 and 5.1 share the corresponding Fable models' capabilities and
965
+ // pricing without the safety classifiers; limited availability via Project
966
+ // Glasswing. `claude --model` simply errors for accounts without access, so
967
+ // they are safe to register unconditionally.
957
968
  "claude-mythos-5": defineModel({
958
969
  id: "claude-mythos-5",
959
970
  name: "Claude Mythos 5",
@@ -964,6 +975,17 @@ var defaultModels = {
964
975
  cost: fableCost,
965
976
  multiplier: 10,
966
977
  releaseDate: "2026-06-09"
978
+ }),
979
+ "claude-mythos-5-1": defineModel({
980
+ id: "claude-mythos-5-1",
981
+ name: "Claude Mythos 5.1",
982
+ family: "mythos",
983
+ reasoning: true,
984
+ context: 1e6,
985
+ output: 128e3,
986
+ cost: fable51Cost,
987
+ multiplier: 10,
988
+ releaseDate: "2026-09-01"
967
989
  })
968
990
  };
969
991
  var FAST_SUFFIX = "-fast";