Getting Started
DeepBuilder turns an executable task with a measurable objective into persistent, evaluator-guided research. It coordinates parallel workers, promotes valid results into recoverable stages, preserves the best artifacts, and exposes the full process through a TUI and a Web monitor.
Requirements: Python 3.11–3.13 and access to a supported model API.
1. Install
Section titled “1. Install”Create an isolated environment, then install DeepBuilder from PyPI:
conda create -n deepbuilder python=3.12 -yconda activate deepbuilderpython -m pip install deepbuilderdeepbuilder --helpOther installation methods:
pipx install deepbuilder # pipxuv tool install deepbuilder # uvThe base package provides the control plane and TUI. Install task-specific ML/GPU dependencies only when a task needs them:
python -m pip install "deepbuilder[full]"Narrower extras are also available: ml, gpu, mlebench, detection-2d, scientific-design, and inquirycraft-mcp.
2. Configure a model and start
Section titled “2. Configure a model and start”deepbuilder config initdeepbuilder config path # edit the generated private model registrydeepbuilder tuiModel settings stay local in ~/.config/deepbuilder/models.json (mode 600). API keys are excluded from task manifests, sessions, and reports. See Model Configuration for the file format.
Chat normally in the TUI, or enter /long-research to configure and launch a managed task. Closing the TUI detaches from research without terminating its workers.
3. A minimal example
Section titled “3. A minimal example”The built-in circle-packing task needs no dataset. After starting the TUI, enter:
/long-research circle-packing workers=2 cpu=16 gpu=cpu duration=1hThen, once preflight passes:
runDeepBuilder runs preflight checks, starts two CPU workers, evaluates candidate solutions, and retains the best valid artifact under the workspace. Follow it with /tasks or /status 1.
| Command | Purpose |
|---|---|
/long-research DESCRIPTION |
Prepare and launch a research task. |
/tasks, /status N |
List tasks or inspect results, model usage, and resources. |
/stop N, /resume N, /attach N |
Control or follow a task. |
/models |
Select the fixed chat model. |
/web, /web stop |
Start or stop the workspace Web monitor. |
Resume a saved chat session with:
deepbuilder tui --resumeSee the Runtime Guide for workspaces, CLI runs, and reports.
4. Task contract
Section titled “4. Task contract”| You provide | DeepBuilder manages |
|---|---|
| Objective, constraints, and metric direction | Research lifecycle and parallel workers |
| Executable task code and required data | Isolated workspaces and resource leases |
| Evaluator and valid artifact contract | Evidence normalization and Stage admission |
| Baseline or starting implementation | Exploration, recovery, selection, and finalization |
A registered task.yaml is the source of truth for measurement and valid artifacts. DeepBuilder does not invent a missing evaluator or silently replace required task data. See Task Onboarding.
CPU and GPU allocations form task boundaries; CPU capacity is divided across workers. Model pricing is optional; without it, the UI reports Cost —. Do not resume a workspace with a different task, dataset, evaluator, prompt, or artifact contract.
5. Develop from source
Section titled “5. Develop from source”git clone https://github.com/deepbuilderai/deepbuilder.gitcd deepbuilderuv sync --python 3.12 --group devuv run deepbuilder config inituv run deepbuilder tuiUse uv sync --extra full --group dev only when tests require the full ML/GPU environment.