openai-api-troubleshooting
Skill13 starsChanged 5 months agoApache-2.0View on GitHub
Use when an OpenAI API request fails or the user asks what an error means, including blocked access to api.openai.com, 401 invalid_api_key, missing OPENAI_API_KEY, 429 insufficient_quota, 429 rate_limit_exceeded, or 403 model_not_found. Classify the failure, name the next step, route credential setup to openai-platform-api-key, and current guidance to openai-docs.
- Reads credentials
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- Geruyang/skillsedited, first seen Oct 15, 2026
- openai/pluginsedited, first seen Oct 13, 2026
- openai/openai-developers-for-claudeedited, first seen Jun 23, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- openai/plugins★ 8.4k29% same
- openai/openai-developers-for-claude★ 41100% same
- Geruyang/skills★ 226% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- agents-sdkSkill
- build-chatgpt-appSkill
- chatgpt-app-submissionSkill
- openai-docsSkill
- openai-platform-api-keySkill
The file
We split this skill into the rules it gives an agent
12 rules. 1 is common, 4 are distinctive, and 7 are very specific to this project.
1
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this for runtime OpenAI API failures after a request has already been made.
- Very specific: line 13
Treat DNS errors, connection timeouts, connection resets, or inability to reach api.openai.com before any API response as transport …
- Distinctive: line 14
If the failure came from a sandboxed or restricted run, explicitly recommend retrying the actual request with network access enabled or …
- Very specific: line 18
If a key must be created or configured, explicitly hand off to openai-platform-api-key.
- Very specific: line 21
Treat insufficient_quota, "current quota", "billing quota", "run out of credits", or "no balance left" as billing/quota exhaustion, not …
- Very specific: line 24
If ambiguous, say it may be credits or a spend limit and consult openai-docs.
- Very specific: line 31
Treat 403, model_not_found, org/project mismatch, or permission failures as reached-OpenAI-but-not-authorized cases.
- Distinctive: line 32
Check the model, project, organization, and key scope before guessing.
- Common: line 38
Prefer the concrete API error code and message over generic heuristics.
- Distinctive: line 39
Keep user-facing answers short: likely class, reason, next action.
- Distinctive: line 40
Do not rotate or create keys here.
- Very specific: line 41
Use openai-docs when remediation depends on current guidance, links, limits behavior, or wording that may drift.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OpenAI API Troubleshooting
Use this for runtime OpenAI API failures after a request has already been made. Keep key setup in openai-platform-api-key and current guidance in openai-docs.
Routing
- Sandboxed or blocked outbound network access
- Treat DNS errors, connection timeouts, connection resets, or inability to reach
api.openai.combefore any API response as transport problems first. - If the failure came from a sandboxed or restricted run, explicitly recommend retrying the actual request with network access enabled or outside that restriction; only classify API-side auth, quota, rate-limit, or model access after a concrete OpenAI response exists.
- Treat DNS errors, connection timeouts, connection resets, or inability to reach
- Authentication or missing-key errors
- Route
401,invalid_api_key, missingOPENAI_API_KEY, or malformed-key cases to authentication. - If a key must be created or configured, explicitly hand off to
openai-platform-api-key; do not stop at generic "create a fresh key" advice.
- Route
- Quota or credit exhaustion
- Treat
insufficient_quota, "current quota", "billing quota", "run out of credits", or "no balance left" as billing/quota exhaustion, not ordinary throttling. - For exhausted credits, prompt the user to add credits and include Add API credits. Do not purchase credits or change billing settings.
- Link usage caps to
https://platform.openai.com/settings/organization/limits. - If ambiguous, say it may be credits or a spend limit and consult
openai-docs; when useful, note that ChatGPT subscriptions and API billing are separate.
- Treat
- Rate limits
- Route
rate_limit_exceeded, requests-per-minute, tokens-per-minute, or retry-after guidance without quota language to throttling. - Recommend pacing, batching, exponential backoff, or lower concurrency; do not suggest buying credits unless the error also indicates quota exhaustion.
- Route
- Model, project, or organization access
- Treat
403,model_not_found, org/project mismatch, or permission failures as reached-OpenAI-but-not-authorized cases. - Check the model, project, organization, and key scope before guessing.
- Treat
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 API error code and message over generic heuristics.
- Keep user-facing answers short: likely class, reason, next action.
- Do not rotate or create keys here.
- Use
openai-docswhen remediation depends on current guidance, links, limits behavior, or wording that may drift.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

