Alibaba Cloud Linux 4 Agentic Edition(ANOLISA)快速入門
Alibaba Cloud Linux 4 Agentic Edition(ANOLISA)是基於 Alibaba Cloud Linux 打造的 Agent 優先作業系統。本文協助你幾分鐘內完成從建立執行個體到體驗自然語言互動的完整流程。
第一步:建立ECS執行個體
第二步:首次配置
登入執行個體後,系統自動進入 Copilot Shell(cosh),首次使用需配置模型授權。推薦使用 Aliyun Authentication 以獲得快速、免配置的使用體驗。不同授權方式的區別與使用,請參見:管理配置
Get started
Use Copilot Shell
● Aliyun Authentication
Free with limited quota
Custom Provider
Paid · Use your own API key · Cost depends on provider
Continue without Copilot Shell
Continue to Bash
Open an interactive Bash shell without configuring AI authentication
(↑↓ Select · Tab Switch Section · Enter Continue)
第三步:開始使用
配置完成後,即可在 cosh 中用自然語言與系統互動。
ANOLISA 內建豐富的 Alibaba Cloud Linux 系統級 Skills,涵蓋系統營運、安全強化、故障診斷等情境。配合安全防護機制,你可以直接在 cosh 中用自然語言執行作業系統級複雜任務,例如核心升級、漏洞修複、效能調優等,無需記憶繁瑣的命令參數。
樣本 1:查看系統的發行版資訊,並總結硬體詳情
輸入:查看系統的發行版資訊,並總結硬體詳情
> 查看系統的發行版資訊,並總結硬體詳情
+ The user wants to check system distribution info and hardware details. I'll run multiple commands in parallel to gather this information efficiently.
✓ Shell cat /etc/os-release (Check Linux distribution info)
NAME="Alibaba Cloud Linux"
VERSION="4"
ID="alinux"
ID_LIKE="anolis"
VERSION_ID="4"
VARIANT="Agentic OS Edition"
VARIANT_ID="openanolis"
ALINUX_MINOR_ID="0"
ALINUX_UPDATE_ID="2"
PLATFORM_ID="platform:alnx4"
PRETTY_NAME="Alibaba Cloud Linux 4.0.2 (Agentic OS Edition)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"
BUG_REPORT_URL="https://www.aliyun.com/"
✓ Shell uname -a (Get kernel and system info)
Linux iZ2zeapr9dzntyfibqt7fwZ 6.6.102-5.2.alnx4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 27 23:11:10 CST 2025 x86_64 x86_64 x86_64 GNU/Linux
✓ Shell lscpu (Get CPU details)
✓ Shell df -h (Get disk usage info)
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p3 40G 5.7G 32G 16% /
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 7.6G 0 7.6G 0% /dev/shm
efivarfs 256K 6.1K 245K 3% /sys/firmware/efi/efivars
tmpfs 3.1G 8.6M 3.1G 1% /run
/dev/nvme0n1p2 200M 6.3M 194M 4% /boot/efi
tmpfs 1.6G 4.0K 1.6G 1% /run/user/0
+ I have all the system information needed. Let me summarize the distribution and hardware details in a clear, organized format.
+ System Distribution & Hardware Summary
Distribution
| Item | Value |
| OS | Alibaba Cloud Linux 4.0.2 (Agentic OS Edition) |
| ID | alinux (based on Anolis) |
| Kernel | 6.6.102-5.2.alnx4.x86_64 |
| Architecture | x86_64 |
CPU
| Item | Value |
| Model | Intel Xeon Platinum 8475B |
| Cores/Threads | 2 cores / 4 threads (2 threads per core) |
> Check the system's distro information and tell me the hardware details.
+ The user wants to know the system's distribution information and hardware details. I'll run several commands to gather this information in parallel.
✓ Shell cat /etc/os-release (Check Linux distribution info)
NAME="Alibaba Cloud Linux"
VERSION="4"
ID="alinux"
ID_LIKE="anolis"
VERSION_ID="4"
VARIANT="Agentic OS Edition"
VARIANT_ID="openanolis"
ALINUX_MINOR_ID="0"
ALINUX_UPDATE_ID="2"
PLATFORM_ID="platform:alnx4"
PRETTY_NAME="Alibaba Cloud Linux 4.0.2 (Agentic OS Edition)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"
BUG_REPORT_URL="https://www.aliyun.com/"
✓ Shell uname -a (Get kernel and system info)
tmpfs 3.1G 8.6M 3.1G 1% /run
/dev/xxx 200M 6.3M 194M 4% /boot/efi
tmpfs 1.6G 4.0K 1.6G 1% /run/user/0
+ I've gathered all the system information. Let me summarize the key hardware details for the user.
+ System Information
Distribution: Alibaba Cloud Linux 4.0.2 (Agentic OS Edition)
- Kernel: 6.6.102-5.2.alnx4.x86_64
- Architecture: x86_64
Hardware Details
| Component | Details |
| CPU | Intel Xeon Platinum 8475B |
| Cores/Threads | 2 cores, 4 threads (2 threads per core) |
| CPU Speed | 800 MHz - 3800 MHz |
| Cache | L1: 160KB, L2: 4MB, L3: 97.5MB |
| Virtualization | KVM (Alibaba Cloud) |
| RAM | 16 GB (15 GiB usable) |
| Storage | 40 GB NVMe SSD (/dev/xxx) |
| Swap | None configured |
The system is running on Alibaba Cloud ECS with a virtualized Intel Xeon processor.
樣本 2:一鍵安裝 OpenClaw
輸入:幫我安裝 OpenClaw 並配置DingTalk
Tips: 輸入 / 開啟命令彈窗;按 Tab 自動補全斜杠命令和儲存的提示詞。
> 幫我安裝OpenClaw,API-Key: xxx DingTalk的appkey: xxx ,appSecret: xxx
+ 使用者需要安裝 OpenClaw 並配置 API Key 和DingTalk憑證,我應該使用 install-openclaw 技能來完成這個任務,並將敏感資訊以安全的方式配置
+ 我來幫你安裝 OpenClaw 並配置DingTalk和阿里雲百鍊模型。
✓ Skill Use skill: "install-openclaw"
在 Alibaba Cloud Linux 4 (Alinux 4) 伺服器上安裝和配置 OpenClaw,接入DingTalk頻道與阿里雲百鍊(通義千問)模型。當使用者需要部署
OpenClaw、配置DingTalk機器人、接入 DashScope/Qwen 模型、排查 OpenClaw
網關無法啟動、或遇到外掛程式不載入等問題時使用此技能。包含完整踩坑記錄與正確配置結構。
+ 技能文檔已載入,現在需要開始執行安裝流程,首先檢查並安裝 git 依賴。
+ 好的,我現在開始幫你安裝 OpenClaw。根據你提供的資訊:
- DashScope API Key: xxx
- DingTalk AppKey: xxx
- DingTalk AppSecret: xxx
✦ 連接埠監聽正常,現在需要運行健全狀態檢查來最終驗證服務狀態。
┌─────────────────────────────────────────────────────────────┐
│ ✓ Shell openclaw gateway health (檢查 Gateway 健康狀態) │
│ │
│ Gateway Health │
│ OK (0ms) │
│ DingTalk: configured │
└─────────────────────────────────────────────────────────────┘
✦ 所有安裝和配置步驟都已完成,服務健全狀態檢查通過,現在需要向使用者總結安裝結果並提供後續DingTalk側的配置步驟。
✦ OpenClaw 安裝配置完成!
安裝狀態
| 專案 | 狀態 |
|-----------------|-----------------------|
| OpenClaw 版本 | 2026.3.13 |
| DingTalk外掛程式 | 已安裝 (v3.3.0) |
| Gateway 服務 | 運行中 (pid xxx) |
| 連接埠監聽 | xxx |
需要提前在DingTalk開發人員後台建立企業內部應用,並擷取 AppKey 和 AppSecret,以及在百鍊控制台擷取 API Key,詳見:一句話部署 Openclaw/Claude Code
切回 Bash
如需 cosh 中切換 Bash,手動執行命令:
/bash
在 Bash 中執行 exit 或按 Ctrl+D 即可返回 cosh,會話歷史自動回復。
常用命令速查
|
命令 |
功能 |
|
!命令 |
快速執行 Shell 命令 |
|
@檔案路徑 |
引用檔案作為上下文 |
|
/stats |
查看 Token 消耗 |
|
/approval-mode yolo |
開啟全自動模式(免確認) |
|
/skills |
查看載入skill |
|
/help |
查看協助 |
|
/quit |
退出 cosh |
支援人員
使用過程中如有疑問,可加入支援人員DingTalk群:90400034325,聯絡支援人員擷取協助。
溫馨提示:體驗完成後,如不再使用 ECS 執行個體,建議及時釋放以避免產生費用。操作路徑:ECS 控制台 → 執行個體詳情 → 釋放設定 → 立即釋放。