Aegra CLI - Manage your self-hosted agent deployments
Actively maintained. Last release 2 days ago. A safe choice.
pip install aegra-cliaegra-cli
Aegra CLI - Command-line interface for managing self-hosted agent deployments.
Aegra is an open-source, self-hosted alternative to LangSmith Deployments. Use this CLI to initialize projects, run development servers, and manage Compose services. With AEGRA_CONTAINER_RUNTIME unset, it uses a running Docker daemon, then Podman if it is installed, then Docker if it is installed but stopped. Set the variable to docker or podman to choose directly.
Installation
From PyPI
pip install aegra-cli
From Source
# Clone the repository
git clone https://github.com/aegra/aegra.git
cd aegra
# Install all workspace packages
uv sync --all-packages
Quick Start
# Initialize a new Aegra project (prompts for location, template, and name)
aegra init
# Follow the printed next steps
cd <your-project>
cp .env.example .env # Add your OPENAI_API_KEY
uv sync # Install dependencies
uv run aegra dev # Start PostgreSQL + dev server
Commands
aegra version
Show version information for aegra-cli and aegra-api.
aegra version
Output displays a table with versions for both packages.
aegra init
Initialize a new Aegra project with configuration files and directory structure.
aegra init [PATH] [OPTIONS]
Arguments:
| Argument | Default | Description |
|---|---|---|
PATH | . | Project directory to initialize |
Options:
| Option | Description |
|---|---|
-t, --template INT | Template number (1 = "New Aegra Project", 2 = "ReAct Agent") |
-n, --name STR | Project name |
--force | Overwrite existing files if they exist |
Templates:
| # |
|---|