A patch allows the Claude client to accept more ModelIDs.
- 1.6608.0
- 1.6608.2
- 1.7196.0
The patch scripts auto-detect your installed version and fetch the latest patch definitions from this repository. When a new Claude Desktop version is released, only patch-definitions.json needs updating.
Require: Installed Claude Desktop & Enable Developer Mode
curl -fsSL https://raw.githubusercontent.com/CuzTeam/ClaudeDesktop-ModelIDPatch/refs/heads/main/scripts/patch.sh | bashirm https://raw.githubusercontent.com/CuzTeam/ClaudeDesktop-ModelIDPatch/refs/heads/main/scripts/patch.ps1 | iex- Disables Electron asar integrity validation (fuse byte flip in
claude.exe) - Patches the model name validation function to always return
true - Fetches patch targets from GitHub at runtime for version compatibility
The scripts automatically fetch patch-definitions.json from this repo at runtime. This means:
- Users always get the latest patch targets without re-downloading the script
- Adding support for new versions only requires updating the JSON file
- If the remote fetch fails (e.g., no internet), embedded fallback definitions are used
- If the version is unknown, a fallback regex attempts to auto-detect the target function
- Extract
app.asarfrom the new version - Search
.vite/build/index.jsfor the pattern:function XXX(e){const A=e.toLowerCase();return YYY.test(A)||ZZZ.some(t=>A.includes(t))} - Add the new entry to
patch-definitions.json - Submit a PR
Backups are saved to your Desktop during patching. To revert:
Windows:
Copy-Item "$env:USERPROFILE\Desktop\claude.exe.bak" "C:\path\to\app\claude.exe" -Force
Copy-Item "$env:USERPROFILE\Desktop\app.asar.bak" "C:\path\to\app\resources\app.asar" -ForcemacOS:
cp /Applications/Claude.app/Contents/Resources/app.asar.bak /Applications/Claude.app/Contents/Resources/app.asar