.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 .env.example)
HOST
BETTAFISH 相关 BETTAFISH 主机地址,例如:0.0.0.0 或 127.0.0.1
PORT
BETTAFISH 主机地址,默认为5000
DB_HOST
数据库配置 数据库主机,例如localhost 或 127.0.0.1
DB_PORT
数据库端口号,postgresql默认为5432,mysql默认为3306
DB_USER
数据库用户名
DB_PASSWORD
secret
数据库密码
DB_NAME
数据库名称
DB_CHARSET
数据库字符集,推荐utf8mb4,兼容emoji
DB_DIALECT
数据库类型mysql或postgresql
INSIGHT_ENGINE_API_KEY
secret
Insight Agent(推荐kimi-k2,官方申请地址:https://platform.moonshot.cn/)
INSIGHT_ENGINE_BASE_URL
INSIGHT_ENGINE_MODEL_NAME
MEDIA_ENGINE_API_KEY
secret
Media Agent(推荐gemini-2.5-pro,中转厂商申请地址:https://aihubmix.com/?aff=8Ds9)
MEDIA_ENGINE_BASE_URL
MEDIA_ENGINE_MODEL_NAME
QUERY_ENGINE_API_KEY
secret
Query Agent(推荐deepseek-chat,官方申请地址:https://platform.deepseek.com/)
QUERY_ENGINE_BASE_URL
QUERY_ENGINE_MODEL_NAME
REPORT_ENGINE_API_KEY
secret
Report Agent(推荐gemini-2.5-pro,中转厂商申请地址:https://aihubmix.com/?aff=8Ds9) 注意:Report Agent需要相对较强的模型能力,若最终报告出现图表空白/段落异常的情况,请尝试更换更强的模型
REPORT_ENGINE_BASE_URL
brew install flyctl && fly launch --from https://github.com/666ghj/BettaFish
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/666ghj/BettaFish
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/666ghj/BettaFish