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 skills add openapi/openapi-skills --skill openapi-authgit clone --depth 1 https://github.com/openapi/openapi-skillsWrote 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.
[](https://agentmods.dev/skills/openapi/openapi-skills/openapi-auth)<a href="https://agentmods.dev/skills/openapi/openapi-skills/openapi-auth"><img src="https://agentmods.dev/badge/skills/openapi/openapi-skills/openapi-auth/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.
<a href="https://agentmods.dev/skills/openapi/openapi-skills/openapi-auth"><img src="https://agentmods.dev/badge/skills/openapi/openapi-skills/openapi-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.00726 |
| Opus 5.5 | $0.00022 | $0.00290 |
| Sonnet 5.5 | $0.00011 | $0.00145 |
| Haiku 4.5 | $0.00006 | $0.00073 |
Grade A, and why
openapi-auth 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -u "$OPENAPI_EMAIL:$OPENAPI_API_KEY" https://oauth.openapi.com/tokens \ How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Openapi authentication (OAuth v2)
All Openapi services require a Bearer token created through OAuth v2. This skill manages that token lifecycle.
Credentials
Two layers — never confuse them:
- Account credentials (email + API key) → used only against
https://oauth.openapi.com, as HTTP Basic auth (username = email,password = API key). - Bearer token (created here, with scopes) → used against every service API as
Authorization: Bearer <token>.
Expect credentials in the environment as OPENAPI_EMAIL, OPENAPI_API_KEY (and optionally a ready-made OPENAPI_TOKEN). Never print or commit them.
Create a token
curl -s -u "$OPENAPI_EMAIL:$OPENAPI_API_KEY" https://oauth.openapi.com/tokens \
-H 'Content-Type: application/json' \
-d '{
"scopes": ["GET:company.openapi.com/IT-start"],
"name": "agent token",
"ttl": 86400
}'
- Scope format:
METHOD:host/path-prefix(e.g.POST:sms.openapi.com/IT-messages). Request only the scopes the task needs, with a shortttl(max 1 year). - Discover valid scopes:
GET https://oauth.openapi.com/scopes(Basic auth). - Optional
limitsobject restricts token usage further. - A refresh token can renew a token:
PATCH /tokens/{id}with the refresh token as Bearer. - Tokens can also be created from the console UI (Authentication → "+New Token") at https://console.openapi.com.
Management endpoints (Basic auth)
| Endpoint | Purpose |
|---|---|
GET /tokens, GET|PATCH|DELETE /tokens/{token} |
Token lifecycle |
GET /scopes, GET /scopes/{id} |
Available scopes |
GET /wallet, GET /wallet/transactions |
Credit balance — check before expensive paid calls |
GET /subscriptions, GET /subscriptions/{id} |
Active plans and remaining requests |
GET /stats, GET /stats/apis, GET /stats/apis/{domain}, GET /stats/ips |
Usage analytics |
GET /errors, GET /callbacks |
Error log and callback monitoring |
Billing model (affects every service)
- Requests are paid from the wallet (per request) or from a subscription (monthly: 30 days no rollover; annual: 365 days, any pace). Both can coexist; the wallet is the fallback when subscription requests run out.
- Some APIs have free daily/monthly tiers; rate limits, when present, are stated in each API's description.
- Sandbox: free test requests, but "sandbox credit" must be enabled in the console first; responses are illustrative.
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.
- 1mo ago First seen · 58 lines · 55 tokens per session scan A 1fab5d516652
openapi-auth is a skill published in the GitHub repository openapi/openapi-skills (15 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 726 once invoked, about $0.0002 per session on Opus 5.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.
Other skills, from other repositories
API Documentation Generator
Generates OpenAPI-compatible documentation for REST API endpoints from code or route definitions.
REST API Endpoint Designer
Designs RESTful API endpoints following OpenAPI spec and industry best practices.
nestjs-documentation
Automate Swagger/OpenAPI documentation and standardize API response schemas in NestJS. Use when generating OpenAPI specs, documenting paginated or generic responses, configuring the Nest CLI Swagger plugin, or publishing versioned API docs.
lap
LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands: init, compile, search, get, skill…
lap
LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands: init, compile, search, get, skill…
fastapi-expert
Expert-level FastAPI development for high-performance Python APIs with async support. Use when the user mentions Python, API, async, REST, OpenAPI, or Pydantic, or when the task involves FastAPI Features.