Use avibe vault

From avibe-bot/avibe · View interactive version

Use avibe vault is an AI agent skill from the GitHub repository avibe-bot/avibe. Use Avibe Vault for API keys, tokens, passwords, protected credentials, authenticated HTTP requests, or signing digests and Solana messages without exposing secret values to the agent.

How to use this skill

Skill file

Use Avibe Vault

When a task needs API keys, access tokens, passwords, wallet private keys, or other sensitive credentials, prefer Avibe Vault: agents reference secrets by name, tag, or skill tag, and users do not need to paste plaintext into chat.

Core concepts:

Rules:

Common commands:

Generate a password into a new Standard login entry, then use it by name without viewing it. Use generation only when the application accepts a user-chosen random credential; it cannot invent a vendor-issued API key:

vibe vault generate LOGIN --field password --length 32 --no-lookalikes --description 'Automation login' --tag automation

vibe vault run --env PASSWORD=LOGIN.password -- python login.py

The password default is 24 characters (8..100 for both Agent and user generation); letters are always enabled, digits and symbols are enabled unless --no-digits / --no-symbols is supplied, and lookalikes are allowed unless --no-lookalikes is supplied. No plaintext is printed. --length and the three password flags are invalid with hex/base64, even if another caller explicitly sends false for a password-only option.

New Avibe requires avault >=0.1.14 for every generation recipe, including passwords of 12 or more characters and hex/Base64. An older Avibe keeps its shipped 12-character Agent floor and 0.1.13 capability behavior: updating the binary alone does not relax that Avibe's admission. Wait for the approved Avibe/dependency update, not a script, truncation, or offline fallback.

Add a new random field to that Standard entry, or create a separate Base64 secret:

vibe vault generate LOGIN --field api_token --type hex --bytes 32

vibe vault generate RANDOM_TOKEN --type base64 --bytes 32

Hex is lowercase; Base64 uses standard padded encoding without line wrapping. Both default to 32 random bytes (16..64), and --bytes is invalid for passwords. Metadata flags --description, --tag, --skill, --allow-host, --fetch-auth, and --auth-name use the same replacement/preservation semantics as vibe vault edit; omitted metadata is preserved. The result contains the same masked secret row as list plus an operation-level generated summary. It never returns the generated value.

Request that the user add a missing static secret. spec-json may contain only non-secret prefill metadata; the actual secret value is entered by the user in the browser:

vibe vault request OPENAI_API_KEY --reason 'Need OpenAI API access' --spec-json '{"kind":"static","protection":"protected","description":"OpenAI API key","tags":["openai","prod","skill:model-work"],"policy":{"allowed_hosts":["api.openai.com"],"auth":{"type":"bearer"}}}'

A request may suggest a generator preset for an application that accepts a user-chosen secret. This is only a hint: the user chooses whether to generate and save, for either tier. Passwords default to 24 characters (8–100, chosen by the user); hex and standard padded Base64 default to 32 random bytes (16–64). Do not use a generator to invent a third-party API key:

vibe vault request APP_SECRET --reason 'Configure the app signing secret' --spec-json '{"generate":{"type":"hex","bytes":32}}'

Request a multi-field login item with a password default. These are field names only, never values:

vibe vault request GITHUB_LOGIN --reason 'Log in to GitHub' --spec-json '{"protection":"protected","fields":["username","password","totp"],"default_field":"password"}'

A totp field is ordinary stored secret material in this version, not a generated one-time code.

For a missing keypair/signing key, ask the user to create a keypair secret in the Vault UI; do not request or store private-key material as a static secret.

On Avibe Web chat, a lighter manual prompt can mention the missing secret as a clickable placeholder in your reply, for example $<OPENAI_API_KEY>. The user can click it and fill the secret from Web chat. This has no reason or structured prefill metadata; use vibe vault request when those are needed.

List or find existing Vault entries:

vibe vault list

vibe vault list --tag prod

vibe vault find --kind static --protection protected

vibe vault find openai --tag prod

vibe vault tags

Run a command with selected static secrets injected as environment variables:

vibe vault run --env OPENAI_API_KEY,GITHUB_TOKEN -- python script.py

vibe vault run --env GITHUB_LOGIN.username -- python script.py

vibe vault run --env PASSWORD=GITHUB_LOGIN.password -- python script.py

vibe vault run --tag deploy -- ./deploy.sh

vibe vault run --skill github-release -- ./release.sh

Make an authenticated HTTP request. The credential is attached only at egress, and the agent never sees the secret:

vibe vault fetch --auth GITHUB_API.token --url https://api.github.com/user

The secret's allowed hosts and auth scheme apply to every field; this attaches one field, not a username/password pair.

For tools that require a file, inject uses the same selectors and explicit output keys:

vibe vault inject --env USERNAME=GITHUB_LOGIN.username --env PASSWORD=GITHUB_LOGIN.password --out login.env --format dotenv

vibe vault inject --tag deploy --out deploy.json --format json

Request approval before a protected run with an existing static secret:

vibe vault access GITHUB_LOGIN.password --skill deploy --command 'Log in to GitHub' --egress 'github.com'

For protected fetch, run vibe vault fetch; it creates the correct fetch approval request when needed.

Sign a 32-byte digest with a standard keypair secret. Protected keys additionally require a verifiable signing context and browser approval:

vibe vault sign WALLET_KEY --digest 0000000000000000000000000000000000000000000000000000000000000001 --scheme ecdsa-secp256k1-recoverable --command 'sign deployment transaction'

Standard-tier BIP86 Taproot scheme example (replace the example digest with the independently verified BIP341 transaction sighash):

vibe vault sign BTC_KEY --digest 0000000000000000000000000000000000000000000000000000000000000001 --scheme schnorr-secp256k1-bip341-keypath --command 'sign verified Bitcoin key-path spend'

Provide the complete protected context in a regular JSON file when needed. $BITCOIN_SIGHASH_HEX is the independently computed 32-byte digest also present in that file; this example keeps the listed Taproot scheme, requires approval and never broadcasts:

vibe vault sign PROTECTED_BTC --digest "$BITCOIN_SIGHASH_HEX" --scheme schnorr-secp256k1-bip341-keypath --signing-context-file context.json --command 'sign verified Bitcoin payment'

Sign a Solana transaction message with a standard Solana keypair secret. If signing requires approval, build it using the durable-nonce recipe above first. $MESSAGE_HEX is the complete serialized transaction message your code built (header, account keys, recent blockhash and instructions), as hex. It is the bytes every signer signs: it does not include the transaction's signature count or signatures, and it is not a hash. Never pass a partial or placeholder message:

vibe vault sign SOLANA_KEY --scheme ed25519 --message-hex "$MESSAGE_HEX" --command 'sign Solana transaction message'

For a protected Solana key, add the matching context; the command returns a pending browser signing request:

vibe vault sign SOLANA_KEY --scheme ed25519 --message-hex "$MESSAGE_HEX" --signing-context-json "{\"kind\":\"solana-transaction-v1\",\"messageHex\":\"$MESSAGE_HEX\"}" --command 'sign Solana transaction message'

Sign with an enabled HD wallet account. Account indices are shared across chains; the list identifies the receiving address for each chain. $EVM_DIGEST_HEX and $BITCOIN_SIGHASH_HEX are independently validated 32-byte transaction digests; $MESSAGE_HEX is the complete serialized Solana message:

vibe vault sign AGENT_WALLET --chain evm --account 0 --digest "$EVM_DIGEST_HEX"

vibe vault sign AGENT_WALLET --chain bitcoin --account 1 --digest "$BITCOIN_SIGHASH_HEX"

For a prepared standard HD account's Legacy or Native SegWit address, compute the corresponding legacy/BIP143 SIGHASH_ALL digest independently; do not reuse the Taproot digest:

vibe vault sign AGENT_WALLET --chain bitcoin --account 1 --address-type p2pkh --digest "$LEGACY_SIGHASH_HEX"

vibe vault sign AGENT_WALLET --chain bitcoin --account 1 --address-type p2wpkh --digest "$BIP143_SIGHASH_HEX"

Solana still signs the exact message:

vibe vault sign AGENT_WALLET --chain solana --account 1 --message-hex "$MESSAGE_HEX"

For a protected HD wallet, also provide its matching verifiable context. These commands request browser approval, not headless signing; the context must bind the same digest or exact message:

vibe vault sign PROTECTED_WALLET --chain evm --account 1 --digest "$EVM_DIGEST_HEX" --signing-context-json "$EVM_SIGNING_CONTEXT_JSON"

vibe vault sign PROTECTED_WALLET --chain bitcoin --account 1 --address-type p2tr --digest "$BITCOIN_SIGHASH_HEX" --signing-context-json "$BITCOIN_SIGNING_CONTEXT_JSON"

vibe vault sign PROTECTED_WALLET --chain solana --account 1 --message-hex "$MESSAGE_HEX" --signing-context-json "{\"kind\":\"solana-transaction-v1\",\"messageHex\":\"$MESSAGE_HEX\"}"

For a listed protected HD Native SegWit or Legacy address, use the DER scheme and the matching typed context; a Legacy context carries its parent transaction, so pass it as a file:

vibe vault sign PROTECTED_WALLET --chain bitcoin --account 1 --address-type p2wpkh --scheme ecdsa-secp256k1-der --digest "$BIP143_SIGHASH_HEX" --signing-context-file p2wpkh-context.json

vibe vault sign PROTECTED_WALLET --chain bitcoin --account 1 --address-type p2pkh --scheme ecdsa-secp256k1-der --digest "$LEGACY_SIGHASH_HEX" --signing-context-file p2pkh-context.json

Ask the user to delete a Vault secret. Every agent-initiated delete needs one-click user approval, including standard, protected, static, and keypair secrets:

vibe vault remove OLD_TOKEN --reason 'Rotated credential'

This returns a pending request ID without deleting anything. With the normal callback, Avibe resumes this Session after the user decides; do not rerun rm. With --no-callback, or when the request has no resolvable Session, check explicitly with vibe vault await <request_id>; do not rerun rm. If a repeated rm reuses a pending request created by another Session, use the returned request ID with vibe vault await <request_id> rather than expecting a callback for the current Session.

A request of this Session made by mistake (wrong secret, wrong bytes, no longer needed) can be withdrawn while it is still pending: vibe vault withdraw <request_id>. Its card leaves the pending list and a later approval is refused. A request belongs to the Session whose conversation shows its card: one raised with --session-id OTHER is that Session's to withdraw. One being signed or already decided stays.

vibe vault remove always requests whole-secret deletion. It rejects NAME.field; remove a single field from the Vaults page instead.

For more details, run vibe vault --help.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.