KeyJar vs plain .env files
A .env file is the default for a reason. It needs no setup and every framework reads it. KeyJar changes one thing: what the file holds.
| Plain .env file | KeyJar | |
|---|---|---|
| What the file holds | The key, in plaintext | A reference such as kj://anthropic/main. The key sits in one encrypted vault, and its key is in your OS keychain. |
| One key, many projects | Copied into each file that needs it | One reference string per use. Renaming a label keeps the old one as an alias. |
| Finding stray copies | You search by hand | kj scan groups every hit by key and lists each location. |
| New worktree | A gitignored file is not copied by git. Copying it copies the keys. | The reference file is safe to copy. kj run fills it in on this machine. |
| An agent reading the file | Reads the key | Reads a reference. A process you start with kj run still receives the key. |
| Expiry and idle keys | Nothing tracks them | Pro reminds you 14, 3 and 0 days before expiry, and after 90 idle days. |
| Setup | None | Install kj, import, then start your app with kj run. |
| Price | Free | The scanner and the core CLI (scan, import, undo, run, get, add) are free. Pro is $9 for the first 10 buyers, one time, and the price steps up from there. |
Where a plain .env file is the better choice
- You want zero setup and no extra binary.
- You need Windows. KeyJar runs on Linux (x86_64 and arm64) and macOS (Apple Silicon and Intel) today.
- You work on a machine with no OS keychain. KeyJar has no key-file fallback, so vault commands fail there.
- You do not want a vault to lose. If your OS keychain entry is reset, the vault cannot open. The recovery export is not built yet.
- You only need to load a file. direnv and dotenvx are free and still maintained. KeyJar does not replace them.
kj runsets only thekj://values and leaves the rest to your loader.
Your tools keep their own copies too
Checked against official docs and source on 20 November 2026. Several agent tools copy your .env into new worktrees for you. Claude Code, the Codex desktop app, Cline, Hermes and OpenClaw read a .worktreeinclude file, and Kilo and Conductor copy .env* by default. That is handy, and it copies the keys as well.
Tools also store keys in their own places. Cline keeps them in a plaintext JSON file at ~/.cline/data/secrets.json with 0600 permissions. Hermes uses ~/.hermes/.env. KeyJar does not change those files. For Claude Code, you can point apiKeyHelper at kj get.
Sources: Claude Code worktrees, Cline storage notes, Hermes providers.