Node.js · TypeScript · MIT

Process-global proxy routing for Node.js

One install routes node:http, node:https, undici/fetch, WebSocket, and HTTP CONNECT traffic through a single explicit policy. Managed mode fails closed; ambient mode honors HTTP_PROXY / NO_PROXY for tooling compatibility.

Get started GitHub
pnpm add @openclaw/proxyline
installGlobalProxy()openProxyConnectTunnel()createWebSocketAgent()createUndiciDispatcher()proxy.explain()proxy.stop()redactProxyUrl()ProxylineError

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

#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" });