Files
splinter/docs/CONFIG.md
T
Konrad b25719f31a install: a program, not a wrapper
~/.local/bin/splinter was a shell script that sourced ~/.hermes/.env - another
program's secrets file, which has no business being read here. It is now what
'make install PREFIX=$HOME/.local' puts there: an ELF binary with an rpath of
$ORIGIN/../lib, so it finds libsplinter.so next to itself.

No wrapper, no LD_LIBRARY_PATH, no environment file. Keys come from the
environment the user exports; a delegate names the variable, never the value.

Verified from /tmp with the wrapper and ~/.splinter/env gone:
  ~/.local/bin/splinter -p 'sage nur: install-ok'  ->  install-ok
  ldd | grep 'not found'                          ->  0

Also in this round: environment delegates are opt-in (env_delegates), the claude
entry is named after itself instead of its array position, and the docs say how
to install without root.
2026-11-08 19:47:10 +00:00

3.4 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.

Not in the file: the goal

The session goal is set at runtime with /goal <text> — in the TUI, or in a one-shot run (splinter -p "/goal ship the config"). It belongs to the conversation in front of you, not to a file that outlives it.

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)
locale language code (de, en); catalogues live in share/locale
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.

Drop-ins

Next to the config file, a directory with the same name plus .d is read after it, every *.conf in name order:

~/.splinter/splinter.conf
~/.splinter/splinter.conf.d/10-local.conf
~/.splinter/splinter.conf.d/20-delegates.conf

A later file overrides an earlier one, and an unknown key is still an error - now with the file it came from. Proven in test_config.

Installieren ohne root

make install PREFIX=$HOME/.local

Das installierte Binary traegt einen RPATH auf $ORIGIN/../lib, findet seine libsplinter.so also neben sich. Kein Wrapper, kein LD_LIBRARY_PATH, keine Umgebungsdatei: ~/.local/bin/splinter ist das Programm.

Keys kommen aus der Umgebung, die du selbst exportierst — splinter liest keine fremde Konfigurationsdatei mit. Ein Delegate nennt nur den Namen der Variablen (key_env=OPENCODE_GO_API_KEY).