Command-line interface (CLI) tool built with Python for interacting with the Agent, enabling quick testing and data retrieval. Features include querying metrics, testing configurations, and debugging.. Includes installation, update, and uninstallation guides.
To install the OpenHubble CLI, follow these steps:
Use curl to fetch the installation script and run it with root privileges:
curl -s https://get.openhubble.com/cli | sudo bashThis script will:
- Update your system's packages.
- Install required dependencies (
git,python3,python3-venv, andpython3-pip). - Clone the OpenHubble CLI repository.
- Set up the required directories and configurations.
- Create a Python virtual environment and install the necessary Python modules.
To confirm the cli is installed, use:
openhubble-cliNow the tool must be appire!
You can also run the OpenHubble CLI without installing it by using Docker:
docker pull openhubble/cliYou can execute the CLI commands directly using Docker:
docker run --rm openhubble/cli ping --host llm.example.com --port 9703 --key the-apikey-in-agent-configAnother example:
docker run --rm openhubble/cli get --host llm.example.com --port 7788 --key the-apikey-in-agent-config --metric hostnameThis allows you to use the CLI without installing dependencies on your system.
You can use commands to ping the agent, get a specific metric from the agent, update, or uninstall. Let's begin.
If you are running your Agent over https just add
--httpsat the end or anywhere of your command!Remember that choosing protocol is available on both
getandpingcommands.By default, the choosed protocol is http.
To check if the agent is running, use:
openhubble-cli ping --host <host> --port <port> --key <api-key> --<protocol>Example:
openhubble-cli ping --host llm.example.com --port 9703 --key the-apikey-in-agent-config --httpIf the agent is running, the response will be:
Agent is running.If there is an issue, an error message will be displayed.
Default values:
host:127.0.0.1port:9703
To retrieve a specific metric from the agent, use:
openhubble-cli get --host <host> --port <port> --key <api-key> --metric <metric>Example:
openhubble-cli get --host llm.example.com --port 7788 --key the-apikey-in-agent-config --metric hostname --httpsThis might return:
SRV_LLM_PRODAnother example:
openhubble-cli get --metric agent.versionThis could return:
1.2.0Default values:
host:127.0.0.1port:9703metric:hostname
To check the version of the OpenHubble CLI:
openhubble-cli versionThis will display the current version of the OpenHubble CLI.
To view the help documentation and available commands:
openhubble-cli helpThis will show the usage information for the tool, including all available subcommands.
The OpenHubble CLI can be updated using the built-in commands. Run the following command with root privileges:
sudo openhubble-cli updateThis will:
- Pull the latest updates from the repository.
- Update Python dependencies.
To uninstall the OpenHubble CLI, use the built-in CLI commands:
sudo openhubble-cli uninstallThis will:
- Remove directories, and configuration files.
Command-line interface (CLI) tool built with Python for interacting with the Agent, enabling quick testing and data retrieval. Features include querying metrics, testing configurations, and debugging.. Includes installation, update, and uninstallation guides.
To install the OpenHubble CLI, follow these steps:
Use curl to fetch the installation script and run it with root privileges:
curl -s https://get.openhubble.com/cli | sudo bashThis script will:
- Update your system's packages.
- Install required dependencies (
git,python3,python3-venv, andpython3-pip). - Clone the OpenHubble CLI repository.
- Set up the required directories and configurations.
- Create a Python virtual environment and install the necessary Python modules.
To confirm the CLI is installed, use:
openhubble-cliNow the tool must be available!
If you want to build the Docker image yourself, follow these steps:
git clone https://github.com/OpenHubble/cli.git
cd clidocker build -t oh-cli:1 .docker run --rm oh-cli:1 ping --host 127.0.0.1 --port 9703This is useful for local development and testing.
If you modify or redistribute the OpenHubble CLI, you must include a reference to "OpenHubble" as the original creator of the project. This ensures that our startup is credited for the work and contributions made to the software.
Example attribution:
This software was modified from the original **OpenHubble CLI** (https://github.com/OpenHubble/cli).OpenHubble by Amirhossein Mohammadi - 2025