CLI to connect local agents to the Veris backend
Project description
Veris CLI
Connect your existing agent to Veris simulations.
The Veris CLI lets you package your agent as a Docker image and run it against simulation scenarios.
Installation
uv tool install veris-cli
Or from source:
uv tool install git+https://github.com/veris-ai/veris-cli.git
Quick Start
1. Login
# Browser-based Google login (recommended)
veris login
# Or with an API key directly (for CI/scripts)
veris login YOUR_API_KEY
This saves your credentials to ~/.veris/config.yaml.
3. Initialize Your Project
In your agent's project directory:
veris init
This will:
- Create a
.veris/folder with configuration files - Prompt you for an environment name (e.g., "my-customer-support-agent")
- Create the environment in Veris
- Save the environment ID to
.veris/config.yaml
Files created:
Dockerfile.sandbox- Docker image template for your agentveris.yaml- Simulation configuration (services, persona, agent settings).env.simulation- Environment variables for your agentconfig.yaml- Environment ID (auto-generated, don't edit)
4. Configure Your Agent
Edit the generated files to match your agent:
.veris/Dockerfile.sandbox - Update paths to your agent code:
# Copy your agent's dependencies
COPY pyproject.toml uv.lock /agent/
COPY your_agent_module /agent/your_agent_module
# Install dependencies
WORKDIR /agent
RUN uv sync --frozen --no-dev
.veris/veris.yaml - Configure your agent's entry point and port:
agent:
code_path: /agent
entry_point: your_agent_module.main:app # Update this!
port: 8000 # Update if your agent uses a different port
.veris/.env.simulation - Add your agent's environment variables:
OPENAI_API_KEY=sk-your-key
DATABASE_URL=postgresql://...
5. Build and Push Your Agent Image
# Build and push in one command
veris env push
# Or build only (for testing)
veris env build
This will:
- Use the environment created during
veris init - Generate push credentials for the
latesttag - Automatically build your Docker image (handles buildx on Mac)
- Automatically push to the registry
Note: On macOS, this uses docker buildx for multi-platform builds targeting linux/amd64 (GKE platform).
6. List Available Scenarios
veris scenarios list
Or filter by visibility:
veris scenarios list --visibility public
7. Create and Run a Simulation
# Interactive mode (prompts for scenario and environment)
veris run create
# Or specify directly
veris run create --scenario-id scenario_abc123 --env-id env_xyz789
8. Monitor Your Run
# Check status
veris run status run_abc123
# Watch status (updates every 3 seconds)
veris run status run_abc123 --watch
# View logs
veris run logs run_abc123
# Follow logs (like tail -f)
veris run logs run_abc123 --follow
9. Cancel a Run (if needed)
veris run cancel run_abc123
Complete Command Reference
Authentication
# Browser-based Google login (recommended)
veris login
# Login with API key (for CI/scripts)
veris login <api-key>
# Specify a custom backend URL (for developers)
veris login [--backend-url https://sandbox.api.veris.ai]
Project Setup
# Initialize .veris/ directory and create environment
veris init [--name "my-agent"]
# If name not provided, you'll be prompted interactively
Environment Management
# Build Docker image only
veris env build [--tag latest] [--no-cache]
# Build and push Docker image
veris env push [--tag latest] [--no-cache]
# List all environments
veris env list [--status ready]
Scenarios
# List scenarios
veris scenarios list [--visibility public|private|org]
Runs
# Create run (interactive or with flags)
veris run create [--scenario-id <id>] [--env-id <id>] [--concurrency 5]
# Get run status
veris run status <run-id> [--watch]
# Get run logs
veris run logs <run-id> [--follow]
# Cancel run
veris run cancel <run-id>
How It Works
┌─────────────────────────────────────────────────────────────┐
│ 1. One-Time Setup │
│ veris init → creates environment + config files │
│ → saves env_id to .veris/config.yaml │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ 2. Push Updates │
│ Edit code → veris env push → docker build & push │
│ (can push multiple versions using --tag v1, v2, etc.) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ 3. Run Simulations │
│ veris run create → Veris spawns your agent in K8s │
│ → Runs scenarios against it │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ 4. Monitor & Analyze │
│ veris run status → check progress │
│ veris run logs → view events │
└─────────────────────────────────────────────────────────────┘
Configuration Files
~/.veris/config.yaml
Created by veris login:
api_key: vrs_abc123xyz
backend_url: https://sandbox.api.veris.ai
.veris/config.yaml
Project configuration (auto-generated by veris init):
environment_id: env_abc123
environment_name: my-agent
.veris/Dockerfile.sandbox
Template for building your agent's Docker image. Important: Build context is project root, so COPY paths are relative to your project root, not .veris/.
.veris/veris.yaml
Simulation configuration including:
- Services your agent uses (with DNS aliases)
- Persona modality (http/ws/email)
- Agent entry point and port
.veris/.env.simulation
Environment variables loaded into your agent container at runtime.
Development
# Clone repo
git clone https://github.com/veris-ai/veris-cli.git
cd veris-cli
# Install dependencies
uv sync
# Run tests
uv run pytest
# Install locally for testing
uv tool install --force .
Troubleshooting
"No API key found"
Run veris login to authenticate via Google, or veris login <your-api-key> with an API key.
Docker build fails
- Make sure Docker is running
- On macOS, Docker Desktop must be installed (required for
docker buildx) - Try
veris env build --no-cacheto force a clean build
Image push fails
Check that Docker is running and try again. Credentials are fetched automatically — you don't need to run docker login manually.
Support
- GitHub Issues: https://github.com/veris-ai/veris-cli/issues
- Email: developers@veris.ai
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file veris_cli-2.0.0.tar.gz.
File metadata
- Download URL: veris_cli-2.0.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
508d284fd1e36fc6cdd8bd6a32ec21681a5b47e703dc19dd5d8c657d231fd0ab
|
|
| MD5 |
0d23516e2125aa06e35b75de18762f37
|
|
| BLAKE2b-256 |
8c12462b9a3549ba7669101beb5651bad3d5cbbdeaa6b3d640cefc552c33fda5
|
File details
Details for the file veris_cli-2.0.0-py3-none-any.whl.
File metadata
- Download URL: veris_cli-2.0.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62b050aaa8ca3fd2f53731f523371bc1e379c0680b7a9deeea9857485116c094
|
|
| MD5 |
bb827f245b6e0112e1eef54287f74ddc
|
|
| BLAKE2b-256 |
676f6c23e74fee513c5cf5845392adc529cf106747164e2e8b09be5cf0136845
|