---
title: "【Installation Guide】Step-by-step guide to installing Longbridge Skill + CLI"
type: "Topics"
locale: "en"
url: "https://longbridge.com/en/topics/39668770.md"
description: "The complete installation guide for Longbridge Skill and CLI is now available, walking you through the installation step by step for an easy start."
datetime: "2026-04-01T10:34:28.000Z"
locales:
  - [en](https://longbridge.com/en/topics/39668770.md)
  - [zh-CN](https://longbridge.com/zh-CN/topics/39668770.md)
  - [zh-HK](https://longbridge.com/zh-HK/topics/39668770.md)
author: "[LongbridgeAI](https://longbridge.com/en/profiles/10010333.md)"
---

# 【Installation Guide】Step-by-step guide to installing Longbridge Skill + CLI

**Longbridge Skill and Terminal CLI are now live.**

1️⃣ Skill: Let your AI assistant directly fetch market data, check holdings, run analysis, all through conversation.

2️⃣ CLI: Type commands in the terminal to query data, run scripts, and execute trades.

🚀 Both paths can leverage Longbridge's core capabilities, choose whichever suits your workflow.

We understand some users are stuck at the installation step.

Don't worry, we've compiled a complete installation guide to walk you through the setup.

Follow the steps below, and you'll be ready to experience it after installation—letting AI analyze stocks for you, or querying market data and running scripts with one click in the terminal.

👉 It's recommended to switch your network settings in advance.

#### **🤖** **Install Longbridge Skill for Your AI Assistant**

Install the Skill for AI tools (like Codex, Claude, etc.) to equip them with all `longbridge` command knowledge.

1️⃣ **Install the skill**

Method 1: Input in any AI tool (The web versions of Claude and ChatGPT are unavailable):

"Follow the guide to install Longbridge SKILL: [https://open.longbridge.com/skill/install.md](https://open.longbridge.com/skill/install.md)"

For users in Chinese mainland, you may enter:

"Install Longbridge Skill by following the guide: [https://open.longbridge.cn/skill/install.md](https://open.longbridge.cn/skill/install.md)"

If prompted for authorization later, click agree.

Method 2: Input in the terminal:

npx skills add longbridge/developers

Several options will appear during installation. Proceed as follows:

Prompt "Which agents do you want to install to?" → Select your AI assistant, press Enter to confirm.

Prompt "Installation scope" → Press Enter directly (selects 'project').

Prompt "Proceed with installation?" → Press Enter directly (confirms installation).

2️⃣ **Login & Authorization**

After installation, input:

longbridge login

Pressing Enter will automatically open a browser to complete authorization.

✅ After successful login, you can directly query market data, perform technical analysis, and manage trades from within the AI assistant conversation.

#### **🔧****Install Longbridge CLI**

If you have already installed Longbridge Skill, the CLI will be automatically available.

**If not installed yet**, you can get started quickly via the following methods:

1️⃣ Input in the terminal:

curl -sSL [https://github.com/longbridge/longbridge-terminal/raw/main/install](https://github.com/longbridge/longbridge-terminal/raw/main/install) | sh

2️⃣ When prompted for your computer password, enter it.

3️⃣ If encountering an error "File address not found", try inputting first:

sudo mkdir -p /usr/local/bin

Then execute the installation command from step 1 again.

The longbridge binary file is located at /usr/local/bin.

4️⃣ After installation, input: longbridge login, pressing Enter will automatically open the authorization page.

✅ After successful login, you can directly invoke various commands in the terminal.

#### **💻****To Launch AI Assistant in Terminal and Query Market Data, etc.**

1️⃣ **Install Longbridge CLI (Refer to steps above)**

**2️⃣ Environment Requirements**

Node.js version 16.0 or above is installed.

👉 You can click the official website [https://nodejs.org/en/download](https://nodejs.org/en/download) to install.

3️⃣ **Install CLI or Terminal Version for the Corresponding AI Assistant**

Common AI assistant installation commands are as follows. Please input in the terminal (or install via official files):

-   Codex CLI：npm install -g @openai/codex
-   Claude Code：npm install -g @anthropic-ai/claude-code
-   OpenClaw CLI：npm install -g openclaw

4️⃣ **Launch AI Assistant in Terminal**

Taking Claude as an example, input in the terminal: claude

Pressing Enter enters the AI assistant.

✅ After successful login, you can input questions in natural language in the terminal, e.g., "Show the performance of NVDA and TSLA over the last 5 days."

🔗 **More Resources**

Skill Official Site: [https://open.longbridge.com/zh-CN/skill/](https://open.longbridge.com/zh-CN/skill/)

For users in Chinese mainland, please click here: [https://open.longbridge.cn/skill/](https://open.longbridge.cn/skill/)

CLI Official Site: [https://open.longbridge.com/zh-CN/docs/cli](https://open.longbridge.com/zh-CN/docs/cli)

For users in Chinese mainland, please click here: [https://open.longbridge.cn/docs/cli](https://open.longbridge.cn/docs/cli)

For other installation issues, feel free to discuss in the comments below 👇

### Related Stocks

- [TSLA.US](https://longbridge.com/en/quote/TSLA.US.md)
- [NVDA.US](https://longbridge.com/en/quote/NVDA.US.md)

## Comments (37)

- **swagger · 2026-04-15T06:36:31.000Z**: Why does this prompt appear after I log in: The current authorization link is missing a client_id. Please confirm that the link address is correct and try again.
- **yuxuanhan · 2026-04-14T05:01:45.000Z**: Can the Xiaolongxia installed on Feishu install this one from Longbridge?
- **哎呦哥哥 · 2026-04-11T19:22:49.000Z**: What should I do if it says &#34;the application is not authorized or does not exist&#34;? I can't authorize it.
  - **CSE** (2026-04-16T11:53:12.000Z): Has this problem been solved? I also can't proceed beyond this step.
  - **哎呦哥哥** (2026-04-16T12:05:35.000Z): I can just use Codex, the VPN node needs to be cleaner, using Alibaba's Qianwen before didn't work at all.
  - **CSE** (2026-04-16T12:20:11.000Z): Okay, I just used qclaw, and it's working now too.
- **护花使者爱理财 · 2026-04-07T09:18:52.000Z**: Let's try it tonight 👀👀
  - **LongbridgeAI** (2026-04-07T09:51:24.000Z): Looking forward to your excellent sharing! ~~~
- **十个十七 · 2026-04-03T22:46:10.000Z**: Is it not possible to get real-time market data?
  - **LongbridgeAI** (2026-04-07T02:23:43.000Z): Yes, it's possible. You can try entering 'longbridge quote $Tesla(TSLA.US)' in the terminal to get the corresponding stock's real-time quote.Or use natural language input within the AI assistant~
- **强者恒强 · 2026-04-03T03:24:20.000Z**: I need to apply for community API permissions, where can I find them?
  - **LongbridgeAI** (2026-04-07T02:24:56.000Z): If the skill or CLI has been installed successfully, simply click 'Agree' on the authorization page to obtain community API permissions~
  - **我的小钱钱** (2026-04-07T10:11:50.000Z): Do you need an OpenAI account to use it?
  - **LongbridgeAI** (2026-04-07T10:11:50.000Z): It is not necessarily required to have an OpenAI account to use Longbridge Skill or Terminal CLI.The specific situation is as follows:- If you are using certain AI assistants (such as Codex or ChatGPT
- **考拉等待發達 · 2026-04-02T04:10:48.000Z**: A total newbie, seeing the error file address made me dumbfounded. It turns out it was just a command issue again, very helpful.
- **海哥闲谈  · 2026-04-02T04:08:47.000Z**: I gave the instructions to workbuddy, but couldn't get an answer no matter how I asked. Turns out I needed to log in and link the account...
- **显化资产九位数 · 2026-04-02T04:07:13.000Z**: The tutorial is quite clear, and it's already installed.
- **做个快乐老头 · 2026-04-01T16:18:09.000Z**: It's already installed, I can get all kinds of market data, that's great.
- **亏麻了我郁闷 · 2026-04-01T12:35:07.000Z**: Do I need a VPN?
  - **做个快乐老头** (2026-04-01T16:17:26.000Z): Want to
  - **LongbridgeAI** (2026-04-07T05:49:49.000Z): Hello, this website is accessible in mainland China~https://open.longbridge.cn/skill/
- **剑影独行侠 · 2026-04-01T11:51:57.000Z**: Get it done at work tomorrow
- **蜡笔小白 · 2026-04-01T11:06:11.000Z**: Finally, a step-by-step tutorial! A godsend!!
