lazyBoy/.env.example

81 lines
4.1 KiB
Plaintext
Raw Permalink 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.

# 登入改為帳號密碼(在網頁上註冊),不再需要共享 token。
# API 金鑰也不再讀環境變數:註冊後到「設定 → 模型」貼上,沒有金鑰就不能跑。
# Generate independent values with: openssl rand -hex 32
SANDBOX_SUPERVISOR_TOKEN=
# 這個金鑰要穩定輪替:換掉它會讀不到已加密的密碼庫。
LAZYBOY_VAULT_KEY=
POSTGRES_PASSWORD=lazyboy
# 127.0.0.1 = 只有本機0.0.0.0 = 開放區網,讓別人用他自己的帳號登入;
# 也可填單一網卡的 IP把監聽限制在那個介面。
LAZYBOY_BIND_IP=127.0.0.1
# 只有清單上的網域名稱會被接受DNS rebinding 防護)。用 IP 或 localhost 連進來
# 不需要填;用例如 lazyboy.local 這種位名時才加在這裡,逗號分隔。
LAZYBOY_ALLOWED_HOSTS=
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 upgrading. Cua is the only supported computer controller.
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 就填一個便宜快速的 model id要跟空間預設來自同一家 provider
# 挑不到人、模型不能用、或超過 1.2 秒,一律由主持人(群組第一位成員)收場。
LAZYBOY_ROUTER_MODEL=
# 任務長度政策:不再用固定輪數掐掉任務。正常任務一路做到驗證完成,只有
# 真的鬼打牆(同一個動作重複、同一個錯誤一直失敗、很久沒有新的成功)才會被
# 提示、接著暫停等你決定;最後兩個是防迴圈失控烧 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
# 一次模型請求裡,系統提示 + 工具 schema + 對話(含網頁快照)的字元上限。
# 超過就先把較舊的畫面紀錄收成摘要,再丟掉更舊的輪次,避免整份任務因
# context 爆掉而失敗。預設對 128k 視窗留有餘地;不要開到比模型窗口還大。
LAZYBOY_MODEL_CONTEXT_CHARS=200000
# 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
# Executor path version (not a ComputerMode). legacy = GUI-first; hybrid = native tools.
LAZYBOY_EXECUTION_PROFILE=hybrid
# xvfb_x11vnc is the default. tigervnc_xvnc is a candidate backend (PR-09); keep rollback.
LAZYBOY_DISPLAY_BACKEND=xvfb_x11vnc
LAZYBOY_BROWSER_BACKEND=cua
LAZYBOY_TOOL_AUDIT_REQUIRED=true
LAZYBOY_NATIVE_JOB_CONCURRENCY=2
LAZYBOY_SERVICE_READ_CONCURRENCY=4
LAZYBOY_TOOL_INSTALL_ENABLED=true
LAZYBOY_TOOL_INSTALL_REQUIRE_APPROVAL=true