OpenClaw keeps opening and closing Comandprompt windows — what’s causing it and how to stop it?

I’ve been using OpenClaw on Windows, and I keep running into a really annoying issue:
every time I open, minimize, maximize, or switch focus on the OpenClaw window, multiple ComandPrompt terminals flash open and close.

At first I thought this was a bug or something wrong with my system, but after digging into it deeply, here’s what I found:

Why this happens

OpenClaw (version 2.x) always tries to invoke cmdop.exe internally, even if you don’t use cloud features.
On Windows, this internal call is executed through PowerShell, which causes:

  • a PowerShell window to open for a split second

  • immediately close

  • repeat whenever the GUI changes state (minimize, maximize, focus change)

Even if you delete or move cmdop.exe, OpenClaw still attempts the call.
So the flashing still happens — OpenClaw just fails the call instead of running it.

What doesn’t fix it

  • Removing cmdop.exe

  • Moving cmdop.exe to another folder

  • Clearing PATH

  • Deleting AppData copies

  • Reinstalling OpenClaw

  • Running OpenClaw with a different prefix

None of these stop the flashing, because the root cause is OpenClaw’s GUI itself.

The real cause

OpenClaw 2.x has no CLI-only mode.
Launching OpenClaw always launches the GUI, and the GUI always triggers internal cmdop checks.

This behavior is baked into the design.

Actual solutions

There are only two real ways to stop the flashing:

1. Don’t use the OpenClaw GUI (recommended if you want fully local use)

OpenClaw 2.x doesn’t provide a CLI agent runner, so the GUI is unavoidable.
If you need a local-only agent without PowerShell flashing, you must:

  • switch to OpenClaw 1.x, which had CLI support
    or

  • build your own local agent using Ollama + Python/Flask, etc.

2. Accept the flashing as part of OpenClaw 2.x’s design

If you stay on OpenClaw 2.x, the PowerShell flashing cannot be disabled.

Summary

The PowerShell windows are not a bug — they’re a side effect of how OpenClaw 2.x handles internal cmdop calls on Windows.
If you need a fully local, non-flashing setup, you must downgrade to OpenClaw 1.x or build your own local agent.

Hey there! So, I think there’s a bit of a misdiagnosis happening here. The flashing command windows are absolutely a real issue on Windows, but I’m not sure the conclusions you’ve reached about what’s causing them are quiiiiite right.

We’ve had several reports of Windows console windows flashing when OpenClaw runs commands, checks Gateway status, or launches background processes. There are actual GitHub issues documenting this, for sure.

A couple of things worth clarifying:

  • OpenClaw does have CLI-only operation. You can use openclaw tui or openclaw tui --local without a desktop GUI.

  • You can also run the Gateway under WSL2, which is generally the recommended approach for Windows.

  • I haven’t seen anything establishing that cmdop.exe is universally responsible for this behavior.

  • Depending on what’s launching those windows, there may be a fix that doesn’t involve downgrading or rebuilding your entire setup.

I’d start with openclaw --version and openclaw doctor to establish exactly what you’re running. I’m particularly curious about the reference to OpenClaw 2.x, since our normal releases use date-based version numbers.

Could you share which Windows application you’re using, along with the version? Also, does the flashing happen when the Gateway is running but the desktop application is closed?

I’d rather we figure out what’s actually spawning those windows than send you off to rebuild your entire setup to solve something that might be a relatively straightforward Windows process issue. Could be an easy fix!

Thank you so much for taking the time to reply — I really appreciate it.
Your message helped clear up a lot of my confusion.

Here’s the information you asked for:

  • My OpenClaw version is 2.0.2

  • The command openclaw doctor doesn’t exist in this version

  • It seems I’m using an older CLI‑based release rather than the date‑based versions you mentioned

  • The flashing cmd.exe windows only appear when the desktop GUI is open

  • If I close the GUI, the flashing stops completely

Thanks again for looking into this. Your guidance is really helpful.

Ahhhh, okay. I think we’ve found the culprit!

That screenshot was helpful in narrowing things down a bit. The version number and the available commands actually match a completely different Python package called openclaw, which installs a tool called CMDOP.

And here’s the interesting part: the publisher explicitly says their package is NOT affiliated with our OpenClaw project.

That would explain the cmdop.exe references, the 2.0.2 version number, and why openclaw doctor isn’t recognized.

I’m pretty confident we’ve identified which CLI you’re running. What I don’t know yet is whether the desktop GUI you’re using belongs to that same package. Could you run these in PowerShell?

py -m pip show openclaw
where.exe openclaw

And where did you originally download the desktop application?

I’m fairly convinced we’ve got two different pieces of software sharing a name here. Which would explain why our troubleshooting advice hasn’t been super useful or helpful so far. :melting_face:

Let’s get that confirmed before we start uninstalling or changing anything.

Thanks again for your help — I checked my browser history and download history thoroughly.

It turns out I never downloaded any desktop application at all.
There is no installer, no executable, and no download record for a GUI.

The only thing I actually installed was the Python package from PyPI:

コード

https://pypi.org/project/openclaw/2.0.2/

So the “desktop app” I was seeing must have been generated or launched automatically by that cmdop package itself, not something I downloaded separately.

I’ve already removed the package and the executable from my system.

1 Like

Super easy mistake to make (did it myself with one of the Mac options!), and incredibly glad to be of help here!

-Joe