Command-line interface for Agent Vault Protocol
Store · Retrieve · Migrate · All platforms
avp is the official command-line tool for the Agent Vault Protocol. It lets you store, retrieve, and migrate secrets across backends — from encrypted files to hardware secure elements.
pip install avp-cligit clone https://github.com/avp-protocol/avp-cli.git
cd avp-cli
pip install -e .avp store anthropic_api_key "sk-ant-..." --backend fileavp get anthropic_api_key
# sk-ant-...avp list
# anthropic_api_key file 2026-02-18
# openai_api_key keychain 2026-02-15avp delete anthropic_api_keyUpgrade your security without changing agent code:
# Step 1: Migrate from file to OS keychain (free, blocks 90% of attacks)
avp migrate --from file --to keychain
# Step 2: Migrate from keychain to hardware (FIPS 140-3 Level 3)
avp migrate --from keychain --to hardwareEach migration is verifiable — the CLI compares source and destination before deleting the source.
avp config set backend file
avp config set file.path ~/.avp/secrets.enc
avp config set file.cipher chacha20-poly1305avp config set backend keychain
# Uses macOS Keychain, Windows Credential Manager, or libsecret on Linuxavp config set backend hardware
avp config set hardware.device /dev/ttyUSB0
# or auto-detect
avp config set hardware.device autoavp config set backend remote
avp config set remote.url https://vault.company.com
avp login # Opens browser for auth| Command | Description |
|---|---|
avp store <name> <value> |
Store a secret |
avp get <name> |
Retrieve a secret |
avp delete <name> |
Delete a secret |
avp list |
List all secrets |
avp rotate <name> |
Rotate a secret |
avp migrate |
Migrate between backends |
avp config |
View/set configuration |
avp discover |
Show vault capabilities |
avp login |
Authenticate to remote vault |
avp logout |
End session |
AVP_CONFIG # Config file path (default: ~/.avp/config.toml)
AVP_BACKEND # Backend type: file, keychain, hardware, remote
AVP_WORKSPACE # Workspace name (default: "default")
AVP_DEBUG # Enable debug logging# Add to ~/.bashrc or ~/.zshrc
eval "$(avp completion bash)"avp completion fish | sourceavp completion powershell | Out-String | Invoke-Expression- Secrets are never logged or written to shell history
- Values can be piped:
avp get key | xargs -I {} curl -H "Authorization: {}" - Interactive PIN entry for hardware backends
- Session tokens stored in OS keychain
See CONTRIBUTING.md for development setup.
Apache 2.0 — see LICENSE.