Proxyline
Process-global proxy routing for Node.js.
Proxyline patches the network surfaces a Node process can reach without owning a private transport stack, so one policy applies to node:http, node:https, undici/fetch, WebSocket clients, and explicit HTTP CONNECT tunnels.
#Start
- Getting Started
- Modes
- Surfaces
- API Reference
- Environment Variables
- Proxy TLS
- Observability
- Security
- Troubleshooting
- Testing
#Install
pnpm add @openclaw/proxyline
#Managed Mode
import { installGlobalProxy } from "@openclaw/proxyline";
const proxy = installGlobalProxy({
mode: "managed",
proxyUrl: "https://proxy.corp.example:8443",
proxyTls: { caFile: "/etc/proxy-ca.pem" },
});
console.log(proxy.explain("https://api.example.com/"));
#Ambient Mode
import { installGlobalProxy } from "@openclaw/proxyline";
const proxy = installGlobalProxy({ mode: "ambient" });