--- title: "【Installation Guide】Step-by-step guide to installing Longbridge Skill + CLI" type: "Topics" locale: "zh-HK" url: "https://longbridge.com/zh-HK/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/zh-HK/profiles/10010333.md)" --- > 支持的語言: [English](https://longbridge.com/en/topics/39668770.md) | [简体中文](https://longbridge.com/zh-CN/topics/39668770.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: "Follow the guide to install Longbridge SKILL: [https://open.longbridge.com/skill/install.md](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](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/) CLI Official Site: [https://open.longbridge.com/zh-CN/docs/cli](https://open.longbridge.com/zh-CN/docs/cli) For other installation issues, feel free to discuss in the comments below 👇 ### 相關股票 - [Tesla (TSLA.US)](https://longbridge.com/zh-HK/quote/TSLA.US.md) - [NVIDIA (NVDA.US)](https://longbridge.com/zh-HK/quote/NVDA.US.md) ## 評論 (10) - **十个十七 · 2026-04-03T22:46:10.000Z**: Is it not possible to get real-time market data? - **强者恒强 · 2026-04-03T03:24:20.000Z**: I need to apply for community API permissions, where can I find them? - **新用戶_ZPzJzg · 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 - **剑影独行侠 · 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!!