Configuration
Two files, one environment variable, and a precedence ladder. Nothing here needs a server.
| What | Where |
|---|---|
| Main config | ~/.config/neotrix/config.toml |
…when NEOTRIX_HOME is set | $NEOTRIX_HOME/config.toml |
| Data root (KB, sessions, profiles) | ~/.neo |
| Permission profiles | ~/.neo/profiles.toml |
| Provider pool | ~/.config/neo/provider_pool.toml |
NEOTRIX_HOME moves the config file only; the data root stays ~/.neo on purpose — the two are separate semantics, and merging them would silently migrate an existing install.
Precedence
Higher wins, and the ladder is a pure function in the config module, not an accident of load order:
| Scope | File | Rank |
|---|---|---|
| Default | built-in defaults | 0 |
| Managed | /etc/neotrix/config.toml (or $NEOTRIX_MANAGED_CONFIG) | 0 |
| User | ~/.config/neotrix/config.toml | 1 |
| Project | <cwd>/.neo/config.toml | 2 |
| Local | <cwd>/.neo/config.local.toml | 3 |
| Runtime | in-process overrides | 3 |
Managed sits at the same rank as Default because a managed policy is the baseline; Local sits at Runtime because the file is as close to the run as you can get. Set NEOTRIX_QUIET=1 to silence the "which layers loaded" notice.
Keys
| Key | Type | Effect |
|---|---|---|
default_llm_provider, provider | string | which provider serves requests |
api_key | string | credential — encrypt it, see below |
default_model, custom_endpoint | string | model and base URL |
prefer_free | bool | prefer zero-cost providers |
color_mode, log_level | string | TUI and logging |
privacy_guard | bool, default true | egress guard; off degrades to secret redaction only |
privacy_block_untrusted | bool, default true | block outbound traffic that carries NeoTrix fingerprints; off degrades to masking |
privacy_mask | bool, default false | reversible PII masking (email, card, national id, public IP, phone, secrets) with restore on the way back |
egress_tls_verify | bool, default true | verify peer certificates on sensitive egress; set false only behind a self-signed/MITM proxy — it logs a TLS security event |
minimal_thinking | bool, default false | derive a zero thinking budget for simple, tool-free, short-history tasks |
neo config list [--json] prints what is actually in effect, with secrets always redacted. Unknown keys are reported rather than silently ignored.
Encrypt the API key at rest
neo config encrypt-keys # encrypt every plaintext api_key / apikey / secret string
neo config decrypt-keys # reverse it (use with caution)Encryption is idempotent and skips values already encrypted. If the config file is missing the command says so and changes nothing.
Permission profiles
--approval-mode only changes the current process. Profiles are its persistent counterpart, stored at ~/.neo/profiles.toml:
neo profile list # ★ marks the active profile
neo profile show <name> # effective rules + approval mode, --json for scripts
neo profile current
neo profile use <name> # confirms before loosening approvalsprofile use widens what the agent may do without asking, so it is treated as a safety-relevant change: the effect is computed and shown before the confirmation, and on a non-TTY channel (script, pipe, CI) it refuses without --yes instead of assuming consent. A CI job that quietly drops itself to auto-edit would leave no trace; that is the failure this rule exists to prevent.
Runtime feature flags
neo features list
neo features enable <name>Flags toggle runtime behaviour inside a session; they do not edit config.toml.
Environment variables
| Variable | Effect |
|---|---|
NEOTRIX_HOME | relocate config.toml (data root unchanged) |
NEOTRIX_MANAGED_CONFIG | path to the managed policy layer |
NEOTRIX_QUIET | suppress the config-layer notice |
NEOTRIX_PROFILES_PATH | override the profiles file (tests, per-project isolation) |
Recipes
Isolated experiment that cannot touch your real setup:
export NEOTRIX_HOME=$PWD/.sandbox-config
export NEOTRIX_PROFILES_PATH=$PWD/.sandbox-profiles.toml
neo config listRead-only agent on a shared machine:
neo run --sandbox read-only --approval-mode suggestCI that must never widen itself:
neo profile use developer # non-TTY → refused
neo profile use developer --yes # explicit consent, in the diff for reviewRelated
neo <command> --helpfor flags, CLI reference for the command surface- The permission model in rules system