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.
npx agentmods add instructions/chainbase-labs/agentkey/agents-mdgit clone --depth 1 https://github.com/chainbase-labs/AgentkeyWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.03953 | $0.03953 |
| Opus 5 | $0.01976 | $0.01976 |
| Sonnet 5 | $0.00791 | $0.00791 |
| Haiku 4.5 | $0.00395 | $0.00395 |
Grade A, and why
Agentkey AGENTS.md 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to coding agents (Codex, and any AGENTS.md-aware tool) when working with code in this repository. It mirrors .claude/CLAUDE.md — keep the two in sync.
What This Repo Is
AgentKey Skill ships the agent-side half of AgentKey: a single skill that teaches agents how to call the AgentKey MCP tools correctly.
AgentKey has two pieces and a full end-user install is two commands:
npx skills add chainbase-labs/agentkey— installs this skill. It does NOT register the MCP server.npx -y @agentkey/cli --auth-login— runs the AgentKey CLI (@agentkey/clifrom../AgentKey-Server/cli). It mints an API key via device-code login and writes a remote-HTTP MCP block (pointing athttps://api.agentkey.app/v1/mcp) into agent configs (Claude Code, Codex, Cursor, and 13 more). The hosted MCP server itself lives at/v1/mcpon AgentKey-Server.
The skill is useless without the MCP server; the MCP server works without the skill but the agent won't know to prefer it over built-in web search. Keep this mental model when editing docs — do not let either command drift into claiming it does both.
The same repo also works as:
- a Claude Code plugin (
.claude-plugin/plugin.json+ root.mcp.json) — the remote HTTP entry has no static authentication header, so Claude Code follows the server's 401/RFC 9728 metadata into its native MCP OAuth flow, substituting for step 2. - a Codex plugin (
.codex-plugin/plugin.json+.codex-plugin/mcp.json, distributed through.agents/plugins/marketplace.json; the repo is its own marketplace:codex plugin marketplace add chainbase-labs/agentkey). Codex plugins have nouserConfig/header-interpolation mechanism, so auth uses MCP OAuth via the server's RFC 9728 metadata discovery (type+urlonly in mcp.json), substituting for step 2. - a Cursor plugin (
.cursor-plugin/plugin.json). The Cursor-native manifest bundlesskills/and an inline remote-HTTP MCP entry. Cursor authenticates through the server's MCP OAuth discovery, substituting for step 2. - a Kimi Code plugin (
.kimi-plugin/plugin.json). Kimi requiresmcpServersto be an inline object in the manifest. The remote AgentKey endpoint uses Kimi's native MCP OAuth flow; after install Kimi shows the standard/reloadhint, then the user signs in with/mcp-config login plugin-agentkey:agentkeywhen Kimi reports that OAuth is required. - a Gemini CLI extension (root
gemini-extension.json+skills/). Gemini requires the manifest at the extension root, discovers bundled agent skills automatically, and connects to AgentKey withhttpUrlplus native MCP OAuth discovery.oauth.enabledrequests the browser flow automatically;/mcp auth agentkeyis the manual fallback. Either substitutes for step 2. - an Antigravity 2.0 and Antigravity CLI plugin (root
plugin.json+mcp_config.json+skills/). Both runtimes use the same package, requireserverUrlfor remote MCP, and authenticate through automatic OAuth discovery. - a CLI-managed DeepSeek Harness integration. The installers detect
${DSH_HOME:-~/.dsh}/dsh, install the skill globally through the Skills CLI'suniversaltarget (neverskills add -a dsh), and let@agentkey/cli --auth-login --only dshmaintain one marked@deepseek-ai/dsh-mcp-cliententry in$DSH_HOME/cordis.patch.yml. DSH composes that home layer over current and future profiles; running processes watch it through HMR. DSH rc.7 has no MCP OAuthauthProvider, so this path requires the CLI-written Bearer key. Tool policy may still hide tools.
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.
- 2d ago First seen · 148 lines · 3,953 tokens per session scan A 99c8cd6a00a6
Agentkey AGENTS.md is an instructions file published in the GitHub repository chainbase-labs/Agentkey (625 stars, last pushed 8d ago), licensed Apache-2.0. It adds 3,953 tokens to every session, about $0.0198 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-30.
Other instructions, from other repositories
skills AGENTS.md
Instructions for upstash/skills, covering agent guide, keep skill docs short and effective and never edit skills/upstash/ by hand.
notfair-plugin AGENTS.md
AGENTS.md instructions for nowork-studio/notfair-plugin, covering notfair — skill resolver for ai agents, how to use this file, seo, paid ads and analytics.
superdesign-skill AGENTS.md
Instructions for superdesigndev/superdesign-skill, covering project agent memory, what this repo is, skill flow invariant: two entry paths, ground truth for cli behavior and plugin packaging & release.
domscribe CLAUDE.md
Instructions for patchorbit/domscribe, covering claude.md, what is domscribe?, how to work on this codebase, commands and install dependencies (pnpm, not npm).
iPolloWork AGENTS.md
AGENTS.md instructions for Devin-AXIS/iPolloWork, covering agents.md, what ipollowork is, core philosophy, pull request expectations (fast merge) and validate every experience.
seektty AGENTS.md
Instructions for Hilbert-beinghappy/seektty: This repository ships one out-of-tree DeepSeek Harness Bundle. Harness remains the only owner of Agent, Session, model, settings, permissions, Profile, plugin, and persistence state.