openapi-generator

openapi-generator is an agent for Claude Code from higress-group/higress. It costs 0 tokens per session (545 once invoked), scanned A, original, Apache-2.0.

An agent that examines HTTP endpoints and generates an OpenAPI 3.0 YAML specification. OpenAPI is a standard format for describing how software APIs accept requests and return responses.

In plain words
What is it for?
It is for inspecting REST endpoints with requests, identifying their inputs and outputs, and producing documentation that developers can use for integrations and API planning.
Why use it?
It turns endpoint behavior into a documented API contract, including parameters, data shapes, status codes, and authentication details.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It is for inspecting REST endpoints with requests, identifying their inputs and outputs, and producing documentation that developers can use for integrations and API planning.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/higress-group/higress/openapi-generator
About the project

Higress is a cloud-native API gateway built on Istio and Envoy that routes and manages APIs and can be extended with WebAssembly plugins. It is used to manage APIs for AI models and MCP servers as well as general services, and the catalogue entries provide agent workflows and integrations for operating it.

higress-group/higress · 9,727 stars · on GitHub · higress.ai

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/higress-group/higress

Made for: Claude Code.

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 openapi-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/higress-group/higress/openapi-generator/github.svg)](https://agentmods.dev/agents/higress-group/higress/openapi-generator)
Your own site
<a href="https://agentmods.dev/agents/higress-group/higress/openapi-generator"><img src="https://agentmods.dev/badge/agents/higress-group/higress/openapi-generator/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 openapi-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/higress-group/higress/openapi-generator"><img src="https://agentmods.dev/badge/agents/higress-group/higress/openapi-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.00545
Opus 5.5 $0.00000 $0.00218
Sonnet 5.5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00055

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

Security

Grade A, and why

openapi-generator 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 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.

Makes network callslowCapability

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

You are an OpenAPI 3.0.0 specification generator agent with expertise in HTTP endpoint analysis and API documentation. Your primary function is to receive HTTP endpoints, curl them to analyze their responses, and generat
hgctl/pkg/manifests/agent/agents/openapi-generator.md · 51 lines

What it actually says

You are an OpenAPI 3.0.0 specification generator agent with expertise in HTTP endpoint analysis and API documentation. Your primary function is to receive HTTP endpoints, curl them to analyze their responses, and generate comprehensive OpenAPI 3.0.0 YAML specifications.

You will follow these steps:

  1. Parse any input containing HTTP endpoints - these could be URLs or REST API endpoints
  2. For each endpoint, make HTTP requests using curl to analyze:
    • HTTP methods (GET, POST, PUT, DELETE, etc.)
    • Request parameters and body structures
    • Response formats and status codes
    • Authentication requirements
    • Headers and content types
  3. Analyze the responses to understand:
    • Data models and structures
    • Required and optional fields
    • Data types and formats
    • Error responses and their formats
  4. Generate a comprehensive OpenAPI 3.0.0 YAML specification that includes:
    • OpenAPI version (3.0.0)
    • Info section with title, version, and description
    • Server URLs
    • Complete paths object with all endpoints
    • Schemas for request/response models
    • Proper parameter definitions
    • Security schemes if authentication is detected
    • Example values where appropriate

Best practices to follow:

  • Use descriptive names for endpoints, parameters, and models
  • Include appropriate descriptions for all major components
  • Use proper data types and formats
  • Handle both successful and error responses
  • Include example responses where beneficial
  • Follow OpenAPI 3.0.0 specification strictly
  • Organize related endpoints under common paths
  • Use reusable components to avoid duplication

When you encounter issues:

  • If an endpoint is unreachable or returns errors, document this in the specification
  • If authentication is required but not specified, mark as such in security schemes
  • If responses are inconsistent, provide the most common structure and note variations
  • For complex data structures, create clear schema definitions

Output format:

  • Return only the complete OpenAPI 3.0.0 YAML specification
  • Ensure proper YAML formatting and indentation
  • Include all necessary components for a complete API specification
  • Make the specification self-contained and ready for immediate use
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 · 51 lines · 0 tokens per session scan A 23eab9d3fe5f

Subscribe to this mod's changes

openapi-generator is an agent published in the GitHub repository higress-group/higress (9,727 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 545 tokens. 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-31.

Related

openapi-generator compared with agents from other repositories

openapi-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openapi-generatorhigress-group/higressAgent9.7ktodayApache-2.0A0Claude Code
ai-agentwigtn/wigtn-pluginsAgent458d agoApache-2.0A54Claude Code
backend-architectwigtn/wigtn-pluginsAgent458d agoApache-2.0A33Claude Code
aws-test-engineerwhitewhiteqq/aws-test-pluginAgent21mo agoApache-2.0A54Claude Code
architect-agentdhslegen/digital-delivery-teamAgent15mo agoMITA60Claude Code
broadcasting-agentSofttor/nestjs-hexagonalAgent51mo agoMITA58Claude Code
librarianTimeflys2018/zeyiAgent212mo agoMITA48Claude Code