Skip to content

Configuration ​

Two files, one environment variable, and a precedence ladder. Nothing here needs a server.

WhatWhere
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:

ScopeFileRank
Defaultbuilt-in defaults0
Managed/etc/neotrix/config.toml (or $NEOTRIX_MANAGED_CONFIG)0
User~/.config/neotrix/config.toml1
Project<cwd>/.neo/config.toml2
Local<cwd>/.neo/config.local.toml3
Runtimein-process overrides3

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 ​

KeyTypeEffect
default_llm_provider, providerstringwhich provider serves requests
api_keystringcredential — encrypt it, see below
default_model, custom_endpointstringmodel and base URL
prefer_freeboolprefer zero-cost providers
color_mode, log_levelstringTUI and logging
privacy_guardbool, default trueegress guard; off degrades to secret redaction only
privacy_block_untrustedbool, default trueblock outbound traffic that carries NeoTrix fingerprints; off degrades to masking
privacy_maskbool, default falsereversible PII masking (email, card, national id, public IP, phone, secrets) with restore on the way back
egress_tls_verifybool, default trueverify peer certificates on sensitive egress; set false only behind a self-signed/MITM proxy — it logs a TLS security event
minimal_thinkingbool, default falsederive 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 ​

sh
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:

sh
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 approvals

profile 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 ​

sh
neo features list
neo features enable <name>

Flags toggle runtime behaviour inside a session; they do not edit config.toml.

Environment variables ​

VariableEffect
NEOTRIX_HOMErelocate config.toml (data root unchanged)
NEOTRIX_MANAGED_CONFIGpath to the managed policy layer
NEOTRIX_QUIETsuppress the config-layer notice
NEOTRIX_PROFILES_PATHoverride the profiles file (tests, per-project isolation)

Recipes ​

Isolated experiment that cannot touch your real setup:

sh
export NEOTRIX_HOME=$PWD/.sandbox-config
export NEOTRIX_PROFILES_PATH=$PWD/.sandbox-profiles.toml
neo config list

Read-only agent on a shared machine:

sh
neo run --sandbox read-only --approval-mode suggest

CI that must never widen itself:

sh
neo profile use developer          # non-TTY → refused
neo profile use developer --yes    # explicit consent, in the diff for review

Released under the MIT License (with proprietary exceptions for security modules).