lazyBoy/.env.example

65 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2026-09-03 12:46:14 +00:00
XAI_API_KEY=
2026-09-04 09:08:56 +00:00
OPENCODE_GO_API_KEY=
OPENAI_API_KEY=
2026-09-03 23:43:37 +00:00
# Generate independent values with: openssl rand -hex 32
LAZYBOY_APP_TOKEN=
SANDBOX_SUPERVISOR_TOKEN=
# Keep this key stable when rotating the app login token.
LAZYBOY_VAULT_KEY=
POSTGRES_PASSWORD=lazyboy
2026-09-07 06:20:33 +00:00
# 127.0.0.1 = 只有本機0.0.0.0 = 開放區網(需 LAZYBOY_APP_TOKEN >= 32 字元);
# 也可填單一網卡的 IP把監聽限制在那個介面。
LAZYBOY_BIND_IP=127.0.0.1
2026-09-03 12:46:14 +00:00
SANDBOX_PROVIDER=docker
DATABASE_URL=postgres://lazyboy:lazyboy@127.0.0.1:5434/lazyboy
DATA_DIR=./data
API_BIND=127.0.0.1:3101
2026-09-03 23:43:37 +00:00
SANDBOX_SUPERVISOR_URL=http://127.0.0.1:7091
LAZYBOY_SECURE_COOKIE=false
2026-09-03 12:46:14 +00:00
LAZYBOY_COMPUTER_MEMORY_MB=2048
LAZYBOY_COMPUTER_CPUS=2
LAZYBOY_COMPUTER_PIDS=2048
2026-09-06 03:43:38 +00:00
# Only affects the Agent desktop container. Disabled by default.
LAZYBOY_COMPUTER_SUDO=false
2026-09-07 14:23:38 +00:00
# Computer-control backend inside each desktop container. Rebuild/recreate
2026-09-08 13:27:38 +00:00
# computers after upgrading. Cua is the only supported computer controller.
LAZYBOY_COMPUTER_DRIVER=cua
2026-09-06 03:43:38 +00:00
# Linux only (optional): point this at the host's LXCFS root to make htop/free
# report the per-Agent cgroup quota. Leave the default empty directory on macOS.
LAZYBOY_LXCFS_ROOT=./data/lxcfs
2026-09-09 06:41:09 +00:00
# 群組聊天「誰該回應」:沒被 @ 的時候,由一次短短的模型問從成員的工作內容與簡介裡
# 挑出最多三個人回覆。留空(預設)=沿用空間的預設模型,多數人不用理這行;
# 想省 token 就填一個便宜快速的 model id要跟空間預設來自同一家 provider
# 挑不到人、模型不能用、或超過 1.2 秒,一律由主持人(群組第一位成員)收場。
LAZYBOY_ROUTER_MODEL=
2026-09-07 13:08:10 +00:00
# 任務長度政策:不再用固定輪數掐掉任務。正常任務一路做到驗證完成,只有
# 真的鬼打牆(同一個動作重複、同一個錯誤一直失敗、很久沒有新的成功)才會被
# 提示、接著暫停等你決定;最後兩個是防迴圈失控烧 token 的保險絲,不是額度。
# soft turns第 60 輪起,之後每 soft every 輪請模型自我交代「已完成/還缺/下一步」
# cap turns / hard minutes最後防火牆正常任務不該碰到
LAZYBOY_RUN_SOFT_TURNS=60
LAZYBOY_RUN_SOFT_EVERY=120
LAZYBOY_RUN_CAP_TURNS=1000
LAZYBOY_RUN_SOFT_MINUTES=75
LAZYBOY_RUN_HARD_MINUTES=240
2026-09-03 23:43:37 +00:00
LAZYBOY_MEMORY_ENABLED=true
LAZYBOY_MEMORY_MODEL_CACHE=./data/fastembed
LAZYBOY_MEMORY_TOP_K=8
LAZYBOY_MEMORY_BYTE_BUDGET=6000
2026-09-06 03:43:38 +00:00
# Hourly cleanup of diagnostics; conversations and current memories are retained.
LAZYBOY_EVENT_RETENTION_DAYS=30
LAZYBOY_CHECKPOINT_RETENTION_DAYS=7
LAZYBOY_RUN_RETENTION_DAYS=90
# Per-run trace shown when hovering the thinking avatar (round, tool results, errors).
LAZYBOY_RUN_ACTIVITY_RETENTION_DAYS=7
2026-09-06 03:43:38 +00:00
LAZYBOY_RECORDING_RETENTION_DAYS=30
LAZYBOY_MEMORY_HISTORY_RETENTION_DAYS=90
LAZYBOY_DB_WARN_MB=1024
2026-09-07 06:20:33 +00:00
# Docker 網路名稱API 與 Agent 電腦的 noVNC 透過它相通(容器內用,不對外)。
# 同時跑多組 LazyBoy 時改這個名字避免相撞。
LAZYBOY_SCREEN_NETWORK=lazyboy_screen