-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(claw): add .env.example and document TAVILY_API_KEY requirement #1649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
praisonai-triage-agent
wants to merge
2
commits into
main
Choose a base branch
from
claude/issue-1648-20260510-0935
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+52
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 === | ||
| LOGLEVEL=INFO # Logging level (DEBUG, INFO, WARNING, ERROR) | ||
| CHAINLIT_AUTH_SECRET=... # Chainlit authentication secret | ||
| DEBUG=false # Enable debug mode | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sqlite:///~/.praison/database.sqlitepath uses a tilde that SQLAlchemy will NOT expand to the user's home directory at runtime — it treats~as a literal character, resulting in a path like./~/.praison/database.sqliterelative to the working directory. Users who copy this value verbatim will get a confusingOperationalError: unable to open database file. An absolute path or a note to substitute the real home directory would be safer.