Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVP Shield

openclaw-avp

OpenClaw credential provider integration for AVP
Drop-in replacement · Same API · Hardware security

PyPI CI License


Overview

openclaw-avp implements OpenClaw's credential provider interface using the Agent Vault Protocol. Replace OpenClaw's default keys.json with AVP — get hardware-grade security without changing your agent code.

Installation

pip install openclaw-avp

Quick Start

from openclaw import Agent
from openclaw_avp import AVPCredentialProvider

# Create AVP-backed credential provider
credentials = AVPCredentialProvider("avp.toml")

# Use with OpenClaw agent
agent = Agent(credential_provider=credentials)

# Secrets are now stored in AVP vault instead of ~/.openclaw/keys.json
agent.run()

Migration from Default Provider

# Export existing credentials
openclaw credentials export > credentials.json

# Import into AVP
avp import credentials.json --backend keychain

# Update openclaw config
openclaw config set credential_provider avp
openclaw config set avp.config avp.toml

# Clean up
rm credentials.json
rm ~/.openclaw/keys.json  # Remove old plaintext secrets

Configuration

openclaw.toml

[credentials]
provider = "avp"
config = "avp.toml"

avp.toml

[backend]
type = "keychain"  # or "file", "hardware", "remote"

[workspace]
name = "openclaw-default"

Backend Selection

from openclaw_avp import AVPCredentialProvider, Backend

# OS Keychain (recommended)
credentials = AVPCredentialProvider(backend=Backend.KEYCHAIN)

# Hardware secure element (maximum security)
credentials = AVPCredentialProvider(backend=Backend.HARDWARE, device="/dev/ttyUSB0")

# Remote vault (team environments)
credentials = AVPCredentialProvider(
    backend=Backend.REMOTE,
    url="https://vault.company.com"
)

API Compatibility

AVPCredentialProvider implements the full OpenClaw credential interface:

Method AVP Operation
get_credential(key) RETRIEVE
set_credential(key, value) STORE
delete_credential(key) DELETE
list_credentials() LIST

Security Comparison

Provider Infostealer Host Compromise Memory Dump
OpenClaw default (keys.json)
AVP File
AVP Keychain
AVP Hardware

Contributing

See CONTRIBUTING.md.

License

Apache 2.0 — see LICENSE.


AVP Specification · OpenClaw

About

OpenClaw credential provider using AVP

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages