api-security

api-security is an agent for Claude Code from humaidhahm/opencode-pentester. It costs 50 tokens per session (883 once invoked), scanned A, original, no licence file.

An API security testing specialist checks GraphQL, REST, WebSocket, and web-based AI endpoints for security weaknesses. It uses a four-phase process with an approval checkpoint.

In plain words
What is it for?
Use it to analyse API schemas and test inputs with tools such as RESTler or Schemathesis, including checks of access controls and rate limiting.
Why use it?
It helps find issues such as authentication bypasses, weak rate limits, and unexpected inputs before an API is exposed or changed.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pentest plugin — 1 skill, 14 agents shipped together

Good fit Use it to analyse API schemas and test inputs with tools such as RESTler or Schemathesis, including checks of access controls and rate limiting.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/humaidhahm/opencode-pentester/api-security
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.

Clone the repo
git clone --depth 1 https://github.com/humaidhahm/opencode-pentester

Made for: Claude Code.

Or install pentest, the plugin that ships this one along with the rest of its 1 skill, 14 agents.

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 api-security

README.md
[![agentmods](https://agentmods.dev/badge/agents/humaidhahm/opencode-pentester/api-security/github.svg)](https://agentmods.dev/agents/humaidhahm/opencode-pentester/api-security)
Your own site
<a href="https://agentmods.dev/agents/humaidhahm/opencode-pentester/api-security"><img src="https://agentmods.dev/badge/agents/humaidhahm/opencode-pentester/api-security/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 api-security

Your own site · 80×15
<a href="https://agentmods.dev/agents/humaidhahm/opencode-pentester/api-security"><img src="https://agentmods.dev/badge/agents/humaidhahm/opencode-pentester/api-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00050 $0.00883
Opus 5.5 $0.00020 $0.00353
Sonnet 5.5 $0.00010 $0.00177
Haiku 4.5 $0.00005 $0.00088

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

Security

Grade A, and why

api-security 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 1mo 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.

plugins/pentest/agents/api-security.md · 91 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 1mo ago First seen · 91 lines · 50 tokens per session scan A 4fb2a3fec165

Subscribe to this mod's changes

api-security is an agent published in the GitHub repository humaidhahm/opencode-pentester (102 stars, last pushed 2d ago), with no licence file. It adds 50 tokens to every session and 883 once invoked, about $0.0002 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-10-21.

Related

api-security compared with agents from other repositories

api-security next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-securityhumaidhahm/opencode-pentesterAgent1022d agononeA50Claude Code
token-auditorAwarexone/Agentic-Bug-HunterAgent6.1k18d agoMITA97Claude Code
web3-auditorAwarexone/Agentic-Bug-HunterAgent6.1k18d agoMITA101Claude Code
validatorAwarexone/Agentic-Bug-HunterAgent6.1k18d agoMITA64Claude Code
chain-builderAwarexone/Agentic-Bug-HunterAgent6.1k18d agoMITB96Claude Code
Drupal Shopping Cart EngineerSHAdd0WTAka/Zen-Ai-PentestAgent52927d agoMITA48Claude Code, OpenCode
Email Intelligence EngineerSHAdd0WTAka/Zen-Ai-PentestAgent52927d agoMITA22Claude Code, OpenCode