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