Skip to main content

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 .ovpn config 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

ocom is a standalone end-user tool. Install it into an isolated environment with your preferred installer:

uv tool install ocom
pipx install ocom

Or run it without installing:

uvx ocom

On macOS/Linux, install it from the Homebrew tap:

brew install hasansezertasan/tap/ocom

On Windows, install it from the Scoop bucket:

scoop bucket add hasansezertasan https://github.com/hasansezertasan/scoop-bucket
scoop install hasansezertasan/ocom

Or install from source — see the installation docs.

Verify the installation

The package root is importable after installation:

>>> from ocom import __doc__
>>> isinstance(__doc__, str)
True

Usage

Launch the TUI with the interactive subcommand:

ocom interactive

The same command also works as a small CLI — running ocom with no arguments (or ocom --help) lists everything:

ocom version   # print the version
ocom info      # version + Python/platform details

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

Metadata

Release files for ocom 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocom 0.1.3
File Size Uploaded Provenance
ocom-0.1.3.tar.gz 84.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ocom 0.1.3
File Interpreter ABI Platform
ocom-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 132.9 kB

Release files / ocom-0.1.3.tar.gz

Download URL ocom-0.1.3.tar.gz
Size 84.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a8a8b347d952bf38a2353616bc8755807e2294235acbf08e432cdcd9437a41e7
BLAKE2b-256 checksum
How to use checksums
a8fff3f20cf77c915aa3e18822d545d9546b0314c5c2a1256370c1d1764154dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / ocom-0.1.3-py3-none-any.whl

Download URL ocom-0.1.3-py3-none-any.whl
Size 48.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e43726d7d98492c7cd1dfacdbcc6c15ba7d05a480f5314b6a8ae678fd610a838
BLAKE2b-256 checksum
How to use checksums
9d4585630330ae18fc759af00b5702c977cf5ae53549992cb9c287c6c6b3a3af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Security for ocom 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ocom-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page