---
title: "Configuration"
description: "The config.json shape, defaults, validation rules, notes directory and browser bookmark options for Mimir."
canonical_url: "https://mimir.atnatewos.dev/docs/configuration"
markdown_url: "https://mimir.atnatewos.dev/docs/configuration.md"
last_updated: "2026-12-06"
x_farming_labs_generated_preamble: true
---

# Configuration
URL: /docs/configuration
LLM index: /llms.txt
Description: The config.json shape, defaults, validation rules, notes directory and browser bookmark options for Mimir.

# Configuration

Mimir reads one JSON file. Settings can be edited in **Settings** (`Ctrl+,`; the
in-app editor validates before writing) or in any editor - the file is watched,
so the running app picks up changes without a restart.

```
$XDG_CONFIG_HOME/mimir/config.json
```

`mimir --check-config` prints the same warnings the Settings view shows, without
starting the UI. Unknown keys are ignored and kept, so a newer Mimir never
deletes a key it does not understand.

## Full shape

```json
{
  "terminal": {
    "shell": "auto",
    "args": ["-l"],
    "prefix": "ctrl+g",
    "scrollbackBytes": 1000000,
    "confirmOnActiveWork": true
  },
  "keyboard": {
    "nextTab": "ctrl+tab",
    "prevTab": "ctrl+shift+tab",
    "newSession": "alt+n",
    "closeSession": "alt+w",
    "copySelection": "alt+c",
    "quit": "alt+q",
    "help": "?",
    "sessionSwitcher": "alt+s",
    "commandPalette": "alt+p",
    "toggleTheme": "alt+t",
    "settings": "ctrl+,",
    "tabSlots": ["alt+1", "alt+2", "alt+3", "alt+4",
                 "alt+5", "alt+6"]
  },
  "browser": {
    "command": "xdg-open",
    "bookmarks": [
      { "title": "ChatGPT", "url": "https://chatgpt.com", "group": "AI" }
    ]
  },
  "editor": { "command": "auto" },
  "notes": { "directory": "auto" },
  "ui": { "targetFps": 30, "theme": "dark", "hintsDismissed": false }
}
```

## Sections

| Key | Meaning |
| --- | --- |
| `terminal.shell` | `auto` uses `$SHELL`, then `bash`. Any path works. |
| `terminal.args` | Arguments for new shells. Default is a login shell so `PATH` is what you expect. |
| `terminal.prefix` | Chord that starts a terminal command (`ctrl+g` by default). |
| `terminal.scrollbackBytes` | Per-session history budget. |
| `terminal.confirmOnActiveWork` | Ask before closing a pane that still has a running child. |
| `keyboard.*` | Chords. See [Navigation and keys](/docs/navigation) for defaults and conflicts. |
| `keyboard.settings` | Opens Settings, which has no permanent top-bar slot. |
| `keyboard.tabSlots` | One chord per top-bar section (six). Extra slots are ignored. |
| `browser.command` | External opener used by `o`. |
| `browser.bookmarks` | Order is kept. `group` is free text; entries are grouped in the start screen in order of first appearance. |
| `editor.command` | `auto` resolves `$VISUAL`, `$EDITOR`, then `nvim`, `vim`, `nano`. |
| `notes.directory` | `auto` is `$XDG_DATA_HOME/mimir/notes`. A path may start with `~`. |
| `ui.targetFps` | Render loop ceiling (10-120). |
| `ui.theme` | A built-in id or a custom theme id. |
| `ui.hintsDismissed` | Hides first-run hint lines. |

## Editing in Settings

Settings shows the file exactly as it is on disk, including keys Mimir does not
know about. `Ctrl+S` validates JSON before writing and writes your text, not a
re-serialized copy; `r` reloads after an external edit when there is nothing
unsaved. Invalid JSON is never written - the parser's error is shown and the
buffer stays dirty. Warnings (a chord that needs the kitty protocol, a missing
shell) are shown above the buffer and do not block saving.

## Validation rules

- Chords must parse (`modifier+key`, one key).
- `tabSlots` is padded to the number of top-bar sections (six), so a saved
  file keeps its chords when the bar changes without being rewritten.
- Numbers are clamped rather than rejected.
- Bookmarks missing a title or URL are dropped.

## Notes directory

Point `notes.directory` at an existing folder (Obsidian vault, Nextcloud
folder, a repo) and Mimir lists the note file types it knows from it. It does
not index nested folders; the directory is the list.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
