Skip to content

Manual Installation of Owl


This document is intended for Owl users. It introduces the pre-installation preparations, online installation, installation of a specific version, offline installation, and post-installation verification methods for the Owl CLI.

owl is the command name for the 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 currently in use supports executing terminal commands and you wish to automatically complete the installation of Owl CLI, authentication configuration, tool catalog synchronization, and Owl Skill installation, you can use Automatic Installation.

Pre-installation Preparation

Prepare the following information before installation:

Configuration Item Description
OWL_INSTALL_BASE_URL The download URL for the Owl installation script and installation package.
OWL_REGISTRY_ENDPOINT The Owl CLI Endpoint corresponding to the site where the workspace belongs.
OWL_TOKEN Service access token, used to identify the caller's identity, corresponding to DF-API-KEY
❗️Supports using workspace API Key or personal API Key. The latter is recommended.

OWL_REGISTRY_ENDPOINT must be filled with the Guance Center Owl CLI Endpoint corresponding to the site where the workspace belongs. Do not manually append /api/v1.

  • OWL_INSTALL_BASE_URL is used to download the installation script and package.
  • OWL_REGISTRY_ENDPOINT is used for the CLI to access the Owl service of the Guance Center.
  • OWL_TOKEN is the service access token, used to identify the caller's identity, corresponding to DF-API-KEY

Permission Requirements

OWL_TOKEN uses the Guance API Key. The accessible resources and executable operations of the Owl CLI depend on the Open API permissions of this API Key.

At least the following conditions must be met for installation and initial verification:

  • Can access the current workspace.
  • Can access the Owl CLI Endpoint.
  • Has the basic access permissions required to synchronize the tool catalog.
  • If specific tools need to be executed, the API Key also needs to have read or write permissions for the corresponding Open API.

Endpoint List

The Owl CLI service provides independent Endpoints by site. Please select the corresponding service address based on the site where your 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 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 Middle East Region 1 (UAE) https://me1-owl-api.guance.com
SaaS Deployment Free Zone (Beijing) https://cn3-owl-api.guance.com
Private Deployment Private Deployment Use the actual Owl CLI Endpoint provided by the deployment.

Supported Platforms

The current installation package supports the following platforms:

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

The installation package filename uses owl-cli-*, and the installed command is uniformly owl.

Online Installation

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)" -- --yes

Before execution, ensure 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"
$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 -Yes

If the system does not provide BitsTransfer, use the following command to download the script:

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

Installing a Specific Version

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

To install a specific version, you can 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.0.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.0.0" -Yes

Offline Installation

In environments where online installation addresses are inaccessible, you can use the offline installation method.

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 filenames are as follows:

Operating System Supported Architecture Filename
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" \
  --token "your-token" \
  --yes

Windows

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

Default Directories After Installation

Executable File

Operating System Default Path
Windows %LOCALAPPDATA%\Programs\owl\owl.exe
Linux / macOS Priority installation to $HOME/.local/bin/owl. Falls back to /usr/local/bin/owl if not writable.

Configuration Directory

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

After initialization, the configuration directory contains the following:

Path Description
config.yaml Client configuration file.
cache/ Synchronized category and tool cache.
data/ Data-type tool result files.
logs/ Log directory.

Post-installation Verification

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

owl --help
owl config show

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

To further verify the connectivity between the current terminal and the Owl CLI Endpoint, you can continue to execute:

owl sync

If owl sync completes normally, it indicates the current terminal can access the Owl CLI Endpoint, and the OWL_TOKEN can be used to synchronize the tool catalog.

If owl sync returns authentication, permission, or network errors, please refer to Troubleshooting.

Upgrade

To upgrade to a new version, you can re-execute the online installation command. To upgrade to a specific version, refer to Installing a Specific Version.

Before upgrading, it is recommended to confirm the following:

  • The current terminal is using the OWL_REGISTRY_ENDPOINT corresponding to the target workspace.
  • The current OWL_TOKEN is still valid.
  • Whether local scripts or automation tasks depend on the behavior of the old version.

Uninstallation

To uninstall Owl CLI, you can delete the Owl executable file and the local configuration directory.

Deleting the configuration directory will clear the local Token, cache, data files, and logs. Please confirm these contents are no longer needed before deletion.

Installing the Companion Skill for Agent (Optional)

If you plan to use the diagnostic capabilities of the Guance Center through Owl in an AI Agent, it is recommended to install the companion owl-diagnostics skill for the Agent after completing the Owl CLI installation and executing owl sync once.

The owl-diagnostics skill depends on the locally installed and executable owl command. After installation, the Agent can more stably complete diagnostic analysis of logs, metrics, events, traces, etc., combined with the tool catalog synchronized by Owl.

Corresponding skill address:

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

If you only need to use the Owl CLI manually for now, you can skip this step.

Taking Codex as an example

In Codex, you can install the owl-diagnostics skill with the following prompt:

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

After installation, restart Codex to make the newly installed skill effective. Subsequently, when performing tasks related to Guance diagnostics in Codex, Codex can use the local owl command in conjunction with this skill.

When the terminal prompts that owl cannot be found, handle it as follows:

  • Windows: Close the current PowerShell and reopen it before executing again.
  • Linux / macOS: Close the current terminal window and reopen it before executing again.

Feedback

Is this page helpful? ×