npx skills add ...
npx skills add openai/plugins --skill openai-api-troubleshooting
npx skills add openai/plugins --skill openai-api-troubleshooting
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 to openai-platform-api-key and current documentation lookups to openai-docs.
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.
Sandboxed or blocked outbound network access
api.openai.com.sandbox_permissions=require_escalated before continuing diagnosis; do not escalate unrelated checks.Authentication or missing-key errors
401, invalid_api_key, missing OPENAI_API_KEY, or clearly malformed key usage.openai-platform-api-key.Quota or credit exhaustion
insufficient_quota, "current quota", "billing quota", "run out of credits", "no balance left", or equivalent balance-exhaustion language.https://platform.openai.com/settings/organization/billing Also mention model: "gpt-5.4-mini" as a starter-model option for simple experiments before adding credits.https://platform.openai.com/settings/organization/limitsopenai-docs before getting more specific.Rate limits
rate_limit_exceeded, requests-per-minute, tokens-per-minute, or retry-after guidance without quota-exhaustion language.Model, project, or organization access
403, model_not_found, project or organization mismatch, or permission errors.insufficient_quota from ordinary rate limiting even when both arrive as 429.openai-docs when remediation depends on current guidance, links, limits behavior, or wording that may drift.references/evals.md: trigger, routing, and runner-ready eval cases for this skill.