2026-01-09 19:26:48 +05:30
# Proxy Mode
PMG supports an experimental proxy based interception as an alternative to the current optimistic dependency resolution. When enabled via `--experimental-proxy-mode` flag:
- PMG starts a micro-proxy server on a random localhost port
2026-01-09 22:03:42 +05:30
- Runs `npm` and other supported package managers configured to use the proxy
- Intercepts package registry requests and analyzes packages as they are downloaded
- Blocks malicious packages and allows trusted packages to be installed
2026-01-09 19:26:48 +05:30
## Usage
```bash
pmg --experimental-proxy-mode npm install lodash
```
## Configuration
To permanently enable proxy mode, add the following to your `config.yml` file:
```yaml
experimental_proxy_mode : true
```
## Supported Package Managers
| Package Manager | Status |
| --------------- | --------- |
| `npm` | ✅ Active |
2026-01-09 22:03:42 +05:30
| `npx` | ✅ Active |
2026-01-10 00:24:45 +05:30
| `pnpm` | ✅ Active |
2026-01-09 22:03:42 +05:30
| `pnpx` | ✅ Active |
2026-01-10 00:24:45 +05:30
| `bun` | ✅ Active |
| `yarn` | ✅ Active |
2026-01-09 19:26:48 +05:30
| `pip` | 🕒 Planned |
| `uv` | 🕒 Planned |
2026-01-09 22:03:42 +05:30
| `poetry` | 🕒 Planned |