DP Code ships as a native desktop app for macOS, Linux, and Windows, and as a Node.js server you can run from source. Both options expose the same web UI and WebSocket API. Choose whichever fits your workflow.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/dpcode/llms.txt
Use this file to discover all available pages before exploring further.
- Desktop app
- Run from source
The desktop app is the easiest way to run DP Code. It bundles the Node.js server and React web UI into a single Electron application — no runtime dependencies required beyond the AI coding agent CLI you want to use.DownloadGo to the Releases page and download the file for your operating system:
macOSLinuxWindowsRun the downloaded
| OS | File |
|---|---|
| macOS (Apple Silicon) | .dmg (arm64) |
| macOS (Intel) | .dmg (x64) |
| Linux | .AppImage (x64) |
| Windows | NSIS installer .exe (x64) |
- Open the downloaded
.dmgfile. - Drag DP Code to your Applications folder.
- Launch it from Applications or Spotlight.
On first launch, macOS may show a security warning because the app is not yet notarized. Open System Settings → Privacy & Security and click Open Anyway.
- Make the AppImage executable:
- Run it:
.exe installer and follow the setup wizard. DP Code will launch automatically after installation.Environment variables
Set these before starting the server. CLI flags (see below) take precedence over environment variables when both are set.| Variable | Description | Default |
|---|---|---|
T3CODE_PORT | Port for the HTTP/WebSocket server. | Auto-selected (web) or 3773 (desktop) |
T3CODE_HOST | Host or interface to bind — for example 0.0.0.0 or a Tailnet IP. | 127.0.0.1 in desktop mode |
T3CODE_HOME | Base directory for all DP Code data (SQLite, logs, sessions). | ~/.dpcode |
T3CODE_NO_BROWSER | Set to 1 to disable automatic browser opening on startup. | false (web), true (desktop) |
T3CODE_AUTH_TOKEN | Auth token required for WebSocket connections. Leave unset to disable auth. | Unset |
T3CODE_MODE | Runtime mode: web or desktop. | web |
T3CODE_LOG_PROVIDER_EVENTS | Set to 1 to emit NDJSON logs for provider events (useful for debugging). | false |
T3CODE_LOG_WS_EVENTS | Set to 1 to emit server-side logs for outbound WebSocket push traffic. | false |
CLI flags
When running from source you can pass flags directly to the server command. All flags are optional.| Flag | Description |
|---|---|
--port <number> | Port for the HTTP/WebSocket server (1–65535). |
--host <string> | Host or interface to bind. |
--home-dir <path> | Base directory for all DP Code data. Equivalent to T3CODE_HOME. |
--mode <web|desktop> | Runtime mode. desktop applies loopback defaults unless overridden. |
--no-browser | Disable automatic browser opening. |
--auth-token <string> | Auth token required for WebSocket connections. Alias: --token. |
--dev-url <url> | Dev web URL to proxy to. Equivalent to VITE_DEV_SERVER_URL. |