Credentials. The setup writes a bearer token to ~/.dpi/backend.env and copies the OpenRouter key into each device's backend.env, so keep those files private.
Who it is forA developer who wants a long-running AI agent on a laptop or server that survives closing the browser or restarting the terminal.
The problemChat sessions tied to one window stop when the window closes, and resume does not restore which tool call was running.
The outcomeA local device server on port 4780 and a web UI on http://localhost:4781 that show one durable agent you can reopen at any time.
What you need first
- Node.js 24
- just
- zsh
- An OpenRouter API key for OPENROUTER_API_KEY in .env
- For remote devices: passwordless ssh, and an exe.dev account for exe.dev VMs
Steps
- Run
cp .env.example .env, then set OPENROUTER_API_KEY in .env. - Run
cp dpi-network.example.yaml dpi-network.yaml. - Run
just install, thenjust net up local. - Run
just hub build. - In one terminal run
just backend run. In a second terminal runjust hub start. - Open http://localhost:4781 in a browser and start a session on the local device.
Prompt for your agent
In the Durable Pi repo at <repo path>, follow the Manual Install steps in the README up to starting the hub on http://localhost:4781. Report the URL that responds and the names of the device and session shown in the web UI. Verify that the device appears as local in the network tree.
Caveat. The README says remote devices need passwordless ssh and that exe.dev VMs need an exe.dev account, so start with the local device only.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for disler/durable-pi and "Run a durable agent on your own machine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer