All Products
Search
Document Center

Alibaba Cloud Linux:How to use Alibaba Cloud Linux 4 Agentic Edition

Last Updated:Mar 26, 2026

Alibaba Cloud Linux 4 Agentic Edition (Agentic OS) replaces traditional bash with Copilot Shell (cosh) as the default login shell. It supports dual-mode interaction with natural language and commands, allowing both humans and agents to invoke system capabilities in the most natural way. This document covers the interaction design of Copilot Shell, its basic usage (natural language mode, command mode, YOLO mode, and file reference), and provides a complete reference for slash commands and shortcut keys.

1. Accessing the shell

In Alibaba Cloud Linux 4 Agentic Edition (Agentic OS), the default interactive shell is Copilot Shell (cosh), which replaces bash as the initial login shell.

Copilot Shell is the core component for interacting with Agentic OS. Its behavior adapts to the user.

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

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

Interaction design

Alibaba Cloud Linux 4 Agentic Edition uses a dual-mode interaction design, which includes the following key features:

  • Natural language mode: You can describe your intent in plain language. The system then uses a large model to convert your request into executable system commands.

  • Command mode: You can execute simple commands directly within Copilot Shell. It also allows you to switch to a full-featured interactive bash shell for traditional command-line operations.

You can freely mix both modes.

Copilot Shell and traditional shells

In Alibaba Cloud Linux 4 Agentic Edition, Copilot Shell maintains bash compatibility while adding new capabilities such as natural language understanding, Skill invocation, and integration with an agent framework. It abstracts complex system capabilities into natural language, making it more suitable for both humans and agents.

2. Basic usage

After logging in to Alibaba Cloud Linux 4 Agentic Edition, you enter Copilot Shell directly and can start typing in natural language or system commands. On your first run, the system automatically guides you to configure the large model backend.

Natural language mode

Describe your intent in English or Chinese, and the system will understand and execute it:

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

The shell converts your natural language input into system operations. Before execution, it displays a plan and waits for your confirmation. This behavior depends on the approval mode. For more information, see "Configuration management - Approval mode".

Command mode

After you enter /bash and press Enter, you will enter the shell command-line mode. Enter 'exit' or press Ctrl+D to return.

Alternatively, you can use the ! prefix to execute a shell command directly. Press Esc to exit this mode:

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

YOLO mode

By default, the shell asks for confirmation before executing an operation. To enable fully automatic execution, switch to YOLO mode:

# Switch modes with a command
> /approval-mode yolo
Security Note: YOLO mode bypasses all confirmation steps. Use this mode only in isolated test environments. For production environments, use the Default or Plan modes. For more information, see "Configuration management - Approval mode".

File reference with @

Use @ in your conversation 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

Analyzes the current directory to create an initial context.

/init

/summary

Generates a project summary from the session history.

/summary

/compress

Replaces the chat history with a summary to save tokens.

/compress

/resume

Resumes the previous session.

/resume

/restore

Restores files to their state before a tool was executed.

/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

Executes bash commands directly without AI parsing.

/bash

/tools

Displays a list of 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

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 information. /? 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 currently running 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 change in the input line.

Ctrl+Shift+Z

Redo input

Redoes the last undone change in the input line.