AgentOne CLI guide

Updated at:

This guide explains how to configure and use the AgentOne CLI with your Alibaba Cloud account.

1. Initialize configuration

npm install -g @agentone-ai/cli
agentone config init

By default, the CLI creates a configuration file in the user directory.

~/.agentone-cli/settings.json

The configuration and resources are located in the same data root directory:

~/.agentone-cli/
├── settings.json
└── resources/

2. Configure login

# Log in to the CLI
agentone auth login

3. Test CLI features

4. Log in with an Alibaba Cloud tenant

  • In the ~/.agentone-cli/settings.json file, set the value of idaas.idaasUrl to the Alibaba Cloud login URL.

{
  // Do not modify other settings.
  "idaas": {
    "idaasUrl": "https://auth.agentone.console.aliyun.com",
  },
  // Do not modify other settings.
}
  • Log in to AgentOne asset management at agentone.console.aliyun.com with your Alibaba Cloud account.

  • Run the following command to log in to the CLI.

# Log in to the CLI
agentone auth login