
Openai Api Troubleshooting
- 5 installs
- 4.9k repo stars
- Updated July 14, 2026
- openai/plugins
openai-api-troubleshooting skill documents Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to the right follow-up.
About
openai-api-troubleshooting skill documents Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to the right follow-up. Covers common runtime failures such as blocked outbound network access, invalid credentials, exhausted API quota or credits, rate limits, and model, project, or. name: openai-api-troubleshooting description: Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to the right follow-up. Covers common runtime failures such as blocked outbound network access, invalid credentials, exhausted API quota or credits, rate limits, and model, project, or organization access issues; delegate key provisioning
- Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to t
- Platform-specific setup patterns for openai-api-troubleshooting.
- Evidence-backed steps from upstream SKILL.md.
- When-to-use criteria for openai-api-troubleshooting versus alternatives.
Openai Api Troubleshooting by the numbers
- 5 all-time installs (skills.sh)
- Ranked #13,035 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
openai-api-troubleshooting capabilities & compatibility
- Capabilities
- openai api troubleshooting quick start · openai api troubleshooting when to use guidance · openai api troubleshooting integration patterns
- Use cases
- orchestration
What openai-api-troubleshooting says it does
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`.
1. **Sandboxed or blocked outbound network access**
npx skills add https://github.com/openai/plugins --skill openai-api-troubleshootingAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 5 |
|---|---|
| repo stars | ★ 4.9k |
| Last updated | July 14, 2026 |
| Repository | openai/plugins ↗ |
How do I use openai-api-troubleshooting correctly?
Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to the right follow-up. Covers common runtime failures such as blocked outbound netw
Who is it for?
Teams implementing openai-api-troubleshooting workflows from the catalog.
Skip if: Skip when requirements clearly match a different specialized stack.
When should I use this skill?
User asks about openai-api-troubleshooting, use when an openai api request fails and codex needs to classify the likely cause, explain.
What you get
Working openai-api-troubleshooting setup with validated configuration and next steps.
Files
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_escalatedbefore 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, missingOPENAI_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/billingAlso mentionmodel: "gpt-5.4-mini"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-docsbefore getting more specific. - When helpful, note that ChatGPT subscriptions and API billing are separate.
4. Rate limits
- Look for
rate_limit_exceeded, requests-per-minute, tokens-per-minute, or retry-after guidance without quota-exhaustion language. - Recommend pacing, batching, exponential backoff, or lower concurrency; do not suggest credits unless the error also indicates quota or balance exhaustion.
5. Model, project, or organization access
- Look for
403,model_not_found, project or organization mismatch, or permission errors. - Say the request likely reached OpenAI but lacks access; inspect the model, project, organization, and key scope before guessing at a fix.
Rules
- Distinguish
insufficient_quotafrom ordinary rate limiting even when both arrive as429. - Distinguish transport failures from API responses; if the request has not reached OpenAI yet, repair the network path before classifying the API failure.
- Prefer the concrete error code and message over broad heuristics.
- Do not create or rotate API keys in this skill.
- Use
openai-docswhen remediation depends on current guidance, links, limits behavior, or wording that may drift. - Keep the user-facing answer short: name the likely failure class, give the next action, and avoid narrating internal routing unless it helps them act.
References
references/evals.md: trigger, routing, and runner-ready eval cases for this skill.
interface:
display_name: "OpenAI API Troubleshooting"
short_description: "Diagnose common OpenAI API errors to unblock development"
OpenAI API Troubleshooting Evals
Use this matrix to test both implicit activation and correct failure routing for openai-api-troubleshooting.
1. Triggering tests
Should activate
- "My OpenAI API request fails with
ENOTFOUND api.openai.comfrom inside a Codex sandbox before any HTTP response comes back. What should I do?" - "The OpenAI API call times out only inside the execution environment, before I receive an OpenAI response."
- "I get
401 invalid_api_keywhen I call the OpenAI API." - "My request returns
429 insufficient_quota." - "My request returns
429 rate_limit_exceeded." - "The API returns
403 model_not_foundfor the model I configured."
Should not activate
- "Create an OpenAI API key for this project." (
openai-platform-api-key) - "What is the latest Responses API syntax?" (
openai-docs) - "Explain the difference between DNS and TCP timeouts." (general networking)
2. Routing tests
T1 - Sandboxed outbound network failure
Prompt
I am testing an app that calls the OpenAI API. Inside Codex, the request fails
before any HTTP response with a DNS error while reaching api.openai.com. What
should I do?Pass criteria
- Identifies that no OpenAI API response exists yet.
- Classifies the problem as blocked outbound networking or an execution environment issue before any API-side diagnosis.
- Recommends retrying the actual API request with escalated network access when sandboxing is the blocker.
- Does not diagnose invalid credentials, quota exhaustion, rate limiting, or model access before the request reaches OpenAI.
T2 - Sandboxed outbound network failure during task execution
Use this case for interactive verification of the escalation path. Run it in an interactive Codex session with -a on-request and sandboxed execution so the agent can experience the transport failure, request escalation, and rerun the same API request outside the sandbox. A noninteractive codex exec run can smoke-check the first half of the flow, but it does not fully validate T2.
Prompt
Create a temporary script that attempts one OpenAI API request, run it, and
diagnose the failure. If the request fails before any OpenAI API response with a
DNS error, timeout, or connection reset from a sandboxed run, continue until you
have taken the correct next diagnostic action.Pass criteria
- Runs an actual API-request command first without escalating unrelated setup or inspection commands.
- If that command fails before any OpenAI API response with a DNS error, timeout, or connection reset from a sandboxed run, reruns the actual API request with
sandbox_permissions=require_escalated. - Does not stop after merely explaining that network access might be blocked.
- After the retried request returns an OpenAI API response, routes based on that concrete response instead of continuing to classify it as a transport failure.
T3 - Authentication failure
Prompt
My OpenAI API request returns 401 invalid_api_key. What should I check next?Pass criteria
- Classifies the issue as authentication or missing-key related.
- Points to key configuration or the
openai-platform-api-keypath when a key must be created or configured. - Does not recommend escalated network access as the primary fix.
T4 - Quota exhaustion
Prompt
My API call returns 429 insufficient_quota and says I have run out of credits.
What does that mean?Pass criteria
- Treats the issue as quota or credit exhaustion rather than ordinary rate limiting.
- Mentions the relevant billing or limits follow-up path.
- Does not recommend pacing, batching, or exponential backoff as the main fix.
T5 - Ordinary rate limiting
Prompt
My API call returns 429 rate_limit_exceeded for requests per minute. What should
I do?Pass criteria
- Treats the issue as rate limiting rather than exhausted credits.
- Recommends pacing, batching, exponential backoff, or lower concurrency.
- Does not suggest adding credits unless the prompt also indicates quota or balance exhaustion.
T6 - Model or project access
Prompt
My request reaches OpenAI but returns 403 model_not_found for the model in my
config. What should I inspect?Pass criteria
- States that the request likely reached OpenAI but lacks access.
- Recommends inspecting model, project, organization, or key scope.
- Does not misclassify the problem as transport failure.
3. Runner-ready cases
Use these rows when creating a sheet-backed skill-eval-runner experiment.
| ID | Hero Prompt | Assertions |
|---|---|---|
| T1 | I am testing an app that calls the OpenAI API. Inside Codex, the request fails before any HTTP response with a DNS error while reaching api.openai.com. What should I do? | should invoke the openai-api-troubleshooting skill; should identify a transport or execution-environment failure before any OpenAI API response; should recommend retrying the actual API request with escalated network access when sandboxing is the blocker; should not classify the issue as invalid credentials, quota exhaustion, rate limiting, or model access |
| T3 | My OpenAI API request returns 401 invalid_api_key. What should I check next? | should invoke the openai-api-troubleshooting skill; should classify the issue as authentication or missing-key related; should route key provisioning or configuration to openai-platform-api-key; should not recommend escalated network access as the primary fix |
| T4 | My API call returns 429 insufficient_quota and says I have run out of credits. What does that mean? | should invoke the openai-api-troubleshooting skill; should distinguish insufficient quota from ordinary rate limiting; should recommend the billing or limits path; should not present pacing or backoff as the main fix |
| T5 | My API call returns 429 rate_limit_exceeded for requests per minute. What should I do? | should invoke the openai-api-troubleshooting skill; should distinguish ordinary rate limiting from quota exhaustion; should recommend pacing, batching, backoff, or lower concurrency; should not suggest credits unless quota exhaustion is also indicated |
| T6 | My request reaches OpenAI but returns 403 model_not_found for the model in my config. What should I inspect? | should invoke the openai-api-troubleshooting skill; should identify model, project, organization, or key-scope access as the likely class; should not misclassify the issue as transport failure |
4. Manual verification
Use T2 outside skill-eval-runner; the runner launches child rollouts without a sandbox boundary, so it is not the right harness for proving the escalation handshake itself.
For a full T2 pass, run the prompt in an interactive Codex session with -a on-request and sandboxed execution, then verify this sequence in the trace:
1. The agent runs an actual API request inside the sandbox. 2. The request fails before any OpenAI API response with a transport symptom such as DNS failure, timeout, or connection reset. 3. The agent reruns the same API request with sandbox_permissions=require_escalated. 4. The retried request reaches OpenAI, and the agent routes from that concrete API response.
A noninteractive codex exec run may still be useful as a smoke check for the first two steps, but do not count it as a full T2 pass if it only explains that escalation would be required.
5. Review guidance
- Compare
with_skill_explicit,with_skill_implicit, andno_skillarms. - Treat
with_skill_implicitas a discoverability test: the exactopenai-api-troubleshootingskill should be invoked naturally. - If T1 fails only in
with_skill_implicit, improve discoverability or trigger language before changing routing guidance. - If T1 fails in both skill arms, strengthen the transport-failure instructions.
- If T2 stops after explanation instead of rerunning the failed API request, tighten the executable escalation guidance before changing the conceptual routing language.
- If T4 and T5 blur together, tighten the distinction between
insufficient_quotaand ordinary rate limiting.
Related skills
FAQ
What does openai-api-troubleshooting do?
openai-api-troubleshooting skill documents Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to the right follow-up.
When should I use openai-api-troubleshooting?
User asks about openai-api-troubleshooting, use when an openai api request fails and codex needs to classify the likely cause, explain.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.