Skip to content

Windows: openclaw gateway start opens visible terminal window (Scheduled Task LogonType=InteractiveToken) #99502

Description

@rechenz

Environment

  • Windows 10.0.26200
  • OpenClaw 2026.6.11

Problem

When running openclaw gateway start or after openclaw gateway install --force, the Gateway service is installed as a Windows Scheduled Task with <LogonType>InteractiveToken</LogonType>, which causes a cmd.exe terminal window to pop up visibly.

The service runs via gateway.cmd which launches node.exe directly. Because the task's LogonType is InteractiveToken, a command prompt window appears on the desktop each time the gateway starts or restarts.

Expected behavior

openclaw gateway start should start the gateway silently without any visible terminal window, like a proper background service on Windows.

Analysis

The schtasks XML after install shows:

<LogonType>InteractiveToken</LogonType>
<Command>...\.openclaw\gateway.cmd</Command>

Changing the LogonType to S4U (service-for-user, session 0, no GUI) or using the already-created VBS launcher as the task action would fix this.

Note: The installer already creates a VBS launcher in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OpenClaw Gateway.vbs that uses WScript.Shell.Run ..., 0, False (hidden window) — so the fix could be as simple as using that VBS as the task action instead of gateway.cmd directly.

Workaround

Start silently with the VBS launcher:

wscript.exe "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OpenClaw Gateway.vbs"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions