# Key custody

> Key custody is an open-source agent skill for security. Keeps secrets and private keys out of an agent's trading desk session. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/swcstudiospace/PumpGrok/tree/main/skills/key-custody
- **Repository:** https://github.com/swcstudiospace/pumpgrok
- **GitHub stars:** 93
- **License:** AGPL-3.0
- **Skill name:** key-custody
- **Collection:** https://github.com/swcstudiospace/PumpGrok
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill sets rules for handling secrets in a trading desk setup built around paper mode. It asks the agent to confirm that forbidden environment keys are unset before a session that could touch value movement, and it refuses any private key, seed phrase or signing-capable token offered in a prompt, file or message. Wallet connection, spend approval and credential export are left to the human operator, with the agent only describing the step needed.

If the agent finds a secret in its context, the skill has it stop, redact the value, report it to the risk seat and rotate the credential outside the desk before resuming without it. It also treats paper fills as ledger entries rather than signatures, and flags any code path that would sign outside the live stub as a defect.

The skill is written for the PumpGrok desk's seat-based workflow and references a wallet and custody gate, plus companion skills for wallet rules and secret-free logging. It has no scripts and declares no allowed tools.

## When your agent uses it

> Keep every secret out of the desk: no key material exists in paper mode, forbidden env keys stay unset, and wallet hand-off stays human-only.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/swcstudiospace/PumpGrok/tree/HEAD/skills/key-custody)
- [License: AGPL-3.0](https://github.com/swcstudiospace/PumpGrok/tree/HEAD/skills/key-custody)

## Features

- **Forbidden key check:** Confirms that forbidden environment keys are unset before any session that could move value.
- **Secret refusal:** Refuses private keys, seed phrases and signing-capable tokens offered in any input.
- **Human-only wallet steps:** Keeps wallet connection, spend approval and credential export with the human operator.
- **Paper mode keyless design:** Treats paper fills as ledger rows, with no signing outside the live stub.
- **Leak response:** Redacts exposed secrets, reports them to the risk seat and requires out-of-band rotation.

## Good for

- Check that no private keys are set before starting a paper trading session
- Refuse a seed phrase pasted into a trading desk chat and report it
- Ask the agent to describe the wallet approval step for the operator to perform
- Handle a credential that appeared in a log file during a trading run

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/key-custody` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/key-custody &&
cp -R "$tmp/skills/key-custody" ~/.claude/skills/key-custody &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/key-custody` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/key-custody` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/key-custody &&
cp -R "$tmp/skills/key-custody" ~/.agents/skills/key-custody &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/key-custody` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/key-custody` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/key-custody &&
cp -R "$tmp/skills/key-custody" ~/.cursor/skills/key-custody &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/key-custody` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/swcstudiospace/PumpGrok.git --path skills/key-custody
```

Or copy the folder to `~/.gemini/skills/key-custody` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/key-custody`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/key-custody &&
cp -R "$tmp/skills/key-custody" ~/.copilot/skills/key-custody &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/key-custody` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/swcstudiospace/PumpGrok.git
```

Then copy `PumpGrok/skills/key-custody` into your agent's skills folder as `key-custody`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Key custody change in my agent's behaviour?

It makes the agent refuse to accept, store or use private keys, seed phrases or signing-capable tokens, and it stops and reports if a secret appears in its context.

### Does Key custody need any tools or scripts?

The skill has one file and no scripts. It does not set any allowed tools.

### When does Key custody apply?

It applies to sessions that could touch value movement, and to any moment a secret or wallet hand-off comes up in the desk.

### Can the agent sign transactions with Key custody?

No. The skill states that paper mode has no signing, and that any code path signing outside the live stub is treated as a defect.

### How do I install Key custody in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/key-custody to use it in all your projects, or to .claude/skills/key-custody in one project.

### Does Key custody run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Key custody?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Key custody?

The closest alternatives to Key custody are Use secret, Contain access, Security, Agent security hardening and Sh kb secrets.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Use secret](https://ai-powered.com/skills/use-secret): Use secret is an open-source agent skill for security.
- [Contain access](https://ai-powered.com/skills/contain-access): Contain access is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security is an open-source agent skill for security.
- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Sh kb secrets](https://ai-powered.com/skills/sh-kb-secrets): Sh kb secrets is an open-source agent skill for security.
- [Agent action safety](https://ai-powered.com/skills/agent-action-safety): Agent action safety is an open-source agent skill for security.
- [Position monitoring](https://ai-powered.com/skills/position-monitoring): Position monitoring is an open-source agent skill for security.
- [Auth](https://ai-powered.com/skills/auth-maxwell2732): Auth is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/key-custody
