gate-cli-installer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegate-cli-installer (Cursor / Claude Code / Codex / OpenClaw)
gate-cli-installer(Cursor / Claude Code / Codex / OpenClaw)
General rules
通用规则
⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding. These rules have the highest priority.
→ Read gate-runtime-rules.md
→ Read gate-runtime-rules.md
- Do not document or require legacy Gate MCP server setup in this flow. The supported path is + gate-skills.
gate-cli - If the user previously used Gate MCP, optional cleanup is (see Legacy MCP below) — do not let migration block a fresh
gate-cli migrate+ skills install.gate-cli
⚠️ 停止操作——在继续之前,您必须阅读并严格遵守共享运行时规则。这些规则具有最高优先级。
→ 阅读gate-runtime-rules.md
→ 阅读gate-runtime-rules.md
- 请勿在此流程中记录或要求进行旧版Gate MCP服务器设置。支持的方案为**+ gate-skills**。
gate-cli - 如果用户之前使用过Gate MCP,可选择执行****进行清理(见下方“旧版MCP”部分)——不要让迁移步骤阻碍全新的
gate-cli migrate+ skills安装流程。gate-cli
Which gate-cli
runs (agents / shells)
gate-cli选择运行的gate-cli
(代理/Shell)
gate-cliCanonical rules (same text as gate-runtime-rules.md §4):
- Prefer the system binary: If resolves to an executable and
command -v gate-clisucceeds, use that asgate-cli --versioneverywhere.gate-cli - User local bin: If step 1 fails, if exists and is executable,
${HOME}/.local/bin/gate-clirefers togate-clifor this session (invoke with full path when PATH may be incomplete)."${HOME}/.local/bin/gate-cli" - OpenClaw skills bin: If steps 1–2 fail, if exists and is executable,
${HOME}/.openclaw/skills/bin/gate-clirefers togate-cli."${HOME}/.openclaw/skills/bin/gate-cli"
Assume nothing about a single install location — always resolve in this order before reporting “ not found.” The same rules are in shared gate-runtime-rules.md §4.
gate-cli标准规则(与gate-runtime-rules.md第4节内容一致):
- 优先使用系统二进制文件:如果**能解析到可执行文件,且
command -v gate-cli执行成功,则在所有场景下使用该文件作为gate-cli --version**。gate-cli - 用户本地bin目录:如果步骤1失败,且**存在并可执行,则本次会话中
${HOME}/.local/bin/gate-cli指代gate-cli**(当PATH可能不完整时,使用完整路径调用)。"${HOME}/.local/bin/gate-cli" - OpenClaw skills bin目录:如果步骤1-2失败,且**存在并可执行,则
${HOME}/.openclaw/skills/bin/gate-cli指代gate-cli**。"${HOME}/.openclaw/skills/bin/gate-cli"
不要假设只有一个安装位置——在报告“未找到”之前,务必按此顺序进行解析。相同规则可在共享文档**gate-runtime-rules.md**第4节中查看。
gate-cliWhat to install (two parts)
安装内容(两部分)
- — Gate CLI for CEX, info, news, config, and diagnostics. Install using this skill’s
gate-cli(see below).setup.sh - gate-skills — Agent skills from https://github.com/gate/gate-skills. Use your client’s normal skills workflow (or copy into the per-client skills directory).
npx skills add …
- ——用于CEX、信息查询、资讯、配置和诊断的Gate CLI工具。使用本技能的**
gate-cli**脚本进行安装(见下文)。setup.sh - gate-skills——来自https://github.com/gate/gate-skills的代理技能。使用客户端常规的技能工作流进行安装(如或复制到客户端专属的技能目录)。
npx skills add …
1. Install gate-cli
(setup.sh
)
gate-clisetup.sh1. 安装gate-cli
(setup.sh
脚本)
gate-clisetup.shScript path:
skills/gate-cli-installer/setup.shThe script downloads the latest release for your OS/arch, verifies checksums, and installs the binary.
gate/gate-cligate-clibash
undefined脚本路径:
skills/gate-cli-installer/setup.sh该脚本会下载适配您操作系统/架构的最新**版本,校验校验和,并安装**二进制文件。
gate/gate-cligate-clibash
undefinedFrom the gate-skills (or gate-github-skills) repo root
从gate-skills(或gate-github-skills)仓库根目录执行
bash skills/gate-cli-installer/setup.sh
```bashbash skills/gate-cli-installer/setup.sh
```bashOptional: pin a release tag
可选:指定版本标签
bash skills/gate-cli-installer/setup.sh --version v0.6.0
**Make `gate-cli` available on your PATH (system / shell):**
- **`setup.sh`** installs to **`${HOME}/.local/bin/gate-cli`** first. If **`~/.local/bin`** is **not** already on your **`PATH`**, the script prints a reminder to add:
`export PATH="$HOME/.local/bin:$PATH"`
Put that in `~/.zshrc`, `~/.bashrc`, or your shell profile, then restart the terminal or **`source`** the file.
- If **`~/.local/bin`** cannot be written, the script falls back to **`/usr/local/bin`** (typically already on **`PATH`** on macOS/Linux).
- Older installs may leave **`${HOME}/.openclaw/skills/bin/gate-cli`**; agents must still resolve **`gate-cli`** using **Which \`gate-cli\` runs** above — do not assume only one directory.
**Verify**
```bash
command -v gate-cli
gate-cli --versionbash skills/gate-cli-installer/setup.sh --version v0.6.0
**确保`gate-cli`在系统/Shell的PATH中可用**:
- **`setup.sh`**会优先安装到**`${HOME}/.local/bin/gate-cli`**。如果**`~/.local/bin`**不在您的**`PATH`**中,脚本会打印提示信息,提醒您添加:
`export PATH="$HOME/.local/bin:$PATH"`
将该行代码添加到`~/.zshrc`、`~/.bashrc`或您的Shell配置文件中,然后重启终端或执行**`source`**命令加载配置。
- 如果无法写入**`~/.local/bin`**,脚本会回退到**`/usr/local/bin`**(macOS/Linux系统通常已将该目录加入**`PATH`**)。
- 旧版本安装可能会在**`${HOME}/.openclaw/skills/bin/gate-cli`**留下文件;代理仍需按照上述“选择运行的`gate-cli`”规则解析**`gate-cli`**——不要假设只有一个目录。
**验证安装**
```bash
command -v gate-cli
gate-cli --version2. Install gate-skills (per client)
2. 安装gate-skills(按客户端区分)
| Client | Typical skills location | Common approach |
|---|---|---|
| Cursor | | e.g. |
| Claude Code | | same pattern |
| Codex | | same pattern |
| OpenClaw | e.g. | e.g. |
Point users at the gate-skills repository and, if they need step-by-step UI flows, the Skills Installation section in that repo’s README. Restart the client after copying or installing skills so it reloads the skill list.
Gate Verify / tx check-in phrasing in triggers: those features are provided through the product skills and -backed flows described in the relevant DEX / wallet skills — not via a separate MCP-install step in this installer.
gate-cli| 客户端 | 典型技能存放位置 | 常用安装方式 |
|---|---|---|
| Cursor | | 例如 |
| Claude Code | | 相同操作模式 |
| Codex | | 相同操作模式 |
| OpenClaw | 例如 | 例如 |
引导用户访问gate-skills仓库,若需要分步UI操作指引,可查看该仓库README中的“技能安装”章节。复制或安装技能后重启客户端,使其重新加载技能列表。
触发词中的“Gate Verify / tx check-in”功能:这些功能由相关DEX/钱包技能中描述的产品技能和****支持的流程提供——无需通过本安装器中的单独MCP安装步骤实现。
gate-cli3. API keys and errors → gate-cli config init
gate-cli config init3. API密钥与错误处理 → gate-cli config init
gate-cli config init- When returns auth or configuration errors (missing key, invalid secret, 401, etc.), guide the user to run
gate-cliinteractively. That wizard sets the API key and secret in the CLI config (do not ask users to paste secrets into chat).gate-cli config init - For creating keys in the browser: Gate API key management.
- Optional: /
gate-cli config set api-key ...if the user prefers non-interactive config (still avoid echoing secrets in chat).config set api-secret ... - For a broader check: .
gate-cli doctor
- 当**返回认证或配置错误(缺少密钥、无效密钥、401等)时,引导用户交互式运行
gate-cli**。该向导会在CLI配置中设置API密钥和密钥(不要要求用户在聊天中粘贴密钥)。gate-cli config init - 在浏览器中创建密钥:Gate API密钥管理。
- 可选:如果用户偏好非交互式配置,可使用**** /
gate-cli config set api-key ...(仍需避免在聊天中回显密钥)。config set api-secret ... - 如需全面检查:执行****。
gate-cli doctor
4. Legacy MCP (optional)
4. 旧版MCP(可选)
If the user still has old Gate MCP entries in IDE configs and wants to move toward CLI-first tooling:
bash
gate-cli migrate --dry-run如果用户的IDE配置中仍有旧版Gate MCP条目,且希望转向CLI优先的工具链:
bash
gate-cli migrate --dry-runThen when satisfied:
确认无误后执行:
gate-cli migrate --apply
This does **not** replace installing **`gate-cli`** and **gate-skills**; it is optional cleanup.
---gate-cli migrate --apply
此操作**不能**替代**`gate-cli`**和**gate-skills**的安装;它只是可选的清理步骤。
---5. Supersedes (naming / docs)
5. 替代方案(命名/文档)
This skill is the gate-cli + skills one-click story for Cursor, Claude Code, Codex, and OpenClaw. Older “MCP-only” installer documentation may still exist in the same repo for backwards compatibility; prefer + skills install + for new users.
setup.shgate-cli config init本技能是针对Cursor、Claude Code、Codex和OpenClaw的gate-cli + skills一键安装方案。仓库中可能仍存在旧版“仅MCP”安装器文档以保持向后兼容性;对于新用户,优先推荐** + 技能安装 + **流程。
setup.shgate-cli config init