Alibaba Cloud Linux 4 Agentic Edition (Agentic OS) uses a hierarchical configuration system to manage settings for authentication, models, and tools, which can be overridden by project-level and user-level configuration files. This document describes three authentication methods: API key, Qwen login, and Alibaba Cloud AK/SK. It also explains how to switch models and details the precedence hierarchy and core settings for configuration files.
Authentication methods
When you start Agentic OS for the first time, it requires authentication to connect to large language model services. You can use the /auth command to switch authentication methods later.
Agentic OS currently supports three authentication methods.
API key (OpenAI-compatible endpoints)
In the interactive interface, select "OpenAI" and provide an API key and a base URL. Supported OpenAI-compatible endpoints include:
Model services from various cloud providers
Locally deployed models, such as vLLM and Ollama
Third-party API proxy services
Qwen login
Log in with your qwen.ai account. In the interactive interface, select "Qwen OAuth (Free)". The terminal then displays an authorization URL and a QR code. Open the URL in a browser or scan the QR code with your phone to complete the qwen.ai login and grant authorization.
Alibaba Cloud AK/SK
In the interactive interface, select "Alibaba Cloud AK/SK" to authenticate with your Alibaba Cloud AccessKey. This method provides a free usage quota.
Obtain an AK/SK:
Log in to the Alibaba Cloud console.
Create a key on the AccessKey management page.
Authentication with an Alibaba Cloud AK/SK provides a free usage quota, making it suitable for personal development and testing.
⚠️Note: The Alibaba Cloud AK/SK authentication method supports only Qwen-series text models and does not support multimodal models.
Authentication management
Operation | Command |
View current authentication status |
|
Switch authentication method |
|
Log out |
|
Troubleshooting: If authentication fails, verify that your API key is correct (with no leading or trailing spaces) and that your network can access the corresponding API endpoint. You can switch to the bash command line with/bashand runco --debugto view detailed error messages. Agentic OS supports configuring multiple authentication methods simultaneously. The system selects one based on priority, but you can also switch manually using the/authcommand.
Model configuration
Switch models
Use the /model command to switch the model for the current session:
> /model
# A list of available models appears. Select the target model.Configuration files
Interactive configuration
Use the /setting command to open an interactive interface where you can modify most settings.
Configuration hierarchy and precedence
The Agentic OS System Shell entrypoint, cosh, uses JSON-formatted configuration files to manage settings. Settings are applied in the following order of precedence, from highest to lowest:
command-line arguments > environment variables > project settings > user settings > default valuesConfiguration file locations
Type | Path | Description |
user settings |
| Personal global configuration. |
project settings |
| Project-specific configuration that can be shared with a team. |
Core configuration items
general — General settings
Parameter | Type | Default | Description |
| string | — | The editor to use for opening files. |
| boolean | false | Enables Vim key bindings. |
| boolean | true | Automatically checks for updates. |
| boolean | false | Enables session checkpoints. |
| string | "utf-8" | The default file encoding. |
model — Model settings
Parameter | Type | Default | Description |
| string | — | The name of the model to use. |
| number | -1 | The maximum number of turns in a conversational session. |
| number | 0.7 | The threshold at which chat context is compressed. |
tools — Tool settings
Parameter | Type | Default | Description |
| string | "default" | Defines when user approval is required for tool execution. |
| boolean/string | — | Specifies the sandbox environment for tool execution. |
| array | — | Specifies the list of enabled tools (the whitelist). |
| array | — | A list of explicitly excluded tools. |
| array | — | Tools that do not require approval. |
context — Context settings
Parameter | Type | Default | Description |
| string/array | "COPILOT.md" | The name of the context file. |
| array | — | Additional directories to include in the context. |
| boolean | true | Specifies whether to respect rules in .gitignore files. |
security — Security settings
Parameter | Type | Description |
| boolean | Enables or disables the folder trust mechanism. |
| string | The currently selected authentication method. |
| string | Specifies a mandatory authentication method that overrides user selection. |