Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Honeytokens as Code

by Dradradreversion 0.5.3i★ 0iRuns on your computerRepository ↗

How to install

What it does

Your coding agent plants honeytokens: real powerless AWS keys and webhook traps, with alerts.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Developer tools

Use together with

Skills that teach the AI this kind of work; they work alongside this one

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

by morluto★ 478,4891 skills

Skill · How-to guide

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

by multica-ai★ 235,7181 skills

Skill · How-to guideNo license stated

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

by Graphify-Labs★ 153,3911 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Honeytokens as Code. Follow https://mcp.popnx.com/i/dradradre-honeytokens-as-code.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 25, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Honeytokens as Code for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "honeytokens-as-code": { "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Honeytokens as Code tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "honeytokens-as-code": {
          "command": "npx",
          "args": [
            "-y",
            "honeytokens-as-code",
            "mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Honeytokens as Code and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Honeytokens as Code or shows a Honeytokens as Code tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • HONEYTOKEN_BASE_URL Public URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)
  • HONEYTOKEN_HOME Data directory for the trap registry and alert log (default ~/.honeytoken)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Honeytokens as Code yet

Honeytokens as Code runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Honeytokens as Code

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Developer tools that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Honeytokens as Code for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user honeytokens-as-code -- npx -y honeytokens-as-code mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Honeytokens as Code tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user honeytokens-as-code -- npx -y honeytokens-as-code mcp
  4. Type /mcp in Claude Code

    You should see Honeytokens as Code listed as connected

  5. Try it

    Use Honeytokens as Code and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Honeytokens as Code or shows a Honeytokens as Code tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • HONEYTOKEN_BASE_URL Public URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)
  • HONEYTOKEN_HOME Data directory for the trap registry and alert log (default ~/.honeytoken)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Honeytokens as Code for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "honeytokens-as-code": { "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Honeytokens as Code tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Honeytokens as Code and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Honeytokens as Code or shows a Honeytokens as Code tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • HONEYTOKEN_BASE_URL Public URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)
  • HONEYTOKEN_HOME Data directory for the trap registry and alert log (default ~/.honeytoken)

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Honeytokens as Code for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "honeytokens-as-code": { "type": "stdio", "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Honeytokens as Code tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Honeytokens as Code and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Honeytokens as Code or shows a Honeytokens as Code tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • HONEYTOKEN_BASE_URL Public URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)
  • HONEYTOKEN_HOME Data directory for the trap registry and alert log (default ~/.honeytoken)

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Honeytokens as Code💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user honeytokens-as-code -- npx -y honeytokens-as-code mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "honeytokens-as-code": {
      "command": "npx",
      "args": [
        "-y",
        "honeytokens-as-code",
        "mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "honeytokens-as-code": {
      "command": "npx",
      "args": [
        "-y",
        "honeytokens-as-code",
        "mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "honeytokens-as-code": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "honeytokens-as-code",
        "mcp"
      ]
    }
  }
}

Values you fill in

  • HONEYTOKEN_BASE_URL env
    Public URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)
  • HONEYTOKEN_HOME env
    Data directory for the trap registry and alert log (default ~/.honeytoken)

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Registry name
io.github.Dradradre/honeytokens-as-code
Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
0.5.3
Published to registryi
Nov 25, 2026
Code last changedi
Nov 25, 2026
Maker
Dradradre
Packages
npm: honeytokens-as-code
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Dradradre, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for honeytokens-as-code@0.5.3

Checks only this package version, not every dependency · checked Nov 25, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/dradradre-honeytokens-as-code.svg)](https://mcp.popnx.com/en/servers/dradradre-honeytokens-as-code)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Developer toolsi

  • More stars than 0% of the other 8006 servers in this category
  • Published to the registry more recently than 95% of the other 8006 servers in this category
  • Basic checks equal to or better than 99% of the other 8006 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Honeytokens as Code safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (0.5.3) reached the registry yesterday.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

by ahmedkhaleel2004Widely used★ 19.1KUpdated 2 months ago

Connect now (has URL)3 tools · light✓ service owner · gitdiagram.comTried by the PopNx team

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

by AppllamaWidely used★ 5.7KUpdated 3 months ago

Connect now (has URL) · sign-in✓ service owner · appllama.io

Cloudflare MCP

Cloudflare MCP servers

by cloudflareGrowing★ 4.5KUpdated 14 months ago

Connect now (has URL)2 tools · light✓ service owner · mcp.cloudflare.comTried by the PopNx team

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

by omnara-aiWidely used★ 3.5KUpdated 2 months ago

Connect now (has URL) · sign-in✓ service owner · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

by repowise-devWidely used↓ 6.5K/wk★ 8.3K Stars for the whole repoUpdated 4 days ago

Connect now (has URL) · sign-in✓ service owner · repowise.dev
Compared with similar ones
This one
Honeytokens as Code
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoYesNoNo
Basic checks3/34/44/44/44/45/5
LicenseMITMITMITApache-2.0Apache-2.0AGPL-3.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

English · 한국어

Your coding agent plants the canaries. Not another canary that watches your agent.

Say plant honeytokens in this repo . A minute later, real powerless AWS keys and internal-looking webhook traps sit where an intruder would look, written in your repo's own accent, tracked and checked.

Open-source honeytoken and canary token toolkit: an MCP server , an Agent Skill and a CLI that let Claude Code , Cursor and other AI coding agents plant AWS canary credentials and webhook tripwires in your repositories, then alert you through CloudTrail , Slack or Discord when a leaked secret is used.

How it works · Two kinds of trap · Quickstart · Anatomy of an alert · Paranoid by default · Reference

Recorded from a real run: a separate Claude Code session got only the prompt above, the skill and the MCP server, and picked the spots, names and prefixes itself in 50 s (20 turns, about $0.27). The AWS part ran against a local AWS emulator; the alerts went through the real alert server to a real Slack channel:

The third message is the cooldown summary: the S3 attempt came seconds after the first call from the same address, so it was held back and sent when the window closed instead of being dropped.

Why this exists

Repos leak. A contractor's laptop gets popped, a CI token gets scraped, a private repo goes public for eleven minutes. The first thing anyone does with a stolen repo is grep it for secrets and try them.

Honeytokens turn that grep against them: credentials that do nothing except tell you, loudly, that someone is using them. The idea is old. The problem has always been the planting.

Not to be confused with the many 2026 tools that plant canaries to catch a *misbehaving AI agent*

(prompt injection, exfiltration). Honeytokens as Code points the other way: the agent is on your side, and the

canaries are for whoever steals your repo, your CI or your laptop.

Classic canary tokensHoneytokens as Code
What the decoy looks likeThe same generic key, pasted in the same placeA real AWS key named like the repo's other service users, or an endpoint and token dressed as one of the repo's own internal services
Who picks the spotYou, by hand, in a hurryYour coding agent, after reading how the repo is wired
Will production call it by accident?Hopefully notThe playbook makes the agent prove nothing loads the file
Where did it leak from?You check your notesThe alert says acme-payments/deploy/legacy/export.env:7
Keeping it freshNobody rememberscheck_traps flags lost or stale traps, rotate_trap swaps one in place
After removalThe token is dead, old leaks go unnoticedThe trap is *retired* and keeps watching: git history still holds the bait

The brain and the hands

Honeytokens as Code never calls an LLM. The model you already pay for is the brain; this tool is a small, deterministic pair of hands that does only the parts that must be exactly right.

sequenceDiagram

autonumber actor You participant Agent as Coding agent (the brain) participant MCP as honeytoken mcp (the hands) participant Repo as Your repo participant Reg as ~/.honeytoken (outside the repo) participant Server as honeytoken serve actor Intruder

You->>Agent: "plant honeytokens in this repo" Agent->>Repo: read .env.example, config/, routes Agent->>MCP: create_aws_trap(userName) / create_webhook_trap(...) MCP->>Reg: record trap MCP-->>Agent: key / url + token Agent->>Repo: write decoy on one line, in a file nothing loads Agent->>MCP: register_planted_token(id, file) MCP->>Repo: read file, find the lines itself MCP->>Reg: record file:line Note over Repo,Intruder: ... days pass, the repo leaks ... Intruder->>Server: calls the trap URL (webhook) Intruder-->>Server: uses the AWS key → CloudTrail → found by polling Server->>Reg: which trap? planted where? Server->>You: Slack / Discord / console: "acme-payments/deploy/legacy/export.env:7 leaked"

PartWhat it isWhat it does
Agent Skillskills/honeytoken-planting/SKILL.mdA short playbook: study the repo's naming → pick a trap kind → plant where nothing loads it → register → verify
MCP serverhoneytoken mcpEight tools: create (aws, webhook), register_planted_token, list_traps, check_traps, rotate_trap, clean_traps, list_alerts
Alert serverhoneytoken serveOne process for every repo. Answers webhook hits, searches CloudTrail for AWS key use, logs, forwards to Slack and Discord
CLIhoneytoken …Everything above, by hand

Two kinds of trap

🔑 AWS🪝 Webhook
What gets plantedA real access key for an IAM user in your AWS account, with an explicit deny-all policyA URL on your alert server and a token, named like an internal service: pgw_live_… next to BILLING_GATEWAY_URL
When it firesAny AWS call with the key, even sts get-caller-identity, found in CloudTrailAny request to the URL, or carrying the token
SpeedMinutes (CloudTrail delivery + poll interval)Instant
Catches tools that keep only keys that verify✅ The key is real, and verifying it is the alarm❌ There is nothing to verify against
NeedsThe aws CLI signed in to an account you may create IAM users inNothing; a public URL to catch real intruders

This split follows how established canary products work: Thinkst Canarytokens and GitGuardian Honeytoken issue real AWS keys and detect their use through CloudTrail (Rapid7 described the no-privilege IAM user behind the idea in 2016), and Thinkst offers URL tokens for everything else.

[!IMPORTANT]

Never fake a third-party provider's key. We checked: GitHub push protection covers Stripe, Slack, OpenAI,

Anthropic, GitHub, npm, SendGrid, Discord and AWS key formats and is on by default for public repos, so the

commit that plants a fake sk_live_ key gets blocked. Scanners like TruffleHog verify a key against the real

provider and drop invalid ones, and an intruder who tries a fake Stripe key calls Stripe, never your URL.

The tool refuses these formats (sk_live_, ghp_, xoxb-, AKIA, sk-ant-, …) unless the operator

overrides it on the CLI.

Quickstart

[!TIP]

Rather have a permanent command? npm install -g honeytokens-as-code, then honeytoken init.

1. Set up (once per machine)

npx honeytokens-as-code init
✓ skill   ~/.claude/skills/honeytoken-planting/SKILL.md

✓ mcp registered with Claude Code (user scope: no file in any repo) ✓ aws AWS account 123456789012 reachable. Permissions needed: honeytoken iam-policy issuer · alerts HONEYTOKEN_BASE_URL is not set: webhook traps only fire on this machine. AWS traps need no public URL. · next Open your repo in Claude Code and say: plant honeytokens in this repo

init installs the agent skill, registers the MCP server with Claude Code at user scope, and checks your AWS CLI. --dry-run shows what it would do. Without Claude Code it prints the config for other MCP clients.

2. Watch (pick one)

honeytoken watch       # AWS traps only, no server, no open port

honeytoken serve # AWS traps + webhook traps (listens on 127.0.0.1:8787)

Or watch AWS traps from a scheduled GitHub Actions job with nothing running anywhere: see Watch AWS traps without a server. Slack and Discord forwarding: HONEYTOKEN_SLACK_WEBHOOK, HONEYTOKEN_DISCORD_WEBHOOK.

Using AWS traps

AWS traps use the aws CLI you already have, with its usual profile, SSO and environment settings (AWS_PROFILE and friends). Ideally point it at a dedicated account in your organization: the canary user lives there, and nothing else does.

The identity that issues traps (create aws, rotate, clean, check) needs sts:GetCallerIdentity and iam:CreateUser, iam:PutUserPolicy, iam:GetUserPolicy, iam:DeleteUserPolicy, iam:CreateAccessKey, iam:ListAccessKeys, iam:DeleteAccessKey, iam:DeleteUser. The identity honeytoken serve runs as needs cloudtrail:LookupEvents and ec2:DescribeRegions.

Every trap user gets an inline policy that denies everything, attached before its key exists. If issuing fails halfway, the user is deleted again.

Cursor, Windsurf and other MCP clients

Register a stdio server with the command honeytoken mcp (or node /abs/path/dist/cli.js mcp) and HONEYTOKEN_BASE_URL in its environment. Use your client's user-level config rather than a project file you commit (see Paranoid by default). If the client has no skill support, paste SKILL.md into its rules; the server also ships a condensed version of the playbook as MCP instructions.

3. Ask

› plant honeytokens in this repo

4. Prove it fires

honeytoken list

curl -X POST # webhook: instant AWS_ACCESS_KEY_ID=… AWS_SECRET_ACCESS_KEY=… aws sts get-caller-identity # AWS: a few minutes honeytoken alerts

5. Keep them fresh

honeytoken check       # still planted? due for rotation? AWS key intact? exits 1 if not (CI-friendly)

honeytoken rotate # fresh value in the same lines; the old one keeps watching

Watch AWS traps without a server

AWS traps need no listener: their use lands in CloudTrail, and anything that can read CloudTrail can raise the alert. A scheduled GitHub Actions job in a private ops repository (never a repo that holds decoys) is enough:

  1. Role: in the canary account, create an IAM role the ops repo can assume t

Only the beginning is shown; read the rest in the repo