openrouter-debug-bundle

Installation
SKILL.md
Contains Shell Commands

This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.

OpenRouter Debug Bundle

Current State

!node --version 2>/dev/null || echo 'N/A' !python3 --version 2>/dev/null || echo 'N/A'

Overview

When an OpenRouter request fails or returns unexpected results, you need a structured debug bundle: the exact request, response, headers, generation metadata, and environment info. The generation ID (gen-* prefix in response.id) is the key correlator -- it lets you look up exact cost, provider used, and latency via GET /api/v1/generation?id=.

Prerequisites

  • An OpenRouter API key (sk-or-v1-...) exported as OPENROUTER_API_KEY — see the openrouter-install-auth skill for setup
  • curl and jq for the quick-debug flow and the Common Debug Checks
  • Python 3.8+ with the openai and requests packages for the Debug Bundle Generator
  • A failing or suspect request you can reproduce — its gen-* generation ID is what everything else correlates on

Instructions

Installs
1
GitHub Stars
2.8K
First Seen
13 days ago
openrouter-debug-bundle — jeremylongshore/tons-of-skills-marketplace