Skip to content

Configuration ​

There is no settings file: every setting is either a flag documented in the Command reference or a variable in the table below. Four files are read when they exist, each for one purpose: ~/.config/local-agent/mcp.json lists your MCP servers (MCP), the workspace's .local-agent/permissions.json holds its approval rules (Persistent rules), its root .agentignore keeps paths away from the file tools (Ignored paths), and its root AGENTS.md is model context (Repository instructions).

Environment variables ​

VariablePurpose
LOCAL_AGENT_MODELDefault model; --model overrides it
LOCAL_AGENT_THINK1 or 0; same as --think on|off. Unset means the model default
LOCAL_AGENT_CONTEXTDefault context tokens; same as --context. 32768 and 32k both work
LOCAL_AGENT_PROVIDERProvider selection: ollama (the default), chalupa, or openai_local; see Providers
LOCAL_AGENT_LOCAL_ONLYLocal-endpoint enforcement; must be false for chalupa, and for an openai_local server that is not on loopback
LOCAL_AGENT_PROVIDER_CONFIGThe chalupa or openai_local profile JSON
TUIMARK_BINARYPath to the tuimark binary; otherwise a pinned release (0.5.5) is downloaded checksum-verified
TUIMARK_MOTIONreduce or 0: the Tuimark client draws a still glyph where its spinners would turn; the turn's elapsed time keeps counting
LOCAL_AGENT_DIAGNOSTICS1 appends a Biome check of each approved edit, using the workspace's own @biomejs/biome install and its root biome.json (default off)
LOCAL_AGENT_DIAGNOSTICS_TSC1 also appends a tsc --noEmit section after .ts edits, using the workspace's own typescript and its root tsconfig.json (slow: full project)
LOCAL_AGENT_FETCH_PRIVATE1 lets the fetch tool reach loopback and private-network hosts; by default it reaches public hosts only
XDG_CONFIG_HOMEWhere local-agent/trusted-rules.json (the permission-rule trust store) lives; default ~/.config. A relative value is ignored
LOCAL_AGENT_SEARXNG_URLOptional SearXNG instance for the web_search tool, asked first. When it is unreachable or answers with no results, DuckDuckGo (Lite, then HTML) is asked; an empty answer from both reads No results. Without it, DuckDuckGo answers
OLLAMA_HOSTOllama endpoint; default 127.0.0.1:11434

Model and context ​

--model selects the Ollama model. The default is qwen3.5:4b-q4_K_M — the smallest model that passed the agent battery reliably — unless LOCAL_AGENT_MODEL is set; the flag overrides the environment.

--think on|off forces thinking on or off. Unset means whatever the model defaults to.

--context N sets context tokens for the local Ollama provider (LOCAL_AGENT_CONTEXT is equivalent). The value cannot exceed the model's native context. Without either, the size is planned from the model and this machine's memory, at most 32768; see Ollama models. Chalupa negotiates its own context; the flag does not apply. In the Tuimark client, /context SIZE|auto changes the size mid-session.

Interactive runs reject a missing model or an oversized --context up front with a 15 s admission check, before the session starts.

Providers ​

Three providers exist: local Ollama (the default), Chalupa, and a local OpenAI-compatible server (LOCAL_AGENT_PROVIDER=openai_local). Select Chalupa with LOCAL_AGENT_PROVIDER=chalupa; LOCAL_AGENT_LOCAL_ONLY must then be false. Chalupa profiles come from the environment supplied by chalupa exec and are passed via LOCAL_AGENT_PROVIDER_CONFIG as profile JSON. The profile keeps its own model and context; Chalupa negotiates context itself. See Providers.

Themes ​

--theme accepts dark, light, auto, or a named theme. Themes apply to the tuimark client only. auto picks dark or light from the terminal's background. Here is the same screen of the released client in dark, light and every named theme:

Eighteen named themes are bundled:

FamilyThemes
local-agentmidnight, sepia
Catppuccincatppuccin-mocha, catppuccin-macchiato, catppuccin-frappe, catppuccin-latte
Rosé Pinerose-pine, rose-pine-moon, rose-pine-dawn
Tokyo Nighttokyo-night, tokyo-night-storm
Gruvboxgruvbox-dark, gruvbox-light
Othersnord, dracula, one-dark, kanagawa, everforest

An unknown name lists every theme. In every theme, each text color reads at WCAG AA (at least 4.5:1) on the background, panels, raised surfaces and selected rows, and so does the label on a badge, a button or a segment. Where a palette's original color falls short of that, the bundled theme lightens or darkens it along its own hue, so an adapted theme is close to its source but not always identical.

/theme dark|light|auto changes the theme mid-session without restarting; a named theme is chosen at launch with --theme. Themes are presentation only; they do not affect authority, tool policy, or approvals. See Command reference.

Ignored paths ​

A .agentignore file in the workspace root keeps paths away from the agent's file tools. It takes one pattern per line, and # starts a comment. *, ?, [abc] and ** are wildcards. A pattern without a / matches a name at any depth (*.log, node_modules); one with a / is relative to the root (src/generated). Ignoring a directory ignores everything in it, and a leading ! brings a path back; the last matching line wins. Names match in any case.

Ignored paths are hidden from list and search, and read, edit and write refuse them. The file is read once, when the run starts. A .agentignore that is a symlink, not a regular file, over 64 KiB or not UTF-8 stops the run; a malformed line is named once on stderr and skipped. The file itself is hidden from the tools, so the model cannot loosen it. It does not limit run_command: commands still ask for approval, or run in the sandbox.

Repository instructions ​

At startup, the root AGENTS.md of the workspace is loaded as model context, at most 64 KiB. The model receives it framed as guidance from whoever controls the workspace, which cannot grant permissions, change approval rules, or override the host's tool and safety rules; a line inside the file that imitates the frame's closing marker does not end it early. It is not a security boundary: mode policy, tool admission, and approval checks remain host-owned and apply whatever the file says. Full skills/profile parity with the historical Go implementation is pending.

Local-first by default. Approval-gated by design.