all-models-patch runs Claude Code against real model IDs from multiple
providers through a local Anthropic-compatible gateway. It patches a verified
copy of Claude Code locally so that non-Anthropic models remain visible, use
route-specific context limits, compact at the right threshold, and receive
truthful Git attribution.
The normal command is:
claude-all
The project is an Apple Silicon macOS public preview. It does not redistribute
Claude Code. Every stock executable is downloaded directly from Anthropic,
verified, patched on the consumer's machine, ad-hoc signed locally, and kept
separate from the normal claude installation.
The supported gateway is
callmemorgan/CLIProxyAPI. The
two projects form a matched stack:
all-models-patchowns Claude Code discovery, context, compaction, attribution, runtime verification, and updates.- The CLIProxyAPI fork owns provider authentication, routing, real model IDs, response identity, and subscription-usage diagnostics.
The updater warns when the companion gateway cannot be reached but does not block an otherwise valid runtime installation.
-
Apple Silicon Mac (
darwin-arm64) -
macOS
codesign,ssh-keygen,tar, andlaunchctl -
the companion CLIProxyAPI fork listening on
http://127.0.0.1:8317 -
a local proxy client key at:
~/.cli-proxy-api/client-key
Consumers do not need Node, Bun, npm, GnuPG, the GitHub CLI, or a repository checkout.
The release ships a ready-to-use named-agent bundle and context map. The installer provisions them on first install at:
~/.cli-proxy-api/claude-all-agents.json
~/.cli-proxy-api/claude-all-contexts.json
Existing files are always preserved, including during upgrades and self-update.
Run all-models-patch provision-model-configs to restore either missing file
from the installed release without replacing the other one.
The agent bundle maps friendly agent_type names such as kimi-k3,
gpt-5-6-sol, and grok-4-5 to the real model IDs exposed by the companion
gateway. A configured agent is usable only when that provider and model are
available through the local proxy; edit the JSON to match the accounts and
routes enabled on the machine.
The context map is client-side metadata because Claude Code does not consume
context-window limits from gateway model discovery. claude-all converts each
route-validated entry into launch-time context and auto-compaction overrides.
For example, the shipped Kimi K3 profile uses a 1,000,000-token context window
and compacts at 900,000 tokens. Changes take effect in newly launched
claude-all processes.
Download these assets from the latest GitHub release:
all-models-patch-VERSION-darwin-arm64.tar.gz
release-manifest.json
release-manifest.json.sig
release-signers
Verify the release manifest with the built-in OpenSSH verifier:
expected='SHA256:yLJtSegpLNiWyJYHeHI3MwP4qez0n+CF+K/EOHos6KY' actual="$(awk '{ for (i = 1; i <= NF; i++) if ($i ~ /^ssh-(ed25519|rsa)$/) { print $i, $(i + 1); exit } }' release-signers \ | ssh-keygen -lf - -E sha256 \ | awk '{ print $2 }')" test "$actual" = "$expected" || { echo "release signing key fingerprint mismatch" >&2 exit 1 } ssh-keygen -Y verify \ -f release-signers \ -I callmemorgan \ -n all-models-patch-release \ -s release-manifest.json.sig \ < release-manifest.json
The pinned signing-key fingerprint used above is:
SHA256:yLJtSegpLNiWyJYHeHI3MwP4qez0n+CF+K/EOHos6KY
Do not proceed unless both the explicit fingerprint comparison and signature
verification succeed. Compare the archive's shasum -a 256 and byte size with
release-manifest.json, then extract and install it:
tar -xzf all-models-patch-VERSION-darwin-arm64.tar.gz zsh all-models-patch-VERSION/bin/install-all-models-patch
The manager is signed with the project's Apple Developer ID Application
certificate and notarized by Apple. The installer preserves that signature and
verifies Apple team 5LTMYWRTYR before it executes the manager. The independent
SSH signature still authenticates the complete release manifest, source commit,
archive hash, and release sequence. The installer never uses sudo.
The installer creates:
~/.local/bin/all-models-patch
~/.local/bin/claude-all
~/.local/bin/claude-stable
~/.local/share/all-models-patch/releases/<manager-version>/
~/.config/all-models-patch/features.json
~/.config/all-models-patch/agent-teams.json
~/.cli-proxy-api/claude-all-agents.json
~/.cli-proxy-api/claude-all-contexts.json
~/Library/LaunchAgents/com.callmemorgan.all-models-patch.stable-monitor.plist
On first install it offers All (recommended) or Some for the patch profile, then asks whether to enable experimental Claude Code agent teams. Pressing Enter selects All for the patch profile and No for agent teams. A non-interactive install uses the same defaults. Choosing Some opens a Y/n choice for each patch feature. Existing choices are preserved on reinstall and self-update.
Scripted installs can choose the agent-team setting explicitly:
zsh all-models-patch-VERSION/bin/install-all-models-patch --agent-teams zsh all-models-patch-VERSION/bin/install-all-models-patch --no-agent-teams
The patch is split into five independently selectable groups:
| Feature | Benefit | Trade-off |
|---|---|---|
discovery |
Shows real foreign-model IDs from the gateway | Changes Claude Code's native Anthropic-only filtering |
pricing |
Reports curated list-equivalent costs | Requires discovery; estimates public list prices rather than subscription billing |
context |
Uses route-specific context and compaction limits | Gateway metadata can override Claude Code's native model defaults |
attribution |
Credits the active model in generated commits | Changes generated commit trailers |
set-goal |
Exposes the native goal runtime to the model | Gives the model an additional autonomous planning tool |
The default profile is All. To inspect or change it later:
all-models-patch features all-models-patch configure all-models-patch configure --all all-models-patch configure --only discovery,context all-models-patch configure --none
Changing the selection rebuilds and re-verifies the current runtime. Pricing cannot be selected without discovery. The current forward-only support pack contains an exact deterministic hash for every permitted combination (24 profiles); arbitrary or incomplete combinations fail closed. Historical rollback packs retain the fixed feature set they originally shipped with.
Native Claude Code agent teams are a launcher preference, not a binary patch feature. They are disabled by default and can be changed without rebuilding the patched runtime:
all-models-patch configure --agent-teams --no-update all-models-patch configure --no-agent-teams --no-update
The choice is stored in
~/.config/all-models-patch/agent-teams.json and applies to newly launched
claude-all sessions. When enabled, the launcher sets
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1; when disabled, it removes any inherited
value before starting Claude Code. A missing preference also means disabled.
Invalid preference data stops the launch rather than silently selecting a mode.
Disabling native teams does not unload the bundled swarm plugin or remove the
named-agent bundle. The /claude-all-swarm:swarm command therefore remains
installed, but it cannot launch teammates until native teams are enabled and a
new claude-all session is started. Self-updates never prompt for or rewrite
this preference. Because the preference is outside FEATURE_GROUPS, it does not
change support-pack profiles or deterministic runtime hashes.
The installed manager can measure raw response latency and token rates for the
live claude-all agent bundle:
all-models-patch benchmark all-models-patch benchmark --agents sonnet-5,gpt-5-6-sol --warmups 0 --runs 1
With no agent selection, the benchmark runs every configured agent serially
with one warmup and three measured requests. It reports proxy-observed time to
first token, approximate post-first-token output rate, end-to-end rate, route
identity, retries, and fixture compliance. The slash command
/claude-all-swarm:benchmark invokes the same harness and does not require
native agent teams.
Three fixtures are available via --fixture: raw-v1 (default, short
calibration prompt), aa-long-v1 (Artificial Analysis–shaped ~10k-token input
with a fixed 48-line output and client-side time to first answer token), and
aa-story-v1 (same long input, free-form prose). Free-form fixtures rank
cross-model speed on tokenizer-neutral visible characters per second, because
identical text tokenizes to very different counts across providers.
--compare-aa <extract.json> appends a local-versus-published comparison from
a previously extracted Artificial Analysis dataset (no network access).
Raw artifacts are written under
$XDG_STATE_HOME/all-models-patch/benchmarks/ (or
~/.local/state/all-models-patch/benchmarks/). They contain sanitized usage and
timing data, never generated response text, prompts, API keys, or provider
credentials. Fixture IDs are versioned; results from different fixture versions
are not directly comparable. Exit status 2 means the run completed with
partial coverage.
Launch the local recommendation dashboard with:
all-models-patch dashboard all-models-patch dashboard --no-open --port 4317
The manager binds only to 127.0.0.1, creates a fresh unguessable API token
for each launch, and opens the authenticated dashboard URL in the default
browser. Press Ctrl-C in the launching terminal to stop it. The UI never loads
scripts, fonts, or assets from the network.
Model Cockpit joins the current named-agent and context configs with the latest
compatible benchmark for each concrete model (preferring aa-story-v1, then
aa-long-v1, then raw-v1; symlinked run directories are followed), the
sanitized agents-statusline provider-quota cache, and shipped structured
recommendation metadata. It shows the provenance and freshness of every source. Provider OAuth
tokens, the proxy client key, prompts, generated benchmark text, and private
repository data never enter the dashboard payload.
When agents-statusline is installed, the initial dashboard load and explicit
Refresh action ask its credential-owning background helper for a fresh quota
snapshot, throttled to once per minute. If the helper or proxy is unavailable,
the last sanitized cache remains visible with its original timestamp.
The Recommendation view ranks the live Agent() roster using adjustable
Artificial Analysis Coding, Agentic, and Intelligence indexes, personal taste,
effective speed, reliability, quota, context, coachability, and efficiency
weights. Effective speed estimates time
to produce the requested output from TTFT and post-first-token throughput, then
uses a logarithmic utility curve so unusually high token rates do not dominate
the result. Missing evidence is confidence-shrunk to a neutral score rather
than treated as failure, and a context requirement larger than a model's window
is a hard exclusion.
Built-in task presets cover balanced work, deep builds, taste and polish, fast
reconnaissance, and quota conservation. User presets are stored separately at
~/.config/all-models-patch/dashboard-presets.json with mode 0600; they do
not modify the agent bundle or shipped evidence. Public ratings remain visibly
unknown until a sourced numeric observation is added to
config/model-recommendations.json—rank-only prose is never converted into an
invented score.
The same ranking is available on the command line:
all-models-patch recommend all-models-patch recommend --preset fast --exclude-provider claude all-models-patch recommend --preset deep --prefer-provider grok --json
Presets resolve through natural aliases (fast, tasteful, efficient,
deep); bare invocation prints the preset menu with usage cues before the
default balanced ranking. Provider controls come in three strengths:
--provider restricts to a pool, --exclude-provider drops one, and
--prefer-provider applies a visible, bounded sort bonus without changing the
underlying scores. The slash command /claude-all-swarm:recommend wraps the
same subcommand.
Anthropic's Stable channel and this project's reviewed support catalog are two separate authorities:
Anthropic Stable changes
|
v
maintainer reviews exact binary seams
|
v
signed support pack is published
|
v
consumer downloads from Anthropic and patches locally
The daily LaunchAgent checks both sources. For an unknown Claude build it keeps
the existing runtime and reports unsupported; consumers never run heuristic
binary analysis. When an exact signed support pack becomes available, the
manager automatically:
- verifies the signed, monotonic project release;
- self-updates through a staged atomic switch when necessary;
- downloads Claude Code directly from Anthropic;
- verifies manifest size and SHA-256, ARM64 architecture, and Apple Developer
ID team
Q6L2SF6YDW; - applies every selected reviewed replacement exactly once;
- verifies the deterministic unsigned hash authorized for that feature profile;
- ad-hoc signs and smoke-tests the locally generated patched Claude result;
- atomically promotes it while retaining verified rollback versions.
Stable rollbacks follow the same rules. A cached supported version is reactivated; an uncached version is reconstructed from its retained support pack; an unsupported or revoked version is never guessed.
Feature support is forward-only. New patch behavior is added to the current reviewed Stable build and is not retrofitted into older support packs. Historical packs may remain available for operational rollback, but retain the exact feature set they originally shipped with. The manager keeps the active last-known-good runtime until a reviewed successor is ready.
Useful commands:
all-models-patch status all-models-patch status --json all-models-patch check all-models-patch update all-models-patch features all-models-patch configure all-models-patch dashboard all-models-patch provision-model-configs all-models-patch doctor all-models-patch rollback 2.1.197 all-models-patch uninstall --yes
The signed portfolio currently contains exact Apple Silicon support for:
| Claude Code | Stock SHA-256 |
|---|---|
2.1.197 |
8cc0c4d1e4eb1dca3b0cc92ab02ee3505de764e023f8c901761c167b72041fb8 |
2.1.201 |
a0852d76afc47b30f5cb0b7625ec9a7714cb189f2eeef6c28c77e2be954fb7fd |
2.1.202 |
7414f707861e2fe5afef33a466f888a8d2170e5028f5e9d2858f1d3ef45ffca5 |
2.1.205 |
33e28624c5ae84f2bd7d2d8761e5d2e77997ba965cb11b6448de6b6e2c566f9c |
2.1.206 |
3197aba4442dbd5b3df42b6f35e6d7bd03b5e48ce18b7a3c5c6f5f8c28e03b7f |
2.1.211 |
5a728a76198b6eca7f3c7cdbff43bab44b77b48c2108f7a3107d889773382629 |
2.1.212 |
09ecba2ab2df9b6ee5b0695e26f65dea60fb3b6af3d3542ee09f466838d1e574 |
Support is keyed by version, platform, and binary hash. A republished binary with the same version but a different hash is unsupported until reviewed. The table describes the rollback portfolio, not a promise that every historical build receives features introduced later.
| Area | Patched behavior |
|---|---|
| Gateway discovery | Retain every model returned by the configured gateway |
| List-equivalent pricing | Load the gateway's curated model costs through Claude Code's native bootstrap cache |
| Context windows | Read validated per-model context limits from the launch environment |
| Compaction | Read validated per-model compaction thresholds |
| Git attribution | Credit the active model and identify this harness |
| Autonomous goals | Expose Claude Code's native goal runtime as the model-callable set_goal tool |
Generated commit attribution looks like:
Generated-With: @callmemorgan/all-models-patch
Co-Authored-By: gpt-5.6-sol <[email protected]>
Setting Claude Code's attribution.commit still overrides the generated block,
and setting includeCoAuthoredBy to false disables it.
The stock and patched runtimes are versioned independently:
~/.local/share/claude-stable/versions/<claude-version>/claude
~/.local/share/claude-all/versions/<claude-version>/claude
Each patched manifest references its exact versioned stock binary rather than
the mutable Stable symlink. An interrupted update therefore cannot invalidate
the previously active claude-all runtime.
claude-all uses an isolated ~/.claude-all profile and always exports
DISABLE_UPDATES=1; the project manager, not Claude Code's built-in updater,
owns this runtime portfolio. The ordinary claude installation remains stock.
Uninstall removes the manager, its patch and agent-team preferences, LaunchAgent,
and isolated stock/patched runtime portfolios. It intentionally preserves ~/.claude-all,
the provisioned model configs and credentials under ~/.cli-proxy-api, the
companion proxy, and the ordinary stock claude installation.
Maintainers need Node 20 or newer and Bun for standalone release builds:
npm test
npm run check
npm run support:generate
npm run release:prepareSee MAINTAINING.md for candidate analysis, support-pack
review, revocation, signing, and publication. The exact set_goal seams and
verification contract are documented in docs/SET_GOAL_PATCH.md.
See SECURITY.md for the trust and disclosure model.
The patch tooling is available under the MIT License. Claude Code is downloaded separately from Anthropic and remains subject to Anthropic's terms.