Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions docs/.vitepress/theme/components/HomePage/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<footer class="footer">
<footer v-if="!isCN" class="footer">
<div class="flex flex-wrap items-center text-xs gap-x-5 gap-y-2">
<a v-if="beianText" class="beian-link" href="https://beian.miit.gov.cn/" rel="nofollow">
{{ beianText }}
Expand Down Expand Up @@ -39,13 +39,11 @@ import { isServer } from '../../utils/i18n'

const { t, locale } = useI18n()

const isCN = computed(() => !isServer() && window.location.host.endsWith('.cn'))

// 备案文案
const beianText = computed(() => {
if (isServer()) {
return ''
}
const hostIsCN = window.location.host.endsWith('.cn')
return hostIsCN && locale.value === 'zh-CN' ? `© ${new Date().getFullYear()} 粤 ICP 备 2025433117 号` : ''
return isCN.value && locale.value === 'zh-CN' ? `© ${new Date().getFullYear()} 粤 ICP 备 2025433117 号` : ''
})

const leftLinks = computed(() => [
Expand Down
46 changes: 32 additions & 14 deletions docs/en/skill/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,42 @@ Once installed, you can say things like this to your AI assistant and get real a

---

## How it works
## Step 1 — Install the Skill

Longbridge Skill gives your AI assistant knowledge of what the `longbridge` CLI can do. To actually fetch live data or execute trades, the AI needs one of two capabilities:
The Skill is a set of instruction files that tell your AI assistant what Longbridge can do. Two ways to install:

- **Shell execution** — the AI runs `longbridge` commands directly in a terminal
- **MCP integration** — the AI connects to the Longbridge MCP server over the network
**Via npx / bunx (recommended, global install):**

```bash
# Node.js
npx skills add longbridge/developers -g -y
# Bun
bunx skills add longbridge/developers -g -y
```

> Requires [Node.js](https://nodejs.org) or [Bun](https://bun.sh).

**Or download the ZIP and install manually:**

Download [longbridge.zip](https://open.longbridge.com/skill/longbridge.zip) and unzip it, then place the files in your AI tool's Skill directory (Claude Code: `.claude/skills/`, Cursor: paste into the Rules editor, other tools: see the README).

**OpenClaw** — send this message in chat and it handles everything automatically:

```
Install the Longbridge Developers Skill from this zip file:
https://open.longbridge.com/skill/longbridge.zip
```

---

## Method 1 — Install the CLI
## Step 2 — Connect your Longbridge account

The Skill tells the AI what's possible. To actually fetch live data or execute trades, you need one of two capabilities:

- **Shell execution** — the AI runs `longbridge` commands directly in a terminal
- **MCP integration** — the AI connects to the Longbridge MCP server over the network

### Method A — Install the CLI

For AI tools that can execute shell commands (Claude Code, Codex, Gemini CLI, Warp, etc.).

Expand Down Expand Up @@ -61,15 +87,7 @@ That's it. The AI can now call `longbridge` commands on your behalf.

> See the [CLI reference](/docs/cli) for the full command list and installation details.

**OpenClaw** handles installation differently — send this message in chat and it takes care of everything:

```
Install the Longbridge Developers Skill from this zip file: https://open.longbridge.com/skill/longbridge.zip
```

---

## Method 2 — Connect the MCP server
### Method B — Connect the MCP server

For AI tools that support MCP (Claude Desktop, Cursor, Zed, Gemini CLI, Warp, etc.).

Expand Down
5 changes: 3 additions & 2 deletions docs/zh-CN/skill/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ bunx skills add longbridge/developers -g -y

**或下载 ZIP 手动安装:**

下载 [longbridge.zip](/skill/longbridge.zip) 并解压,将文件放入你的 AI 工具指定的 Skill 目录(Claude Code 放 `.claude/skills/`,Cursor 粘贴到 Rules 编辑框,其他工具参考 README)。
下载 [longbridge.zip](https://open.longbridge.com/skill/longbridge.zip) 并解压,将文件放入你的 AI 工具指定的 Skill 目录(Claude Code 放 `.claude/skills/`,Cursor 粘贴到 Rules 编辑框,其他工具参考 README)。

**OpenClaw** 直接在对话中发送以下消息,自动完成安装:

```
从以下 zip 文件安装 Longbridge Developers Skill:https://open.longbridge.com/skill/longbridge.zip
从以下 zip 文件安装 Longbridge Developers Skill:
https://open.longbridge.com/skill/longbridge.zip
```

---
Expand Down
5 changes: 3 additions & 2 deletions docs/zh-HK/skill/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ bunx skills add longbridge/developers -g -y

**或下載 ZIP 手動安裝:**

下載 [longbridge.zip](/skill/longbridge.zip) 並解壓,將文件放入你的 AI 工具指定的 Skill 目錄(Claude Code 放 `.claude/skills/`,Cursor 貼到 Rules 編輯框,其他工具參考 README)。
下載 [longbridge.zip](https://open.longbridge.com/skill/longbridge.zip) 並解壓,將文件放入你的 AI 工具指定的 Skill 目錄(Claude Code 放 `.claude/skills/`,Cursor 貼到 Rules 編輯框,其他工具參考 README)。

**OpenClaw** 直接在對話中發送以下訊息,自動完成安裝:

```
從以下 zip 文件安裝 Longbridge Developers Skill:https://open.longbridge.com/skill/longbridge.zip
從以下 zip 文件安裝 Longbridge Developers Skill:
https://open.longbridge.com/skill/longbridge.zip
```

---
Expand Down
Loading