AI SSH Command Line Tool - A Brilliant Invention!
A brilliant invention, the ai ssh command line tool, allows the use of AI to extend beyond just AI conversation questions and AI idea-assisted coding, and directly equips the operating system with AI capabilities. This is exactly what I've always wanted! 😄
AI is changing product design!
2025 will be the year of the AI agent explosion. The efficiency-improving access methods can be divided into three layers:
First, the middle layer is where AI agents access services and software, such as trae.ai or draw.io + AI shared by Xiao Fu Ge, as well as various scenarios where internet companies use AI to improve efficiency, such as customer service, system inspection, and log analysis.
Then, the top layer is from the user's perspective, simulating user behavior to use software, instead of directly accessing the software API. It uses the AutoGLM-Phone-9B mobile phone model, with ADB or accessibility mode, so that the phone can receive user instructions and complete operations. For example: Open Jingdong, search for Northeast old-fashioned spicy烫, add to shopping cart, use the default address to pay for the purchase. After the order is paid, send a WeChat message to xxx to tell her the estimated delivery time. If you are interested, you can practice based on this article. "Mobile phone + agent, this is going to overturn the table!"
Then the bottom layer is from the system level, no longer relying on directly connecting to a certain software or a certain API, but directly operating the software at the system level, or completing the entire behavior action. For example, configure the jdk, maven, and docker environment on the cloud server/local, and then help me pull the git clone xxx repository code, and complete the maven build and startup locally. And when encountering problems, it is very possible to let AI directly retrieve and process them.
Okay, next, Xiao Fu Ge will share with you how to install an AI SSH tool (many people cannot install it without this tutorial!).
1. Introduction to the Tool
ai ssh is a command line tool that can be installed on Mac, Windows, and Linux for use directly through the terminal. Its scenarios also include using it in the terminal under IntelliJ IDEA that you open, which is naturally embedded in IntelliJ IDEA, which is very convenient.
Currently, there are also many AI SSH command line tool software, including; opencode.ai, claude, openai codex, Ali Qianwen - qianwen code, all have corresponding software.
After the overall experience, the effect is still good. Here is a screenshot of opencode's terminal usage;

-
opencode provides some free models by default, you can enter
/modelsto select. -
In addition, you can also add other models through configuration files, such as claude model, openai model, Xiaomi model, etc.
2. Software Installation
The following software installation will require gcc, nodejs 20+ version, it is recommended to install Ubuntu 24 version, you don’t need to toss the system environment.
1. Script Description
This software is very easy to use, but its sources are all on Github, and many partners cannot install it by executing the official website script curl -fsSL https://opencode.ai/install | bash. Therefore, Xiao Fu Ge has made a corresponding script to facilitate everyone to install and use it more simply.

-
Script (gitcode): https://gitcode.com/Yao__Shun__Yu/xfg-dev-tech-docker-install
-
Script (github): https://github.com/fuzhengwei/xfg-dev-tech-docker-install### ၂. စကရစ် ဒေါင်းလုဒ်
git clone https://gitcode.com/Yao__Shun__Yu/xfg-dev-tech-docker-install.git- သင်သည် စကရစ်ကို ဒေသတွင်း ကွန်ပျူတာ သို့မဟုတ် Cloud ဆာဗာသို့ ဆွဲယူရန် အမိန့်ပေးနိုင်သည်။
၃. စကရစ် ခွင့်ပြုချက်
find . -name"*.sh"-type f -exec chmod +x {} \;- အားလုံး ခွင့်ပြုပါ
chmod +x terminal.sh- သတ်မှတ် ခွင့်ပြုပါ
၄. တပ်ဆင်ခြင်းကို လုပ်ဆောင်ပါ

./terminal.sh- တပ်ဆင်နေစဉ်အတွင်း 1 ကိုရွေးချယ်ပါ၊ opencode code သည် အကြံပြုထားသည်။
-
Windows၊ Mac၊ Linux မည်သည့်စက်တွင်မဆို ဤစကရစ်ကို အသုံးပြု၍ တပ်ဆင်နိုင်သည်၊ သက်ဆိုင်ရာ စကရစ်ကို ကျွန်ုပ် ပြုလုပ်ပြီးဖြစ်သည်။
-
တပ်ဆင်ပြီးနောက်
opencodeကို ရိုက်ထည့်ပြီး Enter (ပြန်လာရန်) နှိပ်၍ စနစ်သို့ ဝင်ရောက်ရန် လိုအပ်သည်။ opencode သည် တရားဝင် အမိန့်မဟုတ်ကြောင်း သတိပေးပါကsource .../bashrcတပ်ဆင်နေစဉ်အတွင်း သတိပေးချက် ရှိမရှိ စစ်ဆေးနိုင်ပြီး ပြန်လည်ဆန်းသစ်ရန် သင်ကိုယ်တိုင် လုပ်ဆောင်နိုင်သည်။
သုံး၊ ဆော့ဖ်ဝဲလ် ဖွဲ့စည်းပုံ
၁. အမိန့် အသုံးပြုခြင်း


-
/init- Agents.md ကို ဖန်တီး/အပ်ဒိတ်လုပ်ပါ" -
/review- အပြောင်းအလဲများကို စစ်ဆေးပါ" -
/new- အစည်းအဝေးအသစ်တစ်ခု ဖန်တီးပါ" -
/models- မော်ဒယ်များကို ရွေးချယ်ပါ" -
/agents- အသိဉာဏ်ရှိသောနည်းလမ်း" -
/session- အစည်းအဝေးစာရင်း" -
/status- အခြေအနေကို ကြည့်ပါ" -
/mcp- mcp ဝန်ဆောင်မှုကို ရွေးချယ်ပါ" -
/theme- အပြင်အဆင်ကို ရွေးချယ်ပါ" -
/editor- တည်းဖြတ်ပါ" -
/connect- မော်ဒယ် ပံ့ပိုးသူကို ချိတ်ဆက်ပါ" -
/help- အကူအညီ" -
/commands- အမိန့်များ" -
/exit- အမှားရှာပြင်မုဒ်"
၎င်းတို့သည် ဗားရှင်း အပ်ဒိတ်များနှင့်အတူ ချိန်ညှိနိုင်သည်၊ သင် တစ်ခုပြီးတစ်ခု စမ်းကြည့်နိုင်သည်။
၂. မော်ဒယ်ကို ဖွဲ့စည်းပါ (စိတ်ကြိုက် - ရွေးချယ်နိုင်သည်)


{"$schema":"https://opencode.ai/config.json","provider": {"my-model-openai": {"npm":"@ai-sdk/openai-compatible","name":"OpenAPI","options": {"apiKey":"သင်၏apikey","baseURL":"https://သင်၏baseURL/v1" },"models": {"gpt-4.1": {"name":"gpt-4.1" } } },"my-model-glm": {"npm":"@ai-sdk/openai-compatible","name":"GLMAPI","options": {"apiKey":"သင်၏apikey","baseURL":"https://open.bigmodel.cn/api/paas/v4" },"models": {"glm-4.7": {"name":"glm-4.7" } } } },"model":"my-model-openai/gpt-4.1"}- မော်ဒယ်ကို သင်ကိုယ်တိုင် ပြောင်းလဲလိုပါက ဥပမာ openai သို့မဟုတ် claude ကို အသုံးပြုပါက စကရစ်အောက်ရှိ terminal/opencode.json တွင် ပြောင်းလဲရန် လိုအပ်ပြီးနောက် ./opencode.json.sh ကို လုပ်ဆောင်၍ ဖန်တီးပါ။- ./opencode.json.sh ကိုအရင် run ပြီးနောက် configuration model ကိုပြောင်းချင်ရင် vim command နဲ့ /root/.config/opencode/opencode.json ကို edit လို့ရပါတယ်။
- တခြား mcp configuration တွေလည်းရှိပါသေးတယ်။ official website ကိုကြည့်နိုင်ပါတယ် (configuration မှားယွင်းတာကိုရှောင်ရှားဖို့)၊ https://opencode.ai/docs/mcp-servers/
၃။ ဆော့ဖ်ဝဲအသုံးပြုခြင်း
၁။ Linux
၁.၁ ပရောဂျက်တည်ဆောက်ခြင်း

၁.၂ ဆော့ဖ်ဝဲထည့်သွင်းခြင်း

၁.၃ စနစ်စစ်ဆေးခြင်း

၁.၄ ဖိုင်ရေးသားခြင်း

Cloud server ကို command နဲ့သုံးတာက အရမ်းအဆင်ပြေပါတယ်။ အထူးသဖြင့် beginner တွေအတွက်က ကျားကိုအတောင်ပံတပ်ပေးထားသလိုပါပဲ။ စိတ်ကူးတွေဖွင့်ပြီး တခြားနေရာတွေမှာလည်း သုံးနိုင်ပါတယ်။ အထူးသဖြင့် environment ထည့်သွင်းရခက်တဲ့သူတွေအတွက်ပါ။
၂။ Mac/Windows + IntelliJ IDEA

-
Local computer မှာ Linux မှာပြထားတဲ့အတိုင်း software အမျိုးမျိုးကို install လုပ်ပြီး check လုပ်လို့ရသလို IntelliJ IDEA မှာလည်း တိုက်ရိုက်ဖွင့်ပြီး ပရောဂျက်ကို manage လုပ်လို့ရပါတယ်။
-
အထူးသဖြင့် project တစ်ခုရလာတဲ့အခါ ဘာတွေပါလဲ၊ script က ဘာလုပ်နိုင်လဲ မသိတဲ့သူတွေအတွက် opencode က ကူညီဖြေရှင်းပေးနိုင်ပါတယ်။
၃။ IPad Pro

IPad Pro မှာ development software တွေသိပ်မရှိပေမယ့် cloud server, Nas စတာတွေကိုသုံးရင် opencode ကို install လုပ်ထားတဲ့ software တွေထဲမှာ IPad Pro မှာ termius.com SSH tool ကို install လုပ်ပြီး SSH tool နဲ့ opencode ကို deploy လုပ်ထားတဲ့ Linux system ကိုသုံးလို့ရပါတယ်။ယခုခေတ်တွင် IPad Pro ကို နေ့စဉ်အပြင်ထွက်သည့်အခါ ယူဆောင်သွားခြင်းဖြင့်လည်း သေးငယ်သော တီထွင်ဖန်တီးမှုဆိုင်ရာ ပြုပြင်ထိန်းသိမ်းမှုအချို့ကို လုပ်ဆောင်နိုင်ပြီး အလွန်အဆင်ပြေပါသည်။ IPad Pro + Nas က အလွန်ကောင်းပါသည်။





