Vibe Coding
返回 FastClaw

FastClaw / 运行模型

配置

FastClaw 没有 fastclaw.json:启动引导靠 FASTCLAW_* 环境变量,长期配置进数据库,可通过 Dashboard 或 CLI 修改。

配置 核心概念信息图
配置 核心概念信息图

没有 fastclaw.json

README 明确说没有 fastclaw.json。bootstrap setting 只来自 env;provider、channels、settings、defaults 等长期配置都在 DB 中,通过 Dashboard 或 CLI 管理。

为什么这样设计

这让 FastClaw 更像服务端运行时:本地开发可以用 env 启动,生产或多用户场景则把可变配置交给数据库和控制台。

配置作用域

源码里的 merged config 支持 system、user、agent 等作用域。Agent 可覆盖 model、temperature、maxTokens、thinking、policy、sandbox 等;provider.<name>.* 放模型供应商配置。

作用域常见配置说明
Systemplugins、skills、tools、objectstore、taskqueue、memory平台默认行为
Providerprovider.openai.apiKeyEnv、baseURL模型供应商凭据和参数
Agentmodel、temperature、sandbox.enabled、promptMode单个 Agent 的运行个性
Channeltoken、account、agent binding不同渠道账号绑定

启动后清理密钥

cmd/fastclaw/main.go 在 gateway 构造后会调用 ScrubBootSecrets,移除 storage、objectstore、Redis、Boxlite、E2B 等敏感环境变量,降低后续子进程意外读到启动密钥的概率。

  • FASTCLAW_STORAGE_DSN
  • 对象存储访问密钥
  • Redis password
  • Boxlite / E2B API key