phantom-secrets
llms.txt20 starsChanged 8 days agoMITView on GitHub
Your agent can call the API. The key stays in a local vault. Phantom replaces managed secrets in .env with phm_ placeholders. A proxy on 127.0.0.1 adds the vault value only to the auth header of a matched route. Secret values are not printed, logged, or returned to a model. Install both binaries from the checksum-verified v0.8.11 release archive. This is Linux x86_64; take the archive name for macOS, Linux ARM64, or Windows from the README asset table. On macOS,…
- Reads credentials
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
The file
Files
# Phantom Secrets Your agent can call the API. The key stays in a local vault. Phantom replaces managed secrets in `.env` with `phm_` placeholders. A proxy on `127.0.0.1` adds the vault value only to the auth header of a matched route. Secret values are not printed, logged, or returned to a model. ## 30-second start Install both binaries from the checksum-verified `v0.8.11` release archive. This is Linux x86_64; take the archive name for macOS, Linux ARM64, or Windows from the [README asset table](README.md#exact-v0811-github-assets). ```bash archive=phantom-x86_64-unknown-linux-gnu.tar.gz base=https://github.com/ashlrai/phantom-secrets/releases/download/v0.8.11 curl -fsSL -o "$archive" "$base/$archive" curl -fsSL -o "$archive.sha256" "$base/$archive.sha256" sha256sum -c "$archive.sha256" tar -xzf "$archive" mkdir -p "$HOME/.local/bin" install -m 0755 phantom phantom-mcp "$HOME/.local/bin/" export PATH="$HOME/.local/bin:$PATH" phantom init phantom setup --client claude phantom status --json phantom list --json phantom check --log agent-transcript.jsonl --json ``` On macOS, check the archive with `shasum -a 256 -c "$archive.sha256"`. The Homebrew formula still serves `v0.7.9`, whose `phantom check` has no `--log` or `--json` and which lacks `phantom agent doctor --json` and `--client gemini`. The limits of each package channel are in [docs/distribution-status.md](docs/distribution-status.md). `phantom status --json`, `phantom list --json`, and `phantom check --log` are value-free. The log scan reports the file, the line, and the credential shape. The same scan is MCP `phantom_check` with `log_path`. ## Agents - Walkthrough with MCP file shapes: [docs/agent-quickstart.md](docs/agent-quickstart.md) - Full guide: [docs/llms.txt](docs/llms.txt) - Longer guide: [docs/llms-full.txt](docs/llms-full.txt) - Repository instructions: [AGENTS.md](AGENTS.md) - MCP clients: `phantom setup --client claude|cursor|windsurf|codex|gemini` ## Ashlr ecosystem Phantom Secrets is one of the open-source tools from Ashlr (https://ashlr.ai). Together they aim to be an autonomous, code-first, agent-native software factory: agents write, test, review, and ship the code, and the human acts as a passive board member. The long-term goal is open-source recursive self-improvement (RSI), where agents improve the tools they build with. Each tool installs and runs on its own: - Phantom (`phm`, https://phm.dev): the agent workbench. Source: https://github.com/ashlrai/phantom - Phantom Secrets (`phantom`, this repo): keeps real API-key values out of agent context. - Locus (`locus`, https://github.com/ashlrai/locus): pins each agent session to one account. This repo ships only an inactive compatibility contract for it (`crates/phantom-locus-contract`). - Lexicon (`lexicon`, https://lexicon.ashlr.ai): fixes the words dictation gets wrong. - Ashlr MD (https://md.ashlr.ai): a Markdown app with an MCP server. - Ashlr Stack (`stack`, https://stack.ashlr.ai): provisions services and stores their keys in Phantom Secrets. - ashlr-plugin (https://plugin.ashlr.ai/): token-efficiency tools for Claude Code and Codex. Agents make most changes to this repo through normal pull requests and CI. They follow [AGENTS.md](AGENTS.md), use only the value-free commands above, and never need a vault value. To change this repo, a person or agent follows [Contribute with an agent](CONTRIBUTING.md#contribute-with-an-agent): fork, add this repository as `upstream`, and branch from `upstream/main` (on a fork, use `upstream/main` wherever the commands below say `main`); iterate with `scripts/fast-check.sh main`, which checks only the crates the branch touches when every changed file is Rust source under a crate's `src/` and the whole workspace otherwise; run the full `cargo test`, `cargo fmt --check`, and strict Clippy gate once before opening the pull request, because pull request CI does not run the Rust test suite; for a documentation-only change, skip `scripts/fast-check.sh` (a non-Rust path checks the whole workspace) and run the docs drift checks instead, which pull request CI also skips: `node --test scripts/release/readme-mcp-catalog.test.mjs`, `node --test scripts/docs-distribution.test.mjs`, `node --test scripts/hot-file-rule.test.mjs`, and `cargo test --locked -p phantom-secrets --test docs_command_flags_test`, plus every suite that reads the file you edited, including those in `apps/web/tests/` (list them with `git grep -l -F <file-name> -- '*.test.*'`), and two checks that search misses: `bash scripts/test-docs-agents.sh` after editing `docs/agents.md`, and `node scripts/freshness/check.mjs` after editing a file with a `<!-- fresh:begin` marker; add a [`changelog.d/`](changelog.d/README.md) fragment instead of editing `CHANGELOG.md`; before pushing, run the two pre-push checks, `node scripts/changelog-fold.mjs --check` for the fragment format and `git diff main...HEAD | perl .github/tests/secret-shape/scrub.pl --check --allow-fixtures`, the local form of the `Secret-shape scan` that `CI Gate` requires (neither needs a build); and fill in the [pull request template](.github/PULL_REQUEST_TEMPLATE.md) with the exact commands run. `CI Gate` is the only required check, and a passing pull request merges through the merge queue. Fork contributors need no write access or repository secrets.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

