Debugging AI agents can be tricky, but OpenClaw makes it easier by providing a detailed verbose mode. If you are facing connection drops or strange agent behaviors, reading the raw logs is the first step to diagnosing the issue. Here is how to enable verbose mode and read logs in OpenClaw.
1. Check service status
Before making any changes, verify if the OpenClaw gateway is currently running in the background.

Run the status command in your terminal. If it's active, you'll need to stop it before restarting in verbose mode.
Need Help with OpenClaw?
Join our Telegram community for real-time support.
2. Stop the service
To cleanly restart the gateway with new flags, stop the running instance first.

Use the system command to stop the OpenClaw service gracefully.
3. Start gateway in verbose mode
Now, you can start the gateway with the verbose flag enabled. This will output every single request, response, and internal error directly to your terminal.

Once running, try to reproduce the issue you were facing. The logs will now contain much more detail, including raw MCP traffic and tool execution results.
4. Exit verbose and return to normal
After you have gathered the necessary logs and identified the problem, you can stop the verbose process (usually with Ctrl+C) and restart the normal background service.

Keeping verbose mode on permanently is not recommended as it can consume excessive disk space and slow down the terminal output.
Written by Matteo Giardino, CTO and AI automation expert.
