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+

โœ“ GitHub OIDC publish โœ“ npm attestation verified โœ“ 21-file allowlisted package
Release 0.12.0

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.

Release notes โ†’

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.

Latest main update

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.

Review the merge โ†’

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

1

Run One Command

The diagnostic script checks selected OpenClaw config, status, logs, plugins, ports, and listener ownership.

2

Deterministic Checks First

65 known issue detectors run first. Optional AI analysis can explain unmatched problems when it is configured.

3

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

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