Configuration
Configuration File
NIKI stores configuration in ~/.niki/config.toml. Run niki config init to create it interactively.
Full Configuration Reference
[general]# Notification mode: active, focus, meetingnotification_mode = "active"# Minimum job duration (seconds) before notifyingthreshold_seconds = 60
[ai]# Environment variable containing Anthropic API keyapi_key_env = "ANTHROPIC_API_KEY"# Model for summaries (haiku is faster/cheaper)summary_model = "claude-haiku-4-5-20251001"# Model for complex analysisanalysis_model = "claude-sonnet-4-5-20250929"# Dry run mode (no API calls, for testing)dry_run = false
[notifications.telegram]enabled = truebot_token = "YOUR_BOT_TOKEN"# Your Telegram user ID(s) - only these can interactallowed_user_ids = [123456789]# Send matplotlib plotssend_plots = true# Enable remote command executionremote_commands_enabled = true# Rate limit for remote commandsmax_commands_per_minute = 5
[notifications.slack]enabled = falsebot_token = "xoxb-..."app_token = "xapp-..."# Send to channel or DMsend_to_dm = true# Allowed Slack user IDsallowed_user_ids = ["U12345678"]
[voice]enabled = falsetts_engine = "edge"tts_voice = "en-US-GuyNeural"
[daemon]port = 7432log_level = "info"auto_start = true
[chat]# Messages to keep in memoryhistory_length = 20# Timeout for pending commands (seconds)pending_command_timeout = 300# Persist chat history to diskpersist_history = trueNotification Modes
| Mode | Behavior |
|---|---|
active | All notifications immediate |
focus | Only P0 (critical) are immediate, others queued |
meeting | All notifications queued until mode changes |
Switch modes:
niki mode focusniki mode activePriority Levels
- P0 - Critical (job failed, error detected)
- P1 - Normal (job completed successfully)
- P2 - Low priority (informational)
Environment Variables
# Required for AI summariesexport ANTHROPIC_API_KEY="sk-ant-..."
# Optional: override config locationexport NIKI_CONFIG_DIR="~/.niki"Verify Configuration
# Check configuration and dependenciesniki doctor
# Show current configniki config show