backend/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in backend/.env.example)
PROJECT_NAME
项目基本信息
PROJECT_VERSION
FIRST_SUPERUSER
必填,初始用户和密码
FIRST_SUPERUSER_EMAIL
FIRST_SUPERUSER_PASSWORD
secret
SECRET_KEY
secret
必填,安全配置
LLM_PROVIDER
必填,LLM配置;默认通过 LiteLLM 网关访问 litellm/config.yaml 中的模型别名
LLM_MODEL
LLM_THINKING_MODEL
LLM_API_KEY
secret
LLM_BASE_URL
LLM_TIMEOUT_SECONDS
LLM_MAX_RETRIES
RESEARCH_LLM_API_KEY
secret
可选:辩论模式、经验复盘、AI选股使用的投研专用 LLM Key;为空则使用 LLM_API_KEY
DEBATE_AGENT_PARALLEL_ENABLED
调试用:辩论内部 Agent 是否并行执行,默认 true
DEBATE_AGENT_MIN_ITERATIONS
辩论 Agent 最少迭代轮次,避免首轮直接给最终报告
ENABLE_AUTO_TRADE
功能开关:默认开启;不使用这些功能或做生产安全加固时,应显式改为 false
ENABLE_TESTING_ENDPOINTS
ENABLE_RUNTIME_EXTENSIONS
ENABLE_OPENAPI_DOCS
brew install flyctl && fly launch --from https://github.com/marvekg/bestaitrader
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/marvekg/bestaitrader
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/marvekg/bestaitrader