{"id":48749898,"url":"https://github.com/0Chencc/clawgod","last_synced_at":"2026-04-28T14:00:56.734Z","repository":{"id":348502373,"uuid":"1198370352","full_name":"0Chencc/clawgod","owner":"0Chencc","description":"This is NOT a third-party Claude Code client. ClawGod is a runtime patch applied on top of the official Claude Code. It works with any version — as Claude Code updates, the patch continues to take effect","archived":false,"fork":false,"pushed_at":"2026-04-27T07:56:01.000Z","size":67,"stargazers_count":862,"open_issues_count":8,"forks_count":181,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-27T08:24:02.047Z","etag":null,"topics":["ai","assistant","claude-ai","claude-code","claw","clawcode","limit","linux","macos","patch","skill","vibe-coded","vibe-coding","windows"],"latest_commit_sha":null,"homepage":"http://clawgod.0chen.cc/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0Chencc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-01T11:09:07.000Z","updated_at":"2026-04-27T07:55:40.000Z","dependencies_parsed_at":"2026-04-07T06:00:30.220Z","dependency_job_id":null,"html_url":"https://github.com/0Chencc/clawgod","commit_stats":null,"previous_names":["0chencc/clawgod"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/0Chencc/clawgod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0Chencc%2Fclawgod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0Chencc%2Fclawgod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0Chencc%2Fclawgod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0Chencc%2Fclawgod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0Chencc","download_url":"https://codeload.github.com/0Chencc/clawgod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0Chencc%2Fclawgod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32383791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","assistant","claude-ai","claude-code","claw","clawcode","limit","linux","macos","patch","skill","vibe-coded","vibe-coding","windows"],"created_at":"2026-04-12T17:00:30.689Z","updated_at":"2026-04-28T14:00:56.725Z","avatar_url":"https://github.com/0Chencc.png","language":"Shell","funding_links":[],"categories":["未分类"],"sub_categories":[],"readme":"# ClawGod\n\n[English](README.md) | [中文](README_ZH.md) | [日本語](README_JP.md)\n\n[![Latest](https://img.shields.io/github/v/release/0chencc/clawgod?style=flat\u0026label=Latest)](https://github.com/0Chencc/clawgod/releases/latest)\n[![Released](https://img.shields.io/github/release-date/0chencc/clawgod?style=flat\u0026label=Released)](https://github.com/0Chencc/clawgod/releases/latest)\n[![Downloads](https://img.shields.io/github/downloads/0chencc/clawgod/total?style=flat\u0026label=Downloads)](https://github.com/0Chencc/clawgod/releases)\n[![Compat](https://img.shields.io/github/actions/workflow/status/0chencc/clawgod/compat-daily.yml?branch=main\u0026style=flat\u0026label=Compat)](https://github.com/0Chencc/clawgod/actions/workflows/compat-daily.yml)\n[![Claude tested](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/0Chencc/clawgod/badges/claude-version.json\u0026style=flat)](https://github.com/0Chencc/clawgod/actions/workflows/compat-daily.yml)\n\n\u003e God mode for [Claude Code](https://docs.anthropic.com/en/docs/claude-code).\n\n**This is NOT a third-party Claude Code client.** ClawGod is a runtime patch applied on top of the official Claude Code. It works with any version — as Claude Code updates, ClawGod automatically re-extracts and re-patches against the new version on the next launch.\n\n## Prerequisites\n\nInstall these **before** running the ClawGod installer:\n\n| Tool | Why | Install |\n|------|-----|---------|\n| **Claude Code** (native binary) | ClawGod patches the official Bun standalone binary you already have | [`claude.ai/install.sh`](https://claude.ai/install.sh) (macOS/Linux) or [`claude.ai/install.ps1`](https://claude.ai/install.ps1) (Windows) |\n| **ripgrep** | Required by Claude Code's Grep tool | `brew install ripgrep` / `apt install ripgrep` / `winget install BurntSushi.ripgrep.MSVC` |\n| **Node.js \u003e= 18** | Used by the patcher | [nodejs.org](https://nodejs.org) |\n\n[Bun](https://bun.sh) is the runtime that executes the patched cli.js — the installer auto-installs it if missing.\n\n## Install\n\n**macOS / Linux:**\n```bash\ncurl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash\n```\n\n**Windows (PowerShell):**\n```powershell\nirm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex\n```\n\nGreen logo = patched. Orange logo = original.\n\n![ClawGod Patched](bypass.png)\n\n## What it does\n\n### Feature Unlocks\n\n| Patch | What you get |\n|-------|-------------|\n| **Internal User Mode** | 24+ hidden commands (`/share`, `/teleport`, `/issue`, `/bughunter`...), debug logging, API request dumps |\n| **GrowthBook Overrides** | Override any feature flag via config file |\n| **Agent Teams** | Multi-agent swarm collaboration, no flags needed |\n| **Computer Use** | Screen control without Max/Pro subscription (macOS) |\n| **Auto-mode** | Unlocks auto-mode for third-party API users (no firstParty gate) |\n| **Ultraplan** | Multi-agent planning via Claude Code Remote |\n| **Ultrareview** | Automated bug hunting via Claude Code Remote |\n\n### Restriction Removals\n\n| Patch | What's removed |\n|-------|---------------|\n| **CYBER_RISK_INSTRUCTION** | Security testing refusal (pentesting, C2, exploits) |\n| **URL Restriction** | \"NEVER generate or guess URLs\" instruction |\n| **Cautious Actions** | Forced confirmation before destructive operations |\n| **Login Notice** | \"Not logged in\" startup reminder |\n\n### Visual\n\n| Patch | Effect |\n|-------|--------|\n| **Green Theme** | Brand color → green. Patched at a glance |\n| **Message Filters** | Shows content hidden from non-Anthropic users |\n\n### Reliability\n\n| Feature | What it does |\n|---------|-------------|\n| **1h Prompt Cache** | Forces 1h TTL allowlist on (was effectively 5m → much higher cache_creation token usage) |\n| **Auto Re-patch** | Detects when the user's native Claude binary has been upgraded; transparently re-extracts and re-patches on next launch |\n\n## Commands\n\n```bash\nclaude              # Patched Claude Code (replaces the official launcher)\nclawgod             # Same as `claude`, explicit \u0026 guaranteed entry point\nclaude.orig         # Original unpatched version (auto-backed-up)\n```\n\n`clawgod` is unambiguous: on Windows where `claude.exe` may shadow `claude.cmd`, `clawgod.cmd` always works. Even after official self-update overwrites `claude`, `clawgod` keeps running the patched build.\n\n## Configuration\n\n`~/.clawgod/provider.json` is auto-created on first run. Setting `apiKey` lets you skip OAuth entirely and point ClawGod at any Anthropic-compatible endpoint.\n\n```json\n{\n  \"apiKey\": \"sk-ant-...\",\n  \"baseURL\": \"https://api.anthropic.com\",\n  \"model\": \"\",\n  \"smallModel\": \"\",\n  \"timeoutMs\": 3000000\n}\n```\n\n- **`apiKey` set** → ClawGod injects it as `ANTHROPIC_API_KEY` and isolates from `~/.claude/settings.json`. Works with Anthropic, DeepSeek, and OpenAI-compatible gateways. A non-Anthropic `baseURL` also populates `ANTHROPIC_AUTH_TOKEN` for gateway auth.\n- **`apiKey` empty** → OAuth path. Run `claude auth login` once; `~/.claude` keeps hosting your subagents, skills, and MCP settings.\n\n## How it works\n\nSince `@anthropic-ai/claude-code` v2.1.113, the npm package no longer ships `cli.js` — it's a thin loader that dispatches to platform-specific Bun standalone binaries. ClawGod adapts:\n\n1. Locates the user's installed native Bun binary in `~/.local/share/claude/versions/`\n2. Extracts the embedded `cli.js` source from the `__BUN` segment (Mach-O / ELF / PE)\n3. Extracts the embedded `.node` native modules (audio-capture, image-processor, computer-use-*, url-handler) into `~/.clawgod/vendor/`\n4. Rewrites `/$bunfs/...` virtual paths to point at the extracted modules\n5. Applies 23 regex-based patches (version-agnostic — same patches work across many releases)\n6. The `claude` / `clawgod` launchers run the patched cli.js under the Bun runtime\n\nA `.source-version` stamp in `~/.clawgod/` records which native version was patched. On every launch the wrapper compares it against the latest binary in `versions/`; if the user upgraded Claude Code via the official installer, ClawGod auto-re-patches on the next run.\n\n## Update\n\n**Just run `claude update` as usual.** ClawGod patches the command to route through its own installer, which pulls the current Anthropic release from npm (`@anthropic-ai/claude-code-\u003cplat\u003e@latest`), re-extracts cli.js, re-applies patches, and rewrites the launcher. So the upstream update command keeps working the way you expect — you get the latest Claude, with patches still applied, in one step.\n\nIf you'd rather invoke the installer directly (same effect, both paths fetch the same upstream release and re-patch):\n\n**macOS / Linux:**\n```bash\ncurl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash\n```\n\n**Windows:**\n```powershell\nirm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 | iex\n```\n\nIf you'd rather drop ClawGod and use Anthropic's original `claude update` (which manages its own paths and would overwrite our launcher), uninstall first:\n\n```bash\nbash ~/.clawgod/install.sh --uninstall\n```\n\n## Uninstall\n\n**macOS / Linux:**\n```bash\ncurl -fsSL https://github.com/0Chencc/clawgod/releases/latest/download/install.sh | bash -s -- --uninstall\nhash -r  # refresh shell cache\n```\n\n**Windows:**\n```powershell\nirm https://github.com/0Chencc/clawgod/releases/latest/download/install.ps1 -OutFile install.ps1; .\\install.ps1 -Uninstall\n```\n\nUninstall restores `claude.orig → claude` and removes the `clawgod` alias.\n\n\u003e After install or uninstall, restart your terminal or run `hash -r` if the command doesn't take effect immediately.\n\n## License\n\nGPL-3.0 — Not affiliated with Anthropic. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0Chencc%2Fclawgod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0Chencc%2Fclawgod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0Chencc%2Fclawgod/lists"}