openrouter-debug-bundle

Set up comprehensive logging and debugging for OpenRouter. Use when investigating issues or monitoring requests. Trigger with phrases like 'openrouter debug', 'openrouter logging', 'openrouter trace', 'monitor openrouter'.

⭐878stars🔀101forks📁View on GitHub🕐Updated Jan 4, 2026⬇️1downloads

When & Why to Use This Skill

The OpenRouter Debug Bundle is a specialized Claude skill designed to streamline the implementation of comprehensive logging, timing metrics, and debugging utilities for OpenRouter API integrations. It provides developers with the necessary tools to monitor request/response cycles, trace API connectivity issues, and optimize the performance of LLM-powered applications through enhanced observability.

Use Cases

  • API Troubleshooting: Quickly diagnose and resolve failed requests, authentication errors, or unexpected responses from the OpenRouter gateway.
  • Performance Monitoring: Track and analyze timing metrics and latency across different LLM models to ensure optimal user experience.
  • Integration Verification: Use automated checks to confirm API connectivity and validate configuration settings during the initial setup or environment migration.
  • Audit & Compliance: Implement persistent logging of request and response data for auditing agent behavior and monitoring token usage patterns.
nameopenrouter-debug-bundle
description|
allowed-toolsRead, Write, Edit, Grep
version1.0.0
licenseMIT
authorJeremy Longshore <jeremy@intentsolutions.io>

Openrouter Debug Bundle

Overview

This skill shows how to implement request/response logging, timing metrics, and debugging utilities for OpenRouter integrations.

Prerequisites

  • OpenRouter integration
  • Logging infrastructure (optional but recommended)

Instructions

Follow these steps to implement this skill:

  1. Verify Prerequisites: Ensure all prerequisites listed above are met
  2. Review the Implementation: Study the code examples and patterns below
  3. Adapt to Your Environment: Modify configuration values for your setup
  4. Test the Integration: Run the verification steps to confirm functionality
  5. Monitor in Production: Set up appropriate logging and monitoring

Output

Successful execution produces:

  • Working OpenRouter integration
  • Verified API connectivity
  • Example responses demonstrating functionality

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources