Diagnose OpenClaw.
Apply reviewed fixes.
Deterministic diagnostics and guarded repairs. Optional AI analysis is used only when configured. Model output never becomes executable shell.
curl -fsSL https://clawfix.dev/install.sh | bash
Install One command writes ~/.local/bin/clawfix and keeps the package under ~/.clawfix. No global npm. Node.js 22 or newer is required; OpenClaw already requires a current Node.js. To inspect first, download install.sh, compare shasum -a 256 with /install.sh.sha256 or /install/sha256, then run it.
Prefer npm? npx [email protected] ยท Dry run: npx [email protected] --dry-run ยท macOS, Linux, WSL ยท Node.js 22+
Evidence before repair.
One end-to-end release: bash installer, 21-file CLI with plain interface and remote analyzer, constrained agent v2 on the host, a chat-first OpenTUI standalone binary (glibc + musl), and four reviewed guarded repairs. The npm package is registry-signed and provenance-attested; TUI tarballs carry SHA-256 checksums and GitHub build attestations.
Bash installer
One command installs under ~/.clawfix and writes ~/.local/bin/clawfix. Download and verify the script first when you want to inspect it. No global npm.
Agent v2 + privacy
SSE explanations may propose only client-supplied repair IDs. Model output never becomes shell.
OpenTUI standalone
Optional conversation UI ships as verified Bun-compiled binaries on the GitHub release, for glibc and musl (Alpine) hosts alike. It is a separate download โ the npm package stays a 21-file portable CLI with no Bun dependency.
Chat-first TUI is the default session of the standalone binary.
The standalone binary opens directly into a conversation, keeps local commands offline, and asks before remote AI or guarded repairs. The npm package ships the portable CLI only โ npx clawfix runs the plain readline session.
- โScrollable transcript, findings sidebar, and responsive terminal layouts.
- โApproval defaults to Cancel and reports success only after verified repairs.
- โRemote AI stays opt-in. Deterministic local commands never upload.
- โRuns on glibc and musl hosts, so Alpine-based OpenClaw containers are covered.
v0.12.0 is the current npm-signed release, and the chat-first TUI ships in it as a standalone binary on the GitHub release โ not inside the npm package. Every release binary is driven through a real terminal before publishing: it has to render, accept typed input, and exit cleanly.
assistant Your gateway service is registered but currently stopped. The common cause is a missing Node PATH after reboot. I can restart it with the reviewed gateway-not-running repair. Want me to? โ Repair proposal ยท proposed โ Restart the OpenClaw gateway โ Why: Gateway is down; port 18789 closed. โ Risk: low ยท gateway-not-running โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ Tell me what is going wrong... โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Local only ยท Enter send ยท Ctrl+P help ๐ฆ ClawFix ยท revision a1b2c3d
How It Works
Run One Command
The diagnostic script checks selected OpenClaw config, status, logs, plugins, ports, and listener ownership.
Deterministic Checks First
65 known issue detectors run first. Optional AI analysis can explain unmatched problems when it is configured.
Review & Apply
Six reviewed catalog repairs show a plan, require explicit approval, apply locally, verify the result, and report rollback. Legacy hosted findings provide reviewable script guidance. Everything else ClawFix detects remains diagnosis and guidance.
What It Detects
Gateway Crashes
Port conflicts, process hangs, restart loops
Memory Issues
Mem0 silent failures, missing flush, broken search
Browser Automation
CDP port failures, extension loading, headless issues
Plugin Configs
Broken plugins, missing dependencies, wrong settings
Native Codex Harness
PI route drift, Codex home mismatches, fast tier gaps, timeout boundaries
Token Waste
Excessive heartbeats, no pruning, bloated context
macOS Quirks
Metal GPU crashes, Apple Silicon issues, Peekaboo
Service Manager Crashes
launchd/systemd SIGTERM recovery, crash loops, backoff detection
Zombie Processes
PID exists but port not listening โ stale gateway detection
Error Log Bloat
Chrome extension spam, handshake storms, 200MB+ log files
Gateway Watchdog
Recommends independent health checks to avoid launchd backoff gaps
Provider Prefix Typos
codex/gpt-5.4 vs openai-codex/gpt-5.4 โ silent 403 + fallback loop on every cron
Discord Silent Drops
groupPolicy: allowlist with empty allowFrom โ group messages disappear without logs
Plaintext Secrets in Config
Flags fields still inline that should be SecretRefs pointing at ~/.openclaw/.env
Invalid GH Token Override
Invalid GH_TOKEN env shadows a working gh login and breaks every GitHub-using cron
Stale Paired Nodes
Endless skills-remote probe timeouts from a paired node with no host daemon behind it
Context Overflow
Session stuck >100 % of ctx window, auto-compaction failing โ manifests as slow replies
FileVault Blocks Reboots
macOS โ pre-boot prompt gates all services; any unattended reboot leaves the mac off-network
Plist Stale Secrets
macOS โ LaunchAgent EnvironmentVariables carries old secrets after a .env migration
Hosted Service
MIT source, optional hosting
The CLI and server are MIT licensed. clawfix.dev is free to use, with no paid tier and no payment path in the product.
Hosted limits may change. Self-hosting remains available under the MIT license.
Security & Transparency
You're right to be skeptical of tools from the internet. Here's exactly what ClawFix does and doesn't do โ verify it yourself.
Inspect Before Running
npx clawfix --dry-run shows exactly what data would be collected โ sends nothing. Read the output. Decide for yourself.
Open Source
The CLI, server, and diagnostic script are public under the MIT license.
Recognized Secrets Redacted
Recognized API keys, tokens, passwords, private keys, and home paths are redacted before upload. The top-level config env block is omitted. Inspect --dry-run before sending.
Workspace Documents Stay Local
ClawFix checks whether workspace documents such as SOUL.md exist, but it does not read their contents. Config fields and matching error lines may be collected.
Consent by Default
The diagnostic asks [y/N] before uploading. Automatic upload only happens when you explicitly pass --yes, -y, or set CLAWFIX_AUTO=1.
Reviewed Repair Paths
Catalog repairs show a plan and require explicit approval before local apply and verification. Legacy hosted scripts stay reviewable and do not auto-run.
๐ฆ What Exactly Is Sent
SENT (redacted where recognized)
- โข OS type, version, architecture
- โข Node.js and npm versions
- โข OpenClaw version
- โข Config fields and non-secret values; recognized secrets are redacted
- โข Recent gateway log matches and stderr lines; limits vary by npm CLI and bash fallback
- โข Plugin names + enabled status
- โข Gateway status
- โข Hostname hash (8 chars of SHA-256)
- โข Submitted diagnostic results may remain in the service database; automatic deletion is not currently promised
- โข When you explicitly consent to remote TUI chat: a linked redacted diagnostic may upload first, then your redacted message and up to 12 recent ClawFix conversation messages; chat context is held in process memory for up to 30 minutes by default
OMITTED OR NOT COLLECTED
- โข Top-level config env block
- โข Workspace document contents (SOUL.md, memory, etc.)
- โข Unrelated OpenClaw chat history and messages
- โข Real hostname (an 8-character hash is sent)
- โข Source IP is used transiently for abuse throttling and is not stored in diagnostic records