1. Settings & configuration reference
This page lists defaults and explicit overrides. LatticeMind still requires an AI provider configuration and the RESCU license described in Licenses and solver executables. A solver command and its licensed data are required only when that solver executes.
1.1. Where settings come from
LatticeMind reads configuration from several places, in order of precedence (later sources override earlier ones):
Defaults baked into LatticeMind.
Config file —
~/.latticemind/config.json(or a file named byLATTICEMIND_CONFIG_FILE) and the Web UI’s~/.latticemind/dashboard_settings.json.The
.envfile in the folder you launch from.Environment variables.
Interactive commands (
/rescu,/compute,/language, …) andlatticemind-webflags, for the current session.
Tip
The Web UI persists your choices to ~/.latticemind/dashboard_settings.json
automatically. For servers and reproducibility, prefer .env or real
environment variables.
1.2. AI provider & models
Variable |
Purpose |
|---|---|
|
|
|
OpenAI API key. |
|
Fast/default and higher-effort OpenAI models (e.g. |
|
Only if your account uses org/project scoping. |
|
Anthropic Claude key. |
|
Claude models (e.g. |
|
Google Gemini key. |
|
Gemini models (e.g. |
|
Qwen (DashScope) key. |
|
Qwen models (e.g. |
|
Local Ollama endpoint (default |
|
Local Ollama models (e.g. |
1.3. Reports & output location
Variable |
Purpose |
|---|---|
|
Root folder for projects and outputs (default |
|
|
|
|
1.4. Web UI
Variable |
Purpose |
|---|---|
|
Bind host (default |
|
Bind port (default |
|
|
|
Explicit proxy prefix (e.g. |
|
|
|
Force an interface, e.g. |
1.5. Solver commands, license & pseudopotentials
LatticeMind stores one launch command per solver. The Web UI persists these to
~/.latticemind/dashboard_settings.json under solver_commands; environment
variables override them.
Variable |
Purpose |
|---|---|
|
RESCU launch command (default: |
|
NanoDCAL launch command. |
|
Extracted NeutralAtomDatabase root. LatticeMind searches it recursively
for the |
|
VASP launch command (e.g. |
|
Exact RESCU license file used at LatticeMind startup. If unset,
LatticeMind expects exactly one |
|
Pseudopotential database folder (containing |
|
VASP POTCAR library directory. |
|
Comma-separated calc types forced to run serially (default covers
|
The corresponding dashboard_settings.json shape:
{
"solver": "rescu",
"solver_commands": {
"rescu": "/opt/esapp/rescu",
"vasp": "vasp_std",
"nanodcal": "/opt/nanodcal/bin/nanodcal"
}
}
1.6. Parallel execution
Control local and remote parallel launches (also set from the Web UI Settings panel), and mapped to Slurm resources for remote jobs.
Variable |
Purpose |
|---|---|
|
|
|
|
|
Custom launcher prefix, e.g. |
|
MPI rank count (also Slurm |
|
OpenMP/BLAS threads per rank (also Slurm |
|
Optional VASP INCAR parallelization overrides. |
1.7. Remote / HPC execution
Remote targets are defined in ~/.latticemind/remote_profiles.toml (see
Step 2 — Describe the target). These variables select and describe the active
target:
Variable |
Purpose |
|---|---|
|
|
|
Default remote profile name. |
|
Per-solver remote profile override (e.g.
|
|
|
|
Named runtime/deployment profile. |
|
Advisory deployment context used when planning run scripts and reports. |
|
File of advisory operator instructions (deployment context only). |
1.8. Documentation retrieval
The RESCU documentation is built in and works offline — no configuration required. Optional overrides:
Variable |
Purpose |
|---|---|
|
Read the RESCU docs from a different local folder. |
|
Set to |
|
Your vector store ID ( |
1.9. Structure sourcing
Variable |
Purpose |
|---|---|
|
Enables seeding structures from the Materials Project database. |
1.10. A complete .env example
# --- AI provider ---
RESCU_LLM_PROVIDER=openai
OPENAI_API_KEY=your_key_here
OPENAI_MODEL_QUICK=gpt-5.4-mini
OPENAI_MODEL_THOROUGH=gpt-5.4
# --- Output & reports ---
LATTICEMIND_ARTIFACTS_DIR=/data/latticemind_outputs
RESCU_REPORT_FORMAT=html
# --- RESCU solver ---
LATTICEMIND_RESCU_CMD=/opt/esapp/rescu
LATTICEMIND_LICENSE_FILE=/opt/licenses/rescu.lic
# --- NanoDCAL solver (when selected) ---
LATTICEMIND_NANODCAL_CMD=/opt/nanodcal/bin/nanodcal
LATTICEMIND_NANODCAL_DATA_PATH=/opt/nanodcal/NeutralAtomDatabase
# --- Optional: Materials Project structure sourcing ---
MATERIALS_PROJECT_API_KEY=your_key_here