配置参考
完整的配置选项说明
配置文件位置
# 默认位置
~/.config/axoncog/config.toml
# Windows
C:\Users\<用户名>\.config\axoncog\config.toml
完整配置示例
# AxonCog 配置文件 [general] # 默认 Provider default_provider = "openai" # 语言 language = "zh-CN" # 日志级别 log_level = "info" [context] # 启用上下文引擎 enabled = true # 活动识别 activity_recognition = true # 专注检测 focus_detection = true # 隐私模式: local | cloud privacy_mode = "local" [workflow] # 启用工作流学习 enabled = true # 最小模式出现次数 min_pattern_occurrences = 3 # 学习数据保留天数 retention_days = 30 [focus] # 专注会话时长(分钟) session_duration = 25 # 短休息时长(分钟) short_break = 5 # 长休息时长(分钟) long_break = 15 # 长休息间隔(会话数) long_break_interval = 4 [security] # 启用沙箱 sandbox_enabled = true # 沙箱后端: windows_job | landlock | firejail | bubblewrap | docker sandbox_backend = "auto" # 默认本地绑定 bind_local = true # 启用操作审计 audit_enabled = true [cost] # 日预算(美元) daily_budget = 10.0 # 月预算(美元) monthly_budget = 100.0 # 超预算提醒 budget_alert = true
配置项说明
[general]
default_provider— 默认使用的 Providerlanguage— 界面语言log_level— 日志级别: trace, debug, info, warn, error
[context]
enabled— 是否启用上下文引擎activity_recognition— 是否识别活动类型focus_detection— 是否检测专注状态privacy_mode— 隐私模式,local 为本地处理
[security]
sandbox_enabled— 是否启用沙箱隔离sandbox_backend— 沙箱后端类型bind_local— 是否只绑定本地audit_enabled— 是否启用操作审计