Zero-friction all-in-one Windows launcher and installer for OpenHands with kinetic Moonlight ASCII UI, automatic Docker provisioning, and WinNAT sandbox port recovery.
  • Batchfile 100%
Find a file
2026-12-02 16:42:42 -05:00
.gitignore docs: update README and workspace metadata 2026-12-02 16:42:42 -05:00
DeadMoon-OpenHands-Launcher.cmd docs: update README and workspace metadata 2026-12-02 16:42:42 -05:00
LICENSE Initial release V1.0.0 - DeadMoon OpenHands Launcher 2026-11-09 00:04:40 -05:00
README.md docs: update README and workspace metadata 2026-12-02 16:42:42 -05:00

🌕 DeadMoon-OpenHands-Launcher 🌙

Zero-Friction All-in-One Windows Launcher & Installer for OpenHands with Kinetic Moonlight ASCII UI, Auto-Docker Provisioning & Automatic WinNAT Sandbox Port Recovery

DeadMoon Suite Platform Docker Shell License

Part of the DeadMoon Tool Suite by @Deadplayerdmr


🖥️ Terminal Preview

      *   d~~b  .        .================.        .   d~~b   *
   .    d  b      .==='  .------------.  '===.      d  b     .
      *          /   .-'    .      o    '-.   \              *
               /  .'   o       .      .   '.  \        .
    *         [===]  .    /        \    .  [===]   .       *
        (( .--[===]     \____/    \____/   [===]--. ))   d~b
        ((    [===]   o      .----.      O [===]    ))   d b
    .    '--- [===]    .    /      \   .   [===] ---'
       *       \  '.     .            o  .'  /       *
    .           '.  '-.    o   .   .  .-'  .'     .
         *        '===='--------------'===='          .

  ════════════════════════════════════════════════════════════════════════════
      🌕   D E A D M O O N   //   O P E N H A N D S   L A U N C H E R   🌙
      Zero-Friction Windows OpenHands Installer & Launcher  •  Part of the DeadMoon Tool Suite by @Deadplayerdmr
  ════════════════════════════════════════════════════════════════════════════

🌙 Overview

DeadMoon-OpenHands-Launcher is a zero-friction, all-in-one Windows launcher and installer for OpenHands — powered by the DeadMoon [Moonlight Engine] kinetic ASCII interface and engineered to eliminate Windows Docker sandbox port collisions (500: Failed to start container).


✨ Key Features

  • 🌕 Kinetic ASCII Boot Splash ([Moonlight Engine]): Renders a smooth 12-frame animated DeadMoon splash screen with pulsing headphone soundwaves, floating musical notes, and a live progress bar — using native Windows utilities with zero external dependencies.
  • 🚀 True One-Click .cmd Execution: No PowerShell ExecutionPolicy blocks, UTF-8 batch offset crashes, or manual terminal setup. Double-click DeadMoon-OpenHands-Launcher.cmd to install, configure, and launch OpenHands in one seamless flow.
  • 🐳 Automatic Docker Download, Installation & Daemon Wake-Up:
    • Automatically checks if docker.exe is installed; if missing, installs Docker Desktop automatically via winget (Docker.DockerDesktop) or downloads and launches the official Docker Desktop Installer.exe directly from Docker's servers.
    • Detects if the Docker Desktop daemon is asleep, launches Docker Desktop.exe automatically, and waits until the engine is online.
  • 📂 Centralized C:\AI_Workspace & Automatic POSIX Volume Translation:
    • Automatically creates C:\AI_Workspace and stores your persistent launcher settings inside C:\AI_Workspace\.openhands_launcher.cfg (while automatically migrating any legacy .openhands_launcher.cfg from the script folder).
    • Prompts you for your preferred workspace directory on first launch (or defaults to C:\AI_Workspace when you press Enter) and converts Windows drive paths (C:\AI_Workspace\workspace) into the POSIX path format (/c/AI_Workspace/workspace:/workspace:rw) required by OpenHands sandbox volumes.
  • 🖥️ Toggleable Live Terminal Mode (Ctrl+C Shutdown — ON by Default) & Auto-Browser Launch:
    • Automatically polls http://localhost:3000 in the background and opens your default browser the moment OpenHands is ready.
    • Keeps the terminal open in interactive mode (ON by default) so pressing Ctrl+C cleanly shuts down openhands-app and purges all spawned oh-agent-server-* sandboxes.
    • Press [T] during the 3-second startup menu to toggle between Live Terminal Mode (ON) and Detached Background Mode (OFF).
  • 🛡️ Built-In Fix for Windows "500: Failed to start container" Errors:
    • 🧹 Orphaned Sandbox Purge: Automatically removes leftover openhands-app and oh-agent-server-* containers before and after each session.
    • 🔒 Single-Mount SQLite Stability: Avoids duplicate .openhands bind mounts that cause database file-locking errors across WSL2.
    • 🌐 Windows NAT (winnat) Port Flush: When run as Administrator, automatically restarts the winnat service to release locked Hyper-V ephemeral TCP port ranges (49152–65535).

📂 Default Directory Layout

Your workspace path can be customized during first-time setup or at any time by pressing [C] on the 3-second launch menu:

Component Default Host Path Purpose
Launcher Config C:\AI_Workspace\.openhands_launcher.cfg Stores your active workspace path and Live Terminal Mode preference
Agent Workspace C:\AI_Workspace\workspace Mounted into OpenHands & agent sandboxes as /workspace:rw
OpenHands State C:\AI_Workspace\.openhands Mounted to /.openhands for persistent settings, LLM keys & history

🚀 Quick Start

1. Download

Clone this repository or download DeadMoon-OpenHands-Launcher.cmd directly:

git clone https://github.com/Deadplayerdmr/DeadMoon-OpenHands-Launcher.git

2. Run the Launcher

Double-click DeadMoon-OpenHands-Launcher.cmd (or right-click and choose Run as administrator to enable automatic Windows NAT port flushing).

  1. First Run:
    • If Docker Desktop isn't installed, the launcher will automatically download and launch the Docker Desktop installer for you.
    • Enter your desired workspace path or press Enter to use C:\AI_Workspace.
    • The launcher will save your config to C:\AI_Workspace\.openhands_launcher.cfg, create your workspace and .openhands directories, pull ghcr.io/openhands/openhands:latest, and start the server.
  2. Subsequent Runs:
    • A 3-second interactive menu appears before auto-launching OpenHands:
      • [R] — Launch OpenHands immediately (default after 3 seconds)
      • [T] — Toggle Live Terminal / Ctrl+C Mode ON or OFF
      • [C] — Change your AI Workspace directory
      • [U] — Force-pull the latest OpenHands Docker image update
      • [O] — Open your AI Workspace folder in Windows Explorer
      • [S] — Stop running OpenHands & agent sandbox containers immediately

3. Open the Web UI

Once the container responds, your default browser will automatically open to:

http://localhost:3000

🔧 Troubleshooting

Symptom Cause Solution
500: Failed to start container on a new conversation Windows winnat / Hyper-V reserved a random high TCP port needed by oh-agent-server-* Right-click DeadMoon-OpenHands-Launcher.cmd and select Run as administrator. The script will automatically restart winnat and clear stuck port bindings.
Want to stop OpenHands without closing Docker Container management Keep Terminal Hold Mode ON (default) and press Ctrl+C in the launcher window, or re-run the launcher and press [S].
Docker engine timeout on startup WSL2 backend or Docker Desktop needs extra time to boot Start Docker Desktop manually, wait for the whale icon in your system tray to turn steady, and run the launcher again.
Want to switch project folders Workspace path is saved in C:\AI_Workspace\.openhands_launcher.cfg Press [C] during the 3-second startup menu (or delete C:\AI_Workspace\.openhands_launcher.cfg) to pick a new workspace directory.

📚 Citations & Acknowledgements

This launcher is built for OpenHands (formerly OpenDevin), an open platform for AI software developers as generalist agents.

@inproceedings{wang2025openhands,
  title={{OpenHands: An Open Platform for AI Software Developers as Generalist Agents}},
  author={Xingyao Wang and Boxuan Li and Yufan Song and Frank F. Xu and Xiangru Tang and Mingchen Zhuge and Jiayi Pan and Yueqi Song and Bowen Li and Jaskirat Singh and Hoang H. Tran and Fuqiang Li and Ren Ma and Mingzhang Zheng and Bill Qian and Yanjun Shao and Niklas Muennighoff and Yizhe Zhang and Binyuan Hui and Junyang Lin and Robert Brennan and Hao Peng and Heng Ji and Graham Neubig},
  booktitle={International Conference on Learning Representations (ICLR)},
  year={2025},
  url={https://arxiv.org/abs/2407.16741}
}

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


🌌 The DeadMoon Tool Suite

Repository Role in the Ecosystem
🌕 DeadMoon-Download-Bot Whitelisted 8-platform Telegram audio acquisition bot with direct lossless engines, lock-free scheduler & 477 offline tests
📻 DeadMoon-Radio-Telegram-Synchronizer Dockerized Telegram radio bot & dynamic 1280×720 RTMPS audio-visual livestream engine with 3-tier metadata auto-probe
🤝 DeadMoon-Trade-Bot Dockerized Telegram music & dubplate escrow bot with native-SR SoX spectrograms, FTS5 catalog indexer & group trade board
📡 DeadMoon-Telegram-Scraper Single-file Windows polyglot Telegram channel/group exporter with 4-layer URL intelligence, granular media harvesting & QR login
🤖 DeadMoon-OpenHands-Launcher Zero-friction Windows launcher & installer for OpenHands with kinetic ASCII UI & automatic winnat port recovery
📚 DeadMoon-RaveBSD-Launcher Zero-friction Windows installer & launcher for RaveBSD 2.0 with kinetic ASCII UI, auto-Docker setup & Downloads mapping
🎓 DeadMoon-Scholarly-Harvester Single-file Windows polyglot scholarly PDF harvester with 7-API Recursive Omni-Resolver, 25-source Quality Judge & Command Deck WebUI
🌾 DeadMoon-Credential-Harvester Local Tampermonkey userscript (2.3v) for harvesting streaming ARLs, OAuth tokens, Netscape cookies & Widevine .wvd bundles
🔐 DeadMoon-Unified-Spotify-Provisioner Automated Windows polyglot provisioner for Spotify Premium sp_dc cookies & Android Widevine L3 device.wvd CDMs
🎶 DeadMoon-Playlist-Transfer-Tool Single-file Windows polyglot tool for migrating Deezer Favorites (Artists, Albums & Playlists) via CSV
🔍 DeadMoon-Universal-API-Verify-Script Self-contained Windows LLM statistical fingerprint verifier (lmfpd) with Smart Auto-Heal & catalog scanner

🌕 DeadMoon-OpenHands-Launcher 🌙 — Crafted by @Deadplayerdmr