kanywst

Rapg — AI skill for Claude Code

AI community

Local-first secret manager for the AI-agent era — keep API keys out of .env files and out of your agent transcripts.

How to install Rapg

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

What Rapg does

Local-first secret manager for the AI-agent era — keep API keys out of .env files and out of your agent transcripts.

Alternatives in AI

  • Vibeproxy — Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys n 3.3k ★
  • Nezha — Code Editor for the AI Agents Era 1.9k ★
  • Rb Setup — First-time setup 1.3k ★

README

rapg

Single-binary, local-first secret manager built for the AI-agent era.

[![Go Version](https://img.shields.io/github/go-mod/go-version/kanywst/rapg?style=flat-square)](https://go.dev/) [![Build Status](https://img.shields.io/github/actions/workflow/status/kanywst/rapg/test.yml?branch=master&style=flat-square)](https://github.com/kanywst/rapg/actions) [![License](https://img.shields.io/github/license/kanywst/rapg?style=flat-square)](LICENSE)

![Demo](demo-v2.gif)

The problem

You hand `ANTHROPIC_API_KEY` to Claude Code. You hand `AWS_SECRET_ACCESS_KEY` to your Cursor agent. You hand a database URL to whatever shell snippet your LLM just generated.

Three things go wrong:

  1. The agent's transcript and context window now contain your secret. Logs persist, screenshots happen, transcripts get pasted into bug reports.
  2. .env files keep that secret in plaintext on disk, and someone always commits one by accident.
  3. Existing managers (1Password, Bitwarden) solve team sharing, not agent leakage.

`rapg` is a small Go binary that keeps your dev secrets in a locally encrypted vault and injects them into child processes, including AI agents, without ever writing them to disk.

Install

Homebrew

brew install kanywst/tap/rapg

Nix

nix run github:kanywst/rapg

It also exposes an overlay for NixOS and home-manager configs, and a dev shell with the Go toolchain.

Pre-built binary

Download a tarball for your OS and architecture from the [latest release](https://github.com/kanywst/rapg/releases/latest), then put `rapg` on your `PATH`.

From source

Requires Go 1.25 or newer.

go install github.com/kanywst/rapg/cmd/rapg@latest

Quick start

First run sets a master password (minimum 12 chars, strong complexity):

rapg

In the TUI, press `n` to add a secret. Fill in `Service`, `Username`, `Password`, and the `Env Key` field, for example `ANTHROPIC_API_KEY`.

Inject those secrets into any child proces