DocsReference
Environment variables and files
The environment variables ModelDeck reads, what it keeps in its folder, its ports, and the logs to read when something goes wrong.
Most people never need anything on this page: the app's settings cover the common cases. It is here for scripts, for moving ModelDeck's data, and for finding the right log.
Environment variables
Set these before ModelDeck starts.
Folders
| Variable | Default | Meaning |
|---|---|---|
MODELDECK_HOME | ~/.modeldeck | The ModelDeck folder: settings, presets, chats, downloads and logs. |
MODELDECK_LIBRARY | <ModelDeck folder>/models | The default model folder. The Model folder setting replaces it once saved. |
MODELDECK_USER_DATA | Set by the system | Where the app keeps its window state. |
MODELDECK_MLX_VENV | ~/.modeldeck/mlx-venv | The MLX Python environment, on a Mac. It does not follow MODELDECK_HOME. |
Engine programs
| Variable | Meaning |
|---|---|
MODELDECK_LLAMA_SERVER | The llama-server to use for GGUF models, ahead of the included one and the one on your PATH. |
MODELDECK_LLAMA_BENCH | The llama-bench to use for the speed benchmark. |
MODELDECK_SPLASH_LIBEXEC | The Splash engine folder, on a Mac. |
MODELDECK_SPLASH_STORE | Where Splash keeps the models it installed itself, on a Mac. |
Coming in the next release
| Variable | Meaning |
|---|---|
MODELDECK_OPENVINO_LLAMA_SERVER | Your own OpenVINO build of llama-server, used for Intel NPU loads in place of the download. |
MODELDECK_HEXAGON_LLAMA_SERVER | A Hexagon build of llama-server that you built yourself. For developers only. |
Behavior
| Variable | Meaning |
|---|---|
MODELDECK_QUIT_ON_CLOSE | Closing the window quits ModelDeck. Without it, closing hides the window and ModelDeck keeps running. |
MODELDECK_TELEMETRY_URL | Set it to off to stop usage telemetry from being sent, whatever the setting says. |
MODELDECK_UPDATE_URL | The site ModelDeck asks for a newer version. |
MODELDECK_REGISTER_URL | The address registration is sent to. |
MODELDECK_LOG_STDOUT | Copies the ModelDeck log to the terminal. Headless mode sets it unless you pass --quiet. |
A name you will see in snippets
MODELDECK_API_KEY is not read by ModelDeck. It is the variable name that the app's snippets and the agent configs use for the local server's API key, so the key itself is never written into a snippet. Export it in your shell if you set a key in Settings > Local server.
What engines receive
Engines get a small, fixed set of variables from your environment: PATH, HOME, the Hugging Face cache variables, the locale and temporary-folder variables, and on Windows the graphics driver paths. Variables you add in a model's load settings are passed too, after ModelDeck has checked that none of them would expose the engine beyond this computer.
Files on disk
Everything is in the ModelDeck folder, ~/.modeldeck by default. On Windows that is C:\Users\<you>\.modeldeck.
Settings and state
| File | Holds |
|---|---|
config.json | Settings. |
presets.json | Saved load settings for each model. |
conversations.json | Chats. |
downloads.json | Downloads, so they can resume. |
providers.json, provider-keys.json | API providers, and their keys, encrypted with the system's secret store. |
test-suites.json, test-runs.json, benchmarks.json, decision-tasks.json | Tests, runs, benchmark results and saved decisions. |
engine-pins.json, upgrades.json | Engine update history, and what an Undo needs. |
telemetry.json | The random install ID and usage counts. Removed when you turn telemetry off. |
registration.json | The record number of your registration, not your details. |
Folders
| Folder | Holds |
|---|---|
models/ | The default model folder. Downloads go to models/<organization>/<repository>/. |
attachments/ | Files attached to chats. |
logs/ | Logs. See below. |
exports/ | Diagnostics bundles and log exports. |
updates/ | A downloaded ModelDeck update, before it is installed, on a Mac. |
mlx-venv/ | The MLX Python environment, on a Mac. |
Coming in the next release
| File or folder | Holds |
|---|---|
instance.lock | Which ModelDeck owns this folder: the app or headless mode. Removed on a clean exit. |
control-token | The secret the modeldeck command uses to talk to the owner. Only your user can read it. |
engines/gguf-openvino/ | The optional Intel NPU backend. |
cache/openvino/ | Models compiled for the Intel NPU. |
Logs
| File | Holds |
|---|---|
logs/app-YYYY-MM-DD.jsonl | The ModelDeck log. |
logs/requests-YYYY-MM-DD.jsonl | The request log. It never holds prompts or replies. |
logs/engines/<instance id>.log | Each engine's own output. Look here when a model will not start. |
Coming in the next release
logs/headless.log holds the output of headless ModelDeck when it runs as a launch agent on a Mac.
Keys, tokens, passwords and authorization headers are removed from every log before it is written. In the app, Server > Logs shows the same logs with search and export. Troubleshooting says how to export a diagnostics bundle.
Ports
| Port | Used for |
|---|---|
| 8099 | The local server. You can change it in Settings > Local server. |
| 8098 | The MCP server. |
| 8101 to 8199 | Engines, one port per loaded model. |
| 8000, 8001 | Never used by ModelDeck. They belong to other local services, such as Splash. |
Every one of them listens on 127.0.0.1 only, the address that only this computer can reach.
Start over
Quit ModelDeck and rename or delete the ModelDeck folder. ModelDeck starts fresh the next time. Move models/ out first if you want to keep your models.