lazyBoy/.env.example

60 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

XAI_API_KEY=
OPENCODE_GO_API_KEY=
OPENAI_API_KEY=
# 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
# 127.0.0.1 = 只有本機0.0.0.0 = 開放區網(需 LAZYBOY_APP_TOKEN >= 32 字元);
# 也可填單一網卡的 IP把監聽限制在那個介面。
LAZYBOY_BIND_IP=127.0.0.1
SANDBOX_PROVIDER=docker
DATABASE_URL=postgres://lazyboy:lazyboy@127.0.0.1:5434/lazyboy
DATA_DIR=./data
API_BIND=127.0.0.1:3101
SANDBOX_SUPERVISOR_URL=http://127.0.0.1:7091
LAZYBOY_SECURE_COOKIE=false
LAZYBOY_COMPUTER_MEMORY_MB=2048
LAZYBOY_COMPUTER_CPUS=2
LAZYBOY_COMPUTER_PIDS=2048
# Only affects the Agent desktop container. Disabled by default.
LAZYBOY_COMPUTER_SUDO=false
# Computer-control backend inside each desktop container. Rebuild/recreate
# computers after changing. `cua` is Cua Driver (default); `legacy` is
# CDP/AT-SPI/xdotool rollback.
LAZYBOY_COMPUTER_DRIVER=cua
# 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
# 任務長度政策:不再用固定輪數掐掉任務。正常任務一路做到驗證完成,只有
# 真的鬼打牆(同一個動作重複、同一個錯誤一直失敗、很久沒有新的成功)才會被
# 提示、接著暫停等你決定;最後兩個是防迴圈失控烧 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
LAZYBOY_MEMORY_ENABLED=true
LAZYBOY_MEMORY_MODEL_CACHE=./data/fastembed
LAZYBOY_MEMORY_TOP_K=8
LAZYBOY_MEMORY_BYTE_BUDGET=6000
# 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
LAZYBOY_RECORDING_RETENTION_DAYS=30
LAZYBOY_MEMORY_HISTORY_RETENTION_DAYS=90
LAZYBOY_DB_WARN_MB=1024
# Docker 網路名稱API 與 Agent 電腦的 noVNC 透過它相通(容器內用,不對外)。
# 同時跑多組 LazyBoy 時改這個名字避免相撞。
LAZYBOY_SCREEN_NETWORK=lazyboy_screen