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

更新时间:
复制 MD 格式

Alibaba Cloud Linux 4 Agentic Edition (ANOLISA) replaces bash with Copilot Shell (cosh) as the default login shell. Copilot Shell supports natural language and command input for both humans and agents. This topic covers basic usage, slash commands, and shortcut keys.

1. Accessing the shell

ANOLISA uses Copilot Shell (cosh) as the default login shell instead of bash.

Copilot Shell adapts its behavior to the user:

  • For humans: an intelligent terminal that understands natural language.

  • For agents: a standard interface for invoking system capabilities.

Interaction design

Copilot Shell uses a dual-mode interaction design:

  • Natural language mode: Describe your intent in plain language. The system converts your input into executable commands via a large language model.

  • Command mode: Execute commands directly, or switch to a full bash shell for traditional command-line operations.

You can freely mix both modes.

Copilot Shell and traditional shells

Copilot Shell maintains bash compatibility while adding natural language understanding, Skill invocation, and agent framework integration.

2. Basic usage

After logging in, you enter Copilot Shell directly. On the first run, the system guides you to configure the large model backend.

Natural language mode

Describe your intent in English or Chinese:

> Check the current system memory usage
> Install nginx and configure it to start on boot
> Deploy Openclaw

The shell converts natural language into system operations and displays an execution plan for confirmation. Adjust confirmation behavior through the approval mode setting.

Command mode

Enter /bash to switch to shell command-line mode. Type 'exit' or press Ctrl+D to return.

Use the ! prefix to execute a shell command directly. Press Esc to exit:

> !git status
> !top -bn1 | head -20

YOLO mode

By default, the shell requires confirmation before execution. To skip confirmation, switch to YOLO mode:

# Switch modes with a command
> /approval-mode yolo
Security Note: YOLO mode bypasses all confirmation steps. Use it only in isolated test environments. For production, use Default or Plan mode.

File reference with @

Use @ to include a file as context:

> @/etc/nginx/nginx.conf Check this configuration file for any issues
> @/var/log/messages Have there been any errors recently?

3. Copilot Shell command reference

Command category overview

Prefix

Type

Function

Example

/

Slash command

Meta-operation control

/help, /clear

@

At command

Injects file content into the context

@src/main.py

!

Exclamation mark command

Executes a shell command directly

!git status

Slash command reference

Session and project management

Command

Description

Usage

/init

Creates initial context from the current directory.

/init

/summary

Generates a project summary from session history.

/summary

/compress

Replaces chat history with a summary to save tokens.

/compress

/resume

Resumes the previous session.

/resume

/restore

Restores files to their state before tool execution.

/restore or /restore <ID>

Tool and model management

Command

Description

Usage

/model

Switches the model for the current session.

/model

/auth

Switches the authentication method.

/auth

/bash

Runs bash commands without AI parsing.

/bash

/tools

Lists available tools.

/tools, /tools desc

/skills

Lists and runs Skills.

/skills, /skills <name>

/mcp

Lists MCP servers and tools.

/mcp, /mcp desc

/approval-mode

Changes the approval mode.

/approval-mode <mode>

/memory

Manages the AI instruction context.

/memory add important information

/extensions

Lists active extensions.

/extensions

/clawhub

Connects to the ClawHub skill marketplace.

/clawhub

Interface and workspace control

Command

Description

Usage

/clear

Clears the terminal screen.

/clear (Shortcut: Ctrl+L)

/theme

Switches the visual theme.

/theme

/vim

Toggles Vim edit mode.

/vim

/directory

Manages a multi-directory workspace.

/directory add ./src,./tests

/settings

Opens the settings editor.

/settings

Language settings

Command

Description

Usage

/language

Views or changes language settings.

/language

/language ui

Sets the UI language.

/language ui zh-CN

/language output

Sets the LLM output language.

/language output Chinese

Built-in UI languages: zh-CN, en-US

Information and help

Command

Description

Usage

/help

Displays help. /? is an alias.

/help or /?

/about

Displays version information.

/about

/stats

Displays session statistics.

/stats

/bug

Submits a bug report.

/bug The button is unresponsive

/copy

Copies the last output to the clipboard.

/copy

/quit

Exits cosh. /exit is an alias.

/quit or /exit

Shortcut keys

Shortcut key

Function

Description

Shift+Tab

Toggle approval mode

Switches the current approval mode.

Esc

Interrupt current operation

Stops the current task.

Ctrl+L

Clear screen

Equivalent to /clear.

Ctrl+T

Toggle tool description

Shows or hides MCP tool descriptions.

Ctrl+C ×2

Confirm exit

Prevents accidental exit.

Ctrl+Z

Undo input

Undoes the last input change.

Ctrl+Shift+Z

Redo input

Redoes the last undone input change.