Configuration
Daemon settings are configured in thedaemon section of ~/.longmem/settings.json:
Configuration fields
port
- Type:
number - Default:
38741
127.0.0.1 (localhost only) for security.
Example:
If you change the port, you’ll need to restart the daemon and ensure clients connect to the new port.
dbPath
- Type:
string - Default:
~/.longmem/memory.db
~) expansion for the home directory.
Example:
logLevel
- Type:
"debug" | "info" | "warn" | "error" - Default:
"warn"
~/.longmem/logs/.
Log levels:
debug- Verbose output for troubleshootinginfo- General informational messageswarn- Warning messages only (default)error- Error messages only
authToken
- Type:
string | null - Default:
null(no authentication)
When to use authToken
TheauthToken setting provides an additional security layer. Consider using it when:
- Multi-user systems: If multiple users share the same machine and you want to prevent unauthorized access to your memory database
- Extra security: If you store sensitive information in memories and want defense-in-depth
- Shared development environments: In containerized or shared development setups
The daemon already binds to
127.0.0.1 (localhost only), so it’s not accessible from other machines on the network. An auth token is optional but recommended for multi-user systems.Examples
Minimal configuration
Use all defaults:Custom port and debug logging
Secure multi-user setup
Applying changes
After modifying daemon configuration:-
Save
~/.longmem/settings.json -
Restart the daemon:
-
Verify the daemon is running with new settings:
Related
- Settings overview - Complete configuration guide
- Installation - Daemon setup
- CLI commands - Daemon management commands