Skip to main content

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.

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.
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:
OSFile
macOS (Apple Silicon).dmg (arm64)
macOS (Intel).dmg (x64)
Linux.AppImage (x64)
WindowsNSIS installer .exe (x64)
macOS
  1. Open the downloaded .dmg file.
  2. Drag DP Code to your Applications folder.
  3. 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.
Linux
  1. Make the AppImage executable:
chmod +x DP-Code-*.AppImage
  1. Run it:
./DP-Code-*.AppImage
WindowsRun the downloaded .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.
VariableDescriptionDefault
T3CODE_PORTPort for the HTTP/WebSocket server.Auto-selected (web) or 3773 (desktop)
T3CODE_HOSTHost or interface to bind — for example 0.0.0.0 or a Tailnet IP.127.0.0.1 in desktop mode
T3CODE_HOMEBase directory for all DP Code data (SQLite, logs, sessions).~/.dpcode
T3CODE_NO_BROWSERSet to 1 to disable automatic browser opening on startup.false (web), true (desktop)
T3CODE_AUTH_TOKENAuth token required for WebSocket connections. Leave unset to disable auth.Unset
T3CODE_MODERuntime mode: web or desktop.web
T3CODE_LOG_PROVIDER_EVENTSSet to 1 to emit NDJSON logs for provider events (useful for debugging).false
T3CODE_LOG_WS_EVENTSSet 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.
bun run dev -- [flags]
FlagDescription
--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-browserDisable 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.
Example: run on a custom port with auth enabled
bun run dev -- --port 8080 --auth-token mysecrettoken --no-browser
Example: isolated instance for development
T3CODE_PORT=58090 T3CODE_NO_BROWSER=1 bun run dev -- --home-dir ./.dpcode-dev --port 58090
If you are running DP Code alongside an existing instance, always use a different --port and --home-dir to avoid conflicts.

Build docs developers (and LLMs) love