LAN Direct

•
4
•

Enables applications and browsers to reach domestic internet services via a direct ISP connection while AI agents securely maintain their VPN tunnel.

When developing applications with AI coding agents like Claude Code or Codex, developers often face a dilemma: the agent requires a VPN for API access, but the application being developed needs to reach domestic services (like payment gateways or local APIs) that reject foreign VPN IP addresses. LAN Direct solves this by providing an ISP-direct path for your application and browser, while ensuring the AI agent remains securely connected through its VPN. It achieves this through per-socket source-address binding and per-host routing, avoiding global system changes, admin rights, or VPN reconfigurations. This allows for seamless development and testing of geographically sensitive applications without compromising agent connectivity.

主要功能

01Routes domestic traffic via ISP and all other traffic via VPN using per-socket binding
02Allows users to customize host routing rules via a dedicated configuration file
03Operates without requiring admin privileges, routing table modifications, or VPN reconfiguration
04Supports Node.js applications with a preload script and other backends via a local HTTP/CONNECT proxy
052 GitHub stars
06Includes a browser MCP for mixed-route web browsing within a single session

使用案例

01Allowing AI agents (e.g., Claude Code, Codex) to develop and debug applications requiring a local ISP IP without losing agent API connectivity
02Testing applications that interact with geo-restricted domestic services while an AI coding agent remains on a VPN
03Enabling developers to browse and interact with both domestic and international websites concurrently in a single browser session, each using its optimal network path