Goldilocks recommends settings for density functional theory (DFT) calculations and generates Quantum ESPRESSO input files (SCF, DOS, band structure, relaxation, variable-cell relaxation, and phonons with their density of states and dispersion) from a crystal structure.
Published on PyPI. For just the goldilocks CLI:
pip install goldilocks-coreFor the CLI plus the built Workbench, ready to serve with no separate frontend build:
pip install "goldilocks-core[http]"
goldilocks serve httpOpen http://127.0.0.1:8000 -- the Workbench frontend is bundled into the package itself as of this release.
To work on the Workbench or the codebase itself, clone the repository instead. Install uv first:
git clone https://github.com/stfc/goldilocks-core.git
cd goldilocks-core
uv syncWith Node.js 24 or newer installed, run:
uv sync --extra http
npm --prefix web ci
uv run goldilocks assets install workbench
uv run --extra http poe workbenchThe asset step installs the models and pseudopotential tables. Open http://127.0.0.1:5173, upload a CIF or POSCAR, review the recommended settings, and download the generated inputs.
For a built frontend instead, stop the development servers and run:
uv run --extra http poe stageThen open http://127.0.0.1:8000. See the Workbench guide for Docker and development checks.
Download the prediction models and default pseudopotential table, then generate inputs for the bundled silicon structure:
uv run goldilocks assets install default
uv run goldilocks run src/goldilocks_core/examples/structures/Si.cif --out si-runOpen si-run/scf.in to see the input. The directory also contains the
pseudopotential file with its table's licence, a submission script,
goldilocks.json (the request it answers: code, task, HPC profile, your
overrides, the structure's sha256 and the goldilocks-core version; every
setting with its source, and for a setting a model chose, the model with what
it returned) and CITATIONS.md (the pseudopotential table and every model
used).
Treat the recommended settings as a starting point: review warnings and check convergence for your calculation. The quickstart explains the output and how to run it.
- First calculation — generate, check, and run an input.
- Python API — use Goldilocks in a script.
- Recommendations — understand the choices and their limits.
- Pseudopotentials — choose a table and understand automatic selection.
- CLI reference — commands and options.
- mMACE — check that the magnetism features use the ML model, or use another checkpoint.
- Scientific conventions — units and numerical definitions.
- Contributing — code layout and development checks.
Code: BSD 3-Clause. Documentation under docs/ and example
structures: CC BY 4.0.
Downloaded pseudopotentials retain their
upstream licences.