The path is the name.
Save with an absolute path to preserve the file’s location as its encrypted name. Distinguish one project’s .env from another at a glance.
YOUR DOTFILES. YOUR KEYS.
A centralized, encrypted repository for your .env, .envrc and other confidential files. Keep each file’s path as its name, preserve saved versions, and restore with your CLI or coding agent.
Linux and macOS client · Google Workspace access · Open source
BUILT AROUND YOUR PROJECT FILES
Start with confidential dotfiles.
Store any file type, up to 8 MiB per file.
Save with an absolute path to preserve the file’s location as its encrypted name. Distinguish one project’s .env from another at a glance.
Save your configuration as exact bytes, with no reformatting or extracting individual secrets. Save replacements as new versions of the same document.
Personal vaults stay private. Share a project vault with verified people, with explicit reader or editor access.
A COMPANION TO YOUR PASSWORD MANAGER
Think beyond individual login credentials: VaultContext’s core workflow is storing and restoring whole confidential files. Give the dotfiles scattered across your projects one encrypted home, managed through your CLI or coding agent.
.env, .envrc, .envrc.private—and any other file you need to keep private. File contents and path names are encrypted before upload.
ONE FILE, WITH ITS FULL CONTEXT
Example source path → encrypted file name
/home/ubuntu/code/pocketcontext/.envrcPass this absolute path to save and it becomes the default display name. Relative paths stay relative; --name lets you choose another label.
--document DOCUMENT_ID to add a version to an existing file. There is no automatic sync.This server supports one matching client release. See the required release and use the installation steps below. Before replacing your installed client, run vaultcontext lock. After updating, run vaultcontext unlock privately. Existing saved files and your encryption identity are preserved; do not run init again.
Upgrading from vc? Run vc lock before replacing the client. Remove only the old vc launcher you previously installed for VaultContext, and update your scripts to use vaultcontext. After installation, run vaultcontext unlock explicitly to start a new session.
Install Node.js/npm (for npx) and uv, then run these commands from your workspace. The skill includes the standalone vaultcontext launcher; copy it onto your PATH.
npx skills add pocketcontext/vaultcontext --skill vaultcontext --agent codex claude-code --yes
mkdir -p ~/.local/bin
cp .agents/skills/vaultcontext/vaultcontext ~/.local/bin/vaultcontext
chmod 755 ~/.local/bin/vaultcontext
export PATH="$HOME/.local/bin:$PATH"
vaultcontext --helpKeep uv on PATH. It supplies Python and downloads the pinned client and dependencies on first use. Add the PATH export to your shell configuration for future terminals. To update, reinstall the skill and copy the launcher again; lock and unlock any existing session afterward.
With Node.js/npm and uv installed, run these commands from your workspace to install the skill for Codex and Claude Code and copy its CLI launcher onto PATH.
npx skills add pocketcontext/vaultcontext --skill vaultcontext --agent codex claude-code --yes
mkdir -p ~/.local/bin
cp .agents/skills/vaultcontext/vaultcontext ~/.local/bin/vaultcontext
chmod 755 ~/.local/bin/vaultcontext
export PATH="$HOME/.local/bin:$PATH"
vaultcontext --helpThe skill’s portable launcher requires uv. Ask your agent to read the installed skill, then complete the steps below in your terminal. Keep uv and ~/.local/bin on PATH; uv manages Python and the client dependencies.
Agents manage files and metadata through the skill; they can check equality with compare without seeing file contents or hashes. They must not inspect file contents. Your unlocked machine and agent are trusted.
Replace the email with your eligible Workspace identity. Hosted sign-in reuses your shared Context session. Over SSH, open the printed URL in your browser and enter its code in the terminal; no tunnel is needed. For a separately hosted instance, use its URL and explicit login --google fallback.
vaultcontext login --url https://vault.pocketcontext.com --email you@pocketcontext.com
vaultcontext whoami
vaultcontext checkGoogle sign-in identifies you. It does not decrypt or unlock your files. Public signup is blocked; contact your instance operator if you need access.
Hosted login over SSH needs no port forward. Only explicit login --google fallback requires ssh -L 8765:127.0.0.1:8765 user@host. Decryption still happens on the remote host.
There is no recovery key. Losing your passphrase without a usable unlocked session or an enrolled macOS Keychain credential means losing access. Google account recovery cannot decrypt your vault.
For a new account, run vaultcontext init once. Enter your passphrase only at the private terminal prompt—never in chat, command arguments or environment variables. If already initialized, skip init.
vaultcontext init
vaultcontext unlock --timeout 900
vaultcontext create 'Confidential dotfiles'Keep the vault ID returned by create for the next step. You can find it again with vaultcontext vaults. Keys stay in the client’s memory while unlocked; the session expires after 15 minutes with this setting.
First install the separately signed native helper using the macOS Keychain setup guide. Then enroll in your private terminal with your existing vault passphrase:
vaultcontext keychain-enroll
vaultcontext unlock --keychainKeychain stores the passphrase on this Mac. Retrieval requires Touch ID or macOS credential authentication; macOS may still ask for a password. Ordinary vaultcontext unlock keeps the terminal prompt. The unlocked session trusts your same-user agents as before.
lock and logout keep enrollment. Use vaultcontext keychain-forget while logged in to remove it, and vaultcontext lock separately to end an active session. After changing your vault passphrase, enroll again with the new passphrase.
Create a synthetic .env in a fresh temporary directory. These example values contain no secrets. Keep the same terminal open for these commands.
vault_demo_dir=$(mktemp -d)
vault_demo_dir=$(cd "$vault_demo_dir" && pwd -P)
printf 'APP_ENV=demo\nAPI_TOKEN=example-not-a-secret\n' > "$vault_demo_dir/.env"Replace VAULT_ID with the ID returned in step 3, then save:
vaultcontext save VAULT_ID "$vault_demo_dir/.env"Without a --name override, the encrypted name preserves the source path, such as /tmp/tmp.EXAMPLE/.env. For your own files, pass an absolute path to retain the full location.
Replace DOCUMENT_ID with the document ID returned by save (or find it with vaultcontext list VAULT_ID). Compare the saved version with your local file, restore to a new path, and close your unlocked session:
vaultcontext history DOCUMENT_ID
vaultcontext compare DOCUMENT_ID "$vault_demo_dir/.env"
vaultcontext restore DOCUMENT_ID --to "$vault_demo_dir/.env.restored"
vaultcontext lockYour first round trip is complete when comparison reports "same": true and restore reports success. You’ve saved an encrypted .env, restored it to a separate path, and locked your session.
Comparison returns equality without displaying contents or hashes. New saves keep their checksum inside encrypted, signed metadata, so comparison needs no stored file download. Older versions are downloaded and verified in memory. The client still reads your local bytes internally; equality alone does not prove stored files are recoverable.
Before upgrading the client, run vaultcontext lock. After updating, run vaultcontext unlock privately.
Restores preserve exact bytes and use private file permissions. Existing files are protected from overwrite by default. The sample remains in your vault and temporary directory. VaultContext never sources or activates files. Restoring an .envrc into a direnv-enabled directory can cause your shell to execute it later; choose the destination deliberately.
Install the client or agent skill on this computer and configure the same server URL and account email. Use your existing identity: skip vaultcontext init and select your existing vault.
vaultcontext login --url https://vault.pocketcontext.com --email you@pocketcontext.com
vaultcontext check
vaultcontext unlock
vaultcontext vaultsEnter your passphrase only in your private terminal. Google sign-in and unlock are separate. If you use Keychain, enrollment is specific to this Mac; ordinary vaultcontext unlock works without it.
You → your coding agent
Use the VaultContext skill to compare my active saved files with this computer.
Map /home/alex/code/ to /Users/alex/code/ and preserve the rest of each path.
Report matches, differences, missing local files, and files you couldn't compare.
Ask me about ambiguous paths.
Don't restore anything yet or inspect file contents./home/alex/code/beacon/.envLocal destination /Users/alex/code/beacon/.envThe prefix mapping chooses local paths; it does not rename saved documents. Relative names, duplicate destinations and paths outside the chosen prefix need your input. Archived documents stay excluded unless you request them.
Agent → you · example report
The agent keeps the document and reviewed version IDs with each result, so a later restore uses the version you chose.
| File | Result |
|---|---|
atlas/.env | Matches |
beacon/.env | Different |
worker/.env | Missing locally |
reports/.env | Couldn’t compare |
A failed request, expired session or permission error is “Couldn’t compare.” Resolve it and retry before deciding what to do with that file.
Replace the placeholders with IDs from your vault. Use history to select the version to review; keep that version ID for any restore.
vaultcontext list VAULT_ID
vaultcontext history DOCUMENT_ID
vaultcontext compare DOCUMENT_ID /Users/alex/code/beacon/.env --version VERSION_ID"same": true means a match; false means different. “Missing locally” requires confirming the destination is absent, not interpreting every comparison error as a missing file.
You → your coding agent
Restore the missing worker/.env and replace the differing beacon/.env at the mapped local paths, using the versions we just reviewed. Leave the other files alone. Verify both restored files with compare, without opening their contents.The destination parent directories must already exist. Restore rejects symlinks and preserves exact bytes with private file permissions. Existing files require an explicit overwrite; you can restore to a separate path instead if you want to keep your local version.
Replace each document/version pair with the IDs reviewed for that file. The missing file uses the default overwrite protection; only the selected replacement uses --overwrite.
vaultcontext restore MISSING_DOCUMENT_ID --version MISSING_VERSION_ID --to /Users/alex/code/worker/.env
vaultcontext restore DIFFERENT_DOCUMENT_ID --version DIFFERENT_VERSION_ID --to /Users/alex/code/beacon/.env --overwrite
vaultcontext compare MISSING_DOCUMENT_ID /Users/alex/code/worker/.env --version MISSING_VERSION_ID
vaultcontext compare DIFFERENT_DOCUMENT_ID /Users/alex/code/beacon/.env --version DIFFERENT_VERSION_ID
vaultcontext lockFinish when both restores succeed and both comparisons report "same": true for the selected versions. Lock the session when you’re done.
VaultContext never sources or activates restored files. Restoring an .envrc or its private companion into a direnv-enabled project may cause your shell to execute it later. Choose those destinations deliberately.
For a text file, this pipeline works in fish, bash and zsh. If you already locked the session, run vaultcontext unlock in your private terminal first. Replace the IDs and path. Your agent must not run it or receive its output, which may expose secrets.
vaultcontext cat DOCUMENT_ID --version VERSION_ID | diff -u /Users/alex/code/beacon/.env -- lines are local; + lines are from the selected vault version. Check that vaultcontext cat succeeded: an error can otherwise look like an empty vault file. Use vaultcontext compare for a reliable equality result without displaying contents.
GOOD TO KNOW
File contents, names and descriptive metadata are encrypted. The server still handles account identities, memberships and operational metadata. Application authority does not grant an operator your decryption keys.
Share with vaultcontext share VAULT_ID [email protected]; reader access is the default. Your colleague must complete verified Workspace sign-in through hosted identity or direct Google fallback, then initialize encryption, then run vaultcontext accept INVITATION_ID. Sharing includes the entire vault and retained history. Use a dedicated vault for one file. Keys are remembered automatically on first use; changed known keys are rejected. This trusts the server’s initial account-to-key mapping; independent fingerprint verification remains optional. Use vaultcontext revoke VAULT_ID [email protected] to remove access and rotate future-write keys. Files or keys already downloaded cannot be recalled.
Yes. The execution host and same-user unlocked agent are trusted. The skill tells agents not to inspect contents, but this is a behavior rule, not cryptographic isolation. Memory erasure cannot be guaranteed by the client runtime.
Read the workflow manual for versions, email sharing, optional fingerprint verification, revocation and encrypted exports, or the trust model for the security boundaries. Company-specific onboarding belongs in your team’s WikiContext.
Allow Rybbit and Google Analytics to measure visits and guide interactions? Google uses analytics cookies. We send no file contents, paths, account details or URL parameters, and use no session replay. Your choice applies only to this browser on this site.