Skip to main content

dap-cli

The command-line launcher for DAP (Deterministic Agent Pipeline). Installs as a single binary that spawns both the engine and the Next.js dashboard, with all five first-party packages (dap-engine, dap-schemas, dap-runtimes, dap-prompt-dsl, and this CLI) pulled in as dependencies.

For most installations, dap-cli is the only package you install directly — everything else arrives transitively.

Installation

The recommended path is pipx, which installs the CLI in an isolated virtualenv but exposes the dap binary on PATH:

pipx install dap-cli

Standard pip --user works too:

pip install --user dap-cli

After install:

dap --version              # → 0.3.0
dap --help                 # subcommand list

The wheel ships with the Next.js dashboard pre-built — dap start spawns it inline when Node is available on PATH; otherwise it falls back to engine-only mode (the CLI prints a hint).

Commands

Command Purpose
dap --version Print the installed version
dap --help List subcommands
dap init Initialise ./.dap/ and bootstrap the admin user
dap start Spawn engine (127.0.0.1:7333) + dashboard (127.0.0.1:7332)
dap stop Stop the running engine + dashboard cleanly
dap status Show project state: admin bootstrap, engine PID/uptime, runtime adapter health

dap init

Creates ./.dap/ with config.json, state.db (SQLite), and the admin bootstrap. Three credential modes:

# 1. Flag-driven (password lands in shell history — local dev).
dap init --admin-email=you@example.com --admin-password=hunter12345

# 2. Stdin (kubectl-style — automation-friendly).
echo 'hunter12345' | dap init --admin-email=you@example.com --admin-password-stdin

# 3. Interactive (getpass + confirmation, no echo).
dap init --admin-email=you@example.com

Empty password in interactive mode triggers a random 22-character generation, printed exactly once. Re-running with --force is idempotent — an existing email gets promoted to admin; the password is rotated only when --admin-password=... is supplied explicitly.

DAP_DB_PATH is honored — useful when bootstrapping inside the Docker container (where compose sets DAP_DB_PATH=/data/state.db).

dap start

Starts both processes in parallel under the current shell. The engine runs in-process (so its uvicorn logs print directly to stdout/stderr), and the dashboard is spawned as a subprocess whose stdout/stderr is inherited unchanged — both streams interleave on your terminal without an extra prefix. Ctrl-C tears the whole stack down cleanly.

(The ./scripts/dev wrapper used during source-checkout development does prefix lines with [engine] / [dashboard]. The packaged dap start does not — keeping the install-from-PyPI binary simple.)

Flags:

Flag Default Description
--engine-host 127.0.0.1 Engine bind address
--engine-port 7333 Engine port
--dashboard-port 7332 Dashboard port
--no-dashboard off Run engine-only even if Node is present

dap status

Reports the current state without modifying anything:

✓ admin bootstrap: you@example.com (2026-05-13T10:00:00+00:00)
● engine: running  PID 12345 port 7333 uptime 3h12m

  Runtime adapters
  ├─ api-call   ✓ healthy
  ├─ bash       ✓ healthy
  ├─ claude-code  ✓ healthy
  ├─ codex      ✗ codex not found on PATH
  └─ ...

Useful in CI / health probes — exits non-zero if anything is broken.

Quick start

# 1. Install.
pipx install dap-cli

# 2. Initialise.
dap init --admin-email=you@example.com

# 3. Run.
dap start
# Browser: http://localhost:7332 (dashboard)
#          http://localhost:7333 (engine API + /docs)

# 4. Stop when done.
dap stop

See docs/quick-start.md for the full decision tree (laptop vs VPS, SQLite vs Postgres, Docker vs no-Docker) and the per-path walkthroughs.

Running from a source checkout

If you're developing DAP itself or want to run against an unreleased commit:

git clone https://github.com/lagowski/dap.git
cd dap
./scripts/setup
./scripts/dev

The scripts/dev wrapper brings engine + dashboard up in one terminal with hot reload on both sides.

Compatibility

  • Python 3.13+
  • Node 22+ (optional — required only for the bundled dashboard; engine works without it)

See also

License

See the main repository for licensing details.

Metadata

Release files for dap-cli 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dap-cli 0.4.0
File Size Uploaded Provenance Actions
dap_cli-0.4.0.tar.gz 65.6 kB With provenance Details for dap_cli-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dap-cli 0.4.0
File Interpreter ABI Platform Actions
dap_cli-0.4.0-py3-none-any.whl Python 3 none any Details for dap_cli-0.4.0-py3-none-any.whl

Total release size: 141.5 kB

Release files / dap_cli-0.4.0.tar.gz

Download URL dap_cli-0.4.0.tar.gz
Size 65.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d43470b265694a3d3ef3ac81faa710266e311742b0139b9f84fd99b1b0c0fad5
BLAKE2b-256 checksum
How to use checksums
664c5bafa0f87ab0f88c1af639ee29fe5ec8962387a84429f511b0ec0353780e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / dap_cli-0.4.0-py3-none-any.whl

Download URL dap_cli-0.4.0-py3-none-any.whl
Size 75.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5301ec4b471f1a497ad4bd65bacdc8d907d090eccfd923dee2602eff69101a89
BLAKE2b-256 checksum
How to use checksums
ae8f3e9a89ce04b913e9d844e9badce3bb6a6d71d6e6ce23fe3020d8cba20813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for dap-cli 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dap_cli-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page