Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Workspace Files and Health Checks  ›  Capstone Project

Health Checks: doctor and security audit

Usage Best Practices 13 minRun openclaw doctor when something is broken, openclaw security audit --deep after every configuration change, and add --deep when the normal check finds nothing.

Health Checks: doctor and security audit

Setups drift. A channel login expires, a config edit leaves something open, an old install from last month's experiment is still running quietly. OpenClaw ships check-up commands for exactly this, and knowing which one to reach for saves an evening of guessing.

The rule

Something broken? Run doctor. Something changed? Run security audit --deep.

openclaw onboard                 # the guided setup; come back to it to revisit your choices
openclaw doctor                  # look for common configuration problems
openclaw doctor --deep           # a more thorough check, including system services
openclaw security audit          # look for exposed ports, weak tokens and unsafe settings
openclaw security audit --deep   # the same, plus a live probe of the running Gateway
openclaw security audit --fix    # tighten safe defaults automatically
  • doctor answers "does it work?". It is the first thing to run when something misbehaves, and running it regularly catches configuration drift before it bites.
  • doctor --deep digs further. Among other things it scans the system's services for extra Gateway installs, a classic cause of confusing behaviour when an old copy keeps running beside a new one. Add --yes to accept its prompts automatically, which helps on a server with no one at the keyboard.
  • security audit answers "is it safe?". --deep adds a live probe of the running Gateway, and --fix tightens the safe defaults it can.

The two questions really are different. A Gateway listening on 0.0.0.0 with a weak token works perfectly and answers every message, so doctor may find nothing wrong with it. Only the security audit asks who else can get in.

These sit inside a small set of everyday habits:

  • run doctor regularly, and security audit --deep after every config change;
  • keep SOUL.md, USER.md and MEMORY.md up to date;
  • start each new topic with /new instead of one endless session;
  • keep the tool allowlist minimal and widen it only with a reason;
  • for remote access, prefer Tailscale over opening ports.

The shortcut

Match the symptom to the question. "Does it work?" leads to doctor. "Is it safe?" leads to security audit. "Still stuck?" means add --deep.

A bad MondayStep 1 of 4
  1. The agent stopped replying

    "Does it work?" is the question, so run openclaw doctor.

Drills

Answer fast — trust the rule.

quick drill

Your agent stopped answering and you do not know why. Which command comes first?

quick drill

What does --deep add to openclaw security audit?

quick drill

You run openclaw doctor --deep on a server with no one at the keyboard. Which flag accepts its prompts automatically?

quick drill

When should you run openclaw security audit --deep?

quick drill

Which habit keeps the context window clean?

Remember

  • Something broken? doctor. Something changed? security audit --deep. Still stuck? Add --deep.
  • --fix tightens safe defaults; --yes lets doctor run unattended.
  • Habits: current workspace files, /new per topic, minimal tools, Tailscale over open ports.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainA troubleshooting plan

Your agent has stopped replying since you edited its configuration yesterday. Explain which OpenClaw commands you would run, in what order, and what each one checks. End with two habits that would prevent the next problem.