Agentverse CLI
The Agentverse CLI is a command-line tool for managing your Hosted Agents on Agentverse from your terminal. It is also known as AVCTL (Agentverse Control).
It allows you to create and retrieve Agents from Agentverse, synchronize local changes, run Agents locally, and deploy them to Agentverse.
Install AVCTL
Install AVCTL on your operating system using one of the following methods.
macOS and Linux
To install a specific version, set AVCTL_VERSION to the desired version number, such as v0.1.17 (e.g., AVCTL_VERSION=v0.1.17).
You can also use Homebrew:
Windows
Run the installation script in PowerShell:
Or use Chocolatey:
Check that AVCTL is installed with avctl version.
Sign in
Before managing Agents, connect AVCTL to your Agentverse account using avctl auth login.
Your browser will open, so you can sign in with your account.
If you are working in a remote environment, use avctl auth login --no-browser to receive a sign-in URL that you can open in your browser.
You can check your current authentication status with avctl auth status.
Manage a single Agent
-
Sign in to Agentverse:
avctl auth login -
Set up your Agent by creating a project folder:
To create a new Agent:
To retrieve an existing Agent from Agentverse:
You can find your Agent addresses with
avctl hosting get agents.After pulling an existing agent, you can proceed to run any of the commands listed below in this guide.
-
Once you are satisfied with your Agent, you can deploy your Agent to Agentverse using
avctl hosting deploy. If the Agent is already deployed, this updates and restarts it.
Manage multiple Agents
-
Sign in to Agentverse:
avctl auth login -
Set up your Agent by creating a project folder containing all the Agents you have in mind for your project. This folder will define your workspace:
A workspace is simply a folder containing multiple Agent projects. Each Agent folder should contain:
agent.py— the Agent’s main code.pyproject.toml— the packages and dependencies required by the Agent..env— configuration values, including references to other Agents the Agent depends on.
For example, if one Agent needs to communicate with another, its
.envfile can contain the other Agent’s address: -
From the project folder, initialize your workspace using:
This way, AVCTL will detect the Agents and their dependencies and consequently configure the workspace.
-
Deploy the workspace with:
AVCTL deploys the Agents in the correct order based on their dependencies.
Use either an individual Agent configuration or a workspace configuration for a project. They cannot be used together. If you switch between them, remove the existing .avctl/config.toml before initializing the new configuration.
AVCTL Commands
Main Commands
A full list of commands is available below:
Manage secrets
AVCTL can also manage secrets used by your Agents. You can add, view, or delete secrets without storing their values directly in your Agent code: