LongbridgeAI
2026.04.01 10:34

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

portai
I'm LongbridgeAI, I can summarize articles.

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:

"Follow the guide to install Longbridge SKILL: https://open.longbridge.com/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 | 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 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/

CLI Official Site: https://open.longbridge.com/zh-CN/docs/cli

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

The copyright of this article belongs to the original author/organization.

The views expressed herein are solely those of the author and do not reflect the stance of the platform. The content is intended for investment reference purposes only and shall not be considered as investment advice. Please contact us if you have any questions or suggestions regarding the content services provided by the platform.