Skip to content

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.

Create an isolated environment, then install DeepBuilder from PyPI:

Terminal window
conda create -n deepbuilder python=3.12 -y
conda activate deepbuilder
python -m pip install deepbuilder
deepbuilder --help

Other installation methods:

Terminal window
pipx install deepbuilder # pipx
uv tool install deepbuilder # uv

The base package provides the control plane and TUI. Install task-specific ML/GPU dependencies only when a task needs them:

Terminal window
python -m pip install "deepbuilder[full]"

Narrower extras are also available: ml, gpu, mlebench, detection-2d, scientific-design, and inquirycraft-mcp.

Terminal window
deepbuilder config init
deepbuilder config path # edit the generated private model registry
deepbuilder tui

Model 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.

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=1h

Then, once preflight passes:

run

DeepBuilder 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:

Terminal window
deepbuilder tui --resume

See the Runtime Guide for workspaces, CLI runs, and reports.

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.

Terminal window
git clone https://github.com/deepbuilderai/deepbuilder.git
cd deepbuilder
uv sync --python 3.12 --group dev
uv run deepbuilder config init
uv run deepbuilder tui

Use uv sync --extra full --group dev only when tests require the full ML/GPU environment.