Skip to main content

Greyproxy CLI Reference

Synopsis

greyproxy <subcommand> [flags]

Subcommands

greyproxy serve

Start the proxy server in the foreground.

greyproxy serve
greyproxy serve -C greyproxy.yml
FlagDescription
-C <path>Path to a YAML config file. Defaults to the embedded default config.

The server starts all configured proxy services and the dashboard/API. Press Ctrl+C to stop.


greyproxy install

Install greyproxy as a persistent background service.

greyproxy install
greyproxy install -C /etc/greyproxy/greyproxy.yml

What install does:

  1. Copies the binary to ~/.local/bin/greyproxy
  2. Registers a systemd user service (Linux) or launchd user agent (macOS)
  3. Starts the service immediately

The dashboard will be available at http://localhost:43080 once running.

FlagDescription
-C <path>Config file path for the installed service to use

greyproxy uninstall

Stop and completely remove greyproxy: stops the service, removes the systemd/launchd registration, and deletes the binary from ~/.local/bin/.

greyproxy uninstall

greyproxy service

Manage the installed greyproxy service without uninstalling it.

greyproxy service status
greyproxy service start
greyproxy service stop
greyproxy service restart
SubcommandDescription
statusShow whether the service is running
startStart the service
stopStop the service
restartRestart the service

greyproxy version

Print the greyproxy version and exit.

greyproxy version

greyproxy help

Show help for any subcommand.

greyproxy help
greyproxy help serve

Default Ports

ServicePortProtocol
Dashboard / API43080HTTP + WebSocket
HTTP Proxy43051TCP
SOCKS5 Proxy43052TCP
DNS Proxy43053UDP

These can be changed in a custom config file passed with -C. See Configuration.

Service File Locations

After greyproxy install:

PlatformService typeLocation
Linuxsystemd user unit~/.config/systemd/user/greyproxy.service
macOSlaunchd user agent~/Library/LaunchAgents/co.greyhaven.greyproxy.plist

You can inspect or modify these files manually if needed.

Examples

# Start in foreground with default config
greyproxy serve

# Start with a custom config file
greyproxy serve -C ~/my-greyproxy.yml

# Install as a service (starts automatically on login)
greyproxy install

# Check service status
greyproxy service status

# View logs (Linux systemd)
journalctl --user -u greyproxy -f

# View logs (macOS)
tail -f ~/Library/Logs/greyproxy.log