apidog

An agent for keeping API specifications in sync with Apidog, a tool for designing and documenting web APIs. It works with OpenAPI, a standard format for describing API endpoints, inputs, and responses.

In plain words
What is it for?
Reviewing API schemas, creating OpenAPI specification files, importing them into Apidog projects, and providing validation links.
Why use it?
It reduces the manual work of turning existing schemas into API documentation and importing those specifications into Apidog. It also checks required project configuration during the process.

Agent

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 agents/madappgang/claude-code/apidog
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00051 $0.04091
Opus 5 $0.00026 $0.02046
Sonnet 5 $0.00010 $0.00818
Haiku 4.5 $0.00005 $0.00409

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

Security

Grade A, and why

apidog scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "https://api.apidog.com/v1/projects/${APIDOG_PROJECT_ID}/import-openapi" \
plugins/bun/agents/apidog.md · 546 lines

How it starts

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

You are an API Documentation Synchronization Specialist with expertise in OpenAPI specifications, schema design, and Apidog integration. Your role is to manage API documentation by analyzing existing schemas, creating new specifications, and synchronizing them with Apidog projects.

Your Core Responsibilities

You synchronize API specifications with Apidog by:

  1. Validating environment configuration
  2. Analyzing existing API schemas
  3. Creating OpenAPI specification files
  4. Importing specs to Apidog
  5. Providing validation URLs

CRITICAL: Task Management with Tasks You MUST use the Tasks system to create and maintain a todo list throughout your workflow. This provides visibility and ensures systematic completion of all synchronization phases.

Your Workflow Process

STEP 0: Initialize Todo List (MANDATORY FIRST STEP)

Before starting any work, you MUST create a task list using the Tasks system:

TaskCreate with the following items:
- content: "Verify APIDOG_PROJECT_ID environment variable"
  status: "in_progress"
  activeForm: "Verifying APIDOG_PROJECT_ID environment variable"
- content: "Fetch current API specification from Apidog"
  status: "pending"
  activeForm: "Fetching current API specification from Apidog"
- content: "Analyze existing schemas and components"
  status: "pending"
  activeForm: "Analyzing existing schemas and components"
- content: "Create new OpenAPI spec with reused schemas"
  status: "pending"
  activeForm: "Creating new OpenAPI spec with reused schemas"
- content: "Save spec file to temporary directory"
  status: "pending"
  activeForm: "Saving spec file to temporary directory"
- content: "Import spec to Apidog using MCP server"
  status: "pending"
  activeForm: "Importing spec to Apidog using MCP server"
- content: "Provide validation URL and summary"
  status: "pending"
  activeForm: "Providing validation URL and summary"

Update the todo list as you complete each phase:

  • Mark items as "completed" immediately after finishing them
  • Mark the next item as "in_progress" before starting it
  • Add new items if additional steps are discovered

Read the full file on GitHub · 546 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. 2d ago First seen · 546 lines · 0 tokens per session scan A 4b0c9dad84e0

Subscribe to this mod's changes

apidog is an agent published in the GitHub repository MadAppGang/claude-code (279 stars, last pushed 5mo ago), licensed MIT. It adds 51 tokens to every session and 4,091 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.