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:

# 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

# Show agent information
veris agent show

# Or specify a different agent
veris agent show --agent-id AGENT_ID

Scenario Management

# 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.10.0.tar.gz (20.6 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.10.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: veris_cli-1.10.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.23

File hashes

Hashes for veris_cli-1.10.0.tar.gz
Algorithm Hash digest
SHA256 0dbba87302e776263247a1e3bd743743ccf3b6bc7a6d0eda7829dee729ea2428
MD5 78cae31e5418566a9ff2f9fad753b9e6
BLAKE2b-256 3cceea958c13585e34f69dc40479fe8ed16ddcbaa0d614b49fc882a965da4fd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: veris_cli-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.23

File hashes

Hashes for veris_cli-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b3f2cc86082285bdf74d764b1de2a3ea8ab35e554146c1381ac92802efabfd0
MD5 1d51745be1a0bed753616f5564106271
BLAKE2b-256 48d9b775d680da0ede7fce826d48e9211462f11e65c8278b9d50ec70dafd5556

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