clawdie-ai/.env.example

66 lines
2.2 KiB
Text
Raw Normal View History

# Agent identity — set during onboarding TUI
# 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
PI_TUI_PROVIDER=zai
PI_TUI_MODEL=glm-5
2026-03-07 21:15:16 +01:00
# Primary API key for pi
ZAI_API_KEY=
2026-03-07 21:15:16 +01:00
# Optional alternative providers supported by pi
# OPENAI_API_KEY=
# ANTHROPIC_API_KEY=
# GEMINI_API_KEY=
# OPENROUTER_API_KEY=
2026-03-07 21:15:16 +01: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-03-07 21:15:16 +01:00
# Channels
TELEGRAM_BOT_TOKEN=
# Domain — set your real domain here. Defaults to ${AGENT_NAME}.local
AGENT_DOMAIN=agent.local
WARDEN_CONTROL_PLANE_HOSTNAME=controlplane.agent.local
# Warden jail network — choose your private subnet at bootstrap.
# 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
#
# Reserved IPs (lower = more foundational to agent runtime):
# .1 Gateway — bridge interface
# .2 Controlplane — agent brain (core runtime)
# .3 Database — PostgreSQL (skills + memory)
# .4 Ollama — local LLM inference (if enabled)
# .5 CMS — Astro/Strapi content (if enabled)
# .6 Browser — Playwright/Chrome (reserved)
# .7-.10 — reserved for future services
WARDEN_SUBNET_BASE=10.0.0
WARDEN_SUBNET=10.0.0.0/24
WARDEN_GATEWAY=10.0.0.1
WARDEN_CONTROL_PLANE_IP=10.0.0.2
WARDEN_DB_IP=10.0.0.3
WARDEN_OLLAMA_IP=10.0.0.4
WARDEN_CMS_IP=10.0.0.5
# PostgreSQL — two-brain architecture (both in db jail at .3)
# Skills DB: ships with repo, restored from dump, read-only at runtime
# Memory DB: user data, grows with conversations, needs backups
# Generate passwords with: python3 -c "import secrets; print(secrets.token_urlsafe(24))"
POSTGRES_ADMIN_PASSWORD=
MEMORY_DB_PASSWORD=
SKILLS_DB_URL=postgresql://${AGENT_NAME}_reader@10.0.0.3:5432/${AGENT_NAME}_skills
MEMORY_DB_URL=postgresql://${AGENT_NAME}_brain@10.0.0.3:5432/${AGENT_NAME}_brain
STRAPI_DB_PASSWORD=
# Nginx basic auth (defaults to AGENT_NAME if not set)
SCREENSHOTS_USER=clawdie
SCREENSHOTS_PASSWORD=