Reference·ConfigIndex

Config

The config file, how to change it, and every core key with type and default.

.mdllms.txt

File

FactValue
Path~/.nodecode/config.jsonc
FormatJSONC: JSON with comments.
ScopeOne per home. The home is ~/.nodecode/, or a profile's folder.
Missing fileAllowed. Every key has a default or is optional.
Dotted namesThese pages name a nested key with dots: goal.check_seconds is "goal": {"check_seconds": 600} in the file. A top-level key with a dot in it is read by nothing. When cells start, a notice names it with the nesting it meant, and /doctor lists it.

The other files of the home are listed in Files.

Change it

Edit the file, or use eval. See Eval.

(config-get '("channels" "discord"))
(config-set '("channels" "discord") '(:require_mention :false))
(config-set '("providers" "old") :remove)
FormDoes
(config-get)Returns the whole config.
(config-get PATH)Returns the value at PATH. PATH is a list of keys, or one key. A dot does not nest: "goal.check_seconds" is refused, and the path is '("goal" "check_seconds").
(config-set PATH VALUE)Writes VALUE at PATH. Returns the change as one line.
(config-set PATH :remove)Removes the member at PATH.
RuleDetail
Valuest, :false, :null, a string, a number, a keyword plist for an object, a list or vector for an array. nil is refused: #() is an empty array.
CommentsKept. Every other byte of the file is kept too.
Object valueMerged member by member. It never removes a member.
Other valueReplaces the member.
WriteAtomic. The file mode is kept.
Secrets on readA key ending in api_key, token, secret or password reads as [set].
Secrets on writeconfig-set refuses to write [set] over a secret.
Whole sectionA section read with secrets cannot be written back whole. Write single members.

Apply a change

KeysReadApply with
Cell sectionsWhen the cell starts.(restart-cells) or (restart-cells "NAME") in eval.
providers, failoverAt the start of each turn, when the file changed.The next turn.
fork.secondsAt each (fork ...) call.The next call.
general.default_model, general.auxiliary_modelWhen the organism boots. An organism is a running Nodecode.A restart, or /models: its Main and Auxiliary tabs.
workspace.capturesWhen the gateway starts. The gateway is the local server shells attach to.A restart.
general.themeWhen the shell starts./themes, or a new shell.

(restart-cells) stops the cells, reads the file again and starts them.

general

KeyTypeDefault
general.default_modelObject: provider, model, optional effort (a rung, or auto for the decider to pick per turn)None. The build default applies.
general.auxiliary_modelSame objectNone. Session names, recaps and summaries run on the session's model.
general.decider_modelObject: provider, a decider id (djev), and modelNone. No decider.
general.themeStringTungstene. A /themes pick outranks it.

See Models and providers.

providers

One entry per provider id, under providers.<id>.

KeyTypeDefault
sdkopenai-completions, openai-responses, anthropic or googleNone
base_urlStringBy dialect. See Models and providers.
api_keyString. A leading ! runs a shell command.None
display_nameStringThe id
models[].idStringNone
models[].context_windowInteger above 0None
models[].reasoning_optionsThe models.dev shape: [{"type": "effort", "values": ["low", "medium", "high", "xhigh", "max"]}]The models.dev entry for the model id
models[].sdkA dialect, for this model onlyThe provider's sdk
proxyStringNone
request_max_retriesInteger, 0 or more4
stream_max_retriesInteger, 0 or more5
stream_idle_timeout_msInteger above 0120000
stream_rerun_ceiling_secondsNumber, 0 or more. 0 disables it.120
reasoning_summaryString. off, none or false disables it.auto
session_token, access_key_id, secret_access_keyStringNone

session_token, access_key_id and secret_access_key only mark the provider as having credentials. No request sends them.

failover

KeyTypeDefault
failover.chainArray of {provider, model}None: no failover
failover.onArray of trigger ids: rate_limit, outage, slow_start, broken_answer, refusalEvery trigger. [] turns every one off.
failover.first_token_secondsNumber, 0 or more. 0 never cuts.60: seconds an attempt with a backup behind it waits for its first token

/models' Backup tab writes chain and on. See Models and providers.

fork

(fork "task" ...) hands a turn's independent tasks to forks of its session. See Eval.

KeyTypeDefault
fork.secondsInteger, 30 or more900: seconds a fork's turn may run before its tools are refused

gateway and workspace

KeyTypeDefault
gateway.operator_tokenStringNone. Read after the environment and the operator-token file.
workspace.capturesBooleantrue. false turns workspace snapshots off.

See Gateway and Sessions and undo.

update

KeyTypeDefault
update.modeauto, ask or offauto on an installed build. off on a checkout build.
update.channelStringstable
update.check_minutesInteger, 1 or more360 with a release feed. 30 without one.
update.urlString: a release hostThe host this build was installed from.
update.feedString: the feed address, or offBeside the release host.

See Updates.

request_bodies

Nodecode keeps the exact body of each model call in the store.

KeyTypeDefault
request_bodies.keep_mbInteger, 0 or more. 0 keeps none.256

Past the limit the oldest bodies go.

cache_warming

A request with cache breakpoints, as every Anthropic call has, writes its prompt into the provider's cache for 5 minutes, or an hour when the marker says so. A session that waits longer pays to write the whole prompt again on its next call. Nodecode sends the session's last request again at 90% of that time with one output token, which keeps the entry alive at the price of a cache read.

KeyTypeDefault
cache_warming.modeidle, streaming or offidle
ModeWarms
idleWhile a turn waits on a tool, for up to 60 minutes, and after it ends, for up to 30.
streamingOnly while a turn waits on a tool.
offNever.

A refresh goes out only when it is expected to save at least $0.05: the write the next call avoids, counted in full while the turn is open and at 15% once it ended, less the refresh's own price. It stops when the session moves to another model, when a refresh fails, and for a request that thinks on a token budget. What a refresh cost is counted in the session's usage as a side call, cache_warming.

notify

A desktop notice when a turn ends. The section's presence turns it on.

KeyTypeDefault
notify.commandArray of strings: the command and its arguments. {title} and {body} are filled in.notify-send on Linux, a toast on Windows and WSL, osascript on macOS
notify.scopeattached or allattached: only when a shell received the turn's end

A cancelled turn sends no notice.

help, index, import, welcome and tui

KeyTypeDefault
help.hot_budgetInteger, 0 or more8192: characters of the manual's topic list below its first line, which every request carries. Past it the first topics keep their one-line summary and the rest are named only. The names always stay, so 0 names every topic without a summary. (help) still lists every topic with its summary.
index.hot_budgetInteger, 120 or more8192: characters of the index below its first line. A small budget names the definitions without describing them.
index.stale_daysInteger, 1 or more30: a skill or a layer definition unused this long reads as cold. A memory never does.
import.session_budgetInteger, 1 or more200: conversations one import carries before the rest wait
welcome.noteBooleantrue: a short brief when Nodecode comes back after a stop, a crash or an update, as a row in a chat that has begun and in each channel's home room. The home screen shows none. false makes no model call for it.
tui.notification_popupsBooleanfalse. true shows notices as popups in the top-right corner.

Cell sections

A cell is a folder of code under ~/.nodecode/cells/. Each cell reads its own section.

Every cell section takes enabled, a boolean, default true. "enabled": false stops that cell from starting.

A cell declares its section in its own code. /settings shows its fields. On /cells, Enter opens a cell's settings. See Cell API.

Esc

    Loading the index…

    ↑↓ moveEnter openEsc close