A unified TUI for managing network/privacy tools: OpenVPN, SpoofDPI, Cloudflare WARP
Project description
ocom
A unified TUI for managing network/privacy tools: OpenVPN, SpoofDPI/GoodbyeDPI, and Cloudflare WARP.
Cross-platform: macOS, Linux, and Windows.
Features
- OpenVPN: Connect/disconnect using
.ovpnconfig files (sudo on Unix, Administrator on Windows) - SpoofDPI (Unix) / GoodbyeDPI (Windows): DPI bypass tools
- Cloudflare WARP: Toggle WARP VPN connection
- Tailscale: Toggle mesh VPN connection (
tailscale up/down) - Real-time logs: Live output from all tools in a dedicated panel
- Install guidance: Tools not installed show an Install button that opens documentation
- Conflict resolution: Automatically stops conflicting tools (e.g., WARP stops when starting OpenVPN)
- Extensible: Easy to add new tools
Installation
uv tool install ocom
Usage
ocom
Keyboard Shortcuts
| Key | Action |
|---|---|
q |
Quit |
r |
Refresh status |
c |
Clear logs |
Tab |
Navigate between tools |
Enter |
Activate button |
Esc |
Close modal |
Configuration
ocom reads a TOML config file at ~/.config/ocom/config.toml (the same path on
Linux and macOS). If the file doesn't exist, the defaults below are used.
[general]
refresh_interval = 2
auto_connect = false
[openvpn]
enabled = true
config_dirs = ["~/.openvpn", "~/vpn-configs"]
default_config = ""
[spoofdpi]
enabled = true
dns_addr = "8.8.8.8:53"
dns_mode = "https"
port = 8080
system_proxy = false
[warp]
enabled = true
mode = "warp"
[tailscale]
enabled = true
[goodbyedpi] # Windows only
enabled = true
mode = 9
block_quic = true
Options
[general]
| Option | Type | Default | Description |
|---|---|---|---|
refresh_interval |
int | 2 |
Status check interval in seconds (min: 1) |
auto_connect |
bool | false |
Auto-connect to OpenVPN using default_config on startup |
[openvpn]
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
bool | true |
Show OpenVPN in the TUI |
config_dirs |
list | ["~/.openvpn", "~/vpn-configs"] |
Directories scanned for .ovpn files |
default_config |
string | "" |
.ovpn file used for auto-connect |
[spoofdpi] (Unix)
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
bool | true |
Show SpoofDPI in the TUI |
dns_addr |
string | "8.8.8.8:53" |
DNS server address (ip:port) |
dns_mode |
string | "https" |
One of udp, https, system |
port |
int | 8080 |
Local proxy port (1–65535) |
system_proxy |
bool | false |
Set system proxy on start |
[warp]
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
bool | true |
Show Cloudflare WARP in the TUI |
mode |
string | "warp" |
One of warp, doh, proxy |
[tailscale]
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
bool | true |
Show Tailscale in the TUI |
Mesh mode only: ocom runs tailscale up/down and reads tailscale status --json.
It does not configure an exit node, so Tailscale coexists with OpenVPN/WARP rather
than conflicting. On Linux, controlling Tailscale without sudo requires setting the
operator once: sudo tailscale set --operator=$USER.
[goodbyedpi] (Windows)
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
bool | true |
Show GoodbyeDPI in the TUI |
mode |
int | 9 |
Preset mode (1–9), higher = more aggressive |
block_quic |
bool | true |
Block QUIC/HTTP/3 |
GoodbyeDPI must be run with Administrator privileges; ocom checks for them and reports a clear error if they are missing.
Auto-connect
When auto_connect = true, ocom attempts to connect to OpenVPN on startup using
openvpn.default_config (which must point to a valid .ovpn file). On Unix a sudo
password prompt appears immediately; on Windows the connection starts automatically
(run as Administrator).
[general]
auto_connect = true
[openvpn]
default_config = "~/.openvpn/my-server.ovpn"
Configuration is validated with Pydantic, so out-of-range values (e.g. an invalid
dns_mode or a port outside 1–65535) are rejected at load time. Settings come from
the TOML file only — environment variables are not read.
Requirements
- Python 3.14+
- OpenVPN (for OpenVPN support)
- warp-cli (for WARP support)
- spoofdpi (Unix) or goodbyedpi (Windows) for DPI bypass
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ocom-0.1.0.tar.gz.
File metadata
- Download URL: ocom-0.1.0.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b353038a2df59c3a10a266a7776c0d44a28c422911e4f42b29983febd21ab844
|
|
| MD5 |
ba3a91e2fc5f88c83a3328760f574b70
|
|
| BLAKE2b-256 |
53c07d1a90f072945f74679a681c386d852220e70b47de78e7ed00bae1ae87be
|
File details
Details for the file ocom-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ocom-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
901b78ef7f5e441b058d4f59aa75181ae632111cac718461d713a895c3aa710a
|
|
| MD5 |
7e6778333f4e84cf4b4f7226fb2ab727
|
|
| BLAKE2b-256 |
0a0d9d4ace89f69bca1e68cb25dea7ec9b4b1c361ba7f727f45be89d8194ba57
|