Installation and usage
Installation
You need two tools on PATH:
On headless Linux, plotting also needs xvfb.
Install Makker as a uv tool. This puts a makker command on your
PATH that runs from any folder:
uv tool install makker
makker upgrade keeps it current (see Upgrading).
API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY) can go in
your environment or a .env, but you don't have to manage that file: run
makker key <provider> to set or replace a key (or just makker
key to see what's set), and the web UI and TUI prompt for a missing key on
their own. Local models through Ollama need no key.
makker doctor verifies the whole setup and prints a fix per finding.
Prefer a clone for working on Makker itself? See
development, where you run commands as uv run makker.
Workspaces
makker runs in the directory you invoke it from. That directory is the
workspace: the agent reads and writes files there, and the Julia environment
lives in .makker/julia-env/ inside it. Start it from a project folder.
Initialise once per folder, then start the agent there:
mkdir my-reservoir-study && cd my-reservoir-study
makker init --sim jutuldarcy
makker # the web UI, at http://127.0.0.1:8742
init writes .makker/config.toml, copies the simulator's Julia env
template, and precompiles by default: it instantiates the env and warms the
precompile caches, including the terminal and web plotting backends. The first
time can take a while (Julia compiles the simulator and the plotting stacks),
after which the first session in any interface starts in seconds. If Julia
cannot prepare that fast start-up on your machine, init says so; Makker works
as usual, but the first solve and the first plot of a session are slower.
Updating Julia may fix it. Useful variants:
makker init --sim jutuldarcy --no-precompile # quick bootstrap, bake later
makker init --sim jutuldarcy --source-path /path/to/JutulDarcy.jl
makker init --sim jutuldarcy --force # rebuild env from the template
--no-precompile skips the bake for a fast bootstrap — the first session then
builds what's missing (the ~minutes wait moves to first use). --source-path
dev-links the simulator to a local checkout the agent can read and edit at its
real path (a dev checkout, so it is writable, unlike a registry install in the
shared depot). In a managed env, the checkout's own [compat] then decides the
simulator and the packages it depends on, so a checkout ahead of the registry
can use a newer Jutul (see
trying a new simulator version).
--force rebuilds the env from the template, discarding packages added to it;
makker upgrade updates it in place instead (see Upgrading).
setup is an alias for init. If you skip init
entirely, the first run bootstraps the workspace and auto-detects the simulator
from a Project.toml when it can.
One simulator per workspace. Different simulators have incompatible Julia dependencies, so use a separate folder for each. Pointing an existing workspace at another simulator rebuilds the env from the new template on the next run, unless one builds on the other (Fimbul on JutulDarcy), which share an env. Packages added to the env in a session, another simulator's included, are kept.
Upgrading
Makker is actively developed, so keep it current:
makker upgrade # upgrade makker, then this folder's Julia environment
makker upgrade --check # just report what's installed, what's latest, and the folder's env
upgrade does the right thing for how you installed: a tool install runs
uv tool upgrade makker; a dev checkout is told to git pull && uv sync.
Then, run in a workspace, it brings that folder's Julia environment up to the
simulator versions the installed Makker supports, with the new Makker's own
Julia packages, and precompiles it, so the first session after the update
starts without that wait (--env-only does just this part).
On Windows the running executable can't replace itself, so the upgrade runs in
a new console window and Makker exits to release the file; reopen it when
that window finishes.
At launch, Makker also prints a one-line notice when a newer version is
available (a background check, cached for a day; it never delays startup), and
the web UI shows the Makker and simulator versions at the foot of the
sidebar. Turn the check off with MAKKER_NO_UPDATE_CHECK=1.
The web UI can do the same update without a terminal. When a release is out,
the foot of the sidebar says so; click it to update. Makker upgrades
itself, updates the folder's Julia environment, restarts, and the page reloads
into the new version. Open chats are closed for it (their conversations are
kept), and it waits while a session is starting or working. It only does this
when Makker runs on your own computer and was installed with uv tool
install. On Windows, where a running program can't replace its own files,
Makker closes and the update runs in a new console window. Makker
then keeps running in that window (Ctrl+C there stops it), and the window's
output is also saved in ~/.local/share/makker/update/update.log. If an
update fails, the page shows its output, also after it reloads into the
restarted Makker. An outdated Julia environment gets an "Update
environment" link in the same place, on every system.
An upgrade ships new simulator env templates, but existing workspace envs keep the packages they resolved. When a workspace's simulator is older than the installed Makker supports, launch refuses to start and, from a terminal, offers to update the env in place (the web UI offers it too). To do it yourself:
makker upgrade --env-only # in place, keeping packages added to the env
makker init --sim <name> --force # from scratch
If the folder starts from a system image, the update also has to rebuild it (about 20 minutes); from a terminal you can choose to stop using an image instead.
A simulator newer than the installed Makker was made for is not refused: it runs with a note at launch, since the bundled skills may not cover what changed. That is what a simulator developer trying an unreleased version gets, and an update never moves it back.
Adding folders
Add folders outside the workspace so the agent can use them with the same file tools:
makker --add-dir ../shared-data --add-dir ~/datasets/spe10
makker tui takes the same flag. During a session, /add-dir <path>
adds one immediately, in the web UI and the TUI; in the TUI, /add-dir alone
lists the folders added so far. The agent uses each at its real absolute path in
every tool: the file tools, run_julia, and execute. Added folders last
for the session and are not written to config.
Interfaces
With no command, makker starts the web UI (makker web is the
same). The terminal UI and headless runs have their own commands:
makker # web UI: chat with interactive plots and reports
makker tui # terminal UI
makker run "<prompt>" # one headless turn, then exit
All three are the same agent and session core, so a session started in one resumes in another. The web UI is covered in the web UI and the server interface; the terminal UI and headless runs are below.
The TUI
makker tui
The agent's work between two things it says folds into one line, such as "Read 4 files, ran Julia", marked when a step failed. Click the line for the steps, and a step for its code, diff and output. A plot or report gets a line of its own that opens the file. While the agent works, the line above the prompt says what it is doing and for how long, with the last lines a long step prints, and its plan shows above that.
| Command | Effect |
|---|---|
/model |
Open the model selector (or /model <provider:model>) |
/key |
Show provider key status (or /key <provider> to set or replace one) |
/approval-mode |
Set approval policy: ask, workspace, auto |
/add-dir <path> |
Add an extra folder |
/context |
Show context usage: tokens held vs the model's window |
/compact |
Summarize older turns to free context space |
/memory |
View workspace memory (/memory edit opens it in $EDITOR) |
/transcript |
Write the session transcript (add md for markdown) |
/copy |
Copy the last assistant message |
/clear |
Clear the visible log |
/help |
List commands |
/quit |
Exit |
| Key | Effect |
|---|---|
Ctrl+C |
Interrupt the running turn. With text selected, copy. Twice when idle, exit |
Ctrl+G |
Cancel the in-flight turn (resets Julia if needed) |
Ctrl+O |
Show every step and its full output, or fold them again |
Ctrl+L |
Clear the visible log |
Shift+Tab |
Cycle approval mode |
Ctrl+P / ↑ |
Previous history entry |
Approval modes: ask (default) prompts before shell commands, file edits and
deletes, workspace auto-allows file edits inside the workspace, auto allows
all side-effecting tools. A change applies from the agent's next tool call.
Resuming a session
The conversation survives the process: every session checkpoints its thread, so you can pick an earlier one back up. The web UI lists past sessions in its sidebar and reopens one where you left off. In the terminal:
makker tui --continue # reopen the most recent session
makker tui --resume # pick from a list of recent sessions
makker tui --resume 2026-06-12 # by id, or any unique prefix
makker sessions # list what's resumable
A resumed TUI replays the prior exchanges and the model continues with the
full conversation. Sessions are named by start time plus a short suffix
(2026-06-12-2315-3f2a), so listings sort chronologically; the first
prompt also titles the session, and its output folder under
makker-output/sessions/ carries that title as a slug.
One thing does not survive: the Julia REPL restarts with the process, so variables and loaded packages from earlier turns are gone (files and artifacts on disk remain). The agent is told this and re-runs setup it needs.
Headless turns
makker run takes a prompt, runs one turn, and exits:
makker run --approval-mode auto "Plot the voltage curve for the chen_2020 cell."
Headless mode cannot pause for approval, so use --approval-mode auto (the
run exits with an error if it would have needed to ask). --ephemeral-memory
gives the run a throwaway memory directory.
Transcripts
Every session appends an event log to
$XDG_DATA_HOME/makker/workspaces/<hash>/sessions/<id>/trace.sqlite:
prompts, responses, every tool call with arguments and output, artifacts,
token usage. Render one:
makker transcript # last session, HTML
makker transcript <id> # specific session
makker transcript --format markdown
makker transcript --bundle # zip with artifacts included
In the HTML transcript the agent's work between two things it says folds into one line, as in the web UI and the TUI; open it for each call with its arguments and output.
Models
Model ids are provider:model strings. Resolution precedence: --model
flag, workspace config, user config (Ctrl+A in the selector), the
MAKKER_MODEL environment variable, then the default.
/model opens the selector on a short list: pinned and recent models, the
newest of each provider you have a key for, and installed local models. Typing
searches every model, and anything init_chat_model supports can be typed as
provider:model. Switching mid-session keeps the conversation. Missing API keys are prompted
for and saved to a user-global .env (never to config files).
Local models (Ollama)
Pick an ollama: model in the selector. No key is needed. Your installed
models are on the short list; searching finds the recommended ones and Ollama
Cloud models, and the selector pulls anything missing. Requirements and caveats:
- The model must support tool calling (
ollama show <model>liststoolsunder Capabilities). Keep Ollama itself current: an outdated Ollama can fail to parse a new model's template and silently lose tool support. - The agent's prompt is large. A local model loads with the largest context
that stays on your GPU, up to what the model supports. Makker measures it
the first time you use the model on a machine, which makes that start a
few seconds longer. A model whose Modelfile sets
num_ctxloads at that size instead (see models).
Other providers
Add the provider's LangChain package to the tool install, then use its
provider:model id (replace the package placeholder below):
uv tool upgrade makker --with 'langchain-<provider>'
(From a dev checkout, use uv add 'langchain-<provider>' instead.) If the
package is missing, Makker names the exact one to install.
OpenAI, Anthropic, Google, OpenRouter, and Ollama are already bundled.
Troubleshooting
Start with the built-in check:
makker doctor
It verifies Julia is on PATH and 1.10+, the active model's key is set (or Ollama is running for a local model), which Julia project the workspace resolves to, that the simulator package is actually resolved in the env manifest, that a display (or xvfb) is available for plotting, and that Julia boots cleanly in the env. Each failure comes with a one-line fix.
Common cases:
- Workspace versus launch directory: the workspace is where you launch from,
not where you ran
init.cdthere or pass--workspace <path>. - A
Project.tomlat the workspace root takes precedence over.makker/julia-env/. If that root project lacks the simulator packages,using <Sim>fails even though Julia starts.doctorflags this. - "Julia failed to start before the kernel was ready": the Julia subprocess
crashed during startup. The message includes Julia's own error and the
path to
julia-startup.log. This is usually a stale env, rebuilt withinit --sim <name> --force. - Headless Linux without
xvfb: simulation works, plotting errors. Install it (sudo apt-get install -y xvfb).