Server
agent-vault server
agent-vault server
AGENT_VAULT_MASTER_PASSWORD env var, then --password-stdin, then interactive prompt. If no password is provided, runs in passwordless mode (DEK stored unwrapped). The env var is unset from the process immediately after reading.agent-vault server stop
agent-vault server stop
~/.agent-vault/agent-vault.pid and sends SIGTERM.Database migration
agent-vault migrate-db
agent-vault migrate-db
DATABASE_URL (or --database-url on the server) and restart. See PostgreSQL for the full guide.CA
agent-vault ca fetch
agent-vault ca fetch
--mitm-port 0.Authentication
agent-vault auth register
agent-vault auth register
agent-vault auth login
agent-vault auth login
agent-vault auth sessions list
agent-vault auth sessions list
Current column.agent-vault auth sessions revoke
agent-vault auth sessions revoke
auth sessions list). Use this to invalidate a stolen ~/.agent-vault/session.json or to log out a forgotten device. Revoking your current session forces you to log in again on this device.Account
agent-vault account whoami
agent-vault account whoami
agent-vault account change-password
agent-vault account change-password
agent-vault account delete
agent-vault account delete
Vaults
agent-vault vault create
agent-vault vault create
--credential-store=infisical, Agent Vault probes Infisical with the supplied config, encrypts the snapshot, and commits the vault, credentials, and your admin grant atomically. If the probe fails nothing is persisted. See Credential stores.External-store vault creation requires instance-owner role. Non-owners receive 403 Owner role required to create external-store vaults because the broker’s configured machine identity, not the caller’s, authorizes the upstream fetch.agent-vault vault list
agent-vault vault list
agent-vault vault delete
agent-vault vault delete
agent-vault vault rename
agent-vault vault rename
agent-vault vault use
agent-vault vault use
--vault will default to this vault instead of default.agent-vault vault current
agent-vault vault current
agent-vault vault credential-store show
agent-vault vault credential-store show
Credential store: builtin for vaults with no external source; otherwise the kind name plus the Infisical project, environment, path, poll cadence, and last_sync_status / last_synced_at / last_sync_error. This command is read-only; use credential-store set to change the kind.agent-vault vault credential-store set
agent-vault vault credential-store set
builtin requires vault admin or instance owner role; switching to infisical requires instance-owner role (the broker’s machine identity authorizes the upstream fetch). Prompts for the vault name to confirm unless --yes is passed.Switching to infisical probes the source (same validation as create), then overwrites the vault’s built-in credentials with the fetched snapshot and starts polling. Switching to builtin disconnects the external source (polling stops) but keeps the last synced secrets in place as editable built-in credentials. See Credential stores.agent-vault vault credential-store sync
agent-vault vault credential-store sync
agent-vault vault init
agent-vault vault init
agent-vault.json file. This file is meant to be committed to version control so the whole team shares the vault binding.Vault resolution priority: --vault flag > AGENT_VAULT_VAULT env var > agent-vault.json > user context > "default".Uses an interactive picker if multiple vaults are available. Use --vault to skip the picker.agent-vault vault discover
agent-vault vault discover
agent-vault run or AGENT_VAULT_TOKEN + AGENT_VAULT_ADDR env vars). In agent mode (AGENT_VAULT_TOKEN set), AGENT_VAULT_VAULT (or --vault) is required — there is no project-file or interactive-picker fallback.agent-vault run (alias: agent-vault vault run)
agent-vault run (alias: agent-vault vault run)
agent-vault run is the shorthand; agent-vault vault run is the long form. Both are identical in behavior and flags.The child process receives AGENT_VAULT_ADDR, AGENT_VAULT_TOKEN, and AGENT_VAULT_VAULT, plus HTTPS_PROXY / HTTP_PROXY / NO_PROXY / NODE_USE_ENV_PROXY / OPENCLAW_PROXY_URL and CA-trust variables (SSL_CERT_FILE, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE, GIT_SSL_CAINFO, DENO_CERT) pointing at ~/.agent-vault/mitm-ca.pem, so standard HTTP and HTTPS clients transparently route through the broker. OPENCLAW_PROXY_URL feeds OpenClaw’s Proxyline managed proxy (OpenClaw requires this plus proxy.enabled: true in its config). HTTPS_PROXY and HTTP_PROXY both point at the same plain HTTP proxy URL — the listener handles CONNECT for https:// upstreams and absolute-form forward-proxy requests for http:// upstreams on the same port. If the server’s MITM proxy is unreachable, vault run aborts.Agent mode (containerized / unattended deployments). When AGENT_VAULT_TOKEN and AGENT_VAULT_ADDR are pre-set on the environment, vault run skips the admin-session login and uses the env-supplied token as the credential — --ttl is rejected in this mode since the token’s lifetime is fixed at mint time. The token is validated against the broker once at startup so bad/expired tokens fail fast with a clear error rather than producing 401s on every proxied call. See Deploy your agent in a container.agent-vault vault token
agent-vault vault token
agent-vault run. Tokens are minted with vault role proxy.Vault users
agent-vault vault user add
agent-vault vault user add
agent-vault vault user list
agent-vault vault user list
agent-vault vault user remove
agent-vault vault user remove
agent-vault vault user set-role
agent-vault vault user set-role
Users
agent-vault user list
agent-vault user list
agent-vault user invite
agent-vault user invite
invite_link in the response. Any authenticated user can create invites. Invites optionally pre-assign vault access.agent-vault user invite list
agent-vault user invite list
agent-vault user invite revoke
agent-vault user invite revoke
Services
agent-vault vault service list
agent-vault vault service list
agent-vault vault service set
agent-vault vault service set
-f, launches an interactive builder that prompts for services, auth configs, and credentials (requires TTY). With -f, replaces the services from a YAML file.agent-vault vault service add
agent-vault vault service add
-f to upsert services from a YAML file non-destructively (unlike set -f, which replaces all).passthrough auth type accepts no credential flags; Agent Vault allowlists the host but does not store or inject a credential. See Header forwarding for the rules that apply across every auth type — passthrough simply has no auth slot to override.New services are enabled by default. Pass --disabled to create the service in a disabled state, or use agent-vault vault service disable <name-or-host> after creation.To layer two credentials on the same host, give them different inline paths in --host (e.g. Slack with slack.com/api/* for the Bot token and slack.com/api/apps.connections.* for Socket Mode). The matcher resolves overlapping rules deterministically — see Matching priority.URL substitutions are file-only — there are no flags. Configure them under the substitutions: block of a service entry in a YAML file passed via -f.agent-vault vault service enable
agent-vault vault service enable
agent-vault vault service disable
agent-vault vault service disable
403 with error code service_disabled until re-enabled. The argument is matched against service names first, then host (with the same 409-on-ambiguity behavior as enable). Idempotent.agent-vault vault service remove
agent-vault vault service remove
--yes is passed.agent-vault vault service clear
agent-vault vault service clear
--yes is passed.Credentials
agent-vault vault credential list
agent-vault vault credential list
agent-vault vault creds list. In agent mode (AGENT_VAULT_TOKEN set), AGENT_VAULT_VAULT (or --vault) is required — there is no project-file or interactive-picker fallback.agent-vault vault credential get
agent-vault vault credential get
agent-vault vault creds get. In agent mode (AGENT_VAULT_TOKEN set), AGENT_VAULT_VAULT (or --vault) is required — there is no project-file or interactive-picker fallback.agent-vault vault credential set
agent-vault vault credential set
KEY=VALUE format. Alias: agent-vault vault creds set. In agent mode (AGENT_VAULT_TOKEN set), AGENT_VAULT_VAULT (or --vault) is required — there is no project-file or interactive-picker fallback.agent-vault vault credential delete
agent-vault vault credential delete
agent-vault vault creds delete. In agent mode (AGENT_VAULT_TOKEN set), AGENT_VAULT_VAULT (or --vault) is required — there is no project-file or interactive-picker fallback.Proposals
agent-vault vault proposal list
agent-vault vault proposal list
agent-vault vault proposal show
agent-vault vault proposal show
agent-vault vault proposal create
agent-vault vault proposal create
AGENT_VAULT_TOKEN set), AGENT_VAULT_VAULT (or --vault) is required — there is no project-file or interactive-picker fallback.substitutions array under the relevant services[] entry in the file passed via -f.OAuth credentials are JSON-only. Set type: "oauth" on the credential slot and include an oauth config object:agent-vault vault proposal approve
agent-vault vault proposal approve
KEY=VALUE arguments or the command will prompt for any missing credentials.agent-vault vault proposal reject
agent-vault vault proposal reject
agent-vault vault proposal review
agent-vault vault proposal review
Agents (instance-level)
agent-vault agent create
agent-vault agent create
AGENT_VAULT_TOKEN.agent-vault agent list
agent-vault agent list
agent-vault agent info
agent-vault agent info
agent-vault agent revoke
agent-vault agent revoke
agent-vault agent delete
agent-vault agent delete
agent-vault agent rotate
agent-vault agent rotate
AGENT_VAULT_TOKEN wherever the agent runs.agent-vault agent rename
agent-vault agent rename
agent-vault agent set-role
agent-vault agent set-role
Agents (vault-level)
agent-vault vault agent list
agent-vault vault agent list
agent-vault vault agent add
agent-vault vault agent add
agent-vault vault agent remove
agent-vault vault agent remove
agent-vault vault agent set-role
agent-vault vault agent set-role
Owner — users
agent-vault owner user list
agent-vault owner user list
agent-vault owner user info
agent-vault owner user info
agent-vault owner user remove
agent-vault owner user remove
agent-vault owner user set-role
agent-vault owner user set-role
Owner — vaults
agent-vault owner vault list
agent-vault owner vault list
agent-vault owner vault join
agent-vault owner vault join
agent-vault owner vault delete
agent-vault owner vault delete
Owner — config
agent-vault owner config get
agent-vault owner config get
invite_only and allowed_email_domains. Owner only.agent-vault owner config set
agent-vault owner config set
Master password
Manage the master password that wraps the data encryption key (DEK). All commands require the server to be stopped. WhenDATABASE_URL is set, these commands require --force because multiple instances may share the database - stop all instances first.
Password changes only re-wrap the encryption key (one database row). No credentials are re-encrypted and no data is lost. If an instance restarts before the secret store is updated, it will fail to start with “wrong password” — update the secret and restart to resolve.
agent-vault master-password set
agent-vault master-password set
agent-vault master-password change
agent-vault master-password change
agent-vault master-password remove
agent-vault master-password remove
Utilities
agent-vault catalog
agent-vault catalog
agent-vault owner email test
agent-vault owner email test
agent-vault owner reset
agent-vault owner reset
agent-vault version
agent-vault version
Installer
Theinstall.sh script (curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL https://get.agent-vault.dev | sh) is not part of the agent-vault binary but reads one environment variable:

