CLI to connect local agents to the Veris backend
Project description
veris-cli
Veris CLI connects a local agent to the Veris simulation backend so you can generate scenarios and run end-to-end evaluations.
Quickstart
Before you start
- Python 3.11+
uvinstalled
If you want to run simulationa against you local agent you need ngrok setup: Follow: https://ngrok.com/docs/getting-started/
You need to have an API key and Agent ID from the Veris team.
Installation
uv add tool veris-cli
Initialize (one time only)
IMPORTANT: Get your VERIS_API_KEY and VERIS_AGENT_ID if you don't have it already. Ask us on Slack or email developers@veris.ai if need help.
veris init --veris-api-key YOUR_API_KEY --veris-agent-id YOUR_AGENT_ID
This creates .veris/config.yaml with your credentials.
Commands
Local Setup
If you're running a local agent, use ngrok to create a public tunnel. If the agent is being served on a different pathname than root add the --agent-pathname parameter:
# Start tunnel in background (default)
veris setup-local start --local-url http://localhost:8000
# Start tunnel with custom agent pathname like /mcp or /ai/mcp (for MCP agents)
veris setup-local start --local-url http://localhost:8000 --agent-pathname /mcp
# Run in foreground (blocks until Ctrl+C)
veris setup-local start --local-url http://localhost:8000 --foreground
# Stop all tunnels
veris setup-local stop
This saves the public URL to .veris/config.yaml under PUBLIC_AGENT_URL.
Agent Management
# Create a new agent from a natural language prompt
veris agent create --prompt "A customer support agent that helps users with billing inquiries"
# Create with a specific version
veris agent create --prompt "A travel booking assistant" --version v2.0.0
# Show agent information
veris agent show
# Or specify a different agent
veris agent show --agent-id AGENT_ID
Scenario Management
# Create a new scenario set
veris scenario create --num-scenarios 10
# Create for a specific agent version
veris scenario create --num-scenarios 10 --version-id VERSION_ID
# List scenario sets for your agent
veris scenario list
# Or specify a different agent
veris scenario list --agent-id AGENT_ID
Simulation
# Launch simulation
veris simulation launch --scenario-set-id SET_ID --max-turns 20 --watch
# Launch with custom agent connection settings
veris simulation launch \
--scenario-set-id SET_ID \
--max-turns 20 \
--agent-url https://your-agent.com \
--agent-transport http \
--agent-timeout 300 \
--watch
# Get simulation status
veris simulation status --run-id RUN_ID
# Get sessions
veris simulation sessions --run-id RUN_ID
# Get logs (all sessions or specific session)
veris simulation logs --run-id RUN_ID
veris simulation logs --run-id RUN_ID --session-id SESSION_ID
# Get results
veris simulation results --run-id RUN_ID
# Kill running simulation
veris simulation kill --run-id RUN_ID
Configuration
Credentials and settings are stored in .veris/config.yaml:
VERIS_API_KEY: your_api_key
VERIS_AGENT_ID: your_agent_id
VERIS_API_URL: https://simulator.api.veris.ai/
PUBLIC_AGENT_URL: https://xxxx.ngrok.io # Set by setup-local
Development
# Install dependencies
uv sync
# Run tests
uv run pytest
# Format code
uv run ruff format
# Lint
uv run ruff check --fix
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-1.15.0.tar.gz.
File metadata
- Download URL: veris_cli-1.15.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","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 |
9d2256e442174fad4d9decd311d2ec3dab9f6c4bf56c5f4c5d90dbd8b15e3457
|
|
| MD5 |
767aeaf6371286d39a048c21dab384ce
|
|
| BLAKE2b-256 |
b2d126e9bb227fc9d476e8fddf009dfce79f76dcdea068b90d50f9ad35b137dd
|
File details
Details for the file veris_cli-1.15.0-py3-none-any.whl.
File metadata
- Download URL: veris_cli-1.15.0-py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","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 |
94e90ce76c4f53a56296543245c1fd91389212f4a42d1d156d0c253a0bf3ad39
|
|
| MD5 |
05383f018c153d2b1e1ad7a4438c870a
|
|
| BLAKE2b-256 |
e7fcd4abf1ade1779c57240d5c12afdb194372bfdf33f5aecbaa605564cb2a22
|