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
- DAP project README — architecture overview.
docs/quick-start.md— install + first-pipeline tutorial.docs/self-hosting.md— production deployment + reverse-proxy hardening.docs/admin-guide.md— operator manual for/admin/*.
License
See the main repository for licensing details.
Metadata
Release files for dap-cli 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dap_cli-0.4.1.tar.gz | 65.6 kB | With provenance | Details for dap_cli-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dap_cli-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for dap_cli-0.4.1-py3-none-any.whl |
Total release size: 141.5 kB
Release files / dap_cli-0.4.1.tar.gz
| Download URL | dap_cli-0.4.1.tar.gz |
|---|---|
| Size | 65.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e867aa485f41de57866dad0a797f7a9ac61d229df68a0d21480dccc56e29764e
|
|
BLAKE2b-256 checksum How to use checksums |
fecaa717621827fcf966ebe844214586a37b36dba2d9bd8cb5cf3e6dd0cd06b1
|
| 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 logRelease files / dap_cli-0.4.1-py3-none-any.whl
| Download URL | dap_cli-0.4.1-py3-none-any.whl |
|---|---|
| Size | 75.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85a9969e4c8425836abfb49983f05904970c81912fd8a29fb3c5f78a4f938dfd
|
|
BLAKE2b-256 checksum How to use checksums |
1de003875120be4e7518aac77620e2de4caea59e6b1131e15eb05f76674ba6ea
|
| 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 logSecurity for dap-cli 0.4.1
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.
Attestation for dap_cli-0.4.1.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 logA 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.