Files
pmg/docs/proxy-mode.md
T

37 lines
1009 B
Markdown
Raw Normal View History

# Proxy Mode
PMG supports proxy based interception as an alternative to the current optimistic dependency resolution. When enabled via `--proxy-mode` flag:
- PMG starts a micro-proxy server on a random localhost port
- 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
## Usage
```bash
pmg --proxy-mode npm install lodash
```
## Configuration
To permanently enable proxy mode, add the following to your `config.yml` file:
```yaml
proxy_mode: true
```
## Supported Package Managers
2026-01-21 20:29:15 +05:30
| Package Manager | Status |
| --------------- | ------ |
| `npm` | ✅ |
| `npx` | ✅ |
| `pnpm` | ✅ |
| `pnpx` | ✅ |
| `bun` | ✅ |
| `yarn` | ✅ |
| `pip` | ✅ |
| `uv` | ✅ |
| `poetry` | ✅ |