# Hermes Agent Environment Configuration # Copy this file to .env and fill in your API keys # ============================================================================= # LLM PROVIDER (OpenRouter - Primary) # ============================================================================= # OpenRouter provides access to many models through one API # Get at: https://openrouter.ai/keys OPENROUTER_API_KEY= # Default model to use (OpenRouter format: provider/model) # Examples: anthropic/claude-sonnet-4, openai/gpt-4o, google/gemini-2.0-flash LLM_MODEL=anthropic/claude-sonnet-4 # ============================================================================= # TOOL API KEYS # ============================================================================= # Firecrawl API Key - Web search, extract, and crawl # Get at: https://firecrawl.dev/ FIRECRAWL_API_KEY= # Nous Research API Key - Vision analysis and multi-model reasoning # Get at: https://inference-api.nousresearch.com/ NOUS_API_KEY= # FAL.ai API Key - Image generation # Get at: https://fal.ai/ FAL_KEY= # ============================================================================= # TERMINAL TOOL CONFIGURATION (mini-swe-agent backend) # ============================================================================= # Backend type: "local", "docker", or "modal" # - local: Runs directly on your machine (fastest, no isolation) # - docker: Runs in Docker containers (isolated, requires Docker installed) # - modal: Runs in Modal cloud sandboxes (scalable, requires Modal account) TERMINAL_ENV=docker # Docker image to use (for docker and modal backends) TERMINAL_DOCKER_IMAGE=python:3.11-slim # Working directory inside the container TERMINAL_CWD=/tmp # Default command timeout in seconds TERMINAL_TIMEOUT=60 # Cleanup inactive environments after this many seconds TERMINAL_LIFETIME_SECONDS=300 # ============================================================================= # MODAL CLOUD BACKEND (Optional - for TERMINAL_ENV=modal) # ============================================================================= # Modal uses CLI authentication, not environment variables. # Run: pip install modal && modal setup # This will authenticate via browser and store credentials locally. # No API key needed in .env - Modal handles auth automatically. # ============================================================================= # LEGACY/OPTIONAL API KEYS # ============================================================================= # Morph API Key - For legacy Hecate terminal backend (terminal-hecate tool) # Get at: https://morph.so/ MORPH_API_KEY= # Hecate VM Settings (only if using terminal-hecate tool) HECATE_VM_LIFETIME_SECONDS=300 HECATE_DEFAULT_SNAPSHOT_ID=snapshot_p5294qxt # Direct provider keys (optional - OpenRouter is preferred) ANTHROPIC_API_KEY= OPENAI_API_KEY= # ============================================================================= # DEBUG OPTIONS # ============================================================================= WEB_TOOLS_DEBUG=false VISION_TOOLS_DEBUG=false MOA_TOOLS_DEBUG=false IMAGE_TOOLS_DEBUG=false