larik v0.25.0

Guide

Configuration

Settings are read in this order. Later personal files override model, provider, permission mode, and allow-rule settings; shared project files can only tighten security:

  1. ~/.config/larik/config.json
  2. .larik/settings.json
  3. ~/.config/larik/projects/<project-id>.json (private settings for this project)

Put provider definitions, model selection, roles, fallbacks, permission mode, and allow rules in ~/.config/larik/config.json or private project settings. Larik ignores those fields in the shared .larik/settings.json. Shared deny rules remain active. Larik never loads .larik/settings.local.json from the repository.

json
{
  "model": "anthropic/claude-opus-5",
  "effort": "high",
  "mode": "default",
  "theme": "auto",
  "appearance": "default",
  "inline_images": true,
  "spinner_tips": true,
  "animations": "on",
  "prompt_suggestions": true,
  "auto_compact": true,
  "notifications": "off",
  "language": "",
  "permissions": {
    "allow": ["bash(go test*)", "bash(git diff*)", "edit(docs/**)"],
    "deny": ["bash(rm -rf*)", "read(.env)"]
  },
  "providers": {
    "work-gateway": {
      "type": "openai-compatible",
      "base_url": "https://llm.example.com/v1",
      "api_key_env": "WORK_LLM_KEY"
    }
  },
  "models": {
    "gpt-5.5": {
      "provider": "openai",
      "context_window": 400000,
      "max_output": 128000,
      "input_price": 0,
      "output_price": 0
    }
  }
}

/config is the discovery point for personal settings. Every active setting has a native control: switches, pickers, validated text fields, list/key-value editors, or a dedicated wizard. Typing /config in the composer suggests every setting, shows its current value and accepted values, and opens nested native editors directly. Deeply nested sections—MCP servers, hooks, LSP servers, model metadata, speech endpoints, permissions, sandbox access, keybindings, and custom status commands—open typed editors rather than raw JSON fields. Schema-less LSP initialization_options remain preserved and are identified inside the LSP editor with the exact personal settings path, because Larik cannot safely invent a form for an arbitrary server-specific object.

Every editor reports a save the same way, because there are only two outcomes: active now, meaning the running session already uses it, or active after /reload (fresh context), meaning the setting builds a service and /reload puts it in force at the cost of the context the model is holding. When an editor can reload straight away it does, names what it saved in the conversation, and closes. A /config row for an editor that writes only your personal file shows both counts when they differ — 1 personal · 4 servers in use — because a shared .larik/settings.json or a project .mcp.json can add entries the session uses but the editor deliberately will not touch.

  • theme: auto (follow the terminal's background, the default), dark, light, or the name of an installed iTerm2 color scheme. Larik follows the terminal's light/dark background in auto; it does not change the terminal application's own theme. To install a scheme, download its .itermcolors file from iTerm2 Color Schemes into ~/.config/larik/themes/, then choose it in /config or run /theme <name>. Larik leaves the background transparent, so the terminal's own background shows through; only your prompts, the mode pill, the selected row of a picker and diff lines carry a faint tint.
  • appearance: compact groups successful tool calls into a friendly summary after the reply while keeping errors visible; default shows tool cards as they happen, with a run of successful reads, searches and fetches in one card (Read 6 files · searched 3 patterns) and a run_code script's calls inside its card; verbose expands tool output and thinking. ctrl+o still toggles thinking. The deprecated verbose boolean is still read: when no appearance is set, true means verbose and false means default.
  • spinner_tips: a one-line tip under the spinner during a turn.
  • animations: on (the default) runs the gradient along the spinner, sweeps a highlight across the activity label and eases the token count; reduced keeps the spinner turning and stills the rest; off stills everything (the elapsed time still updates). Nothing animates while Larik is idle.
  • prompt_suggestions: after each turn, suggest a next prompt in the empty input (default on); see Composer. A shared .larik/settings.json can turn it off but not on, because it spends your tokens.
  • debug and debug_retention_days: see Debug mode and traces. Honored only from personal settings.
  • telemetry: see OpenTelemetry export. Honored only from personal settings.
  • editor_mode: normal or vim. See Vim mode.
  • status_line, sidebar, and keybindings: native editors in /config; see Status line, Custom sidebar, and Rebinding keys.
  • inline_images: images tools return, such as browser_screenshot, browser_compare and browser_render pictures, and images you attach with @ or ctrl+v, appear in the conversation (default on). This works in Ghostty, cmux and kitty, outside tmux; other terminals keep the tool's text line. Click an image to open it full size in the browser panel, where ctrl+= zooms, or in your system's viewer when the panel isn't available. Resuming a session shows its newest 32 images again. Images from a subagent appear under its name. Tools' images in compact appearance don't show, and those from run_code scripts appear only on resume. A subagent's images aren't saved with your session, so they don't come back. Changing it affects new images only.
  • mouse: vertical wheel scrolling, and clicking a prompt to open its menu, in the TUI (default on); the conversation does not scroll horizontally. Off leaves the mouse to the terminal, so text can be selected without a modifier; /prompt still opens the prompt menu.
  • auto_compact: summarize the conversation when the context is 80% full, measured from what the provider reported for the last request or, where that cannot know yet — a very large pasted prompt, a long tool result, a session you just resumed — from an estimate of what is about to be sent. /compact works either way. After compaction Larik reports the provider-measured summarizer input and billed output, for example 26k prompt → ~10k summary · ~16k saved; the summary and saved counts are estimates of the rebuilt context because its stable system/tool prefix and wrapper are measured exactly only on the next regular request. Session and current-turn totals appear in the information sidebar, and /cost reports the session total. A subagent's compaction is labelled in the conversation but excluded from the main context's totals.
  • token_saver: opt-in command-output filtering (/config token_saver=true). Recognized Git, search/listing, Go, Cargo, Node package-manager, and pytest output is shortened before entering model context. Unrecognized output and failures pass through. A bash call can set raw_output: true; raw_output retrieves the exact captured stdout/stderr by tool-call ID without rerunning the command. Raw output stays in private session files. The displayed byte savings are estimates for command output; use /cost to inspect actual session token usage and cost.
  • notifications: off, bell, or desktop (OSC 9: iTerm2, Ghostty, kitty, WezTerm; other terminals get the bell). Sent only while the terminal is unfocused, when larik asks for permission or a turn of 10s or more ends. Notification hooks are separate.
  • language: what the model replies in, e.g. "Indonesian". A change applies after /clear or in a new session, so the cached prompt stays valid.
  • delegation, roles, fallbacks, role_options, budget ("Model routing" and "Session budget" in /config): see Mixing cheap and strong models.
  • stall_timeout: how many seconds a model server may send nothing before Larik stops the request, reports it, and switches to the fallback model if there is one. Default 300, or 900 for local servers (Ollama, LM Studio, openai-compatible), which may still be loading the model. Set it per provider with "providers": {"ollama": {"stall_timeout": 1800}}; a negative value waits forever. Keep-alives from the server count as activity. For claude-code-cli, the same setting monitors stdout stream inactivity (300 seconds by default), warns after one minute or half the timeout, whichever is sooner, and pauses while bridged tools or permission requests are outstanding. Activity resets the timer; after the last parallel tool finishes it resumes with a fresh allowance. A CLI stall stops the process group and reports an error without automatically retrying a potentially partially executed turn. A negative timeout disables monitoring. Silent reasoning counts as inactivity when the CLI emits no stream bytes; raise the timeout if needed.
  • checkpoint_retention_days ("Undo history" in /config): how long /undo snapshots are kept, so /undo still works after resuming a session. Default 7; a negative value (forever in /config) keeps them forever. Old snapshots are deleted at startup, for every project, so this is honored only from personal settings.

models entries override Larik's built-in catalog. /models-config (or Model catalog overrides in /config) edits the personal user-config map by model ID: add a named override, edit provider, context window, maximum output tokens and input/output/cache read/cache write prices (USD per million tokens), delete an override, then press s to save. The ID is the map key; to rename it, add a new entry and remove the old one. Token limits and prices must be nonnegative. llm.ModelInfo currently has no capability flags; no speculative flags are exposed. Unknown future fields in existing entries survive edits. The editor does not import project settings; when possible saving reloads with a fresh model context, otherwise use /reload. /model is still the picker for the active model. At startup Larik loads its cached copy of the public Catwalk catalog and refreshes that cache in the background (3 s timeout) for the next launch, so a slow network never delays startup. It fills missing context windows, output limits, and list prices, and offers providers whose API type Larik supports in /providers, /model, and the setup wizard. Connecting one is always an explicit user action; confirm its endpoint and save it to personal settings. Existing built-in and user-configured metadata takes precedence, and the built-in catalog remains available offline. Catwalk does not contain account-specific usage or quota data; /cost reports usage received from model responses.

Generated from README.md · section “Configuration”. Edit that file to change this page.