Setup
Get Started
Choose a runtime image, mount a workspace, and launch the CLI.
Recommended
Docker CLI
Best default for laptops and workstations. It keeps the scientific runtime isolated from the host machine.
HPC
Singularity
Best fit for clusters and shared compute environments where container execution is available but Docker daemon access is not.
Advanced
Local Deployment
Useful when you need a custom environment on your machine, but it is less isolated and usually more fragile than container-based runs.
Prerequisites
- Access to a supported model provider and a valid API key
- Docker installed on your device (required for Docker-based deployments)
- A workspace directory that can be mounted into the container
- Node.js 20 or newer (required only if running the CLI stack outside of a container)
- Optional keys such as
PMG_MAPI_KEYfor Materials Project access andHF_TOKENfor Hugging Face downloads used by the RAG index
Installation
Docker
Pull the appropriate QUASAR image for your system from Docker Hub. Choose a tag that matches your hardware target:
| Image family | Best for |
|---|---|
amd64 / CPU tags |
x86_64 CPU workstations and servers. |
arm64 tags |
ARM64 machines. |
cuda tags |
NVIDIA GPU hosts with compatible drivers. |
rocm tags |
AMD GPU hosts with compatible ROCm support. |
docker pull fengxuyang/quasar:<tag>
The optimized images use staged builds and copy only runtime artifacts into the final image. They retain QUASAR’s expected scientific stack, including Quantum ESPRESSO, LAMMPS/OpenKIM, RASPA3, xTB, ORCA, MACE/PyTorch, pymatgen, ASE, and RDKit where supported by the image architecture.
Singularity
Build a .sif image from Docker Hub:
singularity build quasar.sif docker://fengxuyang/quasar:<tag>
Local Deployment
If you want to run QUASAR directly on your machine, install the Python package and the scientific software stack you need. The quasar CLI is included with the pip package. A minimal example looks like this:
conda create -n quasar python=3.11 -y
conda activate quasar
conda install -c conda-forge qe lammps raspa3 raspalib nodejs xtb -y
pip install --upgrade pip
pip install quasar-core
quasar CLI is powered by a bundled Node.js application. Node.js 20 or newer must be available on your PATH. Install it via conda install -c conda-forge nodejs, brew install node, or from nodejs.org.
PATH to use it locally.
CLI
Use the CLI when you want terminal-native interaction or a direct headless prompt.
Docker
docker run -it --rm \
-v "<workspace_path>:/workspace" \
fengxuyang/quasar:<tag> \
quasar
Singularity
singularity exec --cleanenv \
-B "<workspace_path>:/workspace" \
--home "<workspace_path>:/workspace" \
quasar.sif quasar
Local Deployment
export WORKSPACE_DIR=<workspace_directory>
quasar
What to Expect on First Launch
When QUASAR starts in a new workspace for the first time, it prepares the local resources it needs for later runs.
This setup step can include:
- Documentation repositories stored in
docs/ - A prebuilt RAG index in
.rag_index/when RAG is enabled - Embedding model files used for documentation retrieval
- Runtime settings and checkpoint metadata such as
quasar_logs/checkpoint_settings.json
Because these resources are downloaded and prepared only once per new workspace, the first launch is usually slower than later runs in the same workspace.