Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

openrouter-debug-bundle

Skill by jeremylongshore

Creates debug bundles for troubleshooting OpenRouter API failures, unexpected responses, and latency problems. Built for developers diagnosing issues with their OpenRouter requests.

  • Score 76
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install openrouter-debug-bundle

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-debug-bundle ~/.claude/skills/openrouter-debug-bundle

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-debug-bundle in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The openrouter-debug-bundle skill helps developers collect the data needed to troubleshoot OpenRouter API failures. It captures the exact request, response, headers, generation metadata, and environment info. The generation ID in response.id is the main key, and it can be used with GET /api/v1/generation to look up cost, token counts, provider, and latency.

The skill includes a curl quick-debug flow, a Python generator that returns a DebugBundle and saves it as JSON, and common checks for API key validity, model existence, and OpenRouter status. It also includes an error handling table and guidance on redacting API keys before sharing bundles. It is meant for developers diagnosing failed requests, unexpected results, or slow responses.

Written from the project's SKILL.md and checked against it.

What it can do

  • Quick debug with curlCaptures a verbose transcript of request headers, response headers, and body.
  • Generation metadata lookupQueries the generation endpoint for cost, token counts, generation time, and provider.
  • Python debug bundle generatorRuns debug_request() and saves a DebugBundle with request, response, error, and latency data.
  • Common debug checksVerifies the API key, confirms a model exists, and checks the OpenRouter status page.
  • Error handling guideMaps symptoms such as 502/503, model_not_found, and slow TTFT to likely causes and fixes.

What you need

  • OpenRouter API key exported as OPENROUTER_API_KEY
  • curl and jq
  • Python 3.8+ with the openai and requests packages

Try asking

  • Debug my failing OpenRouter request and build a debug bundle
  • Look up cost and provider for generation ID gen-abc123
  • Check whether anthropic/claude-3.5-sonnet exists on OpenRouter

Good to know

  • Generation metadata may be missing if fetched too soon; the source suggests waiting 1-2 seconds.
  • Metadata lookup should use the same API key that made the request.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/openrouter-debug-bundle/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGrepBash(curl:*)Bash(jq:*)Bash(python3:*)Bash(node:*)

Alternatives to openrouter-debug-bundle

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

openrouter-debug-bundle: common questions

What is the generation ID used for?

It is the key correlator for looking up exact cost, provider used, and latency through GET /api/v1/generation. The source says to include it in any OpenRouter support request.

Can I share a debug bundle as is?

No. The source says to redact API keys first, replacing sk-or-v1-... with sk-or-v1-[REDACTED].

What does the Python generator save?

It saves debug_bundle.json with the timestamp, generation ID, request and response data, error details, latency, generation metadata, and environment info.

How do I install openrouter-debug-bundle?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is openrouter-debug-bundle free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is openrouter-debug-bundle safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to openrouter-debug-bundle?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

openrouter-debug-bundle Install

Add to stack

Loading.