AIandMe CLI - command line interface for AI agent security testing.
Reason this release was yanked:
Library transfered to humanbound
Project description
AIANDME (BETA) - AI Agent Security Testing CLI
NAME
aiandme - command-line interface for AI agent security testing
SYNOPSIS
aiandme [--base-url URL] COMMAND [OPTIONS] [ARGS]
DESCRIPTION
AIandMe CLI provides security testing for AI chatbots and agents. Run adversarial tests, behavioral analysis, and export guardrails configurations.
GETTING STARTED
# 1. Install
pip install aiandme-cli
# 2. Authenticate (opens browser)
aiandme login
# 3. Select organisation
aiandme orgs list
aiandme switch <org-id>
# 4. Configure a model provider
aiandme providers add --name openai --api-key sk-...
# 5. Create a project from system prompt
aiandme init --name "My Bot" --prompt ./system_prompt.txt
# 6. Run security tests
aiandme test \
--chat-endpoint https://my-bot.com/chat \
--chat-header "Authorization: Bearer token"
# 7. Check status and results
aiandme status
aiandme logs
COMMANDS
Authentication
| Command | Description |
|---|---|
login |
Authenticate via browser (OAuth PKCE) |
logout |
Clear stored credentials |
whoami |
Show current authentication status |
Organisation Management
| Command | Description |
|---|---|
orgs list |
List available organisations |
orgs current |
Show current organisation |
switch <id> |
Switch to organisation |
Provider Management
Providers are LLM configurations used for running security tests.
| Command | Description |
|---|---|
providers list |
List configured providers |
providers add |
Add new provider |
providers update <id> |
Update provider config |
providers remove <id> |
Remove provider |
providers add options:
--name, -n Provider name: openai, claude, azureopenai, gemini, grok, custom
--api-key, -k API key
--endpoint, -e Endpoint URL (required for azureopenai, custom)
--model, -m Model name (optional)
--default Set as default provider
--interactive Interactive configuration mode
Project Management
| Command | Description |
|---|---|
projects list |
List projects |
projects use <id> |
Select project |
projects current |
Show current project |
projects show [id] |
Show project details |
init - Create project from various sources:
aiandme init --name NAME [OPTIONS]
--prompt PATH Extract scope from system prompt file
--endpoint URL Probe live chatbot endpoint
--repo PATH Scan repository for prompts/tools
--openapi PATH Parse OpenAPI specification
--description Project description
--yes, -y Skip confirmation prompts
Test Execution
test - Run security tests on current project:
aiandme test [OPTIONS]
Test Category:
--test-category, -t Test to run (default: owasp_multi_turn)
Values: owasp_single_turn, owasp_multi_turn,
owasp_agentic_multi_turn, owasp_adaptive,
behavioral
Testing Level:
--testing-level, -l Depth of testing (default: unit)
unit (~20 min), system (~45 min), acceptance (~90 min)
Chat Endpoint (required):
--chat-endpoint Chat completion URL of the bot to test
--chat-header Header for chat endpoint (repeatable)
--chat-payload JSON payload template for chat
Init Endpoint (optional):
--init-endpoint Thread initialization URL
--init-header Header for init endpoint (repeatable)
--init-payload JSON payload for init
Auth Endpoint (optional):
--auth-endpoint Auth/token endpoint URL
--auth-header Header for auth endpoint (repeatable)
--auth-payload JSON payload for auth
Other:
--provider-id Provider to use (default: first available)
--name, -n Experiment name (auto-generated if omitted)
--lang Language (default: english). Accepts codes: en, de, es...
--streaming Enable streaming mode (requires wss:// endpoint)
--no-auto-start Create without starting (manual mode)
--wait, -w Wait for completion
--fail-on SEVERITY Exit non-zero if findings >= severity
Values: critical, high, medium, low, any
Experiment Management
| Command | Description |
|---|---|
experiments list |
List experiments |
experiments show <id> |
Show experiment details |
experiments status <id> |
Check status |
experiments status <id> --watch |
Watch until completion |
experiments wait <id> |
Wait with progressive backoff |
experiments logs <id> |
List experiment logs |
experiments report <id> |
Download HTML report |
experiments wait options:
--timeout MINUTES Max wait time (default: 120)
Progressive backoff: 30s → 60s → 120s → 300s
status (top-level alias):
aiandme status [experiment_id] [--watch]
Without ID, shows most recent experiment.
Results & Export
logs - View experiment results:
aiandme logs [experiment_id] [OPTIONS]
--format Output format: table, json, csv (default: table)
--verdict Filter by verdict: pass, fail
--page Page number
--size Items per page
posture - Security posture score:
aiandme posture [--json]
guardrails - Export guardrails configuration:
aiandme guardrails [OPTIONS]
--vendor Target vendor: aiandme, openai, azure, bedrock
--format Output format: json, yaml (default: json)
--output, -o Output file path
Documentation
aiandme docs [TOPIC]
Opens documentation in browser. Topics: quickstart, api, cli, concepts, testing.
CONFIGURATION
Environment Variables
| Variable | Description | Default |
|---|---|---|
AIANDME_BASE_URL |
API base URL | https://api.aiandme.io |
AIANDME_AUTH0_DOMAIN |
Auth0 domain (on-prem) | aiandme.eu.auth0.com |
AIANDME_AUTH0_CLIENT_ID |
Auth0 client ID (on-prem) | - |
On-premises
export AIANDME_BASE_URL=https://api.your-domain.com
aiandme login
FILES
| Path | Description |
|---|---|
~/.aiandme/ |
Configuration directory |
~/.aiandme/credentials.json |
Auth tokens (mode 600) |
EXIT STATUS
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error or test failure (with --fail-on) |
EXAMPLES
Basic workflow
aiandme login
aiandme switch abc123
aiandme projects use def456
aiandme test --chat-endpoint https://bot.com/chat
aiandme status --watch
aiandme logs
CI/CD integration
aiandme test \
--chat-endpoint $BOT_ENDPOINT \
--chat-header "Authorization: Bearer $BOT_TOKEN" \
--testing-level system \
--wait \
--fail-on high
Multi-endpoint bot with auth
aiandme test \
--auth-endpoint https://bot.com/oauth/token \
--auth-payload '{"client_id":"x","client_secret":"y"}' \
--init-endpoint https://bot.com/threads \
--init-header "Content-Type: application/json" \
--chat-endpoint https://bot.com/chat \
--chat-header "Content-Type: application/json" \
--chat-payload '{"messages":[{"role":"user","content":"$PROMPT"}]}'
Export guardrails for OpenAI
aiandme guardrails --vendor openai --format json -o guardrails.json
Create project from repository
aiandme init \
--name "Support Bot" \
--repo ./my-agent \
--prompt ./prompts/system.txt
SEE ALSO
- Documentation: https://docs.aiandme.io
- API Reference: https://docs.aiandme.io/api
- GitHub: https://github.com/aiandme/cli
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 aiandme_cli-0.1.1.tar.gz.
File metadata
- Download URL: aiandme_cli-0.1.1.tar.gz
- Upload date:
- Size: 60.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689335856a2facbeef12dc9552e113968559181218ddac1a5aafe376edca5ab1
|
|
| MD5 |
b379fc733ff795527a1d9be9bb34cf40
|
|
| BLAKE2b-256 |
06ac9fc9cdae48a6fac04c0b8c406ecc372c5cbd989b4ba7a6e7012a173e2151
|
File details
Details for the file aiandme_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aiandme_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 70.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40b60cd2242ec65d1a588c7968116322a8e9a992c93e2e2898b4d9a3e4b1c060
|
|
| MD5 |
a43997d8f69cc12e63607eb543b7cb66
|
|
| BLAKE2b-256 |
754f180e0ad57f34e22ed4cfcf8f0b5671c12276a3557fadee9dc0d841611985
|