From 7b094113f5a411dcc87de1028f72ebb78ab53dc1 Mon Sep 17 00:00:00 2001 From: "praisonai-triage-agent[bot]" <272766704+praisonai-triage-agent[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 09:37:42 +0000 Subject: [PATCH 1/2] fix(claw): add .env.example and document TAVILY_API_KEY requirement (fixes #1648) - Add comprehensive .env.example at repository root with all required and optional environment variables - Document TAVILY_API_KEY requirement in README.md Claw section with link to get free API key - Fixes silent failures on first run by providing clear variable reference template - Improves developer onboarding experience for new Claw users Co-authored-by: praisonai-triage-agent[bot] --- .env.example | 43 +++++++++++++++++++++++++++++++++++++++++++ README.md | 9 +++++++++ 2 files changed, 52 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 000000000..e6f67eb5a --- /dev/null +++ b/.env.example @@ -0,0 +1,43 @@ +# PraisonAI Environment Variables +# Copy this file to .env and update with your actual values + +# === Required === +OPENAI_API_KEY=sk-... # OpenAI key for LLM calls. Get yours at https://platform.openai.com + +# === Required for Claw web-search tool === +TAVILY_API_KEY=tvly-... # Get yours at https://app.tavily.com (free tier available) + +# === Optional: Claw dashboard security === +PRAISONAI_ALLOW_LOCAL_TOOLS=0 # Set to 1 to enable local shell tools (security risk) + +# === Optional: Alternative LLM Providers === +ANTHROPIC_API_KEY=sk-ant-... # Anthropic Claude models +GOOGLE_API_KEY=... # Google Gemini models +GROQ_API_KEY=gsk_... # Groq (fast inference) +COHERE_API_KEY=... # Cohere models +AZURE_OPENAI_API_KEY=... # Azure OpenAI +AZURE_OPENAI_ENDPOINT=... # Azure OpenAI endpoint + +# === Optional: Memory backends === +MEM0_API_KEY=... # Mem0 memory service +REDIS_URL=redis://localhost:6379 # Redis for state management + +# === Optional: Observability === +LANGFUSE_SECRET_KEY=sk-lf-... # Langfuse tracing +LANGFUSE_PUBLIC_KEY=pk-lf-... # Langfuse public key + +# === Optional: Bot platforms === +TELEGRAM_BOT_TOKEN=... # Telegram bot token +DISCORD_BOT_TOKEN=... # Discord bot token +SLACK_BOT_TOKEN=xoxb-... # Slack bot token +SLACK_APP_TOKEN=xapp-... # Slack app token +WHATSAPP_ACCESS_TOKEN=... # WhatsApp bot access token +WHATSAPP_PHONE_NUMBER_ID=... # WhatsApp phone number ID + +# === Optional: Database === +DATABASE_URL=sqlite:///~/.praison/database.sqlite # Database connection string + +# === Optional: Development === +LOG_level=INFO # Logging level (DEBUG, INFO, WARNING, ERROR) +CHAINLIT_AUTH_SECRET=... # Chainlit authentication secret +DEBUG=false # Enable debug mode \ No newline at end of file diff --git a/README.md b/README.md index 74414a97f..5cf046b7a 100644 --- a/README.md +++ b/README.md @@ -358,6 +358,15 @@ pip install "praisonai[claw]" praisonai claw ``` +#### Required Environment Variables + +Copy `.env.example` to `.env` and configure the following variables: + +| Variable | Required | Description | +|----------|----------|-------------| +| `OPENAI_API_KEY` | Yes | OpenAI API key for all LLM calls | +| `TAVILY_API_KEY` | Yes (Claw) | Tavily key for the built-in web-search tool. Get one free at https://app.tavily.com | + Open **http://localhost:8082** — the dashboard comes with 13 built-in pages: Chat, Agents, Memory, Knowledge, Channels, Guardrails, Cron, and more. Add messaging channels directly from the UI. > 📖 [Full Claw docs](https://docs.praison.ai/docs/concepts/claw) — platform tokens, CLI options, Docker, and YAML agent mode From 74f4d275706e04f8da222cbe479477f73f11f334 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 10 May 2026 09:40:11 +0000 Subject: [PATCH 2/2] fix(env): use LOGLEVEL key in root .env.example Agent-Logs-Url: https://github.com/MervinPraison/PraisonAI/sessions/7fe15070-18b9-4586-ba5e-a70c271db412 Co-authored-by: MervinPraison <454862+MervinPraison@users.noreply.github.com> --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index e6f67eb5a..62ce92a8a 100644 --- a/.env.example +++ b/.env.example @@ -38,6 +38,6 @@ WHATSAPP_PHONE_NUMBER_ID=... # WhatsApp phone number ID DATABASE_URL=sqlite:///~/.praison/database.sqlite # Database connection string # === Optional: Development === -LOG_level=INFO # Logging level (DEBUG, INFO, WARNING, ERROR) +LOGLEVEL=INFO # Logging level (DEBUG, INFO, WARNING, ERROR) CHAINLIT_AUTH_SECRET=... # Chainlit authentication secret -DEBUG=false # Enable debug mode \ No newline at end of file +DEBUG=false # Enable debug mode