All Products
Search
Document Center

Alibaba Cloud Linux:How to use Alibaba Cloud Linux 4 Agentic Edition (ANOLISA)

Last Updated:Aug 20, 2026

Alibaba Cloud Linux 4 Agentic Edition (ANOLISA) uses cosh (cosh-ng) as the first entry after system login. It is an AI-native Linux terminal: bash/zsh works as usual. When encountering complex tasks, directly use natural language to ask the Agent to check or operate. This article introduces cosh's interaction design concepts, basic usage methods (Shell commands, natural language, approval mode, Agent Composer) and a complete slash command and shortcut key reference.

Interactive portal

The interactive shell of Alibaba Cloud Linux 4 Agentic Edition (ANOLISA) defaults to cosh (cosh-ng), which is the first entry after system login. cosh-ng targets different access objects and has different interaction characteristics:

  • For human users: It is an AI native terminal based on bash/zsh. Familiar commands are run directly, and complex tasks are described in natural language.

  • For agents: It is a standard interface for calling system capabilities, integrated through structured JSON (cosh-cli) and JSONL (cosh-core headless mode)

cosh interaction design

The interaction design of cosh follows "Shell first" and has the following main features:

  • Shell command : Familiar commands are executed directly using Shell syntax. Interactive programs (vim, top, ssh), pipes, redirection, task control, and Ctrl+C all work as usual in the foreground terminal.

  • natural language model : Use natural language to describe the troubleshooting task or operation goal, and the Agent will start the analysis. Constraints such as "check only" and "ask before modifying" can be written to control the agent's behavioral boundaries.

The two modes can be freely mixed: Shell input and Agent requests alternate in the same terminal.

The relationship between cosh and traditional shells

In Alibaba Cloud Linux 4 Agentic Edition (ANOLISA), cosh retains full bash/zsh compatibility - it does not replace the shell, but wraps a real front-end bash or zsh. On this basis, capabilities such as natural language understanding, Skills, approval cards, and resumable sessions are added, allowing both human users and agents to invoke system capabilities in a natural way.

Basic usage

After entering Alibaba Cloud Linux 4 Agentic Edition (ANOLISA), you will enter cosh directly. Shell commands can be executed as usual, or tasks can be described in natural language. Pass for first time use /auth Configure the large model backend.

Shell command

Just enter the command directly to execute it without any prefix or mode switch:

$ git status
$ top -bn1 | head -20
$ ls -al

natural language model

Simply describe your intention in Chinese or English, and the system will automatically understand and execute it:

> Check the memory usage of the current system
> Help me install nginx and configure it to start automatically at boot
> Help me deploy OpenClaw

The system shell will convert the natural language into the corresponding system operation, and the plan will be displayed and wait for confirmation before execution (depending on the approval mode setting, see "Configuration Management - Approval Mode" for details).

Approval mode

pass /mode approval Set tool approval level:

# View current approval mode
> /mode approval

# Agent only explains and makes suggestions, but does not initiate tool calls.
> /mode approval recommend

# Read-only tools automatically approve, risky operations require confirmation
> /mode approval auto

# All tools are automatically approved (need to enter confirm to confirm the switch)
> /mode approval trust confirm

Safety tips:trust mode will skip all operation confirmations and is recommended to be used only in isolated test environments. Please use recommend or auto mode in production environment.

There is also a separate analysis mode /mode analysis, control the active analysis behavior of failed commands:

  • smart(Default): When the command fails or the system diagnostic output is abnormal, analysis suggestions are displayed after evaluation.

  • auto: Only high-confidence failures automatically start Agent analysis

  • manual: Turn off proactive analysis and failure insights

Use /agent to reference files and skills

run /agent Open Agent Composer and you can edit one-time requests: the first token can be a Skill, and subsequent @path Reference a file or directory within the current workspace:

/skill:repo-review inspect @Cargo.toml @src
@/etc/nginx/nginx.conf Help me check if there is any problem with this configuration

Things to note:

  • @path It must point to a file or directory in the workspace. Absolute paths and parent directory jumps will be rejected.

  • Accept up to 16 valid citations per submission

  • Multi-line drafts can also be used ?? Enter directly at the beginning,Shift+Enter newline

  • Plain text requests without specifying a skill or reference are also valid

cosh command reference

Overview of command categories

prefix

type

Function

Example

/

slash command

cosh control command

/help/session status

??

Agent request

Multi-line draft initiates Agent task

?? + newline input

(no prefix)

Shell command

Execute directly in the foreground Shell

git statustop -bn1

List of slash commands

Session management

Order

illustrate

usage

/session

Manage Agent Sessions

/session status/session list [--all]/session resume <id>/session new/session clear <id>/session compact

/resume

Restore previous session (/session resume alias)

/resume or /resume <id>

/new

New Session (/session new alias)

/new

/clear

Clear local shell status

/clear

Tool and model management

Order

illustrate

usage

/auth

Select or update provider certification

/auth

/mode

View or modify approval/analysis modes

/mode approval [recommend|auto|trust]/mode analysis [smart|auto|manual]

/skills

List/View/Start/Stop Skills

/skills list/skills detail <name>/skills enable <name>

/mcp

Manage MCP server

/mcp list/mcp connect <server>/mcp inspect/mcp disconnect

/extensions

Manage expansion packs and settings

/extensions list/extensions install <path>/extensions doctor [name]

/hooks

Check Hook status and trust

/hooks status/hooks history/hooks trust-project

/recommendations

Manage local input suggestions

/recommendations on|off|status|privacy|clear

/agent

Open Agent Composer to edit one-time requests

/agent

Interface and configuration

Order

illustrate

usage

/config

View/set interface language

/config language [auto|en-US|zh-CN]

/stats

Display model and tool statistics

/stats/stats model/stats tools

/status

Display version, provider, runtime status

/status

Information and help

Order

illustrate

usage

/help

Show help information

/help

/about

Display version information (/status alias)

/about

/health

Run local health check

/health

/explain

Analyze the latest failed command

/explain

/cancel

Cancel the current Agent task

/cancel

/details

View approval/activity details

/details <id>

/audit

Audit status and export

/audit status/audit export current <dir>

shortcut key

shortcut key

Function

illustrate

Shift+Enter

Insert newline

Multi-line draft input

Tab

Complete

Completion in Agent Composer @path and /skill:

Esc

Cancel

Cancel a card, panel or draft

Ctrl+C

interrupt

Cancel the current command or Agent request

Up arrow key

Enter history

Shell input and slash command history