Configuration

Settings go in init.lua, a Lua script that calls maki.setup(). Same language as plugins.

Two places, both optional:

  • Global: ~/.config/maki/init.lua
  • Project: .maki/init.lua (relative to your working directory)

When both exist, project settings override global ones. Neither file is required.

Example

maki.setup({
    ui = {
        splash_animation = true,
        mouse_scroll_lines = 5,
        theme = "tokyonight",
        tool_output_lines = {
            bash = 8,
            read = 5,
        },
    },
    agent = {
        max_output_lines = 3000,
    },
    provider = {
        default_model = "anthropic/claude-sonnet-4-6",
    },
    storage = {
        max_log_files = 5,
    },
    plugins = {
        bash = { timeout_secs = 180 },
        index = { max_file_size_mb = 4 },
    },
})

All fields are optional. Typos in field names cause an error right away.

maki.setup() can only be called once per init.lua.

Full Reference

Top-level

FieldTypeDefaultDescription
always_yoloboolfalseStart every session with YOLO mode (skip permission prompts, deny rules still apply)
always_fastboolfalseStart every session with Anthropic fast mode (Opus only; ignored otherwise)
always_workflowboolfalseStart every session with workflow mode (task callable inside code_execution)
always_thinkingbool | stringfalseStart every session with extended thinking (true/"adaptive", "off", an effort level ("minimal" to "max"), or a token budget)

ui

FieldTypeDefaultMinDescription
splash_animationbooltrue-Show splash animation on startup
scrollbarbooltrue-Show vertical scrollbar in scrollable areas
flash_duration_msu641500-Duration of flash messages (ms)
typewriter_ms_per_charu644-Typewriter effect speed (ms/char)
mouse_scroll_linesu3231Lines per mouse wheel scroll
max_input_linesu32201Maximum visible input lines
show_thinkingbooltrue-When true (default), show full model reasoning live and persisted. When false, hide reasoning behind an indicator (thinking> ...) with a click-to-expand hint, both while thinking and after it completes

ui.theme

Name of the color theme to load at startup, overriding the theme you last picked interactively. If unset, Maki keeps your last selection (the built-in default on first run). An unknown name is ignored with a warning.

Available themes: ayu_dark, ayu_light, ayu_mirage, carbonfox, catppuccin_frappe, catppuccin_latte, catppuccin_macchiato, catppuccin_mocha, dracula, everforest_dark, fleet_dark, github_dark, gruvbox, gruvbox_light, kanagawa, material_darker, monokai_pro, night_owl, nightfox, nord, onedark, rose_pine, rose_pine_dawn, rose_pine_moon, solarized_dark, solarized_light, tokyonight, vscode_dark_plus, zenburn.

Themes use 24-bit colors, but not every terminal can show them. Maki checks the environment, terminfo, and the terminal itself, and when truecolor is missing it quietly falls back to the closest of the 256 classic terminal colors. If detection gets it wrong, set MAKI_TRUECOLOR=1 to force truecolor or MAKI_TRUECOLOR=0 to force the fallback.

ui.tool_output_lines

How many lines of output to show per tool in the UI. All values are usize with a minimum of 1.

FieldDefault
bash5
code_execution5
task5
index3
grep3
read3
write7
web3
other3

agent

FieldTypeDefaultMinDescription
max_output_bytesusize512001024Max tool output size (bytes)
max_output_linesusize200010Max tool output lines
max_continuation_turnsu3231Max automatic continuation turns
compaction_bufferu32 | string20%-Context reserved for compaction: token count or percent of the context window (e.g. "20%")

provider

FieldTypeDefaultMinDescription
default_modelStringnone-Default model identifier (e.g. anthropic/claude-sonnet-4-6)
connect_timeout_secsu64101HTTP connect timeout (seconds)
low_speed_timeout_secsu641201Low speed timeout (seconds with less than 1 byte received)
stream_timeout_secsu6430010Streaming response timeout (seconds)

storage

FieldTypeDefaultMinDescription
max_log_bytes_mbu642001Max total log size (MB)
max_log_filesu32101Max number of log files to keep
input_history_sizeusize10010Number of input history entries to retain

Plugins

The plugins table turns plugins on or off and passes options to them. All bundled plugins are on by default. Set enabled = false to turn one off.

Each plugin checks its own options at startup. A typo, a wrong type, or an unknown plugin name gives you a clear error right away.

The edit plugin's extra tools are options too: plugins.edit = { multiedit = false, edit_lines = true }. The old tools table is gone. If your config still uses it, Maki stops at startup and shows you the new form.

maki.setup({
    plugins = {
        bash = { timeout_secs = 180 },
        websearch = { enabled = false },
    },
})

plugins.bash

FieldTypeDefaultMinDescription
max_output_bytesinteger--Override agent.max_output_bytes for this tool.
max_output_linesinteger--Override agent.max_output_lines for this tool.
timeout_secsinteger1205Kill the command after this many seconds. A call's timeout param overrides it.

plugins.code_execution

FieldTypeDefaultMinDescription
max_memory_mbinteger5010Memory limit for the Python sandbox (MB).
max_output_bytesinteger--Override agent.max_output_bytes for this tool.
max_output_linesinteger--Override agent.max_output_lines for this tool.
timeout_secsinteger305Script execution time budget in seconds; waiting on tool calls does not count. A call's timeout param overrides it.

plugins.edit

FieldTypeDefaultMinDescription
edit_linesbooleanfalse-Provide the opt-in edit_lines tool.
insert_linesbooleanfalse-Provide the opt-in insert_lines tool.
multieditbooleantrue-Provide the multiedit tool.

plugins.glob

FieldTypeDefaultMinDescription
max_output_bytesinteger--Override agent.max_output_bytes for this tool.
max_output_linesinteger--Override agent.max_output_lines for this tool.
search_result_limitinteger10010Max files returned per search.

plugins.grep

FieldTypeDefaultMinDescription
max_line_bytesinteger50080Skip lines longer than this many bytes.
max_output_bytesinteger--Override agent.max_output_bytes for this tool.
max_output_linesinteger--Override agent.max_output_lines for this tool.
search_result_limitinteger10010Max match groups per search. A call's limit param overrides it.

plugins.index

FieldTypeDefaultMinDescription
max_file_size_mbinteger21Refuse to index files larger than this many MB.

plugins.read

FieldTypeDefaultMinDescription
max_line_bytesinteger50080Truncate lines longer than this many bytes.
max_output_linesinteger--Override agent.max_output_lines for this tool.

plugins.skill

FieldTypeDefaultMinDescription
plugin_devbooleantrue-Offer the builtin maki-plugin-dev skill for writing maki plugins.

plugins.task

FieldTypeDefaultMinDescription
max_concurrentinteger81Max concurrently running subagents.

plugins.webfetch

FieldTypeDefaultMinDescription
max_output_bytesinteger--Override agent.max_output_bytes for this tool.
max_output_linesinteger--Override agent.max_output_lines for this tool.
max_response_bytesinteger52428801024Stop reading a response after this many bytes.

plugins.websearch

FieldTypeDefaultMinDescription
max_output_bytesinteger--Override agent.max_output_bytes for this tool.
max_output_linesinteger--Override agent.max_output_lines for this tool.
max_response_bytesinteger52428801024Stop reading a response after this many bytes.

Validation

If a value is below its minimum, Maki shows a ConfigError with the field name, value, and minimum.

Directory layout

Maki uses XDG directories on Linux and macOS:

PurposePath
Config~/.config/maki/ (init.lua, permissions.toml, mcp.toml)
Data~/.local/share/maki/
Logs~/.local/logs/maki/
State~/.local/state/maki/

~/.maki/ is checked as a legacy fallback.

Migrating from ~/.maki/

Older versions stored everything in ~/.maki/. If that directory still exists, maki uses it as a fallback. To move to XDG directories, run:

maki migrate xdg

This safely moves sessions, auth, plans, memories, logs, and preferences to XDG locations. Where both old and new files exist, they are merged (input history, model tiers, etc.). Nothing is deleted until it has been copied. At the end you get a summary of where everything lives now.

Safe to run more than once.

Personal Instructions

On top of AGENTS.md, you can add your own instructions in two places:

  • AGENTS.local.md at project root for per-project preferences (gitignored)
  • ~/.config/maki/AGENTS.md for preferences that apply to all projects

Both are added to the system prompt at the start of every session.