h-a-forster

Keyleash — AI skill for Claude Code

AI community

A wallet for your AI API keys: an encrypted local vault plus a proxy that gives agents stand-in passes with hard spending limits, presence lock and Windows Hello approval.

How to install Keyleash

This entry records only its repository, not the path inside it, so there is no exact command to give. Open h-a-forster/keyleash and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Keyleash does

A wallet for your AI API keys: an encrypted local vault plus a proxy that gives agents stand-in passes with hard spending limits, presence lock and Windows Hello approval.

Alternatives in AI

  • Engrim — The Universal Cross-Model Episodic Memory Standard 219 ★
  • Hello JS Reverse Skill — 🔧 AI-powered JS逆向工程 Skill —— 覆盖加密还原、混淆分析、动态Cookie、WASM逆向、协议对抗等全链路场景,通过 Node.js 实现算法还原与模拟请求 214 ★
  • OpenAgentd — The open-source, local-first alternative to Claude Code & Claude Cowork 208 ★

README

keyleash

**A wallet for your AI API keys.**

An API key for Anthropic, OpenAI, Gemini or OpenRouter is a blank cheque. Anyone who sees it (on a stream, in a screenshot, in a leaked `.env`) can spend your money with it, and so can an agent stuck in a loop while you are asleep. Providers only tell you afterwards, on the bill.

keyleash puts the key in an encrypted vault on your computer and hands your tools a stand-in **pass** instead. A pass:

  • only works on your machine: keyleash listens on loopback only, so a pass copied to another computer is useless (on your own machine, a pass from keyleash pass create works for any local program until it expires or is revoked; one from keyleash run on Windows works only for that agent's processes);
  • only works while you are there: walk away, lock the screen or let the laptop sleep, and spending is capped or stopped;
  • only spends what you allow: every request is checked against hard limits (per request, per session, per day, per month) before it is sent, so a runaway agent stops at the limit instead of at the bill.

Think of it as a hardware wallet for API keys: the key never leaves the vault, and anything risky (a big spend, an unknown model, a long unattended run) needs you to confirm with Windows Hello, like pressing the button on a Ledger.

**Status: pre-alpha.** The vault, proxy, budgets, presence lock and CLI work and are tested end to end, but the project is new and unaudited. Try it with keys you can rotate. Windows is the main platform. On Linux and macOS the vault, proxy and hard limits work, but idle and screen-lock detection, Windows Hello and process-bound passes (`keyleash run`) do not yet; only sleep and lease expiry lock it automatically there.

Quick start

go install github.com/h-a-forster/keyleash/cmd/keyleash@latest
keyleash init                 # vault + recovery code (Windows Hello or a passphrase)
keyleash daemon --background  # start the daemon,