This directory contains integration scripts to connect Antigravity (Windows) with Omni Chat (WSL2) seamlessly. It provides an automated setup for local or external access, bypassing cases where WSL2 Mirrored Mode networking is unavailable.
The PowerShell scripts handle firewall permissions, temporary IP forwarding via netsh portproxy, and multi-process execution. With a single administrative run, they initiate the Antigravity application on the Windows host and the Omni Chat Node server inside a socat tunnel in WSL2.
-
Create the configuration file
Rename or copy the providedconfig.json.exampletoconfig.json:Copy-Item config.json.example config.json -
Set your local paths in the new
config.json:{ "antigravityPath": "C:\\Users\\YourUsername\\AppData\\Local\\Programs\\Antigravity\\Antigravity.exe", "omniChatWslPath": "/home/your_username/OmniChat", "omniChatCommand": "npx omni-antigravity-remote-chat" }(Note:
config.jsonis excluded via.gitignoreto prevent committing personal paths). -
Install WSL prerequisites
Open your WSL terminal and install the tools required for network tunneling:sudo apt update && sudo apt install -y socat curl
Run the scripts by right-clicking them and selecting "Run with PowerShell as Administrator".
File: Start-OmniChat.ps1
- Purpose: Initiates a
socattunnel bridging WSL2 and the Windows Host. It exposes your environment to your local network, allowing testing from devices like mobile phones connected to the same Wi-Fi. It performs an automatic environment cleanup on exit. - Use case: Local testing and development.
File: Start-OmniChat-Ngrok.ps1
- Purpose: Similar to the local script, but automatically tunnels the connection through ngrok. It prints the generated public URL directly to the PowerShell console, offering better stability over mobile networks (4G/5G).
- Use case: Remote access or sharing the development environment globally.
File: Check-Security.ps1
- Purpose: If a primary script is forcefully terminated (e.g., closing the window directly instead of pressing ENTER), the automatic cleanup protocol might fail. This script audits the system for residual configurations.
- Usage: Run this check to list any active
portproxybridges or temporary Windows Firewall rules associated with OmniChat. If the output is empty, the system is clean.