# ============================================ # Autonoma — Environment Configuration # ============================================ # Copy this file to .env and fill in your keys. # Only ONE provider API key is needed. # ============================================ # --- LLM Provider --- # Choose one: "anthropic", "openrouter" AUTONOMA_LLM_PROVIDER=openrouter # --- API Keys (set the one matching your provider) --- # OpenRouter (recommended — one key, many models) # Get your key: https://openrouter.ai/keys OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxxxx # Anthropic (direct Claude access) # Get your key: https://console.anthropic.com/ # ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxx # --- Model Selection --- # OpenRouter models: anthropic/claude-sonnet-4-6, openai/gpt-4o, google/gemini-2.0-flash-001, meta-llama/llama-3.1-70b-instruct # Anthropic models: claude-sonnet-4-6, claude-haiku-4-5-20251001 AUTONOMA_LLM_MODEL=anthropic/claude-sonnet-4-6 # --- Optional Overrides --- # AUTONOMA_LOG_LEVEL=INFO # ============================================ # Channel Configuration # ============================================ # Channels auto-enable when their credentials are set. # No need to manually toggle — just add the token. # --- Telegram Bot --- # Create a bot via @BotFather on Telegram, get the token # TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 # --- Discord Bot --- # Create app at https://discord.com/developers/applications # Enable MESSAGE_CONTENT intent in Bot settings # DISCORD_BOT_TOKEN=MTIzNDU2Nzg5MDEyMzQ1Njc4OQ.XXXXXX.XXXXXXXXXX # --- WhatsApp (via whatsapp-web.js bridge) --- # Start the bridge first: cd whatsapp-bridge && npm install && npm start # Scan the QR code with WhatsApp, then set this to enable: # WHATSAPP_BRIDGE_URL=http://localhost:3001 # --- Gmail (IMAP/SMTP) --- # Enable 2FA, then create App Password at https://myaccount.google.com/apppasswords # GMAIL_ADDRESS=your.agent@gmail.com # GMAIL_APP_PASSWORD=xxxx xxxx xxxx xxxx # --- REST API --- # Optional token to protect the /api/chat endpoint (enabled by default) # AUTONOMA_REST_API_TOKEN=your-secret-token-here # ============================================ # Connectors (OAuth-backed integrations) # ============================================ # Connect / disconnect each one from the dashboard /connectors page or TUI. # --- Google (Calendar, Contacts, Meet share one OAuth client) --- # Create OAuth 2.0 Client ID at https://console.cloud.google.com/apis/credentials # Authorized redirect URIs: http://127.0.0.1:8766/oauth/google_calendar/callback # ...also /oauth/google_contacts/callback and /oauth/google_meet/callback # GOOGLE_CLIENT_ID=xxxxxxxx.apps.googleusercontent.com # GOOGLE_CLIENT_SECRET=GOCSPX-xxxxxxxxxxxx # AUTONOMA_GCAL_ENABLED=true # AUTONOMA_GCONTACTS_ENABLED=true # AUTONOMA_GMEET_ENABLED=true # --- Microsoft OneDrive --- # Register an app at https://portal.azure.com (Azure Active Directory > App registrations) # Redirect URI: http://127.0.0.1:8766/oauth/onedrive/callback # MS_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # MS_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxx # MS_TENANT=common # AUTONOMA_ONEDRIVE_ENABLED=true # --- GitHub (issues, PRs, notifications) --- # Register an OAuth App at https://github.com/settings/developers # Authorization callback URL: http://127.0.0.1:8766/oauth/github/callback # GITHUB_CLIENT_ID=Iv1.xxxxxxxxxxxxxxxx # GITHUB_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # AUTONOMA_GITHUB_ENABLED=true