Skip to main content

CLI to connect local agents to the Veris backend

Project description

veris-cli

PyPI version Tests Python

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+
  • uv installed

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

# 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veris_cli-1.14.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veris_cli-1.14.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file veris_cli-1.14.0.tar.gz.

File metadata

  • Download URL: veris_cli-1.14.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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

Hashes for veris_cli-1.14.0.tar.gz
Algorithm Hash digest
SHA256 5bd139e9b20574d2289e8750b2559084e5d2002fee75927504c1244f54e3b82a
MD5 41c3d47f42344d34963ed277123df93e
BLAKE2b-256 5ef378fe31a2cae91500667e1f95decd071998c70e59e08c06141f14adeefe51

See more details on using hashes here.

File details

Details for the file veris_cli-1.14.0-py3-none-any.whl.

File metadata

  • Download URL: veris_cli-1.14.0-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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

Hashes for veris_cli-1.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9974668a7f5176e45a97de8f52e9e8e6cf0a122b12c954307754a60815af6f0e
MD5 c66dde42fa790804a436cc21cb00d942
BLAKE2b-256 df8305255e3b2b26315fad24671f29a7574913fa2aa8b9e6f07dccf70816f6ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page