{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "raylinkh-envlatch--launch-agent-with-only-needed-keys",
 "repo": "Raylinkh/envlatch",
 "repo_url": "https://github.com/Raylinkh/envlatch",
 "repo_slug": "raylinkh-envlatch",
 "title": "Launch a coding agent with only the key it needs",
 "page_title": "How to launch a coding agent with only the key it needs with Envlatch",
 "summary": "Run any command with selected Keychain keys injected as environment variables, nothing else exposed.",
 "who": "A developer who keeps API keys in plain .env files across many projects.",
 "problem": "Plain-text key files leak easily and give every process every key.",
 "outcome": "Processes that receive exactly the named keys from the Keychain.",
 "steps": [
  "Install with `git clone https://github.com/Raylinkh/envlatch.git`, `cd envlatch` and `./scripts/install.sh`",
  "Open the app and save your keys",
  "Run `envlatch run --using ANTHROPIC_API_KEY -- claude`",
  "Check setup with `envlatch doctor`"
 ],
 "agent_prompt": "With Raylinkh/envlatch, launch <command> using `envlatch run --using <KEY_NAME> -- <command>` and confirm inside the process that only that key is set in the environment.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "No code change is needed because the launched process sees normal environment variables.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "swift",
 "requirements": [
  "macOS",
  "Swift toolchain to build from source"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Anyone who can run Envlatch as your user can request saved keys, so lock your Mac and review paired agents."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/raylinkh-envlatch/launch-agent-with-only-needed-keys/",
 "md": "https://dedupedai.com/use-cases/raylinkh-envlatch/launch-agent-with-only-needed-keys/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/raylinkh-envlatch--launch-agent-with-only-needed-keys.json",
 "api_version": "v1"
}
