token

token is a skill for Claude Code, Codex from sonomoshq/Canary. It costs 35 tokens per session (1,270 once invoked), scanned A, original, MIT.

A command for creating and checking canary tokens—fake secrets planted as tripwires to reveal when the exact value is later exposed to Claude.

In plain words
What is it for?
Creating decoy AWS credentials, payment-card numbers, Social Security numbers, environment values, database URLs, or custom strings, then checking whether they were exposed.
Why use it?
An exact match can confirm that a planted value was leaked, instead of merely guessing from the shape of text such as an API key.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the canary plugin — 5 skills, 1 agent, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sonomoshq/canary/token
Any agent
npx skills add sonomoshq/Canary --skill token
Clone the repo
git clone --depth 1 https://github.com/sonomoshq/Canary

Made for: Claude Code, Codex.

Or install canary, the plugin that ships this one along with the rest of its 5 skills, 1 agent, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for token

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonomoshq/canary/token.svg)](https://agentmods.dev/skills/sonomoshq/canary/token)
Your own site
<a href="https://agentmods.dev/skills/sonomoshq/canary/token"><img src="https://agentmods.dev/badge/skills/sonomoshq/canary/token.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.01270
Opus 5 $0.00017 $0.00635
Sonnet 5 $0.00007 $0.00254
Haiku 4.5 $0.00003 $0.00127

Measured 4d ago against content hash 837ee31ed6ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

token scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

canary/skills/token/SKILL.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Canary Tokens — Active Defense

Every other part of Canary is passive: 38 regex detectors guess whether something looks like PII or a secret, from its shape. Canary Tokens flip that around. Canary mints a fake-but-realistic secret itself, plants it, and remembers the exact value it planted. When that exact value later shows up in something Claude reads, it isn't a guess about shape — it's a literal string match (grep -F) against a value nobody else could have produced. 38 detectors guess. This one knows.

A "trip" is recorded at confidence: certain, distinct from every other entry in the leak log, which is at best high/medium.

Instructions

Parse $ARGUMENTS for a subcommand and dispatch to the canary-token CLI (bundled at ${CLAUDE_PLUGIN_ROOT}/bin/canary-token, already on PATH as canary-token). Prefer running it directly; fall back to bash "${CLAUDE_PLUGIN_ROOT}/bin/canary-token" ... if the bare command isn't found.

new <aws|card|ssn|env|dburl|freeform> [label]

Mint a fresh fake decoy and register it as an armed canary — nothing is written to disk yet.

canary-token new env "staging API key"

For freeform, pass the decoy string itself in place of a label:

canary-token new freeform "Project Nightjar"

Types and what each mimics:

  • aws — an AKIA... access key + a paired secret key (also matches Canary's own aws_access_key/aws_secret_key detectors)
  • card — a Luhn-valid 16-digit card number (also matches credit_card)
  • ssn — an SSN in the 900-999 area, which the SSA has never issued to a real person, so it can never collide with someone's real SSN
  • env — a high-entropy API-key-shaped string (also matches generic_secret when planted with a keyword like API_KEY=)
  • dburl — a decoy postgres://user:pass@host/db connection string (also matches db_url_credentials)
  • freeform — any arbitrary string (a fake codename, trade secret, etc.) — detected only by Canary's certain match, no regex layer involved

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 117 lines · 35 tokens per session scan A 837ee31ed6ec

Subscribe to this mod's changes

token is a skill published in the GitHub repository sonomoshq/Canary (2 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 1,270 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

compare

Compare multiple alternatives using explicit criteria, weighted scoring, and tradeoff analysis. Use when choosing between options, evaluating alternatives, or making decisions.

synaptiai/agent-capability-standard · 30 tokens

critique

Find failure modes, edge cases, ambiguities, and exploit paths in plans, code, or designs. Use when reviewing proposals, auditing security, stress-testing logic, or validating assumptions.

synaptiai/agent-capability-standard · 40 tokens

explain

Produce clear reasoning with assumptions, causal chains, and evidence. Use when clarifying decisions, teaching concepts, justifying recommendations, or documenting rationale.

synaptiai/agent-capability-standard · 32 tokens

integrate

Combine heterogeneous data sources into a unified model with conflict resolution, schema alignment, and provenance tracking. Use when merging data from multiple systems, consolidating information, or building comprehensive views.

synaptiai/agent-capability-standard · 39 tokens

audit

Produce a comprehensive audit trail of actions, tools used, changes made, and decision rationale. Use when recording compliance evidence, tracking changes, or documenting decision lineage.

synaptiai/agent-capability-standard · 34 tokens

gap-analysis-workflow

Identify capability gaps and propose new skills with prioritization. Use when analyzing missing capabilities, planning skill development, performing ontology expansion, or assessing coverage.

synaptiai/agent-capability-standard · 34 tokens