0Chencc/clawgod
ClawGod is a runtime patch applied to the official Claude Code. It continues to be supported with each version update.
What is ClawGod?
ClawGod is a runtime patcher for Anthropic’s Claude Code CLI. It does not replace Claude Code; instead it automatically extracts the official binary, applies a set of regex‑based patches, and then runs the modified cli.js under the Bun runtime. The goal is to unlock or remove a number of restrictions that Anthropic builds into the official client.
Key Features (as described in the README)
| Category | What the patch does |
|---|---|
| Feature unlocks | Enables hidden commands (e.g., /share, /teleport), multi‑agent “swarm” collaboration, computer‑use without a paid subscription, auto‑mode for third‑party APIs, and custom classifier tuning. |
| Restriction removals | Strips safety‑related prompts such as the CYBER_RISK_INSTRUCTION, URL‑generation bans, forced confirmations for destructive actions, and the “Not logged in” notice. |
| Geo‑steganography neutralisation | Removes hidden location‑leakage logic that encodes the user’s timezone or proxy information in the system prompt. |
| Visual tweaks | Changes the UI theme to green and reveals messages that are normally hidden from non‑Anthropic users. |
| Reliability improvements | Restores bundled glob/grep tools, extends the prompt‑cache TTL from ~5 min to 1 hour, disables a billing header that breaks third‑party proxies, and automatically re‑patches when the upstream Claude binary is updated. |
| Lean settings | Provides three levels (on, max, off) that prune unused tool definitions to reduce token usage. |
How to install / use
- Prerequisites – Claude Code (the official binary),
ripgrep, Node ≥ 18, and Bun (installed automatically if missing). - Installation – One‑line script via
curl …/install.sh | bashon macOS/Linux or PowerShellirm …/install.ps1 | iexon Windows. - Commands
claude– the patched launcher (replaces the official entry point).clawgod– an explicit alias that always runs the patched version.claude.orig– the untouched original binary (kept as a backup).
- Configuration – Settings live in
~/.clawgod/:provider.jsonholds an optional API key and custom endpoint, letting you point the client at any Anthropic‑compatible service.patches.jsonlets you permanently disable individual patches (e.g., turn the green theme off).- Environment variables (
CLAWGOD_FEATURE_…) can toggle a feature for a single run.
- Updates – Run
claude updateas usual; ClawGod intercepts the update, re‑extracts the new binary, and reapplies all patches automatically. - Uninstall – Run the same install script with
--uninstallto restore the original launcher.
Who might want this?
- Power users of Claude Code who want access to hidden commands, multi‑agent capabilities, or to bypass subscription‑gated features like Computer Use.
- Researchers or developers experimenting with Claude on self‑hosted or third‑party endpoints and needing to disable certain safety prompts for testing.
- Anyone who wants a single, automatically‑maintained wrapper that keeps the official client up‑to‑date while applying custom behaviour.
Caveats / Risks
- The tool is not officially supported by Anthropic and is released under GPL‑3.0. Using it may violate Anthropic’s terms of service.
- It removes safety‑related instructions (e.g., cyber‑risk refusal), which could lead to unintended or unsafe model behaviour.
- Because it modifies a proprietary binary, future Claude releases could break the patching logic, requiring updates to ClawGod.
License
GPL‑3.0 (the project states it is not affiliated with Anthropic; use at your own risk).
Related
- Project
- Dispatch
- Dispatch
- Project
- Project