mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 18:55:37 -04:00
3e6f30629b
- Add .env.example with comprehensive configuration template - Expand README.md with setup instructions and architecture overview - Fix graceful shutdown error handling in daemon - Update tiara submodule with security/reliability fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
133 lines
4.1 KiB
Bash
133 lines
4.1 KiB
Bash
# =============================================================================
|
|
# Agent-Core Environment Configuration
|
|
# =============================================================================
|
|
# Copy this file to .env and fill in your values.
|
|
# All values shown are defaults - only set what you need to override.
|
|
|
|
# =============================================================================
|
|
# LLM Provider API Keys (at least one required)
|
|
# =============================================================================
|
|
|
|
# Anthropic (Claude) - Primary provider
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# OpenAI - Required for embeddings, optional for LLM
|
|
OPENAI_API_KEY=
|
|
|
|
# OpenRouter - Alternative provider with multiple models
|
|
OPENROUTER_API_KEY=
|
|
|
|
# Voyage AI - Alternative embedding provider
|
|
VOYAGE_API_KEY=
|
|
|
|
# =============================================================================
|
|
# Vector Database (Qdrant)
|
|
# =============================================================================
|
|
|
|
# Qdrant server URL (local or cloud)
|
|
# Default: http://localhost:6333
|
|
QDRANT_URL=http://localhost:6333
|
|
|
|
# For Qdrant Cloud, also set:
|
|
# QDRANT_API_KEY=your-api-key
|
|
|
|
# =============================================================================
|
|
# Daemon Configuration
|
|
# =============================================================================
|
|
|
|
# Daemon port for API access
|
|
# Default: 3456
|
|
AGENT_CORE_DAEMON_PORT=3456
|
|
|
|
# IPC socket path for inter-process communication
|
|
# Default: /tmp/agent-core.sock (Linux) or platform equivalent
|
|
# AGENT_CORE_IPC_SOCKET=/tmp/agent-core.sock
|
|
|
|
# Enable WezTerm pane integration
|
|
# Default: false
|
|
# AGENT_CORE_WEZTERM_ENABLED=true
|
|
# PERSONAS_WEZTERM_ENABLED=true
|
|
|
|
# =============================================================================
|
|
# Personas Configuration
|
|
# =============================================================================
|
|
|
|
# Default persona to use (zee, stanley, johny)
|
|
# Default: zee
|
|
PERSONAS_LEAD_PERSONA=zee
|
|
|
|
# =============================================================================
|
|
# Stanley (Investing Persona) - Optional
|
|
# =============================================================================
|
|
|
|
# Stanley repository path
|
|
# Default: ~/Repositories/personas/stanley
|
|
# STANLEY_REPO=/path/to/stanley
|
|
|
|
# Stanley CLI script path
|
|
# Default: $STANLEY_REPO/scripts/stanley_cli.py
|
|
# STANLEY_CLI=/path/to/stanley_cli.py
|
|
|
|
# Python interpreter for Stanley
|
|
# Default: Uses venv if available, else python3
|
|
# STANLEY_PYTHON=python3
|
|
|
|
# Financial data providers
|
|
PLAID_CLIENT_ID=
|
|
PLAID_SECRET=
|
|
ALPHA_VANTAGE_API_KEY=
|
|
YAHOO_FINANCE_KEY=
|
|
|
|
# =============================================================================
|
|
# Johny (Learning Persona) - Optional
|
|
# =============================================================================
|
|
|
|
# Johny repository path
|
|
# Default: ~/Repositories/personas/johny
|
|
# JOHNY_REPO=/path/to/johny
|
|
|
|
# Johny CLI script path
|
|
# Default: $JOHNY_REPO/scripts/johny_cli.py
|
|
# JOHNY_CLI=/path/to/johny_cli.py
|
|
|
|
# Python interpreter for Johny
|
|
# Default: Uses venv if available, else python3
|
|
# JOHNY_PYTHON=python3
|
|
|
|
# =============================================================================
|
|
# Zee (Personal Assistant Persona) - Optional
|
|
# =============================================================================
|
|
|
|
# WhatsApp Business API
|
|
WHATSAPP_TOKEN=
|
|
WHATSAPP_PHONE_ID=
|
|
|
|
# Telegram Bot
|
|
TELEGRAM_BOT_TOKEN=
|
|
|
|
# =============================================================================
|
|
# GitHub Integration
|
|
# =============================================================================
|
|
|
|
# GitHub token for repository operations
|
|
# Can also use GH_TOKEN
|
|
GITHUB_TOKEN=
|
|
|
|
# =============================================================================
|
|
# Terminal Integration
|
|
# =============================================================================
|
|
|
|
# Preferred terminal for canvas/panes: wezterm, tmux, or auto
|
|
# Default: auto (detects available terminal)
|
|
# CANVAS_TERMINAL=wezterm
|
|
|
|
# =============================================================================
|
|
# Development/Debug
|
|
# =============================================================================
|
|
|
|
# Log level: debug, info, warn, error
|
|
# LOG_LEVEL=info
|
|
|
|
# Enable verbose output
|
|
# DEBUG=true
|