All docs pages

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

VariableDefaultMeaning
MODELDECK_HOME~/.modeldeckThe ModelDeck folder: settings, presets, chats, downloads and logs.
MODELDECK_LIBRARY<ModelDeck folder>/modelsThe default model folder. The Model folder setting replaces it once saved.
MODELDECK_USER_DATASet by the systemWhere the app keeps its window state.
MODELDECK_MLX_VENV~/.modeldeck/mlx-venvThe MLX Python environment, on a Mac. It does not follow MODELDECK_HOME.

Engine programs

VariableMeaning
MODELDECK_LLAMA_SERVERThe llama-server to use for GGUF models, ahead of the included one and the one on your PATH.
MODELDECK_LLAMA_BENCHThe llama-bench to use for the speed benchmark.
MODELDECK_SPLASH_LIBEXECThe Splash engine folder, on a Mac.
MODELDECK_SPLASH_STOREWhere Splash keeps the models it installed itself, on a Mac.

Coming in the next release

VariableMeaning
MODELDECK_OPENVINO_LLAMA_SERVERYour own OpenVINO build of llama-server, used for Intel NPU loads in place of the download.
MODELDECK_HEXAGON_LLAMA_SERVERA Hexagon build of llama-server that you built yourself. For developers only.

Behavior

VariableMeaning
MODELDECK_QUIT_ON_CLOSEClosing the window quits ModelDeck. Without it, closing hides the window and ModelDeck keeps running.
MODELDECK_TELEMETRY_URLSet it to off to stop usage telemetry from being sent, whatever the setting says.
MODELDECK_UPDATE_URLThe site ModelDeck asks for a newer version.
MODELDECK_REGISTER_URLThe address registration is sent to.
MODELDECK_LOG_STDOUTCopies 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

FileHolds
config.jsonSettings.
presets.jsonSaved load settings for each model.
conversations.jsonChats.
downloads.jsonDownloads, so they can resume.
providers.json, provider-keys.jsonAPI providers, and their keys, encrypted with the system's secret store.
test-suites.json, test-runs.json, benchmarks.json, decision-tasks.jsonTests, runs, benchmark results and saved decisions.
engine-pins.json, upgrades.jsonEngine update history, and what an Undo needs.
telemetry.jsonThe random install ID and usage counts. Removed when you turn telemetry off.
registration.jsonThe record number of your registration, not your details.

Folders

FolderHolds
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 folderHolds
instance.lockWhich ModelDeck owns this folder: the app or headless mode. Removed on a clean exit.
control-tokenThe 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

FileHolds
logs/app-YYYY-MM-DD.jsonlThe ModelDeck log.
logs/requests-YYYY-MM-DD.jsonlThe request log. It never holds prompts or replies.
logs/engines/<instance id>.logEach 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

PortUsed for
8099The local server. You can change it in Settings > Local server.
8098The MCP server.
8101 to 8199Engines, one port per loaded model.
8000, 8001Never 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.

These docs describe ModelDeck as of app commit 7d38f80, checked 2026-12-03. Features merged after the latest release are marked Coming in the next release.