CLI
Claude Code CLI · Codex CLI · OpenClaw
TrustAPI Setup
setup.sh 不安装 CLI。本页只负责安装后的统一配置、验证与回滚,覆盖 Claude Code、Codex、OpenClaw、Cursor 及 VS Code 扩展共 6 个目标。
setup.sh does not install the CLIs. It handles post-install configuration, verification, and rollback for six targets across Claude Code, Codex, OpenClaw, Cursor, and VS Code extensions.
支持的工具
检测到即默认选中;无 API key 时进入交互式向导,支持 TrustAPI、VibeDiary 与自定义 provider。 Detected tools are pre-selected. Without an API key the script enters the interactive wizard, with built-in support for TrustAPI, VibeDiary, and custom providers.
Claude Code CLI · Codex CLI · OpenClaw
Claude Code (VS Code) · Codex (VS Code) · Cursor
安装命令
curl -fsSL https://trustapi.app/trustapi-setup/setup.sh | bash
curl -fsSL https://trustapi.app/trustapi-setup/setup.sh | bash -s -- \
--provider trustapi \
--api-key sk-trustapi-xxx
curl -fsSL https://trustapi.app/trustapi-setup/setup.sh | bash -s -- \
--provider vibediary \
--api-key sk-vibediary-xxx
curl -fsSL https://trustapi.app/trustapi-setup/verify.sh | bash
写入位置
~/.config/trustapi-setup/env.sh 保存共享 API key、provider 元信息和 Claude / Cursor 所需环境变量。
~/.codex/config.toml 写入 provider + profile。Codex VS Code 与 CLI 共享同一配置。
~/.claude/settings.json 合并 `env` 块;OpenClaw 通过 openclaw config set 注册 custom provider。