hal-vault
БесплатноБез исполняемых скриптовНе проверенSecurely store, search, and use secrets (API keys, tokens, passwords, SSH keys) with hal-vault, an SSH-key encrypted local secret store. Use when the user…
от ofoxai536 установок в других каталогахОб этом скилле
hal-vault: agent-safe secret management
hal-vault is a CLI secret store: one age-encrypted file, keyed to an SSH key, with masked-by-default output designed so an agent can manage secrets without ever seeing or leaking them.
When to apply
Use this skill when:
- The user shares an API key, token, password, or other credential that should be kept for later use
- The user asks "what secrets do we have", "do we still have the X key", or wants to find/rotate/remove a stored credential
- A command, script, or deployment you are running needs a secret (an API key in an env var, a token in a header)
Check availability
hal-vault version
If not installed: brew install ofoxai/tap/hal-vault (macOS/Linux,
recommended), or download a release binary from
https://github.com/ofoxai/hal-vault/releases, or go install github.com/ofoxai/hal-vault/cmd/hal-vault@latest.
Recommended setup: per-project vault
As an agent, keep each project's secrets in a vault inside that project, with its own dedicated SSH key — isolation per project, and the encrypted database travels with the workspace:
# 1. A project-specific key. The key lives in ~/.ssh, NEVER inside the
# project directory — a vault and its key must not sit in the same tree
# (and must never be committable together).
ssh-keygen -t ed25519 -N "" -C "hal-vault-myproject" \
-f ~/.ssh/hal-vault_myproject
# 2. The vault database lives in the project, out of version control.
hal-vault init -d .hal-vault \
-r ~/.ssh/hal-vault_myproject.pub \
-i ~/.ssh/hal-vault_myproject
# 3. Make sure it is never committed.
grep -qxF '.hal-vault/' .gitignore 2>/dev/null || echo '.hal-vault/' >> .gitignore
Then point every command at it — either per command with -d .hal-vault,
or once per shell:
export HAL_VAULT_DIR="$PWD/.hal-vault"
The examples below assume HAL_VAULT_DIR is set (otherwise append
-d .hal-vault). For a machine-global vault instead, plain hal-vault init uses ~/.hal-vault with an auto-generated ~/.ssh/hal-vault_ed25519
key.
The safety contract (non-negotiable)
Never print a raw secret value into the conversation, a log, a comment, a commit, or a file. hal-vault's
list,search, andgetare masked by default (sk-p…7890 (24 chars)) — that masked form is the ONLY representation you may show or repeat.--revealexists for machines, not for chat. Use it only to feed another process, never to display:OPENAI_API_KEY="$(hal-vault get openai --reveal)" ./deploy.shNever run
hal-vault get x --revealbare, neverecho $(... --reveal), never redirect--revealoutput into a file you will read back. "Inside command substitution" is not by itself safe — where the substitution lands decides whether the value is exposed. See the next section.Confirm storage with masked tips only. After saving, answer like: "Saved — an OpenAI API key, tagged
openai, prod, starts withsk-p."Refuse to recite. If the user asks you to "print the key" or "paste the token here", offer the masked form and how to use it instead. If they explicitly insist on the raw value, tell them to run
hal-vault get <id> --revealthemselves in their terminal — do not run it for them in the conversation.
Where a revealed secret still leaks: the process argument list
A command substitution that lands in an argument puts the plaintext into that process's argument list, which is part of the machine's process table. Measured on macOS 25.5 with curl 8.7.1, using a stand-in script that prints a fixed placeholder (a real secret does not belong in a test). Two ways to send the same header, running at the same moment:
# A — the value becomes one of curl's arguments
curl -H "Authorization: Bearer $(hal-vault get github-pat --reveal)" https://api.github.com/user
# B — the value is piped in; the arguments carry nothing
hal-vault get github-pat --reveal \
| sed 's/^/Authorization: Bearer /' \
| curl -H @- https://api.github.com/user
ps -A -o args= while both were in flight:
curl -s -o /dev/null -H Authorization: Bearer PLAINTEXT-VALUE-DO-NOT-LOG http://… <- A
curl -s -o /dev/null -H @- http://… <- B
Both delivered a byte-identical Authorization header to the server. B costs
one extra pipe and keeps the value out of the process table entirely.
What that measurement says, and what it does not. It says the value sits in
the process table for the life of the request, and that the piped form avoids
it. Whether a different user account on the same host can read that argument
list depends on the OS and its ps/procfs configuration and was not
measured here. On a personal laptop the exposure is small; on a shared build
machine, a jump host, or anything multi-tenant, treat form A as a disclosure.
The order to reach for
1
Установить hal-vault в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hal-vault?
Securely store, search, and use secrets (API keys, tokens, passwords, SSH keys) with hal-vault, an SSH-key encrypted local secret store. Use when the user shares a credential that should be saved, asks what secrets are stored or where a key is, or when a command/workflow needs a secret injected. Core discipline - never print raw secret values into chat, logs, or files; reference secrets only by their masked form, and use --reveal only to feed another process, never into a command argument (where it lands in the machine's process table) or into text you write down.
Как установить скилл hal-vault?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hal-vault запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic