Agentkey: Instructions file for Codex

AGENTS.md

Agentkey AGENTS.md is an instructions file for Codex, OpenCode from chainbase-labs/Agentkey. It costs 3,953 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for AgentKey, a service that lets coding agents access live external data through one connection.

In plain words
What is it for?
Use it when developing or documenting AgentKey, testing changes across supported agents, or setting up its skill and MCP server.
Why use it?
It clarifies the project structure, installation steps, and the separate roles of the agent instructions and the remote service.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is chainbase-labs/Agentkey's own configuration. It tells Codex and OpenCode how to work on Agentkey itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Agentkey configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chainbase-labs/Agentkey. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chainbase-labs/Agentkey/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/chainbase-labs/Agentkey

Made for: Codex, OpenCode.

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 Agentkey AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chainbase-labs/agentkey/agents-md/github.svg)](https://agentmods.dev/instructions/chainbase-labs/agentkey/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/chainbase-labs/agentkey/agents-md"><img src="https://agentmods.dev/badge/instructions/chainbase-labs/agentkey/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Agentkey AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chainbase-labs/agentkey/agents-md"><img src="https://agentmods.dev/badge/instructions/chainbase-labs/agentkey/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,953 This file is loaded in full into every session.
When invoked 3,953 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03953 $0.03953
Opus 5.5 $0.01581 $0.01581
Sonnet 5.5 $0.00791 $0.00791
Haiku 4.5 $0.00395 $0.00395

Measured 2mo ago against content hash 99c8cd6a00a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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.

AGENTS.md · 148 lines

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:

  1. npx skills add chainbase-labs/agentkey — installs this skill. It does NOT register the MCP server.
  2. npx -y @agentkey/cli --auth-login — runs the AgentKey CLI (@agentkey/cli from ../AgentKey-Server/cli). It mints an API key via device-code login and writes a remote-HTTP MCP block (pointing at https://api.agentkey.app/v1/mcp) into agent configs (Claude Code, Codex, Cursor, and 13 more). The hosted MCP server itself lives at /v1/mcp on 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 no userConfig/header-interpolation mechanism, so auth uses MCP OAuth via the server's RFC 9728 metadata discovery (type + url only in mcp.json), substituting for step 2.
  • a Cursor plugin (.cursor-plugin/plugin.json). The Cursor-native manifest bundles skills/ 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 requires mcpServers to be an inline object in the manifest. The remote AgentKey endpoint uses Kimi's native MCP OAuth flow; after install Kimi shows the standard /reload hint, then the user signs in with /mcp-config login plugin-agentkey:agentkey when 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 with httpUrl plus native MCP OAuth discovery. oauth.enabled requests the browser flow automatically; /mcp auth agentkey is 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, require serverUrl for 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's universal target (never skills add -a dsh), and let @agentkey/cli --auth-login --only dsh maintain one marked @deepseek-ai/dsh-mcp-client entry 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 OAuth authProvider, so this path requires the CLI-written Bearer key. Tool policy may still hide tools.

Read the full file on GitHub · 148 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. 2mo ago First seen · 148 lines · 3,953 tokens per session scan A 99c8cd6a00a6

Subscribe to this mod's changes

Agentkey AGENTS.md is an instructions file published in the GitHub repository chainbase-labs/Agentkey (657 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 3,953 tokens to every session, about $0.0158 per session on Opus 5.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.

Related

Agentkey AGENTS.md compared with instructions from other repositories

Agentkey AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Agentkey AGENTS.mdchainbase-labs/AgentkeyInstructions file6572mo agoApache-2.0A3,953Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode