Configuration
Configure the host with environment variables and keep each instance's ports and storage separate.
Host settings
These are the primary settings used by the host. Foreground runs inherit the shell environment. Installed services use their generated configuration.
| Variable | Default | Purpose |
|---|---|---|
HOST |
127.0.0.1 |
Dashboard bind address. |
PORT |
4317 |
Dashboard HTTP port. |
ACPDASH_DATA |
data/acpdash.sqlite |
SQLite database path, relative to the process working directory unless absolute. |
ACPDASH_WORKTREES |
Sibling <repository-name>-agents directory |
Root for agent worktrees. |
ACPDASH_SQLITE_LIB |
Automatic Apple Silicon Homebrew lookup | Optional SQLite shared-library path. |
ACPDASH_PUBLIC_ORIGIN |
Unset for foreground runs | Client-facing dashboard origin used by host origin checks and links. |
Preview settings
| Variable | Default | Purpose |
|---|---|---|
ACPDASH_PREVIEW_BIND |
HOST, or 127.0.0.1 |
Preview server bind address. |
ACPDASH_PREVIEW_PORT |
4318 |
Separate preview listener. |
ACPDASH_PREVIEW_ORIGIN |
Derived local origin | Client-reachable preview origin for remote access. |
Use a different hostname for previews and the dashboard. Do not treat a port change as hostname isolation. For remote setup, see remote and mobile access.
Storage locations
| Data | Foreground default | Installed service |
|---|---|---|
| Database | data/acpdash.sqlite |
~/.local/share/acpdash/acpdash.sqlite |
| Proof and uploads | data/content/ |
~/.local/share/acpdash/content/ |
| Worktrees | Beside each project repository | ~/.local/share/acpdash/worktrees/ |
| Service environment | Not automatically loaded | ~/.config/acpdash/environment |
Notification and terminal state also live under the service data directory. Back up the whole directory and the environment file. Stop the host before copying SQLite files, or use a consistent SQLite backup.
Service environment
Use unquoted assignments, one per line:
PORT=4317
ACPDASH_PREVIEW_PORT=4318
ACPDASH_PREVIEW_BIND=127.0.0.1
The installer records its environment and generates Web Push keys. Preserve those keys during an update. The provider executable overrides are listed in agent providers.
After changing settings, restart the service. On macOS, rerun bun run install:macos to regenerate the launchd configuration. On Linux, restart acpdash.service with systemctl --user.
Agent execution
Repository settings separates Agent execution from feedback Ask first / YOLO and the provider’s permission prompts.
- CLI sandbox uses the provider’s command restrictions. Codex keeps workspace-write mode with networking disabled and rejects requests to run outside that sandbox. Grok uses its strict profile on Linux. ACPDash background commands also run through
codex sandbox, with workspace-only file access and networking disabled. A missing executable, unsupported provider, or sandbox failure stops the operation; it does not fall back to trusted execution. - Trusted uses the provider’s ordinary access. Selecting it requires accepting the displayed risk. ACPDash records when you accepted it. Switching to CLI sandbox clears that acknowledgment; switching back requires accepting again. YOLO does not count as consent to trusted execution.
The CLI option is not complete process or credential isolation. Codex’s provider sandbox can read outside the worktree, Grok can read its own configuration, and host tools remain trusted operations. These controls do not turn the dashboard’s Origin check into operator authentication. Trusted agents can use available credentials or call APIs directly, bypassing the supported reply-approval flow. Keep this distinction in mind when choosing Ask first.
CLI sandbox currently supports Codex on Linux/macOS and Grok on Linux. Grok’s macOS profile does not enforce child network restrictions, so ACPDash rejects that combination. Background commands require a Codex CLI with sandbox --permission-profile support even when the selected provider is Grok. Network-dependent installation, Git publishing, and checks can fail inside the sandbox; they are not automatically retried with broader access.
Wait for repository agents to finish and stop their background commands before changing execution. Saving closes idle provider sessions so the next session uses the new choice. Existing repositories retain their previous provider setup until you explicitly choose an execution mode. Execution consent belongs to host repository settings; closeout YAML cannot grant it.
Repository closeout settings
Add repository-specific instructions in .acpdash/closeout.md, in the Additional closeout prompt field under Repository settings, or in both. Agents receive both sources during closeout. The file follows the issue’s pinned base commit; dashboard edits apply on the next closeout check. See repository instructions for an example and the distinction between prompts and enforced checks.
Closeout requirements belong in the repository’s .acpdash/closeout.yaml, rather than the host environment. The version 1 policy can require recorded commands, receipts, Cucumber or visual proof, independent review, CI, and resolved review threads. The same file can set pull request feedback quietSeconds, mode (ask or yolo), suggestion handling, severity labels, and a block threshold. Repository settings stores those choices too. For each field, the issue’s pinned YAML wins, then the repository setting, then the application default. A stale pin does not grant YOLO. Ask first is the default. See preflight.
Set retry.maxFailedAttemptsPerItem to an integer from 1 to 20 to limit failed executions of each pinned command item. Omit retry for no host attempt limit. The host pins this configuration from the base commit for each issue revision; changing a worker’s copy does not update its active requirements.
See preflight and retries for a complete YAML example and the recovery flow.
Development commands
bun run check
bun run test
bun run build
bun src/host/server.ts
bun run dev starts Vite alone. It does not start or proxy the host API. Use the host URL for the complete application, rebuild after frontend changes, and restart after host changes.