2026-03-14 02:51:10 +01:00
|
|
|
# Onboarding profile — setup/onboarding or setup/profile can detect defaults from FreeBSD locale/timezone
|
|
|
|
|
SETUP_LOCALE=en-US
|
|
|
|
|
DISPLAY_LOCALE=en-US
|
|
|
|
|
ASSISTANT_LOCALE=en-US
|
|
|
|
|
SYSTEM_LOCALE=en_US.UTF-8
|
|
|
|
|
TZ=UTC
|
|
|
|
|
|
|
|
|
|
# Agent identity — ASSISTANT_NAME is primary; AGENT_NAME is auto-derived unless overridden
|
2026-03-10 17:27:35 +00:00
|
|
|
# AGENT_NAME drives all system identifiers (user, service, ZFS, DB names)
|
|
|
|
|
AGENT_NAME=clawdie
|
2026-03-07 21:15:16 +01:00
|
|
|
ASSISTANT_NAME=Clawdie
|
Skills engine v0.1 + multi-channel infrastructure (#307)
* refactor: multi-channel infrastructure with explicit channel/is_group tracking
- Add channels[] array and findChannel() routing in index.ts, replacing
hardcoded whatsapp.* calls with channel-agnostic callbacks
- Add channel TEXT and is_group INTEGER columns to chats table with
COALESCE upsert to protect existing values from null overwrites
- is_group defaults to 0 (safe: unknown chats excluded from groups)
- WhatsApp passes explicit channel='whatsapp' and isGroup to onChatMetadata
- getAvailableGroups filters on is_group instead of JID pattern matching
- findChannel logs warnings instead of silently dropping unroutable JIDs
- Migration backfills channel/is_group from JID patterns for existing DBs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: skills engine v0.1 — deterministic skill packages with rerere resolution
Three-way merge engine for applying skill packages on top of a core
codebase. Skills declare which files they add/modify, and the engine
uses git merge-file for conflict detection with git rerere for
automatic resolution of previously-seen conflicts.
Key components:
- apply: three-way merge with backup/rollback safety net
- replay: clean-slate replay for uninstall and rebase
- update: core version updates with deletion detection
- rebase: bake applied skills into base (one-way)
- manifest: validation with path traversal protection
- resolution-cache: pre-computed rerere resolutions
- structured: npm deps, env vars, docker-compose merging
- CI: per-skill test matrix with conflict detection
151 unit tests covering merge, rerere, backup, replay, uninstall,
update, rebase, structured ops, and edge cases.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add Discord and Telegram skill packages
Skill packages for adding Discord and Telegram channels to NanoClaw.
Each package includes:
- Channel implementation (add/src/channels/)
- Three-way merge targets for index.ts, config.ts, routing.test.ts
- Intent docs explaining merge invariants
- Standalone integration tests
- manifest.yaml with dependency/conflict declarations
Applied via: npx tsx scripts/apply-skill.ts .claude/skills/add-discord
These are inert until applied — no runtime impact.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* remove unused docs (skills-system-status, implementation-guide)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 01:55:00 +02:00
|
|
|
|
2026-03-07 21:15:16 +01:00
|
|
|
# Primary engine for fresh installs
|
|
|
|
|
AGENT_ENGINE=pi-tui
|
|
|
|
|
PI_TUI_BIN=pi
|
2026-03-14 20:50:05 +01:00
|
|
|
# Profile presets:
|
|
|
|
|
# setup, operator, status, payments, docs, cms, git, memory, local
|
|
|
|
|
# Explicit provider/model values below override the profile defaults.
|
|
|
|
|
PI_TUI_PROFILE=operator
|
2026-03-10 12:29:55 +00:00
|
|
|
PI_TUI_PROVIDER=zai
|
2026-04-18 18:21:25 +00:00
|
|
|
PI_TUI_MODEL=glm-5-turbo
|
2026-03-07 21:15:16 +01:00
|
|
|
|
2026-04-26 15:11:27 +02:00
|
|
|
# Known-stable alternative primary (operator-validated 26.apr.2026):
|
|
|
|
|
# PI_TUI_PROVIDER=openrouter
|
|
|
|
|
# PI_TUI_MODEL=openai/o3
|
|
|
|
|
# Use this if zAI is over budget, you don't have a zAI key, or you've
|
|
|
|
|
# experienced silent no-reply situations under zAI's rolling 5-hour cap.
|
|
|
|
|
# Requires OPENROUTER_API_KEY below.
|
|
|
|
|
|
2026-03-07 21:15:16 +01:00
|
|
|
# Primary API key for pi
|
2026-03-10 12:29:55 +00:00
|
|
|
ZAI_API_KEY=
|
2026-04-11 20:37:15 +02:00
|
|
|
# ZAI API base URL — override if the default endpoint does not match your key
|
|
|
|
|
# pi uses https://api.z.ai/api/coding/paas/v4; litellm defaults differ
|
|
|
|
|
# ZAI_API_BASE=https://api.z.ai/api/coding/paas/v4
|
2026-03-07 21:15:16 +01:00
|
|
|
|
|
|
|
|
# Optional alternative providers supported by pi
|
2026-04-28 21:29:21 +02:00
|
|
|
# DEEPSEEK_API_KEY=
|
|
|
|
|
# DEEPSEEK_BASE_URL=https://api.deepseek.com
|
2026-03-07 21:15:16 +01:00
|
|
|
# OPENAI_API_KEY=
|
|
|
|
|
# ANTHROPIC_API_KEY=
|
|
|
|
|
# GEMINI_API_KEY=
|
2026-03-10 12:29:55 +00:00
|
|
|
# OPENROUTER_API_KEY=
|
2026-03-07 21:15:16 +01:00
|
|
|
|
2026-03-10 18:22:17 +00:00
|
|
|
# Ollama Cloud — free tier at ollama.com, no local hardware needed
|
|
|
|
|
# Sign up at https://ollama.com, create API key in settings
|
|
|
|
|
# Provides access to 30+ models including coding, reasoning, and vision
|
|
|
|
|
# OLLAMA_API_KEY=
|
|
|
|
|
|
2026-04-26 14:10:41 +02:00
|
|
|
# Provider fallback — automatically swap providers when the primary hits a
|
|
|
|
|
# usage cap (e.g. zAI 429 "Usage limit reached"). See
|
|
|
|
|
# docs/public/operate/provider-fallback.md for the full operator guide.
|
|
|
|
|
#
|
|
|
|
|
# IMPORTANT: do NOT use a free-tier model as the fallback target. Free tiers
|
|
|
|
|
# rate-limit unpredictably and the failure mode is silent (no reply at all).
|
|
|
|
|
# Use a paid stable OpenRouter model or another provider entirely.
|
|
|
|
|
# LLM_FALLBACK_PROVIDER=openrouter
|
|
|
|
|
# LLM_FALLBACK_MODEL=openai/o3
|
|
|
|
|
# LLM_FALLBACK_DEFAULT_COOLDOWN_SECONDS=3600 # used only when no reset stamp parsed
|
|
|
|
|
|
2026-04-02 15:18:22 +00:00
|
|
|
# Local LLM runtime (optional)
|
|
|
|
|
# LOCAL_LLM_PROVIDER=none|ollama|llama_cpp
|
|
|
|
|
LOCAL_LLM_PROVIDER=none
|
|
|
|
|
FEATURE_OLLAMA=NO
|
|
|
|
|
FEATURE_LLAMA_CPP=NO
|
|
|
|
|
FEATURE_OLLAMA_HPP=NO
|
2026-04-04 15:40:47 +00:00
|
|
|
FEATURE_TAILSCALE=NO
|
|
|
|
|
TAILSCALE_AUTHKEY=
|
2026-04-02 15:18:22 +00:00
|
|
|
|
2026-03-07 21:15:16 +01:00
|
|
|
# Channels
|
|
|
|
|
TELEGRAM_BOT_TOKEN=
|
2026-03-08 21:48:30 +00:00
|
|
|
|
2026-04-19 15:04:32 +02:00
|
|
|
# TTS (text-to-speech) — Microsoft Edge TTS engine (free, no API key)
|
|
|
|
|
# Auto-mode: always | inbound | tagged | off
|
|
|
|
|
# always — every reply gets a voice message
|
|
|
|
|
# inbound — only reply with voice when user sent a voice note
|
|
|
|
|
# tagged — only when agent output contains [[tts]] marker
|
|
|
|
|
# off — no voice messages
|
|
|
|
|
TTS_AUTO_MODE=always
|
docs: update env example, README features, AGENTS.md with all new modules
- .env.example: add TELEGRAM_OPS_CHAT_ID, remove legacy TTS block,
update output format to native MP3
- README.md: remove broken DOCUMENTATION-SYNC-RUNBOOK references,
add Telegram commands table, session compaction, budget-aware
chat policy, and TTS sections
- AGENTS.md: add sections for budget-aware chat policy, TTS,
inbound sanitization, HTML message splitting, startup report
---
Build: pass | Tests: n/a — docs only (Sam & Claude)
2026-04-20 16:10:43 +02:00
|
|
|
TTS_PROVIDER=edge-cli
|
2026-04-19 16:07:54 +02:00
|
|
|
TTS_VOICE=en-US-EmmaMultilingualNeural
|
docs: update env example, README features, AGENTS.md with all new modules
- .env.example: add TELEGRAM_OPS_CHAT_ID, remove legacy TTS block,
update output format to native MP3
- README.md: remove broken DOCUMENTATION-SYNC-RUNBOOK references,
add Telegram commands table, session compaction, budget-aware
chat policy, and TTS sections
- AGENTS.md: add sections for budget-aware chat policy, TTS,
inbound sanitization, HTML message splitting, startup report
---
Build: pass | Tests: n/a — docs only (Sam & Claude)
2026-04-20 16:10:43 +02:00
|
|
|
# Output format: audio-16khz-32kbitrate-mono-mp3 (native MP3, Telegram reads duration)
|
|
|
|
|
TTS_OUTPUT_FORMAT=audio-16khz-32kbitrate-mono-mp3
|
2026-04-19 15:04:32 +02:00
|
|
|
# Max chars to synthesize (longer text is truncated, not summarized)
|
|
|
|
|
TTS_MAX_TEXT_LENGTH=1500
|
docs: update env example, README features, AGENTS.md with all new modules
- .env.example: add TELEGRAM_OPS_CHAT_ID, remove legacy TTS block,
update output format to native MP3
- README.md: remove broken DOCUMENTATION-SYNC-RUNBOOK references,
add Telegram commands table, session compaction, budget-aware
chat policy, and TTS sections
- AGENTS.md: add sections for budget-aware chat policy, TTS,
inbound sanitization, HTML message splitting, startup report
---
Build: pass | Tests: n/a — docs only (Sam & Claude)
2026-04-20 16:10:43 +02:00
|
|
|
# TTS rate/volume (optional, passed to edge-tts CLI)
|
|
|
|
|
# TTS_RATE=+0%
|
|
|
|
|
# TTS_VOLUME=+0%
|
2026-04-19 15:04:32 +02:00
|
|
|
|
2026-04-19 07:11:51 +00:00
|
|
|
# Controlplane agent API auth (jail agents -> host API)
|
|
|
|
|
# Generate: openssl rand -base64 32
|
|
|
|
|
CONTROLPLANE_SHARED_SECRET=
|
|
|
|
|
|
|
|
|
|
# Better Auth base URL (required to avoid callback/redirect warnings)
|
|
|
|
|
# Default is http://127.0.0.1:3100, set to your nginx/Tailscale URL if exposed.
|
|
|
|
|
BETTER_AUTH_URL=http://127.0.0.1:3100
|
|
|
|
|
|
2026-04-18 13:38:09 +00:00
|
|
|
# Prompt/token guardrails (model context safety)
|
|
|
|
|
# These are char/byte-based caps (fast, model-agnostic).
|
|
|
|
|
# Increase in dev if you paste large logs; keep conservative in production.
|
|
|
|
|
AGENT_MAX_INBOUND_CHARS=12000
|
2026-04-20 09:51:55 +00:00
|
|
|
AGENT_MAX_INBOUND_BYTES=64000
|
2026-04-18 13:38:09 +00:00
|
|
|
AGENT_MAX_BACKLOG_MESSAGES=20
|
|
|
|
|
AGENT_MAX_BACKLOG_CHARS=25000
|
|
|
|
|
AGENT_MAX_PROMPT_CHARS=60000
|
2026-04-20 11:36:12 +00:00
|
|
|
|
|
|
|
|
# Budget-aware chat policy (soft-degrade + pause)
|
2026-04-20 13:48:23 +00:00
|
|
|
# When budget accounting is unavailable (controlplane down), default state
|
|
|
|
|
# Options: normal | low_budget
|
2026-04-20 18:07:53 +02:00
|
|
|
# Per-chat daily token limit (0 = disabled, no per-chat quota tracking).
|
|
|
|
|
# When set, each chat gets its own daily budget independent of the global limit.
|
|
|
|
|
# Chats exceeding their quota enter low_budget/paused states just like global budget.
|
2026-04-20 12:17:55 +02:00
|
|
|
# Session files exceeding this size trigger compaction (or fresh session if
|
|
|
|
|
# compaction is disabled). Prevents model context_window_exceeded errors.
|
2026-04-18 19:59:15 +00:00
|
|
|
AGENT_SESSION_MAX_BYTES=200000
|
2026-04-20 12:17:55 +02:00
|
|
|
# Session compaction — when a session grows past the byte limit, old turns are
|
|
|
|
|
# summarized into a compaction header and the summary is stored in memory DB.
|
|
|
|
|
# The last N turns are kept at full fidelity.
|
|
|
|
|
AGENT_SESSION_COMPACT_ENABLED=YES
|
|
|
|
|
AGENT_SESSION_COMPACT_KEEP_TURNS=20
|
|
|
|
|
AGENT_SESSION_COMPACT_MIN_ENTRIES=30
|
2026-04-18 13:38:09 +00:00
|
|
|
|
2026-04-06 19:53:07 +02:00
|
|
|
# Crowdin — Translation management for multi-language docs
|
|
|
|
|
# Free for open source: https://crowdin.com/open-source
|
|
|
|
|
# Create token at: https://crowdin.com/settings#api-key
|
|
|
|
|
CROWDIN_PERSONAL_TOKEN=
|
|
|
|
|
|
2026-04-03 09:36:40 +00:00
|
|
|
# SSH (optional) — used by Ansible when enabling sshd inside jails
|
2026-04-18 11:54:28 +02:00
|
|
|
# Also deployed to the git jail's git user authorized_keys automatically.
|
2026-04-03 09:36:40 +00:00
|
|
|
# Example: SSH_PUBLIC_KEY="ssh-ed25519 AAAA... you@host"
|
|
|
|
|
SSH_PUBLIC_KEY=
|
2026-04-18 11:54:28 +02:00
|
|
|
# Private key path for git-admin agent (public key auto-derived for git jail)
|
2026-05-07 11:33:14 +02:00
|
|
|
# GIT_SSH_KEY_PATH=/home/clawdie/.ssh/id_ed25519
|
2026-04-03 09:36:40 +00:00
|
|
|
|
2026-03-14 17:41:41 +01:00
|
|
|
# Stripe is built into the default Clawdie runtime.
|
|
|
|
|
# Leave blank to skip for now, or set a Restricted key from
|
|
|
|
|
# Stripe Dashboard -> Developers -> API Keys -> Restricted Keys.
|
|
|
|
|
STRIPE_SECRET_KEY=
|
|
|
|
|
STRIPE_ENABLE_REFUNDS=NO
|
|
|
|
|
|
|
|
|
|
# Domain split:
|
2026-05-10 18:49:08 +02:00
|
|
|
# AGENT_DOMAIN -> public-facing site/API domain. Leave blank until
|
|
|
|
|
# you have a real public DNS name configured.
|
2026-03-14 17:41:41 +01:00
|
|
|
# AGENT_INTERNAL_DOMAIN -> internal jail/service names written into /etc/hosts
|
|
|
|
|
#
|
|
|
|
|
# Use home.arpa for internal-only names. .local is reserved for mDNS and can
|
|
|
|
|
# create resolver ambiguity on the local link.
|
2026-05-10 18:49:08 +02:00
|
|
|
# This example internal value matches the default AGENT_NAME above; replace it
|
|
|
|
|
# if you rename the agent.
|
|
|
|
|
AGENT_DOMAIN=
|
2026-03-14 19:45:15 +01:00
|
|
|
AGENT_INTERNAL_DOMAIN=clawdie.home.arpa
|
2026-03-14 17:41:41 +01:00
|
|
|
|
|
|
|
|
# Local code hosting defaults
|
|
|
|
|
# Current main provisions a dedicated git jail by default.
|
|
|
|
|
CODE_HOSTING_MODE=git
|
|
|
|
|
REMOTE_GIT_URL=https://codeberg.org/Clawdie/Clawdie-AI.git
|
2026-04-18 11:47:14 +00:00
|
|
|
# Local git jail — primary push target for agents (no Codeberg keys needed)
|
|
|
|
|
GIT_LOCAL_URL=git@10.0.1.6:/srv/git/Clawdie-AI.git
|
2026-03-14 17:41:41 +01:00
|
|
|
FEATURE_GIT=YES
|
|
|
|
|
FEATURE_GITEA=NO
|
2026-04-18 07:02:25 +00:00
|
|
|
# Optional: isolate git-admin agent edits to a dedicated working tree
|
|
|
|
|
# (mounted into the git-worker jail at /opt/repo). If unset, the git-admin
|
|
|
|
|
# worker may mount the project root as its repo.
|
|
|
|
|
# AGENT_REPO_DIR=/home/<agent>/<project>/data/worktrees/git-admin
|
2026-03-10 09:21:44 +00:00
|
|
|
|
|
|
|
|
# Warden jail network — choose your private subnet at bootstrap.
|
2026-05-10 21:07:03 +02:00
|
|
|
# AGENT_SUBNET_BASE sets the default subnet; WARDEN_* can pin individual addresses.
|
2026-03-10 09:21:44 +00:00
|
|
|
# Code defaults to 10.0.0.x if these are not set.
|
|
|
|
|
# Common choices: 192.168.100.x, 10.0.0.x, 172.16.50.x
|
2026-03-10 19:12:20 +00:00
|
|
|
#
|
|
|
|
|
# Reserved IPs (lower = more foundational to agent runtime):
|
|
|
|
|
# .1 Gateway — bridge interface
|
2026-05-10 21:07:03 +02:00
|
|
|
# .2 Reserved — do not use for new runtime
|
2026-03-10 19:12:20 +00:00
|
|
|
# .3 Database — PostgreSQL (skills + memory)
|
2026-04-02 15:18:22 +00:00
|
|
|
# .4 CMS — Astro/Strapi content (if enabled)
|
|
|
|
|
# .5 Local LLM — Ollama or llama-cpp (if enabled)
|
|
|
|
|
# .6 Git — local bare repositories
|
2026-03-14 17:41:41 +01:00
|
|
|
# .101+ Worker — jailed agent execution
|
|
|
|
|
# .150 Browser VM — reserved browser automation profile
|
|
|
|
|
AGENT_SUBNET_BASE=10.0.0
|
2026-03-10 09:21:44 +00:00
|
|
|
WARDEN_SUBNET_BASE=10.0.0
|
|
|
|
|
WARDEN_SUBNET=10.0.0.0/24
|
|
|
|
|
WARDEN_GATEWAY=10.0.0.1
|
2026-05-10 21:07:03 +02:00
|
|
|
# There is no active controlplane jail; keep this slot unused.
|
2026-04-03 09:36:40 +00:00
|
|
|
WARDEN_CONTROLPLANE_IP=10.0.0.2
|
2026-03-10 19:12:20 +00:00
|
|
|
WARDEN_DB_IP=10.0.0.3
|
2026-04-02 15:18:22 +00:00
|
|
|
WARDEN_CMS_IP=10.0.0.4
|
|
|
|
|
WARDEN_OLLAMA_IP=10.0.0.5
|
|
|
|
|
WARDEN_LLAMA_CPP_IP=10.0.0.5
|
|
|
|
|
WARDEN_GIT_IP=10.0.0.6
|
2026-03-10 09:21:44 +00:00
|
|
|
|
2026-04-30 06:23:06 +02:00
|
|
|
# PostgreSQL runtime: host (default) or jail.
|
|
|
|
|
# Host runs PostgreSQL directly on FreeBSD; jails connect via warden0
|
2026-05-10 21:07:03 +02:00
|
|
|
# (DB_HOST defaults to ${AGENT_SUBNET_BASE}.1). Jail mode is available for
|
|
|
|
|
# operators who intentionally want PostgreSQL isolated from the host service.
|
2026-04-30 06:23:06 +02:00
|
|
|
DB_RUNTIME=host
|
2026-04-12 12:07:08 +00:00
|
|
|
DB_HOST=
|
2026-05-07 11:33:14 +02:00
|
|
|
# Max wait during Clawdie startup for host PostgreSQL to become query-ready.
|
2026-05-01 12:08:54 +02:00
|
|
|
HOST_DB_READINESS_TIMEOUT_MS=60000
|
2026-04-12 12:07:08 +00:00
|
|
|
# ZFS dataset compression for host-based PostgreSQL (lz4 default, zstd optional).
|
|
|
|
|
DB_COMPRESSION=lz4
|
|
|
|
|
|
2026-04-30 06:23:06 +02:00
|
|
|
# PostgreSQL — split-brain architecture (three databases, host PostgreSQL by default)
|
2026-03-10 17:27:35 +00:00
|
|
|
# Skills DB: ships with repo, restored from dump, read-only at runtime
|
|
|
|
|
# Memory DB: user data, grows with conversations, needs backups
|
2026-04-11 12:20:51 +02:00
|
|
|
# Ops DB: operational data (chats, messages, tasks, sessions, routing)
|
2026-03-14 17:41:41 +01:00
|
|
|
# setup/onboarding and setup/db will generate these if missing and keep the
|
|
|
|
|
# URLs below in sync with AGENT_NAME, subnet, and passwords.
|
2026-05-07 12:20:01 +02:00
|
|
|
# PostgreSQL identifiers use the fixed platform namespace on root installs:
|
|
|
|
|
# Root/platform install -> system_skills / system_brain / system_ops / system_git / system_web
|
2026-03-08 21:48:30 +00:00
|
|
|
POSTGRES_ADMIN_PASSWORD=
|
2026-03-14 17:41:41 +01:00
|
|
|
SKILLS_DB_PASSWORD=
|
2026-03-10 17:27:35 +00:00
|
|
|
MEMORY_DB_PASSWORD=
|
2026-04-11 12:20:51 +02:00
|
|
|
OPS_DB_PASSWORD=
|
2026-04-11 14:47:18 +00:00
|
|
|
FORGEJO_DB_PASSWORD=
|
2026-03-14 19:45:15 +01:00
|
|
|
SKILLS_DB_URL=
|
|
|
|
|
MEMORY_DB_URL=
|
2026-04-11 12:20:51 +02:00
|
|
|
OPS_DB_URL=
|
2026-04-21 04:07:56 +00:00
|
|
|
|
|
|
|
|
# Embeddings (pgvector) — used by memory search. Defaults:
|
|
|
|
|
# - If OPENROUTER_API_KEY is set: OpenRouter embeddings endpoint
|
|
|
|
|
# - Otherwise: local llama-server at http://localhost:8080/v1
|
|
|
|
|
# Disable embeddings entirely (FTS-only) by setting EMBED_BASE_URL to empty:
|
|
|
|
|
# EMBED_BASE_URL=
|
|
|
|
|
# OpenRouter default (when OPENROUTER_API_KEY is set):
|
|
|
|
|
# EMBED_BASE_URL=https://openrouter.ai/api/v1
|
|
|
|
|
# EMBED_API_KEY= # defaults to OPENROUTER_API_KEY when base_url is openrouter
|
|
|
|
|
# Model must match DB vector dimensions (default vector(1024)):
|
|
|
|
|
# EMBED_MODEL=BAAI/bge-m3
|
|
|
|
|
# EMBED_DIMENSIONS=1024
|
2026-04-11 14:47:18 +00:00
|
|
|
FORGEJO_DB_URL=
|
2026-03-14 18:39:43 +01:00
|
|
|
# Strapi secrets are generated automatically by onboarding/db/cms if missing.
|
|
|
|
|
# They back the internal Strapi app in the cms jail and should not be exposed.
|
2026-03-08 21:48:30 +00:00
|
|
|
STRAPI_DB_PASSWORD=
|
2026-03-14 17:41:41 +01:00
|
|
|
STRAPI_APP_KEYS=
|
|
|
|
|
STRAPI_API_TOKEN_SALT=
|
|
|
|
|
STRAPI_ADMIN_JWT_SECRET=
|
|
|
|
|
STRAPI_TRANSFER_TOKEN_SALT=
|
|
|
|
|
STRAPI_JWT_SECRET=
|
|
|
|
|
CMS_ENABLE=NO
|
2026-04-12 11:30:03 +00:00
|
|
|
CMS_ADMIN_UI=NO
|
2026-03-14 17:41:41 +01:00
|
|
|
GIT_JAIL_NAME=
|
|
|
|
|
GIT_JAIL_IP=
|
|
|
|
|
GIT_STORAGE_ROOT=
|
|
|
|
|
GIT_DEFAULT_REPO_NAME=
|
2026-04-03 09:36:40 +00:00
|
|
|
# Multi-agent note: if you run multiple agents on one host, set explicit jail
|
|
|
|
|
# names so service jails do not collide.
|
|
|
|
|
CMS_JAIL_NAME=
|
|
|
|
|
OLLAMA_JAIL_NAME=
|
|
|
|
|
LLAMA_CPP_JAIL_NAME=
|
|
|
|
|
|
2026-05-10 21:07:03 +02:00
|
|
|
# CMS_JAIL_NAME defaults to "cms".
|
2026-04-03 09:36:40 +00:00
|
|
|
# CMS_JAIL_IP defaults to ${AGENT_SUBNET_BASE}.4 when setup --step cms runs.
|
2026-05-08 10:06:59 +02:00
|
|
|
# CMS_WEBROOT defaults to /usr/local/www/clawdie and serves docs/tenant output
|
2026-05-10 19:49:39 +02:00
|
|
|
# CMS_DOCS_SITE_PATH defaults to /home/clawdie/clawdie-docs
|
2026-05-08 10:06:59 +02:00
|
|
|
# CMS_LANDING_SITE_PATH defaults to /home/clawdie/clawdie-si
|
|
|
|
|
# CMS_LANDING_WEBROOT defaults to /usr/local/www/clawdie-si
|
2026-03-14 18:39:43 +01:00
|
|
|
# CMS_STRAPI_PATH defaults to /home/clawdie/strapi
|
|
|
|
|
# CMS_STRAPI_URL defaults to http://cms.<agent>.home.arpa:1337/api
|
|
|
|
|
# CMS_STRAPI_ADMIN_URL defaults to http://cms.<agent>.home.arpa:1337/admin
|
|
|
|
|
# CMS_ASTRO_MODE=strapi-seed
|
2026-03-08 21:48:30 +00:00
|
|
|
|
2026-03-14 22:51:55 +01:00
|
|
|
# Protected screenshots auth (generated by onboarding/cms if missing)
|
2026-03-08 21:48:30 +00:00
|
|
|
SCREENSHOTS_USER=clawdie
|
|
|
|
|
SCREENSHOTS_PASSWORD=
|
2026-04-07 14:47:34 +02:00
|
|
|
|
|
|
|
|
# Control Plane (multi-agent orchestration)
|
|
|
|
|
CONTROLPLANE_NAME=clawdie
|
|
|
|
|
CONTROLPLANE_DAILY_TOKENS=100000
|
|
|
|
|
CONTROLPLANE_PORT=3100
|
2026-04-18 21:16:25 +02:00
|
|
|
CONTROLPLANE_BIND_HOST=0.0.0.0
|
2026-04-19 08:32:29 +02:00
|
|
|
# IP address that jailed agents use to reach the host API (default: 10.0.1.1).
|
|
|
|
|
# CONTROLPLANE_HOST_IP=10.0.1.1
|
2026-04-08 20:28:12 +02:00
|
|
|
CONTROLPLANE_AUTH_MODE=local_trusted
|
2026-04-18 20:57:16 +02:00
|
|
|
# Shared secret for agent-to-API Bearer token auth (required for agent subprocesses).
|
|
|
|
|
# Generate with: openssl rand -base64 32
|
|
|
|
|
# CONTROLPLANE_SHARED_SECRET=
|
2026-04-08 21:23:28 +00:00
|
|
|
# CONTROLPLANE_RUNNER=pi
|
2026-04-20 15:51:37 +00:00
|
|
|
# Options: pi | aider | codex
|
|
|
|
|
# CONTROLPLANE_CODEX_BIN=codex
|
|
|
|
|
# CONTROLPLANE_CODEX_MODEL=gpt-5.2
|
2026-04-12 08:26:20 +02:00
|
|
|
# CONTROLPLANE_AIDER_BIN=aider
|
|
|
|
|
# CONTROLPLANE_AIDER_FLAGS=--no-check-update --no-gitignore
|
|
|
|
|
# CONTROLPLANE_AIDER_TMUX_SESSION=clawdie-controlplane
|
|
|
|
|
# CONTROLPLANE_AIDER_LOG_DIR=/home/clawdie/clawdie-ai/tmp/controlplane/aider
|
2026-04-08 20:28:12 +02:00
|
|
|
# BETTER_AUTH_SECRET — required when CONTROLPLANE_AUTH_MODE=authenticated
|
2026-04-25 23:50:19 +02:00
|
|
|
# BETTER_AUTH_URL defaults to http://127.0.0.1:<CONTROLPLANE_PORT>
|
|
|
|
|
# CONTROLPLANE_OPERATOR_EMAIL defaults to <CONTROLPLANE_NAME>@<public_base|ai.home.arpa>
|
2026-04-11 18:40:08 +00:00
|
|
|
CONTROLPLANE_DASHBOARD_DIR=/usr/local/www/clawdie/controlplane
|
2026-04-08 20:28:12 +02:00
|
|
|
# Generate with: openssl rand -base64 32
|
|
|
|
|
BETTER_AUTH_SECRET=
|
2026-04-25 23:50:19 +02:00
|
|
|
# CONTROLPLANE_OPERATOR_EMAIL=
|
2026-04-07 14:47:34 +02:00
|
|
|
OPERATOR_PASSWORD=
|
2026-04-19 11:29:33 +00:00
|
|
|
|
|
|
|
|
# Vision fallback (optional) — OCR Telegram screenshots via OpenRouter.
|
|
|
|
|
# Requires OPENROUTER_API_KEY.
|
|
|
|
|
# VISION_PROVIDER=openrouter
|
|
|
|
|
# VISION_MODEL=nvidia/nemotron-nano-12b-v2-vl:free
|
|
|
|
|
# VISION_MAX_IMAGES=1
|
|
|
|
|
|
2026-04-19 11:46:53 +00:00
|
|
|
# STT (optional) — transcribe Telegram voice notes.
|
|
|
|
|
# Default implementation supports OpenAI Whisper, or attempts OpenRouter with an OpenAI-compatible endpoint.
|
|
|
|
|
# STT_PROVIDER=openrouter
|
|
|
|
|
# STT_MODEL=openai/whisper-1
|
2026-04-20 05:06:02 +00:00
|
|
|
|
|
|
|
|
# Telegram admin user IDs (comma-separated).
|
|
|
|
|
# In group chats, admin-only commands (/tts, /stop, /new, /activation) require sender ID in this list.
|
|
|
|
|
# Example: TELEGRAM_ADMIN_IDS=85126311,123456789
|
|
|
|
|
TELEGRAM_ADMIN_IDS=
|
docs: update env example, README features, AGENTS.md with all new modules
- .env.example: add TELEGRAM_OPS_CHAT_ID, remove legacy TTS block,
update output format to native MP3
- README.md: remove broken DOCUMENTATION-SYNC-RUNBOOK references,
add Telegram commands table, session compaction, budget-aware
chat policy, and TTS sections
- AGENTS.md: add sections for budget-aware chat policy, TTS,
inbound sanitization, HTML message splitting, startup report
---
Build: pass | Tests: n/a — docs only (Sam & Claude)
2026-04-20 16:10:43 +02:00
|
|
|
# Ops group chat ID — receives startup reports and system notifications.
|
|
|
|
|
# This chat is exempt from budget-aware pausing (never paused, only degraded).
|
|
|
|
|
# Example: TELEGRAM_OPS_CHAT_ID=-5148108067
|
|
|
|
|
TELEGRAM_OPS_CHAT_ID=
|
2026-04-20 17:37:06 +00:00
|
|
|
|
2026-04-26 15:11:27 +02:00
|
|
|
# Compaction provider/model — controls which LLM summarizes old session turns.
|
|
|
|
|
#
|
|
|
|
|
# Default behavior (both unset): compaction follows the chat runtime. If
|
|
|
|
|
# provider fallback is active (see LLM_FALLBACK_* above), compaction also
|
|
|
|
|
# uses the fallback. Simplest, no extra cost surface, no separate API key.
|
|
|
|
|
#
|
|
|
|
|
# Pinning compaction to a specific provider decouples it from the chat
|
|
|
|
|
# runtime — chat can fall over to a fallback while compaction stays on a
|
|
|
|
|
# stable secondary. Useful if you want compaction to keep using a cheap
|
|
|
|
|
# model when chat swaps to a more expensive one, or vice versa. Requires
|
|
|
|
|
# the pinned provider's API key.
|
|
|
|
|
#
|
|
|
|
|
# Operator note (26.apr.2026): leaving these unset is the validated default.
|
|
|
|
|
# Pin only when you have a deliberate cost or stability reason.
|
2026-04-28 22:10:28 +02:00
|
|
|
# HEARTBEAT_PROVIDER=deepseek
|
2026-05-24 23:54:25 +02:00
|
|
|
# HEARTBEAT_MODEL=deepseek-v4-flash
|
2026-04-20 17:37:06 +00:00
|
|
|
# AGENT_COMPACTION_PROVIDER=zai
|
2026-04-21 06:47:45 +02:00
|
|
|
# AGENT_COMPACTION_MODEL=glm-4.6
|
2026-04-20 17:37:06 +00:00
|
|
|
|
2026-04-21 11:18:50 +02:00
|
|
|
# Idle maintenance interval for heartbeat-enabled agents in ms (default: 7200000 = 2h).
|
|
|
|
|
# Controls how often agents with no pending tasks receive a maintenance idle prompt.
|
|
|
|
|
# Separate from the 30s task pickup tick.
|
|
|
|
|
# AGENT_HEARTBEAT_IDLE_INTERVAL_MS=7200000
|