Configuration
Configuration
Everything you can customize about NORDON — config files, environment variables, and where things live on disk.
Config file location
When you run nordon init, NORDON creates a configuration file. The location depends on your operating system:
| Platform | Path |
|---|---|
| macOS | ~/.config/nordon/config.toml |
| Linux | ~/.config/nordon/config.toml |
| Windows | %APPDATA%\nordon\config.toml |
You can edit this file directly with any text editor, or use CLI commands to change individual settings.
Config options
The config file uses the TOML format. Here are the options you can set:
api_portDefault: 7533The port the NORDON daemon listens on. Change this if something else is already using port 7533 on your machine.
injection_modeDefault: "auto"Controls how NORDON delivers context to your coding assistant. "auto" injects memories automatically when relevant. "manual" lets you trigger injection yourself with the CLI. "off" disables injection entirely.
log_levelDefault: "info"How much detail to write to log files. Use "info" for normal operation, "debug" when troubleshooting, or "warn" to only see important messages.
data_dirDefault: (platform default)Where NORDON stores its database, logs, and cached data. By default, this is a platform-specific location (see File Locations below). Set this if you want everything in a custom directory.
Environment variables
You can override config file settings with environment variables. These take priority over whatever is in your config file.
NORDON_API_URLDefault: http://127.0.0.1:7533The full URL the CLI uses to talk to the daemon. Set this if you changed the port or are running the daemon on a different machine.
NORDON_DATA_DIRDefault: (platform default)Override the data directory. Useful for CI environments or custom setups where you want data stored in a specific location.
NORDON_LOG_LEVELDefault: infoOverride the log level without editing the config file. Handy for temporary debugging.
File locations
Here is where NORDON stores its files on each platform:
macOS / Linux
| File | Path |
|---|---|
| Config | ~/.config/nordon/config.toml |
| Database | ~/.local/share/nordon/nordon.db |
| Logs | ~/.local/share/nordon/logs/ |
Windows
| File | Path |
|---|---|
| Config | %APPDATA%\nordon\config.toml |
| Database | %APPDATA%\nordon\nordon.db |
| Logs | %APPDATA%\nordon\logs\ |
Example configurations
Minimal (defaults)
After running nordon init, your config file looks like this. Everything uses sensible defaults:
# ~/.config/nordon/config.toml
api_port = 7533
injection_mode = "auto"
log_level = "info"Custom port
If port 7533 is already in use, pick a different one:
api_port = 9000
injection_mode = "auto"
log_level = "info"Remember to also start the daemon on the new port:
nordond --port 9000 &Verbose logging
When troubleshooting, turn on debug logging to see everything NORDON is doing:
api_port = 7533
injection_mode = "auto"
log_level = "debug"Then check logs with:
nordon logs --limit 100Custom data directory
Store all NORDON data in a specific folder:
api_port = 7533
injection_mode = "auto"
log_level = "info"
data_dir = "/home/you/nordon-data"Claude Code hook configuration
To connect NORDON with Claude Code, you add hooks to your Claude Code settings file. These hooks tell Claude Code to notify NORDON about tool usage and session events.
Settings file location
| Platform | Path |
|---|---|
| macOS / Linux | ~/.claude/settings.json |
| Windows | %USERPROFILE%\.claude\settings.json |
Hook configuration
Add this JSON to your settings.json file:
{
"hooks": {
"PostToolUse": [{
"matcher": "*",
"command": "nordon hook post-tool \"$TOOL_NAME\"",
"timeout": 5000
}],
"Stop": [{
"matcher": "",
"command": "nordon hook session-end",
"timeout": 10000
}]
}
}What each hook does
- PostToolUse — Runs after every tool call in Claude Code. NORDON captures these events to understand what happened during your session and build memories from them.
- Stop — Runs when a Claude Code session ends. NORDON processes the session's events and creates or updates memories.
settings.json, add the NORDON entries to the existing arrays rather than replacing them.Next steps
Now that NORDON is configured, check out these resources: