config.ts module.
Environment variables
Configuration is read from.env file or process.env.
Name of the assistant. Used in trigger pattern and message routing.
Whether the assistant has its own phone number or dedicated account. Set to
"true" to enable.Docker image to use for agent containers.
Container timeout in milliseconds (default: 30 minutes).
Maximum container output size in bytes (default: 10MB).
How long to keep container alive after last result in milliseconds (default: 30 minutes).
- OneCLI Gateway (v1.2.22+)
- Credential Proxy (legacy)
URL for the OneCLI gateway that handles credential injection for containers.
Maximum number of concurrent agent containers.
Timezone for scheduled tasks (cron expressions). Uses
Intl.DateTimeFormat().resolvedOptions().timeZone by default.Configuration constants
Defined insrc/config.ts:
Directory paths
All paths are absolute and resolved from the project root:{PROJECT_ROOT}/store - Database and persistent storage{PROJECT_ROOT}/groups - Group folders and memory files{PROJECT_ROOT}/data - Runtime data directory (sessions, IPC namespaces, remote-control state)~/.config/nanoclaw/mount-allowlist.json - Mount security allowlist (never mounted into containers)~/.config/nanoclaw/sender-allowlist.json - Sender-based access control. JSON file with a default entry and optional per-chat overrides in chats. Each entry specifies allow ("*" or array of sender JIDs) and mode ("trigger" to store but block activation, or "drop" to discard silently). Reloaded on every message cycle. See security overview.Trigger pattern
The trigger pattern is generated fromASSISTANT_NAME:
@{ASSISTANT_NAME} (case-insensitive).
Timezone configuration
Scheduled tasks use the configured timezone:Example .env file
- OneCLI Gateway (v1.2.22+)
- Credential Proxy (legacy)
With the OneCLI gateway, API keys and OAuth tokens are no longer stored in
.env. Secrets are managed via onecli secrets create and injected by the gateway at request time. The only credential-related variable is ONECLI_URL.Credential environment variables
- OneCLI Gateway (v1.2.22+)
- Credential Proxy (legacy)
Credentials are managed externally via OneCLI — no credential environment variables are needed in See
.env.Register secrets with OneCLI using the CLI or dashboard:onecli secrets list to verify registered secrets. Run onecli --help for the full list of available commands.Ollama API endpoint. Only used when the
/add-ollama-tool skill is installed. The MCP server inside the container uses this to reach the host’s Ollama instance. Falls back to localhost if host.docker.internal fails.Security notes
- OneCLI Gateway (v1.2.22+)
- Credential Proxy (legacy)
- Secrets are never read by NanoClaw — OneCLI manages them externally
- The OneCLI gateway injects credentials into container API traffic at request time
- Containers cannot extract real credentials from the gateway
- Mount allowlist is stored OUTSIDE project root and never mounted into containers