Skip to content

Settings ​

golem works with no settings at all. When you want to change something, it is one file: ~/.golem/config.toml. Most changes take effect without a restart.

Where settings come from ​

PlaceWhat it can set
~/.golem/config.tomlEverything on this page. Under GOLEM_HOME, the file is $GOLEM_HOME/config.toml
GOLEM_… environment variablesThe top-level keys, such as GOLEM_LOG_LEVEL and GOLEM_SESSION_TITLES. They win over the file
A project's .golem/policy.tomlTool rules for chats in that folder (Tools and permissions)
A project's .golem/config.tomlOnly [mcp.<name>] servers for chats in that folder, and only when the folder is in trusted_projects (MCP servers)

A project's allow rules count only when the folder is in trusted_projects. Its ask and deny rules always apply. So a repository you clone can make golem more careful, but never less.

Environment variables are read from the daemon's environment, not your shell's. A daemon that launchd started doesn't see what you export in a terminal.

Edit the file ​

In the web UI, Settings → Config file (or /config) shows config.toml as text, in colour, with line numbers. This project switches to that folder's .golem/config.toml when you opened Settings from a chat. As you type, the daemon checks the text and lists each problem with its line, and a line with a problem is marked. Review changes shows what changes, line by line, and Save writes the file. After a save the page says when each changed part takes effect, as in the table above: [[rule]] at the next tool call, for example. A setting that is read only when the daemon starts says so, with golem daemon restart to copy.

The page remembers the file by what it holds, not by its modification time, so a file that nobody changed never counts as changed. If the file really changed on disk after you opened it, nothing is written and the page says so, with three choices: Reload takes the file as it is now into the box and keeps your text below it, to compare (with Use my text again); Save anyway shows what your text changes in the file as it is now, and saves over it; Discard drops your text and takes the file as it is now. Review changes is never off without a reason beside it: the line under the box says whether there are no changes, a check is running, there are problems, or the file changed. Closing the tab, reloading the page, switching between your file and the project's, or going to another page of the app with unsaved text asks once before the text is lost.

The page cannot change a few sections: providers, the model keys, trusted_projects, shell, web, skills.extra_dirs, and skills.claude_dirs. A change inside one is a problem, and the file is left as it was. Edit those in a terminal with golem config edit.

See what is in effect ​

sh
golem config show

It prints the file it read, the default model, the log level, whether chats get titles, the trusted projects, and the project policy for the folder you are in. Then it lists the tool rules in the order they are checked. In the TUI, /permissions shows the same rules and lets you change them.

When a change takes effect ​

SettingsTakes effect
default_model, [models.*], [providers.*]When the file changes, at the next model call
[[rule]], trusted_projects, [shell], [web], [permissions]When the file changes, at the next tool call
[skills]When the file changes
[mcp.*]When the file changes. golem starts, stops, or restarts the servers that changed
log_level, session_titles, [ollama]When the daemon starts. Run golem daemon restart

A file that no longer validates keeps the last good models and rules, and the daemon logs why. A project's policy.toml that doesn't validate makes every tool call in that folder ask, so a broken deny never turns into an allow.

What golem writes for you ​

Some answers in the TUI and the web UI edit config.toml for you. golem keeps your comments and layout, and writes the file in one step so it is never half written.

  • d in the /model picker sets default_model.
  • w on an approval adds a [[rule]] that allows exactly that call.
  • /permissions changes or removes a rule.
  • /mcp turns a server on or off with enabled.
  • /mcp add and golem mcp add add a [mcp.<name>] table, and golem mcp remove deletes one.
  • Settings → Routing in the web UI changes the routing and budget keys, and Settings → Context changes the context keys.
  • Settings › Chat and Settings › Models in the web UI set default_model (Change… on the Default model line, or Make default in a model's ⋯ menu), and so does Change… on the Model row of Settings › Info.
  • Settings › Chat in the web UI changes [chat] and the default [permissions] mode, and Settings › Models changes [model_menu] starred and [ollama] (the web page).

The web page has two forms. Settings → Routing has [routing], [routing.ladder], [routing.roles] and [budget]. Settings → Context has [context] (the web page). They write the same keys, and a key set back to its default is removed from the file.

Secrets stay out of the file ​

A key named like a secret, such as api_key, token, or password, is refused, and the file doesn't load. Keys go in the macOS Keychain instead: /login in the TUI, or golem auth set <provider>. A provider's api_key_env names an environment variable to read first. An MCP server's env or headers names a stored secret as secret:mcp/<name>. Settings › Models shows where each provider's key is and the command to set it, but never takes a key. Settings › MCP servers does take an MCP token: it tests the token against the server, then stores it in the Keychain (tokens in the web UI).

Secrets without a Keychain ​

secret:<name> and keychain:<name> mean the same in settings, and both keep working. golem writes keychain: in a personal-mode file as before, and docs use secret:.

Where there is no Keychain, such as a Linux server, golem reads secrets from files and variables, and never writes them. Serve mode always does this. In personal mode, set GOLEM_SECRETS=env to do the same. A secret named mcp/github is looked up in this order:

  1. The file $GOLEM_SECRETS_DIR/mcp_github (the folder is /run/secrets unless set). The file name is the secret name in lower case with every character outside a-z and 0-9 made _. One trailing newline is dropped. A file that is unreadable, or whose link leads outside the folder, is skipped.
  2. The variable GOLEM_SECRET_MCP_GITHUB: the name in upper case, with every other character made _.

Setting or deleting a secret in this store fails and says so. golem doctor lists each secret the settings name and where it came from (file, variable, Keychain or missing), never its value.

An example ​

toml
default_model = "fast"
session_titles = true

[models.fast]
model = "ollama/qwen3.5:4b"
ctx = 16384

[models.smart]
model = "anthropic/<model-id>"

[[rule]]
tool = "shell"
match = "git status|git diff*"
action = "allow"

[[rule]]
tool = "write_file"
path = "~/notes/**"
action = "allow"

trusted_projects = ["~/repos/golem"]

[shell]
writable = ["~/scratch"]
timeout_seconds = 300

[skills]
disabled = ["pdf"]

[mcp.git]
command = "uvx"
args = ["mcp-server-git", "--repository", "/path/to/your/repo"]

Every key ​

The top level ​

KeyDefaultMeaning
modepersonalpersonal or serve. A serve golem has no shell or file-write tools, read-only settings, and no Keychain, local model server, relay or scheduler (the table). Environment: GOLEM_MODE
default_modelnoneA profile name or a provider/model ref. New chats store it as their model. With none, sending a message fails with no model chosen yet. Environment: GOLEM_DEFAULT_MODEL
log_levelINFODEBUG, INFO, WARNING, or ERROR. Each record goes to stderr as a short line and to ~/.golem/logs/golem.jsonl as JSON. Environment: GOLEM_LOG_LEVEL
session_titlestrueName each chat after its first completed answer, with one extra model call. Environment: GOLEM_SESSION_TITLES
trusted_projectsnoneFolders whose .golem/policy.toml may allow tools, and whose .golem/config.toml may add MCP servers

[models.<name>] ​

A profile: a short name for a model.

KeyDefaultMeaning
modelrequiredA provider/model ref, such as ollama/qwen3.5:4b
ctxnoneThe context window. The ollama provider sends it as num_ctx
pricediscovered{ input = 3.0, output = 15.0, cached_input = 0.3 }, in USD per million tokens. Overrides the price golem found

[providers.<name>] ​

The providers are openai, anthropic, google, deepseek, xai, moonshot, and ollama (Ollama's own API). A table with one of those names changes only the keys it sets. Any other name is an error that lists them.

KeyDefaultMeaning
kindopenai_compat for a new nameanthropic, openai, google, xai, ollama, or openai_compat
base_urlthe preset'sWhere the API answers, such as http://127.0.0.1:1234/v1
api_key_envthe preset's, such as ANTHROPIC_API_KEYThe environment variable read before the Keychain

[ollama] ​

KeyDefaultMeaning
starttrueRun ollama serve when a local model is needed and nothing answers
idle_stop_minutes30Stop a server golem started after this long unused. 0 never stops it
parallel1How many generations golem sends to a local server at once (1 to 8). Raise it only if you also set OLLAMA_NUM_PARALLEL

[context] ​

Settings → Context in the web UI changes these keys. window and keep_alive are for Ollama only. The shares, the reply reserve and the keep counts apply to every model with a known window, hosted ones too, and the shares are of the window less the reply reserve.

KeyDefaultMeaning
window"auto"The context window golem asks Ollama for. "auto" plans one from the model's size and maximum and this Mac's memory. "ollama" sends none, so Ollama uses its own default. A number from 512 to 262144 is used as it is, and cut to the model's maximum when that is known. A num_ctx you set for a model, a profile's ctx, or a chat's option always wins
keep_alive"30m"How long Ollama keeps the model loaded after a call. golem sends it only with a window it planned, and never over a keep_alive you set. Leave it out to send none
reply_reserve4096Tokens of the window kept free for the reply. The rest is the room the history may fill
clear_at0.70When the history passes this share of the room, golem sends old tool results as one line each
clear_to0.40How far clearing goes down, as a share of the room. Must be above 0 and below clear_at
compact_at0.85When the history is still past this share of the room after clearing, golem replaces the old turns with a summary in what it sends. Must be above clear_at and below 1
keep_results4The newest tool results that are kept when clearing can reach clear_to without them. When it cannot, golem clears down to the current tool round in one step, so the next calls send the same prefix. A model whose window is unknown is never cleared
keep_turns4The newest turns that are never summarised. At least 1

[routing] ​

KeyDefaultMeaning
mode"pinned"How a chat picks its model. pinned uses the model the chat names. local uses only models on this Mac. auto picks the cheapest model that fits the call
paid"ask"When auto wants a paid model: ask asks once per chat, always_ask asks every time, never never uses one
local_only[]Folders whose chats stay on this Mac, and the folders inside them. Only local models read the chat there: no hosted model is picked, called, or used for a title or summary. In a project's .golem/config.toml it is true instead of a list, and makes that project's folder local only. See Keep a folder on this Mac. Web tools and MCP servers are not blocked
budget_max_price1.50The most a hosted model may cost, in USD per million tokens, to be in the budget tier. The price is blended as (3 × input + output) / 4. A model above it, or with no known price, is frontier. Ollama models are local

[routing.ladder] ​

The model to use in each tier when mode is auto. A value is a profile name or a provider/model ref. Left out, golem chooses: for local the chat's own model if it is local, else the ready local model with the largest window; for budget the cheapest ready budget model that takes tools; for frontier none.

KeyDefaultMeaning
localnoneThe model of the local tier
budgetnoneThe model of the budget tier
frontiernoneThe model of the frontier tier

[budget] ​

Caps on what paid models may cost.

KeyDefaultMeaning
daily_usdnoneThe most paid models may cost in one day, in USD. None means no cap
session_usdnoneThe most paid models may cost in one chat, in USD. None means no cap
over"local"What to do at a cap: local goes on with a local model, ask asks you

The spend is what the model_calls table holds for paid models: chat calls, titles and summaries. "Today" is your local day. At a cap, a chat that picks its model (auto) runs a local one, and its model chip says the daily budget is spent or the session budget is spent. A chat pinned to a paid model is refused with budget_spent and a message that names the cap and the amount. A run already going stops before its next paid call. A local model is never stopped by a cap, and a title or summary that would use a paid model is skipped.

A cap is checked before a call, and a call costs what it costs only when it ends. So one call can pass a cap by its own cost. Golem does not guess the cost of the next call to block it. With over = "ask", a chat on auto that would use a paid model over a spent cap asks first, and only "Just this once" and "Stay local" are offered. A chat pinned to a paid model is refused in both cases.

[notifications] ​

What tells you, and where a notification lands. Settings › Notifications in the web page sets the same keys.

KeyDefaultMeaning
needs_youtrueAn approval or a question is waiting in a session nobody watches. It cannot be turned off: false is a config error that names the line
failedtrueA run of a session nobody watches stopped with an error
finishedfalseA run of a session nobody watches finished
open_in"web"web opens the web page on the session. terminal opens the chat in the terminal. With web, a Mac that has no web service (golem web install) opens the terminal instead
terminal_app"Terminal"The app terminal opens in: "Terminal", "iTerm" or "Ghostty". Any other name is a config error that names the line. golem keeps it for the helper app that will open a click; nothing uses it yet

A [[routine]] can override failed and finished for its own runs with notify_failed and notify_finished. A routine that sets notify_finished = true tells you when it is done even with finished = false, and notify_failed = false silences its failures. There is no override for needs_you.

The banner golem posts today is a plain macOS notification, and macOS gives it to Script Editor: clicking it does not open golem. So the banner ends with the command that does. Run it in any terminal:

golem open <id>

It opens the chat on that session, with a waiting approval on screen. golem open <id> --notified picks the place from open_in, as a click will once golem posts its own notifications (a small signed helper app is planned for that). golem open <id> --web always opens the page.

[agents.explorer] ​

What bounds the helper that the delegate tool starts. A helper only reads: it never writes, runs a command or asks for approval.

KeyDefaultMeaning
max_calls15Model calls before the helper must answer. 1 to 50
timeout_seconds300Wall time of one helper
answer_chars6000The most characters its answer may have. The rest is cut
max_per_turn3The most helpers one run may start. A further delegate call gets an error the model reads: no more helpers in this turn; continue with what you have

[agents.explorer] also takes every key of [agents.<name>] below. timeout_seconds is the old name of working_seconds and max_per_turn the old name of [agents] max_per_batch: an old config keeps working, and giving an old name and the new one different values is an error. The old keys win over the explorer's file only when you write them.

[agents.<name>] takes more keys for each bundled type (explorer, worker, reviewer, advisor): model, a wish (cheapest, same, stronger, local, budget, frontier) or a model name, and the limits of one helper of that type: max_calls (1 or more), working_seconds (1 or more), max_cost (US dollars, 0 or more) and max_tokens (1 or more). They replace the same limits in the bundled file; the prompt and the tools stay the bundled ones. Changing a wish in Settings or /agents writes it. A file of the same name in ~/.golem/agents wins over both.

The daemon also writes your own agent files, and only in ~/.golem/agents. agents.save saves the whole text of a file, and only when the agent parser finds nothing wrong: otherwise nothing is written and the problems come back, each with its line when it is about a frontmatter key. The name inside the file decides the file name, a changed name renames the file, and a name another file of yours has is refused. agents.copy copies a bundled agent there unchanged, and agents.delete removes your file, which brings the bundled agent of that name back. Bundled and project agents cannot be deleted. agents.set_limits sets or clears the limits of one agent type: for a built-in type it writes [agents.<name>] in config.toml (the explorer's old timeout_seconds is replaced by working_seconds), for one of your own files it rewrites the max-calls, max-seconds, max-cost-usd and max-tokens lines of the front matter and leaves the rest of the file as it is. A project agent is read-only there. A wrong value is refused and nothing is written. agents.set_default_limits does the same for the limits in [agents], and agents.keep shows them. agents.list and agents.get show the limits a helper of each type runs with now, and which of them [agents.<name>] sets. A name with a /, a .., a leading dot or anything but lowercase letters, digits and single hyphens is refused. No restart is needed: the next helper reads the new file.

A helper also stops when its calls have taken in more than 8 times its model's window in all (tokens), or when a cap in [budget] is spent before one of its paid calls (budget). It then returns what it has, and the result starts with explorer finished: <reason>. Its calls count against the same caps as the chat's, and golem cost and Settings → Usage list them as helper under "by job".

[agents] ​

How long a finished helper keeps its steps. After that only a receipt stays: its brief, its answer and its end. Its cost and usage totals, its runs and its artifacts do not change, and nothing in the lead's chat changes.

KeyDefaultMeaning
keep_days7Days a finished helper keeps its steps, counted from the end of its last run, not from when you opened it. 0 keeps them for ever. A helper whose steps were removed cannot be continued as a chat
keep_problem_days30The same for a helper that failed, was cancelled or asked you something (an approval or the paid question). 0 keeps them for ever
max_calls, working_seconds, max_cost, max_tokensnot setThe limits of one helper of every type, when neither its own [agents.<name>] table nor its agent file sets them. The order is [agents.<name>], the agent file, [agents], then the built-in default (15 calls; no other limit). working_seconds does not count the time a helper waits
use_helperswhen_needed"Use helpers": when_needed (the model starts a helper only for a reason, with no question), ask (every delegate call waits for your yes or no first; a no tells the model to do the work in the chat) or never (the model is not offered delegate). A change applies to the next message, with no restart
at_once3How many of a lead's helpers run at once. 1 to 16. A helper that finds all turns taken waits queued with the reason team and starts when one ends (a helper that waits for your answer holds no turn). A model's own slots are a separate limit (Helpers)
max_per_batch3How many helpers one message of the lead may start. 1 to 20. [agents.explorer] max_per_turn is its old name. It sets the cap that delegate already has
per_message_cost1.0The US dollars you allow per message for all helpers. The estimate card shows it next to the estimate. It does not stop a helper by itself: use the helper limits and [budget] for that
estimate_over0.25A batch on a paid model estimated above this many US dollars shows the estimate card and asks you first, whatever use_helpers says. A batch of local helpers never asks

Settings › Agents has three tabs: Agents, Rules and Measure (see Helpers and Measure). The Rules tab has "Use helpers", the three reasons with the four numbers of [agents.delegate], the limits for every helper and "Finished helpers"; Measure measures those numbers on this Mac. The Agents tab is a list of the agents on the left and the chosen one on the right. On a narrow window it is one column, and a row opens in place. Each agent is a Markdown file. The Overview tab shows the model it uses now and why (the wish is a dropdown that saves at once), the tools it can use with the ones that change things marked, its limits (tool calls, time, cost, tokens, answer length, and whether it may ask you a question), its prompt, and how often it ran in the last 30 days. The Definition tab shows the file itself with its path, the settings at the top tinted, and Copy text. A file that comes with golem says it is read-only. An agent that cannot be started yet shows "not yet" and the reason, and an agent whose file has a problem shows the problem. A project agent in a folder that is not trusted is not listed, and a line says to trust the folder. To change the limits of a type, press Edit in its Limits box: tool calls, working time in seconds, cost in US dollars and tokens are boxes, and an empty box means no limit of your own, so the next place applies again (the agent file, then the limits for every helper, then the default of 15 tool calls). A limit that config.toml sets says so under its value. The Limits for every helper box under the list sets the limits for a type that sets none of its own. A project agent is read-only here.

You make, change and delete your own agents on that page. + New agent (above the list) opens the Definition tab with a template in a text box and a "new agent · not saved yet" row; Save writes ~/.golem/agents/<name>.md and chooses the new agent. On a file that comes with golem, Make my own copy copies it; the copy is marked "yours", says it replaces the bundled one, and can be edited. On your own agent, Edit puts the file in a text box with Save and Cancel. When the text has a mistake nothing is written: the text stays and the page says "Not saved." with each problem and its line. Delete asks once, in place; for a copy it says the bundled agent comes back. Changing the model on your own agent rewrites the model: line of its file; on a bundled agent it is still the override in config.toml. Choosing another agent or tab, or + New agent, while the text box holds unsaved changes asks "Discard changes?" first. Project agents are shown but not edited here. Opening the file in your editor is not on the page yet.

The bottom of the page has a "Finished helpers" line for both keys, each with a "for ever" choice that writes 0, and /agents shows the two values on one line. A change there is written to config.toml with its comments kept. The terminal does not edit them.

A value below 0 is a config error that names the line. A helper that is running or waiting is never trimmed, and neither is one whose lead is waiting for its helpers. golem checks when it starts and then once an hour, and a change in config.toml applies to the next check without a restart.

[agents.delegate] ​

The four numbers behind the reasons for a helper. They shape what golem suggests to the model; they do not decide whether a helper may run ("Use helpers" does). Each is a share of the window or a price ratio, so one value fits a small and a large window. The defaults are a first guess. Settings › Agents › Measure (or golem eval helpers) measures them on this Mac and writes the result here with Use these numbers. See Helpers and Measure.

KeyDefaultMeaning
read_share0.3A job that reads more than this share of the window crowds out the task. Above 0, at most 1
fill_share0.85The share of the window the chat would reach with the reading added. Past it the reading does not fit. Above 0, at most 1
job_share0.1The least a job reads, as a share of the window, to be worth its own helper. Above 0, at most 1
price_ratio3.0How many times dearer your model must be than the helper's before a large read moves there. Above 1
work_window128000The shares above are shares of this many tokens of the window, not of all of it. A smaller window counts in full. 0 turns it off, so the shares are of the whole window. At least 0

[routing.roles] ​

The model for each internal job. A value is "session", a profile name, or a provider/model ref.

KeyDefaultMeaning
titles"session"The model that names a chat after its first run
summarise"session"The model that summarises
explore"session"The model that explores

"session" on a local chat uses the chat's own model with the chat's own options, so Ollama does not reload it. On a hosted chat it uses the cheapest ready budget model that takes tools, and the chat's own model when there is none. A model that is not ready is never downloaded for a role.

[[rule]] ​

One tool rule. The first rule that matches a call decides it (Tools and permissions).

KeyDefaultMeaning
tool*A glob on the tool name, such as shell or mcp__git__*
matchnoneA glob on the call's subject, such as a shell command or a search pattern, with | between alternatives
pathnoneA glob on the path the call touches. * stays in one folder, ** crosses folders, ~ is your home, and a relative glob starts at the chat's folder
actionrequiredallow, ask, or deny

[chat] ​

The defaults for every new chat. A chat that is already open keeps what it has.

KeyDefaultMeaning
instructions[]Your lines on how golem should answer, such as "Keep answers short" or "Explain it plainly". At most 30 lines, each 1 to 300 characters after trimming. Blank lines are dropped. The model reads them on every call, so a change shows on the next call with no restart. A helper chat does not get them
plan_firstfalseWhether a new chat starts in plan first. A chat that sets plan first itself wins
max_model_calls25The most model calls one message may make (5 to 200). With 3 calls left the model is told to finish, and the last call is made without tools, so the run ends with an answer and a line saying it stopped at the limit. Read on every message, so a change needs no restart. A helper keeps the max_calls of its agent type

Settings › Chat in the web UI writes these keys (the web page). chat.get and chat.set read and write these keys for the web page. chat.get also returns mode, which is [permissions] mode and is read only there.

[model_menu] ​

The models you starred. The composer's model menu lists them, plus the default model and the chat's own model. Show all lists every model.

KeyDefaultMeaning
starredunsetA list of provider/model refs. While it is unset, the menu shows the hosted models golem curates that your keys can call, and the local models you have installed. The first star or unstar writes the whole list. A ref no provider lists can be starred too: it shows as not ready

model.star writes this key for the web page and the terminal.

[permissions] ​

Only your own file sets this. A chat can use another mode for itself.

KeyDefaultMeaning
mode"balanced"How much the built-in defaults allow without asking: careful, balanced, or autopilot. See permission modes

[shell] ​

Only your own file sets these. A project can't widen them.

KeyDefaultMeaning
networkfalseLet commands use the network
writablenoneMore folders commands may write to, beside the chat's folder
timeout_seconds120The longest a command runs, up to 3600

[coding] ​

Only your own file sets these.

KeyDefaultMeaning
checks"ask"Whether golem runs checks after it changed files: ask, auto, or off
fix_rounds2How many times golem may fix what a check found, up to 5

After a turn in which the model wrote a file, edited a file, or ran a shell command that succeeded, golem runs the checks one by one in the shell sandbox, with your [shell] settings, and shows each as it starts and ends. With ask, it offers them once in a session and runs nothing until you say yes. In autopilot mode ask runs them without asking. auto runs them unless you said no in that session. A failed check is shown to you only, and is not yet given to the model.

Each [[coding.check]] is one command. With none, golem looks at the project's own files: a lint recipe in a justfile, a lint or typecheck script in package.json, a ruff setup, Cargo.toml, or go.mod. Tests are never detected. Add them yourself.

KeyDefaultMeaning
namerequiredA short name, up to 40 characters
commandrequiredThe command to run in the project's folder
timeout_seconds120The longest it runs, up to 1800
toml
[coding]
checks = "auto"
fix_rounds = 3

[[coding.check]]
name = "tests"
command = "uv run pytest -q"
timeout_seconds = 300

[web] ​

Only your own file sets these.

KeyDefaultMeaning
allow_privatefalseLet web_fetch reach loopback, private, and link-local addresses
max_bytes5000000The most of a page it reads, up to 50 000 000
timeout_seconds20The longest one fetch or search takes, up to 300
search"duckduckgo"Who web_search asks. "off" leaves the tool out

A redirect to another host is not followed. The model gets the new URL and asks again.

web_search sends the query to DuckDuckGo, a third party, and needs no key or account. Searches start at least 5 seconds apart. DuckDuckGo may still refuse a burst, and the model is then told to wait a minute. Restart the daemon after you change search.

[serve] ​

For golem serve (ADR-064). Only your own file sets these.

KeyDefaultMeaning
drain_seconds25After SIGTERM, how long open requests and streams may finish before golem stops. 0 to 3600
ask"deny"Who answers an ask: "deny" (nobody, at once) or "app" (the app's own user). "owner" is not in version 1, and golem serve check refuses it
keep_events_days30How long the stored events of a run that has ended are kept in full. After that the daemon trims the run to its end events, and a caller that asks for older ones gets 410 events_expired (the API). 0 keeps them for ever. 0 to 36500
keep_days0Days a run that has ended is kept, and what belongs to it (its events, reviews, webhook deliveries, idempotency records, output files and sessions), and app chats last used that long ago. A daily sweep removes older ones (the API). 0 keeps them for ever. 0 to 36500. keep_events_days may not be longer; golem serve check says so
metricsfalsetrue turns on GET /metrics in the serve listener, for Prometheus. It needs a key of the app (Watching a served golem)

The whole folder is described on What goes in /app.

[serve.limits] ​

What one key and one user of the app may use (Serve API). Only your own file sets these, and personal mode ignores the table. A caller over a limit gets 429 with Retry-After. Counts must be above 0, and so must a money limit; golem serve check reports a value that makes no sense.

KeyDefaultMeaning
requests_per_minute600Requests one key may make in a minute. Kept by the gateway, in memory, for one replica. /healthz and /readyz are not counted
streams_at_once64Event streams and streamed chats one key may hold open. Kept by the gateway
runs_at_once4Runs and chat turns of one user that are executing now. A run that waits for a review does not count. Kept by the daemon, so a second gateway or a retry storm cannot pass it
runs_at_once_total32The same, for the whole deployment. Must not be below runs_at_once
user_usd_per_daynoneMost one user may cost in a UTC day. Unset means no limit. Must not be above key_usd_per_day
key_usd_per_daynoneMost everything started through one key may cost in a UTC day. Unset means no limit

[serve.webhooks] ​

Where golem tells the app that a run ended or needs an answer (Webhooks). Only your own file sets these, and personal mode ignores the table. Leave it out and nothing is sent.

KeyDefaultMeaning
urlnone, requiredThe receiver. It must be https. Plain http is allowed only for localhost, an address on a private network, and a private name (no dot, or ending in .local or .internal); golem serve check warns about it. No user name or password in it
secretnone, requiredThe signing secret as secret:webhook/<name>. Its value is whsec_ and base64. Read from the file $GOLEM_SECRETS_DIR/webhook_<name> or the variable GOLEM_SECRET_WEBHOOK_<NAME>
eventsall fourThe events to send, from run.completed, run.failed, run.canceled and run.input_required. An unknown name is refused by golem serve check

[skills] ​

Only your own file sets these (Skills).

KeyDefaultMeaning
disablednoneSkill names that are listed but never used
claude_dirstrueAlso read ~/.claude/skills and the project's .claude/skills
extra_dirsnoneMore folders of skills, after your own
index_budget4000How many characters the skill index in the system prompt may use. A skill that does not fit is left out of it, and skill.list shows indexed: false

[memory] ​

Only your own file sets these, and Settings › Memory writes the three privacy keys. A project's .golem/config.toml may set only private = true, which makes that project's notes local models only (Memory).

KeyDefaultMeaning
enabledtruefalse turns memory off: no file is opened, nothing is added to the prompt, and the model has no recall or remember
you, projects, history"chat"The privacy of a scope. "chat" lets a note go where the chat goes. "local" keeps every note of that scope on local models
auto_keepnoneFolders where a note with sources would be kept without asking. No effect yet, and the web page cannot change it
share, min_tokens, max_tokens, helper_share0.02, 200, 1500, 0.01The size of the memory block. No effect yet: the block is capped at 1500 characters

[mcp.<name>] ​

One MCP server (MCP servers). The name may use letters, digits, and -, up to 32 characters.

KeyDefaultMeaning
commandnoneA server golem starts, talking over stdin and stdout
args, env, cwdnoneIts arguments, environment, and folder
urlnoneA server golem reaches over HTTP, instead of command
headersnoneHTTP headers for a url server
enabledtruetrue, "on_demand" (only for chats that run /mcp enable), or false to keep the settings without starting it
timeout_seconds120The longest one tool call takes, up to 3600

A value in env or headers may name secret:mcp/<name>, and a key that looks like a secret must.

[data] and [data.<name>] ​

How to use data sources is in Data. [data] holds the limits of the data engine: query_timeout_seconds (15), max_rows (10000), worker_memory ("2GB"), threads (4) and max_download ("2GB", the most one web source may download). Each sub-table is one source: a named, read-only view of a file, a folder of files, or a database. The name uses letters, digits and _, starts with a letter, and is not golem, which is the built-in source of your own usage and runs. Your own file and a trusted project's .golem/config.toml may hold sources; a project source replaces yours of the same name in that folder. An untrusted project's sources are listed and never opened. The page cannot change them.

A source with an https:// address in url is a data file on the web (CSV, TSV, Parquet or JSON, or a .gz or .zip of one such file). golem downloads it itself, under the rules of web_fetch: https only, no private or local address unless [web] allow_private is on, a redirect only on the same host, and at most max_download. The copy is kept in ~/.golem/data/downloads/<name>/ and the data engine reads that copy; it never goes on the network. refresh = "daily" or "weekly" downloads it again on its own, and a file that has not changed is not fetched twice. A refresh that fails keeps the last copy and says so on the source.

A Postgres or MySQL source is read live and read-only: golem opens the connection in a read-only transaction with a time limit, keeps no rows, and a query result is kept as a file like any other. A project's database source keeps its password in your Keychain, never in the project.

KeyDefaultMeaning
pathnoneA file, a folder or a glob. Use this or url
urlnoneAn https:// address of a data file, or a database address such as postgres://golem_ro@localhost:5432/shop_dev or mysql://golem_ro@db.example.com/shop. It never holds a password: one in the address makes the source invalid. ?sslmode= (Postgres) or ?ssl_mode= (MySQL) sets encryption
kindfrom the pathfiles, sqlite, duckdb, postgres, mysql or url
privacy"local""open": any model reads rows. "local": only a local model does. "schema": models read names and types only
watchfalseNotice when files appear in the folder
refreshnoneFor an https url: "daily" or "weekly". Left out, it is downloaded again only when you press Refresh or run golem data refresh <name>
snapshotfalseFor a Postgres or MySQL source: read the Parquet copies of its tables (taken under Settings, Snapshot, or with golem data snapshot) instead of the server. Tables that are not in the snapshot are still read live. The files are in ~/.golem/data/snapshots/<name>/, are never larger than max_download, and are deleted with the source. refresh = "daily" or "weekly" takes the snapshot again on its own
passwordnoneOnly secret:data/<name>, with the source's own name. The add dialog and golem data add store the password in the macOS Keychain under that name
timeout_s15For a database: seconds a query may run on the server before it is cut
tablesnone{ include = [...], exclude = [...] }: the tables the lists show

Older keys ​

model_profile, model_provider, model_name, and model_base_url are the settings from before profiles. They still load, as one profile named after model_profile (remote when unset), so older chats keep working. Use default_model and [models.<name>] instead.