CLI
Claude Code CLI · Codex CLI · OpenClaw
TrustAPI Setup
setup.sh / setup.ps1 不安装 CLI。本页只负责安装后的统一配置与内建自检,覆盖 macOS、Linux、WSL2、Windows 上的 Claude Code、Codex、OpenClaw、Cursor 及 VS Code 扩展共 6 个目标。回滚说明仅适用于 macOS / Linux。
setup.sh / setup.ps1 do not install the CLIs. They handle post-install configuration and built-in checks for six targets across Claude Code, Codex, OpenClaw, Cursor, and VS Code extensions on macOS, Linux, WSL2, and Windows. Rollback notes apply to macOS and Linux only.
支持的工具
检测到即默认选中;没有 API key 也能直接运行,向导会提示你去哪里拿 key。支持 TrustAPI、EasyAPI 与自定义 provider。 Detected tools are pre-selected. You can run it without an API key; the wizard will tell you where to get one. TrustAPI, EasyAPI, and custom providers are built in.
Claude Code CLI · Codex CLI · OpenClaw
Claude Code (VS Code) · Codex (VS Code) · Cursor
安装命令
任意目录直接跑。没有 API key 也没关系,setup 会提示你去哪里拿。Windows 原生请直接用 PowerShell。 Run it from any directory. No API key yet is fine; setup will point you to the right console. Use PowerShell directly on native Windows.
curl -fsSL https://trustapi.app/trustapi-setup/setup.sh | bash
curl -fsSL https://trustapi.app/trustapi-setup/setup.sh | bash
irm https://trustapi.app/trustapi-setup/setup.ps1 | iex
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 easyapi \
--api-key sk-easyapi-xxx
setup 已内建自检。跑完后重新打开终端;如果 VS Code / Cursor 已打开,重启一次即可。 Setup now includes built-in checks. Reopen your terminal; if VS Code or Cursor was already open, restart it once.
setup.sh includes built-in checks.
Reopen your terminal and use it directly.
写入位置
macOS / Linux: ~/.config/trustapi-setup/env.sh;Windows: User-level environment variables。
~/.codex/config.toml 写入 provider + profile。Codex VS Code 与 CLI 在所有平台共享同一配置。
~/.claude/settings.json + openclaw config set,在所有平台写入 IDE / OpenClaw 所需配置。