Metadata-Version: 2.4
Name: win-system-proxy
Version: 0.1.0
Summary: Manage the Windows manual system proxy from the command line.
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# win_system_proxy

`win-proxy` manages the manual proxy under **Settings > Network & internet > Proxy** on Windows 10 and 11. It uses the Python standard library to call WinINet, with no PowerShell or third-party Python runtime dependencies.

## Run from the project directory

The project requires Windows and `uv`. It supports Python 3.10 or later and defaults to Python 3.12.

```text
uv sync
uv run win-proxy server 127.0.0.1:7890
uv run win-proxy status
uv run win-proxy off
```

## Run from any directory

Run `uv tool install .` from the project directory. If `uv` warns that the tool directory is not on `PATH`, run `uv tool update-shell` and reopen your terminal.

```text
win-proxy server 127.0.0.1:7890
win-proxy status
win-proxy off
```

- `server HOST:PORT` saves the address and enables the manual proxy. Omit the URL scheme and use brackets for IPv6, for example `[::1]:7890`. Pass `--bypass "<local>;*.example.com"` to replace the bypass list, or omit the option to keep the existing list.
- `status` shows whether the manual proxy, automatic configuration script (PAC), and auto-detection are enabled. It also shows the saved address and bypass list.
- `off` disables only the manual proxy. It keeps the saved address and bypass list and leaves PAC and auto-detection unchanged, so apps may still use a proxy.

The tool does not start a proxy server or change the separate `netsh winhttp` settings. Organizational policies may prevent changes to the system proxy.
