Skip to content

Manually Install OWL


This document is intended for OWL users and describes the prerequisites for installing OWL CLI, online installation, installing a specific version, offline installation, and post-installation checks.

owl is the command name of OWL CLI. After installation, users can use owl locally to synchronize the tool catalog, view tool descriptions, and execute platform capabilities.

If the AI tool you are using supports running terminal commands and you want to automatically complete OWL CLI installation, authentication configuration, tool catalog synchronization, and OWL Skill installation, use Automatic Installation.

Prerequisites

Before installation, prepare the following information:

Configuration Item Description
OWL_INSTALL_BASE_URL Download URL for the OWL installation script and installation package
OWL_REGISTRY_ENDPOINT OWL CLI Endpoint corresponding to the site where the workspace is located
OWL_TEMP_CODE One-time temporary authorization code from Studio, used by the installation script and owl login --dpop
OWL_TOKEN Compatible with API Key mode; when explicitly provided to the installer, this Key is used
OWL_API_KEY CLI environment variable for API Key mode; when both are set, it takes precedence over OWL_TOKEN

OWL_REGISTRY_ENDPOINT must be set to the Guance Center OWL CLI Endpoint for the site to which the workspace belongs. Do not manually append /api/v1.

DPoP login accesses resources according to the permissions of the selected account and workspace. When using an API Key, the access scope still depends on that Key. Both methods require read or write permission for the target tool.

Permission Requirements

  • Access to the current workspace
  • Access to the OWL CLI Endpoint
  • The basic access permissions required to synchronize the tool catalog
  • Whether the target site supports DPoP, and whether the current account has permissions for the target workspace and tools

Endpoint List

OWL CLI provides an independent Endpoint for each site. Select the corresponding service address based on the site where the workspace is located.

Deployment Type Site Name Endpoint
SaaS Deployment China Region 1 (Hangzhou) https://owl-api.guance.com
SaaS Deployment China Region 2 (Ningxia) https://aws-owl-api.guance.com
SaaS Deployment China Region 4 (Guangzhou) https://cn4-owl-api.guance.com
SaaS Deployment China Region 6 (Hong Kong) https://cn6-owl-api.guance.one
SaaS Deployment Global Region 1 (Oregon) https://us1-owl-api.guance.com
SaaS Deployment Europe Region 1 (Frankfurt) https://eu1-owl-api.guance.one
SaaS Deployment Asia Pacific Region 1 (Singapore) https://ap1-owl-api.guance.one
SaaS Deployment Asia Pacific Region 2 (Singapore) https://ap2-owl-api.guance.com
SaaS Deployment Africa Region 1 (South Africa) https://za1-owl-api.guance.com
SaaS Deployment Indonesia Region 1 (Jakarta) https://id1-owl-api.guance.com
SaaS Deployment Free Zone (Beijing) https://cn3-owl-api.guance.com
Private Deployment Private Deployment Use the OWL CLI Endpoint provided by the actual deployment

Supported Platforms

The current installation package supports the following platforms:

Operating System Supported Architecture
Windows amd64
Linux amd64, arm64
macOS amd64, arm64

Installation package file names use owl-cli-*, and the command after installation is always owl.

Online Installation

Linux / macOS

OWL_INSTALL_BASE_URL="https://static.guance.com/owl" \
OWL_REGISTRY_ENDPOINT="https://owl-api.guance.com" \
bash -c "$(curl -fsSL https://static.guance.com/owl/install.sh)" -- --yes

Before running the command, ensure that the following commands are installed on the system:

  • bash
  • curl
  • tar

Windows

$env:OWL_INSTALL_BASE_URL = "https://static.guance.com/owl"
$env:OWL_REGISTRY_ENDPOINT = "https://owl-api.guance.com"
Set-ExecutionPolicy Bypass -Scope Process -Force
Import-Module BitsTransfer
Start-BitsTransfer -Source "$env:OWL_INSTALL_BASE_URL/install.ps1" -Destination .\owl-install.ps1
powershell .\owl-install.ps1 -Yes

If BitsTransfer is not available on the system, use the following command to download the script:

Invoke-WebRequest -Uri "$env:OWL_INSTALL_BASE_URL/install.ps1" -OutFile .\owl-install.ps1

After installation, run owl login --dpop and enter the Studio temporary authorization code. You can also complete login by setting OWL_TEMP_CODE when starting the installer. If API Key mode is required, explicitly provide OWL_TOKEN, --token, or -Token. To add other accounts, use Profile.

Install a Specific Version

To install a specific version, specify the version number in the installation command.

Linux / macOS

OWL_INSTALL_BASE_URL="https://static.guance.com/owl" \
OWL_REGISTRY_ENDPOINT="https://owl-api.guance.com" \
OWL_TOKEN="your-token" \
bash -c "$(curl -fsSL https://static.guance.com/owl/install.sh)" -- --version "1.3.0" --yes

Windows

$env:OWL_INSTALL_BASE_URL = "https://static.guance.com/owl"
$env:OWL_REGISTRY_ENDPOINT = "https://owl-api.guance.com"
$env:OWL_TOKEN = "your-token"
Set-ExecutionPolicy Bypass -Scope Process -Force
Import-Module BitsTransfer
Start-BitsTransfer -Source "$env:OWL_INSTALL_BASE_URL/install.ps1" -Destination .\owl-install.ps1
powershell .\owl-install.ps1 -Version "1.3.0" -Yes

Offline Installation

In environments where the online installation address cannot be accessed, you can use offline installation.

The offline installation directory must contain the following files:

  • install.sh or install.ps1
  • version
  • SHA256SUMS
  • The installation package corresponding to the current system

The offline installation package file names are as follows:

Operating System Supported Architecture File Name
Windows amd64 owl-cli-windows-amd64-<version>.zip
Linux amd64 owl-cli-linux-amd64-<version>.tar.gz
Linux arm64 owl-cli-linux-arm64-<version>.tar.gz
macOS amd64 owl-cli-darwin-amd64-<version>.tar.gz
macOS arm64 owl-cli-darwin-arm64-<version>.tar.gz

Linux / macOS

chmod +x ./install.sh
./install.sh \
  --local-package \
  --registry-endpoint "https://owl-api.guance.com" \
  --yes

Windows

powershell .\install.ps1 `
  -LocalPackage `
  -RegistryEndpoint "https://owl-api.guance.com" `
  -Yes

Offline installation installs only local files. After the site's HTTPS Endpoint is reachable, run owl login --dpop to complete login.

Default Directories After Installation

Executable File

Operating System Default Path
Windows %LOCALAPPDATA%\Programs\owl\owl.exe
Linux / macOS Installed preferentially to $HOME/.local/bin/owl, falling back to /usr/local/bin/owl when it is not writable

Configuration Directory

Operating System Default Path
Windows %USERPROFILE%\.owl
Linux / macOS $HOME/.owl

To customize the configuration directory, set the OWL_DIR environment variable. When OWL_DIR is set to a non-empty value, OWL CLI uses that directory as the configuration directory, overriding the default paths in the table above; when it is not set, the default paths in the table above are used ($HOME/.owl / %USERPROFILE%\.owl).

After initialization, the configuration directory contains the following:

Path Description
config.yaml Client configuration file
cache/ Cache of synchronized categories and tools
data/ Result files for data-based tools
logs/ Log directory

Post-installation Checks

After installation, reopen the terminal and run the following commands:

owl --help
owl config show

If the commands output help information and the current configuration normally, the local executable file and configuration file are ready.

To further verify connectivity between the current terminal and the OWL CLI Endpoint, run:

owl sync

A successful owl sync indicates that the tool catalog has been obtained. Use owl config show to check the login status, then call a read-only tool that the current account has permission to use to confirm that access is available.

If owl sync returns an authentication, permission, or network error, see Troubleshooting.

Upgrade

When an update channel has been configured, run the following command to upgrade:

owl update

owl update uses the channel specified by update.base_url on the local machine. For standard versions, updates only upgrade and never downgrade; for the same version, the existing binary is retained. After the channel installation script is updated, historical testing-<SHA> builds can also be migrated to the official version of that channel, retaining the existing configuration and verifying the SHA256 of the downloaded package. Before migration, confirm that the official version already includes the required test features.

To reinstall, run the online installation command. To install a specific version, see Install a Specific Version.

After upgrading to v1.4.0, run owl sync to fully refresh the tool catalog. owl.member.list has been migrated to owl.workspace.member.list; the old name is retained as a call alias. For details, see Cross-workspace Query and Member Tool Migration.

Before upgrading, we recommend confirming the following:

  • The current terminal uses the OWL_REGISTRY_ENDPOINT corresponding to the target workspace
  • Whether owl config show displays DPoP: configured; for API Key installation, check whether the Key in use is valid
  • Whether local scripts or automation tasks depend on the behavior of the old version

Uninstall

To uninstall OWL CLI, delete the OWL executable file and the local configuration directory.

Deleting the configuration directory clears local Tokens, cache, data files, and logs. Before deleting it, confirm that these contents are no longer needed.

Install the Companion Skill for the Agent (Optional)

If you plan to use the diagnostic capabilities of the Guance Center through OWL in an AI Agent, we recommend installing the companion owl-diagnostics skill for the Agent after completing OWL CLI installation and running owl sync once.

The owl-diagnostics skill depends on the owl command being installed and executable on the local machine. After installation, the Agent can use the tool catalog synchronized by OWL to more reliably perform diagnostic analysis of logs, metrics, events, traces, and more.

The corresponding skill address is:

https://github.com/GuanceCloud/ai-skills/tree/main/owl-diagnostics

If you only need to use OWL CLI manually, you can skip this step.

Agents with terminal execution capabilities, such as Codex, Claude Code, Cursor, Trae, GitHub Copilot (VS Code), and Windsurf, can all use the same installation process. Install the CLI in the environment where the Agent actually executes commands.

Send the following prompt in the current Agent conversation to have it install the companion Skill:

Install this skill for me: https://github.com/GuanceCloud/ai-skills/tree/main/owl-diagnostics

After installation, load the Skill according to the current Agent's prompts, refresh or create a new session if necessary, and then complete First Call Verification. Users who have already installed the companion Skill through automatic installation do not need to repeat the steps in this section.

If the terminal reports that owl cannot be found, handle it as follows:

  • Windows: Close the current PowerShell, reopen it, and then run the command again
  • Linux / macOS: Close the current terminal window, reopen it, and then run the command again

Feedback

Is this page helpful?