gate-cli-installer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

gate-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
  • Do not document or require legacy Gate MCP server setup in this flow. The supported path is
    gate-cli
    + gate-skills
    .
  • If the user previously used Gate MCP, optional cleanup is
    gate-cli migrate
    (see Legacy MCP below) — do not let migration block a fresh
    gate-cli
    + skills install.

⚠️ 停止操作——在继续之前,您必须阅读并严格遵守共享运行时规则。这些规则具有最高优先级。
→ 阅读gate-runtime-rules.md
  • 请勿在此流程中记录或要求进行旧版Gate MCP服务器设置。支持的方案为**
    gate-cli
    + gate-skills**。
  • 如果用户之前使用过Gate MCP,可选择执行**
    gate-cli migrate
    **进行清理(见下方“旧版MCP”部分)——不要让迁移步骤阻碍全新的
    gate-cli
    + skills安装流程。

Which
gate-cli
runs (agents / shells)

选择运行的
gate-cli
(代理/Shell)

Canonical rules (same text as gate-runtime-rules.md §4):
  1. Prefer the system binary: If
    command -v gate-cli
    resolves to an executable and
    gate-cli --version
    succeeds, use that as
    gate-cli
    everywhere.
  2. User local bin: If step 1 fails, if
    ${HOME}/.local/bin/gate-cli
    exists and is executable,
    gate-cli
    refers to
    "${HOME}/.local/bin/gate-cli"
    for this session (invoke with full path when PATH may be incomplete).
  3. OpenClaw skills bin: If steps 1–2 fail, if
    ${HOME}/.openclaw/skills/bin/gate-cli
    exists and is executable,
    gate-cli
    refers to
    "${HOME}/.openclaw/skills/bin/gate-cli"
    .
Assume nothing about a single install location — always resolve in this order before reporting “
gate-cli
not found.” The same rules are in shared gate-runtime-rules.md §4.

标准规则(与gate-runtime-rules.md第4节内容一致):
  1. 优先使用系统二进制文件:如果**
    command -v gate-cli
    能解析到可执行文件,且
    gate-cli --version
    执行成功,则在所有场景下使用该文件作为
    gate-cli
    **。
  2. 用户本地bin目录:如果步骤1失败,且**
    ${HOME}/.local/bin/gate-cli
    存在并可执行,则本次会话中
    gate-cli
    指代
    "${HOME}/.local/bin/gate-cli"
    **(当PATH可能不完整时,使用完整路径调用)。
  3. OpenClaw skills bin目录:如果步骤1-2失败,且**
    ${HOME}/.openclaw/skills/bin/gate-cli
    存在并可执行,则
    gate-cli
    指代
    "${HOME}/.openclaw/skills/bin/gate-cli"
    **。
不要假设只有一个安装位置——在报告“
gate-cli
未找到”之前,务必按此顺序进行解析。相同规则可在共享文档**gate-runtime-rules.md**第4节中查看。

What to install (two parts)

安装内容(两部分)

  1. gate-cli
    — Gate CLI for CEX, info, news, config, and diagnostics. Install using this skill’s
    setup.sh
    (see below).
  2. gate-skills — Agent skills from https://github.com/gate/gate-skills. Use your client’s normal skills workflow (
    npx skills add …
    or copy into the per-client skills directory).

  1. gate-cli
    ——用于CEX、信息查询、资讯、配置和诊断的Gate CLI工具。使用本技能的**
    setup.sh
    **脚本进行安装(见下文)。
  2. gate-skills——来自https://github.com/gate/gate-skills的代理技能。使用客户端常规的技能工作流进行安装(如
    npx skills add …
    或复制到客户端专属的技能目录)。

1. Install
gate-cli
(
setup.sh
)

1. 安装
gate-cli
setup.sh
脚本)

Script path:
skills/gate-cli-installer/setup.sh
The script downloads the latest
gate/gate-cli
release for your OS/arch, verifies checksums, and installs the
gate-cli
binary.
bash
undefined
脚本路径:
skills/gate-cli-installer/setup.sh
该脚本会下载适配您操作系统/架构的最新**
gate/gate-cli
版本,校验校验和,并安装
gate-cli
**二进制文件。
bash
undefined

From the gate-skills (or gate-github-skills) repo root

从gate-skills(或gate-github-skills)仓库根目录执行

bash skills/gate-cli-installer/setup.sh

```bash
bash skills/gate-cli-installer/setup.sh

```bash

Optional: 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 --version

bash 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 --version

2. Install gate-skills (per client)

2. 安装gate-skills(按客户端区分)

ClientTypical skills locationCommon approach
Cursor
~/.cursor/skills/
e.g.
npx skills add https://github.com/gate/gate-skills
or copy skill folders from the repo into that directory
Claude Code
~/.claude/skills/
same pattern
Codex
~/.codex/skills/
same pattern
OpenClawe.g.
~/.openclaw/skills/
(default)
e.g.
npx clawhub@latest add https://github.com/gate/gate-skills
or manual copy
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
gate-cli
-backed flows described in the relevant DEX / wallet skills — not via a separate MCP-install step in this installer.

客户端典型技能存放位置常用安装方式
Cursor
~/.cursor/skills/
例如
npx skills add https://github.com/gate/gate-skills
,或从仓库复制技能文件夹到该目录
Claude Code
~/.claude/skills/
相同操作模式
Codex
~/.codex/skills/
相同操作模式
OpenClaw例如
~/.openclaw/skills/
(默认路径)
例如
npx clawhub@latest add https://github.com/gate/gate-skills
,或手动复制
引导用户访问gate-skills仓库,若需要分步UI操作指引,可查看该仓库README中的“技能安装”章节。复制或安装技能后重启客户端,使其重新加载技能列表。
触发词中的“Gate Verify / tx check-in”功能:这些功能由相关DEX/钱包技能中描述的产品技能和**
gate-cli
**支持的流程提供——无需通过本安装器中的单独MCP安装步骤实现。

3. API keys and errors →
gate-cli config init

3. API密钥与错误处理 →
gate-cli config init

  • When
    gate-cli
    returns auth or configuration errors (missing key, invalid secret, 401, etc.), guide the user to run
    gate-cli config init
    interactively. That wizard sets the API key and secret in the CLI config (do not ask users to paste secrets into chat).
  • For creating keys in the browser: Gate API key management.
  • Optional:
    gate-cli config set api-key ...
    /
    config set api-secret ...
    if the user prefers non-interactive config (still avoid echoing secrets in chat).
  • For a broader check:
    gate-cli doctor
    .

  • 当**
    gate-cli
    返回认证或配置错误(缺少密钥、无效密钥、401等)时,引导用户交互式运行
    gate-cli config init
    **。该向导会在CLI配置中设置API密钥和密钥(不要要求用户在聊天中粘贴密钥)。
  • 在浏览器中创建密钥: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-run

Then 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
setup.sh
+ skills install +
gate-cli config init
for new users.
本技能是针对Cursor、Claude Code、Codex和OpenClaw的gate-cli + skills一键安装方案。仓库中可能仍存在旧版“仅MCP”安装器文档以保持向后兼容性;对于新用户,优先推荐**
setup.sh
+ 技能安装 +
gate-cli config init
**流程。