This project can install and prepare the four AI CLIs used by the stack:
- OpenClaw
- Gemini CLI
- Codex CLI
- Claude Code
这份文档解释公开仓库如何把 4 个 AI CLI 一起装好,并把认证配置纳入一套小白也能照做的流程。
The bot stack itself is only the coordination layer.
If a beginner does not already have these AI CLIs installed, the bots may start but still fail when they try to call:
openclawgeminicodexclaude
这个项目本身只是 bot 协作框架。
如果用户电脑里根本没有这 4 个 CLI,bot 服务即使拉起来,也会在真正执行时失败。
Recommended order:
bash ./install.sh
bash ./configure_ai_runtimes.sh
bash ./configure.sh
bash ./apply_stack.sh
bash ./health_check.sh推荐顺序就是上面这 5 步。
install.sh now also installs the AI runtime layer:
- ensure
nodeandnpmexist - install
OpenClaw - install
Gemini CLI - install
Codex CLI - install
Claude Code - create
.ai_runtimes.envif it does not exist
也就是说,现在 install.sh 不只是装 Python 依赖,还会把 4 个 AI CLI 一起装上。
This script helps users prepare authentication.
It does not print secrets.
It opens .ai_runtimes.env if users want API-key based auth.
Users can also leave that file empty and use interactive login instead.
It supports:
- API key mode
- auth/login mode
When using API keys, users can fill:
OPENAI_API_KEYANTHROPIC_API_KEYGEMINI_API_KEYGOOGLE_API_KEY
这个脚本的作用不是“替你登录账号”,而是:
- 统一生成认证配置文件
- 让新手知道 API key 只是可选方案之一
- 给出交互式登录的备用入口
Best for:
- servers
- unattended launchd jobs
- reproducible setup
适合:
- 新机器部署
- 后台服务
- 稳定复用
Best for:
- local testing
- personal laptops
- quick first-time setup
适合:
- 本机先试
- 个人电脑
- 第一次快速上手
Typical examples:
openclaw configureoropenclaw onboardgeminicodex loginclaude auth login
常见命令示例:
openclaw configure或openclaw onboardgeminicodex loginclaude auth login
This project makes the bot launch script load .ai_runtimes.env automatically.
这意味着:
- 你不用每次手动
export - launchd 拉起来的 bot 也能继承这些认证环境
After installation, run:
bash ./health_check.shIt now reports whether these four AI CLIs are available.
现在健康检查会额外告诉你:
- OpenClaw 是否安装
- Gemini CLI 是否安装
- Codex CLI 是否安装
- Claude Code 是否安装
It does not treat an empty API key file as a hard failure, because auth/login may still be valid.
它不会把“API key 为空”直接判成失败,因为用户也可能走 auth/login。
If you are a beginner:
- let
install.shinstall the tools - choose either:
- fill
.ai_runtimes.env - or complete auth/login interactively
- fill
- only then continue to bot token configuration
如果你是第一次装:
- 先让
install.sh装 4 个 AI CLI - 再二选一:
- 填
.ai_runtimes.env - 或者完成 auth/login
- 填
- 最后再去填 bot token 和启动服务