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 |
|
|
|
At command |
Injects file content into the context |
|
|
|
Exclamation mark command |
Executes a shell command directly |
|
Slash command reference
Session and project management
|
Command |
Description |
Usage |
|
|
Creates initial context from the current directory. |
|
|
|
Generates a project summary from session history. |
|
|
|
Replaces chat history with a summary to save tokens. |
|
|
|
Resumes the previous session. |
|
|
|
Restores files to their state before tool execution. |
|
Tool and model management
|
Command |
Description |
Usage |
|
|
Switches the model for the current session. |
|
|
|
Switches the authentication method. |
|
|
|
Runs bash commands without AI parsing. |
|
|
|
Lists available tools. |
|
|
|
Lists and runs Skills. |
|
|
|
Lists MCP servers and tools. |
|
|
|
Changes the approval mode. |
|
|
|
Manages the AI instruction context. |
|
|
|
Lists active extensions. |
|
|
|
Connects to the ClawHub skill marketplace. |
|
Interface and workspace control
|
Command |
Description |
Usage |
|
|
Clears the terminal screen. |
|
|
|
Switches the visual theme. |
|
|
|
Toggles Vim edit mode. |
|
|
|
Manages a multi-directory workspace. |
|
|
|
Opens the settings editor. |
|
Language settings
|
Command |
Description |
Usage |
|
|
Views or changes language settings. |
|
|
|
Sets the UI language. |
|
|
|
Sets the LLM output language. |
|
Built-in UI languages: zh-CN, en-US
Information and help
|
Command |
Description |
Usage |
|
|
Displays help. /? is an alias. |
|
|
|
Displays version information. |
|
|
|
Displays session statistics. |
|
|
|
Submits a bug report. |
|
|
|
Copies the last output to the clipboard. |
|
|
|
Exits cosh. /exit is an alias. |
|
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 |
|
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. |