.env.template 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # ============================================================
  2. # LambdaAgentPaaS 配置文件
  3. # 复制此文件为 ~/.agentpaas/.env 并填写相关配置
  4. #
  5. # 一键部署脚本会自动初始化此文件
  6. # ============================================================
  7. # ── 数据目录(勿随意修改,由启动脚本自动设置)──────────────
  8. # Mac/Linux: ~/.agentpaas/data
  9. # Windows: %USERPROFILE%\.agentpaas\data
  10. # Docker 内: /data
  11. AGENTPAAS_DATA_DIR=
  12. # ── 安全密钥(由启动脚本自动生成,请勿泄露)────────────────
  13. # 用于加密数据库中存储的 secrets
  14. # 生成命令: python -c "import secrets; print(secrets.token_hex(32))"
  15. AGENTPAAS_MASTER_KEY=
  16. # ── 服务配置 ────────────────────────────────────────────────
  17. AGENTPAAS_PORT=8000
  18. AGENTPAAS_LOG_LEVEL=INFO
  19. # AGENTPAAS_DEBUG=false # 生产环境保持 false
  20. # ── 工作区自动清理(超过 N 天的运行记录自动删除)────────────
  21. AGENTPAAS_WORKSPACE_RETENTION_DAYS=30
  22. # ============================================================
  23. # LLM 提供商 API Keys
  24. # 至少配置一个,才能让 Agent 正常工作
  25. # ============================================================
  26. # 阿里云百炼 (DashScope) — 推荐国内首选
  27. # 获取: https://bailian.console.aliyun.com/
  28. DASHSCOPE_API_KEY=
  29. # Anthropic Claude
  30. # 获取: https://console.anthropic.com/
  31. ANTHROPIC_API_KEY=
  32. # OpenAI
  33. # 获取: https://platform.openai.com/api-keys
  34. OPENAI_API_KEY=
  35. # DeepSeek
  36. # 获取: https://platform.deepseek.com/
  37. DEEPSEEK_API_KEY=
  38. # 智谱 AI (GLM)
  39. # 获取: https://open.bigmodel.cn/
  40. ZHIPU_API_KEY=
  41. # 月之暗面 (Moonshot / Kimi)
  42. # 获取: https://platform.moonshot.cn/
  43. MOONSHOT_API_KEY=
  44. # SiliconFlow (硅基流动 — agentexample/qademo/travel_api.py、travelagent67、qaagent67* 用到)
  45. # 获取: https://cloud.siliconflow.cn/account/ak
  46. SILICONFLOW_API_KEY=
  47. # 高德地图 MCP (agentexample/qademo/travel_api.py 用到)
  48. # 获取: https://lbs.amap.com/dev/key/app
  49. AMAP_MCP_KEY=
  50. # Ollama (本地模型,无需 API Key)
  51. # 启动: ollama serve (默认端口 11434)
  52. # OLLAMA_BASE_URL=http://localhost:11434
  53. # ============================================================
  54. # 生产环境配置(可选,Docker prod profile)
  55. # ============================================================
  56. # PostgreSQL 连接字符串(替换 SQLite)
  57. # AGENTPAAS_DATABASE_URL=postgresql+asyncpg://agentpaas:password@db:5432/agentpaas
  58. # PostgreSQL 密码(仅 prod profile 需要)
  59. # POSTGRES_PASSWORD=
  60. # Redis(任务队列,提升并发性能)
  61. # AGENTPAAS_REDIS_URL=redis://redis:6379/0
  62. # PyPI 镜像(国内网络加速)
  63. # PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple