DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run the local web dev server behind an HTTP proxy with Pi Agent Desktop

Route model and API calls through a proxy while developing Pi Agent from source.

Short answer: Clone the repository from https://github.com/abcwyc/pi-agent-desktop and open it in a terminal; then install dependencies with npm install; start the dev server through your proxy, replacing 127.0.0.1:7890 with your proxy address: HTTP_PROXY=http://127.0.0.1:7890 HTTPS_PROXY=http://127.0.0.1:7890 NO_PROXY=localhost,127.0.0.1 npm run dev. All steps.

Who it is forA developer on a network that requires an HTTP proxy who wants to run Pi Agent from source.

The problemModel and API requests fail on a network that only allows traffic through a proxy.

The outcomeThe local dev server starts at localhost:30141 and sends its model and API requests through the configured proxy.

What you need first

  • A supported machine: Apple Silicon Mac on macOS 11 or later, Windows 10/11 x64, or Linux x64 with WebKitGTK 4.1 and GTK 3
  • Pi sessions or Pi model keys on this machine (optional, only needed to see existing history)
  • For the proxy use case: Node.js 22 and npm, plus a running HTTP proxy address

Steps

  1. Clone the repository from https://github.com/abcwyc/pi-agent-desktop and open it in a terminal.
  2. Install dependencies with npm install.
  3. Start the dev server through your proxy, replacing 127.0.0.1:7890 with your proxy address: HTTP_PROXY=http://127.0.0.1:7890 HTTPS_PROXY=http://127.0.0.1:7890 NO_PROXY=localhost,127.0.0.1 npm run dev. (inferred, check the README)
  4. Open http://localhost:30141 in your browser and send a test message to confirm model requests work.

Prompt for your agent

Using the abcwyc/pi-agent-desktop README, prepare the commands to start the dev server behind the HTTP proxy at <proxy-url>. Expected output: the exact environment variables and the npm command to run. Verify that NO_PROXY keeps localhost and 127.0.0.1 off the proxy.

Caveat. The README says the dev server listens only on 127.0.0.1, so it is reachable from this machine only unless you use the separate LAN mode, which needs a password.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for abcwyc/pi-agent-desktop and "Run the local web dev server behind an HTTP proxy"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer