openai-api-troubleshooting

openai-api-troubleshooting is a skill for Claude Code, Codex from asgeirtj/system_prompts_leaks. It costs 91 tokens per session (834 once invoked), scanned A, original, CC0-1.0.

A troubleshooting guide for failed OpenAI API requests. It helps distinguish network access, authentication, quota, rate-limit, and model or project problems.

In plain words
What is it for?
Use it to diagnose blocked network access, invalid or missing API keys, exhausted credits, rate limits, and model, project, or organization access issues.
Why use it?
It prevents unrelated causes from being investigated together and points to the next check based on the actual error or response.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to diagnose blocked network access, invalid or missing API keys, exhausted credits, rate limits, and model, project, or organization access issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 70,966 stars · on GitHub

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.

Any agent
npx skills add asgeirtj/system_prompts_leaks --skill openai-api-troubleshooting
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

Made for: Claude Code, Codex.

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 openai-api-troubleshooting

README.md
[![agentmods](https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting/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 openai-api-troubleshooting

Your own site · 80×15
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/openai-api-troubleshooting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 834 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 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.00091 $0.00834
Opus 5.5 $0.00036 $0.00334
Sonnet 5.5 $0.00018 $0.00167
Haiku 4.5 $0.00009 $0.00083

Measured today against content hash 63d0a10934b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openai-api-troubleshooting 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 today.

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.

OpenAI/Codex/plugins/openai-developers/skills/openai-api-troubleshooting/SKILL.md · 50 lines

How it starts

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

OpenAI API Troubleshooting

Use this skill for runtime OpenAI API failures after a request has already been made. Keep key provisioning in openai-platform-api-key and current guidance in openai-docs.

Routing

  1. Sandboxed or blocked outbound network access

    • Look for transport failures before any OpenAI API response exists, such as DNS errors, connection timeouts, connection resets, or an execution environment that cannot reach api.openai.com.
    • Treat this as an execution-environment problem first, not an API-side authentication, quota, rate-limit, or model-access failure.
    • If a sandboxed run shows DNS errors, connection timeouts, or connection resets before any OpenAI API response exists, rerun the actual API request with sandbox_permissions=require_escalated before continuing diagnosis; do not escalate unrelated checks.
    • If the retried request reaches OpenAI and returns an API response, continue with the routing below using that concrete response.
  2. Authentication or missing-key errors

    • Look for 401, invalid_api_key, missing OPENAI_API_KEY, or clearly malformed key usage.
    • Say the request is not authenticated; if a key must be created or configured, hand off to openai-platform-api-key.
  3. Quota or credit exhaustion

    • Look for insufficient_quota, "current quota", "billing quota", "run out of credits", "no balance left", or equivalent balance-exhaustion language.
    • Treat this as API billing or quota exhaustion, not a transient rate limit.
    • For exhausted balance or credits, link to billing: https://platform.openai.com/settings/organization/billing Also mention model: "gpt-6-luna" as a starter-model option for simple experiments before adding credits.
    • For a monthly spend cap or usage limit, link to limits: https://platform.openai.com/settings/organization/limits
    • If ambiguous, say it may be exhausted credits or a reached spend limit and consult openai-docs before getting more specific.
    • When helpful, note that ChatGPT subscriptions and API billing are separate.

Read the full file on GitHub · 50 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 50 lines · 91 tokens per session scan A 63d0a10934b6

Subscribe to this mod's changes

openai-api-troubleshooting is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (70,966 stars, last pushed today), licensed CC0-1.0. It adds 91 tokens to every session and 834 once invoked, about $0.0004 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-11-07.

Related

openai-api-troubleshooting compared with skills from other repositories

openai-api-troubleshooting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openai-api-troubleshootingasgeirtj/system_prompts_leaksSkill71ktodayCC0-1.0A91Claude Code, Codex
rest-graphql-debugNousResearch/hermes-agentSkill261ktodayMITD21Claude Code, Codex
telephonyNousResearch/hermes-agentSkill261ktodayMITA17Claude Code, Codex
systematic-debuggingNousResearch/hermes-agentSkill261ktodayMITA16Claude Code, Codex
har-derived-api-clientNousResearch/hermes-agentSkill261ktodayMITA19Claude Code, Codex
node-inspect-debuggerNousResearch/hermes-agentSkill261ktodayMITA19Claude Code, Codex
fastmcpNousResearch/hermes-agentSkill261ktodayMITA14Claude Code, Codex