Files
splinter/docs/CONFIG.md
T
Konrad 68861460df splinter: a config file, so 'splinter' alone starts the chat
One file, key = value, comments with '#'. /splinter/config (or
~/.config/splinter/config), overridable with SPLINTER_CONFIG or --config,
ignorable with --no-config, generatable with --init-config.

Precedence is command line, then file, then built-in default, and an unknown
key is an error with its line number - a typo that is silently ignored is a
config that lies about what it does. The example file is written and read back
by the test suite, so it cannot rot into something the parser rejects.

What it covers: endpoint, model, api_key_env, transport, cli_cmd, plugin
(repeatable), theme, autonomous, steps, max_bytes, session_dir, system_prompt.

Verified from /tmp with nothing but the word 'splinter': the chat started, the
sidebar showed the configured endpoint, theme, cps and clock widgets, and a
turn against kontron answered 'Ich bin ein grosses Sprachmodell...' with the
session written to /home/lotherk/.splinter.

Thirteen test binaries green (test_config: full file, trimming, unknown key
with line number, missing '=', missing file, example round-trip, env path).
2026-11-07 20:03:17 +00:00

2.2 KiB

Configuration

Splinter reads one file, so that splinter alone is enough to start working.

$XDG_CONFIG_HOME/splinter/config    (or ~/.config/splinter/config)

SPLINTER_CONFIG=/path overrides the location, --config PATH does the same for one run, --no-config ignores the file entirely, and --init-config writes a commented example.

Format: one key = value per line, # starts a comment, blank lines are ignored. Not JSON, on purpose — this file gets edited by hand, and a missing comma must not be the reason the harness will not start.

Precedence

Command line, then the file, then the built-in default. An unknown key is an error with its line number: a typo that is silently ignored is a config that lies about what it does.

Keys

key meaning
endpoint OpenAI-compatible URL, e.g. http://127.0.0.1:8080/v1/chat/completions
model model name the endpoint expects
api_key_env name of the env var holding the key (default SPLINTER_API_KEY)
transport a transport a plugin provides, e.g. cli
cli_cmd command for the cli transport, e.g. claude -p
plugin a plugin to load, one line each; absolute paths survive a cd
theme CDE palette name (splinter --list-themes)
autonomous 1 runs mutating/destructive tools without asking
steps tool rounds per turn (default 8)
max_bytes conversation budget in bytes, 0 = no limit
session_dir where session logs go (default ~/.splinter)
system_prompt sent once at the start of a conversation

Example: local model

endpoint = http://kontron.local:8080/v1/chat/completions
model = /models/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/Qwen3.6-35B-A3B-UD-Q8_K_XL.gguf
theme = Delphinium
autonomous = 1
plugin = /home/lotherk/src/splinter/plugins/lcm/lcm.so
plugin = /home/lotherk/src/splinter/plugins/cps/cps.so
plugin = /home/lotherk/src/splinter/plugins/clock/clock.so
session_dir = /home/lotherk/.splinter

Example: Claude Code as the model

transport = cli
cli_cmd = claude -p
plugin = /home/lotherk/src/splinter/plugins/cli/cli.so
theme = Delphinium

With both endpoint and transport set, transport wins — it is the more specific instruction.