0Chencc/clawgod
ClawGod is a runtime patch applied to the official Claude Code. It continues to be supported with each version update.
ClawGod – Unlocking the Full Power of Claude Code
What it is
ClawGod is a runtime patcher for Anthropic’s official Claude Code binary (the AI‑powered coding assistant that ships as a self‑contained Bun executable). It does not replace Claude Code; instead it extracts the bundled JavaScript, applies a set of regex‑based patches, and runs the patched code under a regular Bun runtime. The result is a drop‑in replacement (claude / clawgod) that adds a long list of hidden features, removes Anthropic‑imposed restrictions, and improves reliability.
Why you might want it
- Access hidden commands (
/share,/teleport,/bughunter, …) and debug logs. - Enable “Computer Use” on macOS without a paid Max/Pro plan.
- Turn on multi‑agent “Agent Teams”, “Ultraplan”, “Ultrareview” capabilities that are otherwise gated.
- Remove safety‑gate restrictions such as URL‑generation bans, cyber‑risk refusal, and forced confirmations before destructive actions.
- Neutralise geo‑steganography that Anthropic embeds in the system prompt.
- Fix reliability bugs (renderer stall, missing Glob/Grep tools, short prompt‑cache TTL, third‑party cache header issues).
- Automatic re‑patching when the upstream Claude Code binary updates.
How it works (high‑level)
- Locate the installed Claude Code Bun binary (
~/.local/share/claude/versions/). - Extract the embedded
cli.jsand native.nodemodules from the binary’s__BUNsegment. - Rewrite internal virtual paths so the extracted modules are reachable.
- Apply 29 regex patches – these unlock features, strip restrictive prompts, and shim missing APIs.
- Launch the patched
cli.jswith a regular Bun runtime (installed automatically if missing). - On each start, ClawGod checks whether the upstream binary changed; if so it repeats the extraction‑and‑patch process automatically.
Main feature groups
| Category | What you get |
|---|---|
| Feature Unlocks | Internal user mode (24+ hidden commands), GrowthBook flag overrides, Agent Teams, Computer Use (macOS), Auto‑mode for third‑party APIs, tunable auto‑mode classifier, Ultraplan (multi‑agent planning), Ultrareview (automated bug hunting). |
| Restriction Removals | Disables CYBER_RISK_INSTRUCTION, URL‑generation ban, cautious‑action confirmations, and the “Not logged in” startup notice. |
| Geo‑Steganography Neutralisation | Forces plain ASCII apostrophes and standard date formats; disables timezone/proxy‑based location detection. |
| Visual Tweaks | Green brand theme, message filters that reveal content hidden from non‑Anthropic users. |
| Reliability Fixes | Restores embedded Glob/Grep tools, adds a shim for the private Bun.ant.CellSegmenter renderer, extends prompt‑cache TTL to 1 hour, auto‑disables incompatible billing headers for third‑party endpoints, auto‑re‑patch on updates, lean token‑optimisation modes. |
Configuration & usage
- Commands
claude # Patched launcher (replaces official one) clawgod # Same as `claude`, explicit entry point claude.orig # Original unpatched binary (kept as backup) - Provider settings (
~/.clawgod/provider.json)
Set{ "apiKey": "sk-ant-...", "baseURL": "https://api.anthropic.com", "model": "", "smallModel": "", "effort": "", "timeoutMs": 3000000 }apiKeyto bypass OAuth and point the client at any Anthropic‑compatible endpoint. - OpenAI‑compatible endpoints – add
"protocol": "openai-chat"and the appropriatebaseURL,model, etc. - Feature toggles (
~/.clawgod/patches.jsonor env vars) let you permanently disable any patch, e.g.
or for a single run:{ "theme": false, "geo-neutralize": false }CLAWGOD_FEATURE_THEME=false claude - Lean token‑optimisation – three modes (
--lean-on,--lean-max,--lean-off) that prune unused tool definitions to reduce token usage.
Installation & updates
- One‑liner installer (macOS/Linux):
curl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash - PowerShell installer (Windows):
irm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex - The installer backs up the original Claude binary, creates the
clawgodwrapper, and sets up auto‑re‑patching. - Updating Claude as usual (
claude update) works; ClawGod intercepts the update, re‑extracts the new binary, and re‑applies patches. - Uninstall with the same script using the
--uninstallflag; it restores the original binary and removes the wrapper.
Risks & legal notes
- GPL‑3.0 license – the patcher is open‑source, but it modifies proprietary Anthropic software. Use at your own risk and be aware that redistribution of the patched binary may violate Anthropic’s terms.
- Some patches remove safety guards (e.g., cyber‑risk refusal). This can enable the model to generate disallowed content; handle responsibly.
- The tool is not officially supported by Anthropic; breaking changes in future Claude Code releases may require patch updates.
ClawGod gives power users a way to keep Claude Code up‑to‑date while unlocking enterprise‑grade features that Anthropic otherwise hides behind paid tiers or internal flags.
Related
- Project
- Project
- Project
- Project
- Project