Alibaba Cloud Linux 4 Agentic Edition(ANOLISA)快速入门

更新时间:
复制 MD 格式

Alibaba Cloud Linux 4 Agentic Edition(ANOLISA)是基于 Alibaba Cloud Linux 打造的 Agent 优先操作系统。本文帮助你几分钟内完成从创建实例到体验自然语言交互的完整流程。

第一步:创建ECS实例

  1. 前往实例创建页

  2. 选择实例规格,架构选择X86计算,然后选择匹配规格。为保证使用体验,建议实例内存大于 4 GiB。

  3. 系统镜像选择 Alibaba Cloud Linux ,在下拉菜单中选择:Alibaba Cloud Linux 4 LTS 64位 Agentic 版

  4. 需勾选绑定公网 IP (EIP 或公网带宽),其他参数配置按照界面提示完成,参见自定义购买实例

第二步:首次配置

登录实例后,系统自动进入 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 并配置钉钉

Tips: 输入 / 打开命令弹窗;按 Tab 自动补全斜杠命令和保存的提示词。
> 帮我安装OpenClaw,API-Key: xxx                    钉钉的appkey: xxx                  ,appSecret: xxx
+ 用户需要安装 OpenClaw 并配置 API Key 和钉钉凭证,我应该使用 install-openclaw 技能来完成这个任务,并将敏感信息以安全的方式配置
+ 我来帮你安装 OpenClaw 并配置钉钉和阿里云百炼模型。
  ✓ Skill Use skill: "install-openclaw"
    在 Alibaba Cloud Linux 4 (Alinux 4) 服务器上安装和配置 OpenClaw,接入钉钉频道与阿里云百炼(通义千问)模型。当用户需要部署
    OpenClaw、配置钉钉机器人、接入 DashScope/Qwen 模型、排查 OpenClaw
    网关无法启动、或遇到插件不加载等问题时使用此技能。包含完整踩坑记录与正确配置结构。
+ 技能文档已加载,现在需要开始执行安装流程,首先检查并安装 git 依赖。
+ 好的,我现在开始帮你安装 OpenClaw。根据你提供的信息:
    - DashScope API Key: xxx
    - 钉钉 AppKey: xxx
    - 钉钉 AppSecret: xxx
✦ 端口监听正常,现在需要运行健康检查来最终验证服务状态。
┌─────────────────────────────────────────────────────────────┐
│ ✓ Shell openclaw gateway health (检查 Gateway 健康状态)    │
│                                                             │
│     Gateway Health                                          │
│     OK (0ms)                                                │
│     DingTalk: configured                                    │
└─────────────────────────────────────────────────────────────┘
✦ 所有安装和配置步骤都已完成,服务健康检查通过,现在需要向用户总结安装结果并提供后续钉钉侧的配置步骤。
✦ OpenClaw 安装配置完成!
安装状态
| 项目            | 状态                  |
|-----------------|-----------------------|
| OpenClaw 版本   | 2026.3.13             |
| 钉钉插件        | 已安装 (v3.3.0)       |
| Gateway 服务    | 运行中 (pid xxx)      |
| 端口监听        | xxx                   |
说明

需要提前在钉钉开发者后台创建企业内部应用,并获取 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

技术支持

使用过程中如有疑问,可加入技术支持钉钉群:90400034325,联系技术支持获取帮助。

温馨提示:体验完成后,如不再使用 ECS 实例,建议及时释放以避免产生费用。操作路径:ECS 控制台 → 实例详情 → 释放设置 → 立即释放。