[Native Windows runtime confirmation + blocking is...
# questions
s
[Native Windows runtime confirmation + blocking issues (1.0.5-cli, no WSL/Docker)] Goal: run OpenHands 1.0.5-cli natively on Windows (RUNTIME=local), no WSL/Docker. Symptoms: - GUI: WebUI opens but Agent is stuck at “Initializing…”. /alive healthcheck fails. - CLI: crashes on Windows with fcntl/PTY-related errors. Env: Windows 11, Python 3.x, PowerShell 7.x, OpenHands 1.0.5-cli (no WSL/Docker) My GitHub issues with logs: - https://github.com/OpenHands/OpenHands/issues/11628 - https://github.com/OpenHands/OpenHands/issues/11629 Ask: 1) Is a PowerShell-based native Windows runtime (no WSL/Docker) on the roadmap? Any milestone? 2) Interim recommendation: Git-Bash/MSYS2 runner vs a remote Linux Docker host? 3) Who is the right maintainer/PM to sync with? I’m happy to contribute patches aligned with your design.
c
cc @elegant-branch-54423 for visibility we actually had a community contribution here (https://github.com/OpenHands/software-agent-sdk/pull/1012) to support powershell 🙂 should be out in the next version
ty 1
e
Great! Thank you! I know that Powershell and having a no WSL option has been asked before. I personally don't have a lot of experience with Windows + OpenHands. Paging @gentle-apple-32922 to see if she has any context around how this can help!
ty 1
g
I think there are a few things that will need to be maintained moving forward for PowerShell CLI to keep working. Happy to help and support this imitative. We can make this a community project 🙌
s
Thank you for the replies! When I run the native Windows runtime (PowerShell-based, no WSL/Docker), both the GUI and CLI hit errors and I can’t actually get OpenHands to run. May I ask whether headless mode works in the native Windows runtime (no WSL/Docker) environment? Does headless mode still need to rely on WSL/Docker?
What is the difference in capability between local runtime and the complete wsl sandbox? I saw that the document only mentioned usage restrictions. What exactly are the restrictions? (https://docs.openhands.dev/openhands/usage/runtimes/local)
-What’s the current progress on the Windows sandbox? -Is there a community edition with a concrete rollout/implementation plan? -How far can it go—what capabilities can it realistically deliver?
Can other Windows sandbox capabilities be supported? From an architectural perspective, since there is a runtime interface layer, it should theoretically be possible. Has anyone done this?
g
re: headless mode in windows This hasn't been extensively tested, so I believe no re: headless mode This is something we will continue working on but is more in a beta than fully ready to go re: -What’s the current progress on the Windows sandbox? Like beyond WSL? I would not say not much so far. re: -Is there a community edition with a concrete rollout/implementation plan? No, but it on my radar. Most of our engineering are Mac and Linux based. I am on a Windows machine, so likely falls down to me to help create the rollout/implementation with the community at this time. Also as a community initative, that may mean the PowerShell CLI will not be as stable as official OpenHands releases. re: -How far can it go—what capabilities can it realistically deliver? I actually have gotten some OpenHands releases to work in PowerShell albeit unstable. And it works partially. Even with the Figma desktop MCP. There is syntax used in the OpenHands CLI today that also makes it problematic to run on Windows. re: Can other Windows sandbox capabilities be supported? From an architectural perspective, since there is a runtime interface layer, it should theoretically be possible. Has anyone done this? I'm sure there are ways to make these things work, but it hasn't been tested or supported extensively by the OpenHands team. I know @little-architect-38123 also has experience with PowerShell and OH.
c
@nutritious-balloon-65098 please checkout the OpenHands/OpenHands and OpenHands/software-agent-sdk repo and answer Yofi's question. Please include specific link to code in your responses. Basically OpenHands repo will be V0 version of OpenHands and software-agent-sdk will be the agent-core of V1 OpenHands. V0 have minimal support for Windows via powershell IRRC -- V1 haven't yet support that due to no Terminal implementation that's compatible with V1. But we have this PR, https://github.com/OpenHands/software-agent-sdk/pull/1012, once merged, V1 should have initial support for windows.
ty 1
🙌 1
n
I'm on it! Xingyao Wang can track my progress here.
Summary: Windows Support Analysis for OpenHands V0 and V1 I've completed a comprehensive analysis of Windows support in OpenHands by examining both repositories and PR #1012. Here are the key findings to answer Yofi's questions: Main Answer to "What's the Windows Support Status?" V0 (OpenHands/OpenHands) - Current State: • ✅ HAS working Windows PowerShell support via native PowerShell integration • Uses .NET SDK + pythonnet for PowerShell interaction:
openhands/runtime/utils/windows_bash.py
• CLI Runtime integration:
openhands/runtime/impl/cli/cli_runtime.py#L158-L186
• Limitations: MCP disabled on Windows, no sandbox isolation, requires .NET SDK V1 (software-agent-sdk) - Coming Soon: • 🚧 PR #1012 adds Windows support: https://github.com/OpenHands/software-agent-sdk/pull/1012 • Better implementation using subprocess + PowerShell:
windows_terminal.py
• Advantages: No .NET SDK required, lighter dependencies, auto-detection, comprehensive tests • Once merged, V1 will have better Windows support than V0 Specific Answers: 1. Windows sandbox progress? ❌ No true Windows sandbox exists yet. Both V0 and V1 run locally without isolation (no Docker/WSL). Architecturally possible via runtime plugin system but not implemented. 2. Community rollout plan? 👥 PR #1012 is a community contribution. No formal enterprise roadmap, but Sarah mentioned it as a potential "community project." 3. Capabilities? ◦ ✅ Works: Command execution, file operations, directory management, exit codes, command interruption ◦ ❌ Doesn't work: MCP support (V0), browser functionality, sandbox isolation, resource limits ◦ Local runtime provides speed but no security isolation 4. Other Windows sandboxes? 🔮 Theoretically possible (Windows Containers, Windows Sandbox, AppContainer) but no evidence of implementation in either repository. Key Comparison: | Feature | V0 Windows | V1 Windows (PR #1012) | | - | - | - | | Dependencies | .NET SDK + pythonnet | subprocess only | | Implementation | Heavy (System.Management.Automation) | Light (subprocess.Popen) | | Setup Complexity | Complex | Simple | | Status | Available now | Pending merge | Documentation Created: I've created a detailed analysis document at
/workspace/project/windows_support_analysis.md
containing: • Specific code links with line numbers for every relevant file • Architecture comparison between V0 and V1 approaches • Security considerations and limitations • Recommendations for users and contributors • Detailed capability matrix Bottom Line: PR #1012 is a significant improvement. V1's Windows support will be lighter, more portable, and easier to set up than V0's current implementation. Neither version has sandbox isolation yet, which remains a future enhancement opportunity. <sub>View full conversation</sub>
s
Thank you for your reply and patience! If I come up with more questions in the future, I will come to communicate again
🤝 1