openrouter-audit-logging

Implement audit logging for OpenRouter compliance. Use when meeting regulatory requirements or security audits. Trigger with phrases like 'openrouter audit', 'openrouter compliance log', 'openrouter security log', 'audit trail'.

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

When & Why to Use This Skill

The OpenRouter Audit Logging skill is designed to help organizations maintain strict compliance and security standards when using LLMs. It automates the creation of comprehensive audit trails for OpenRouter API interactions, ensuring that all model usage is documented for regulatory requirements, security audits, and operational transparency. This skill is essential for enterprise-grade AI deployments that require high levels of accountability and data governance.

Use Cases

  • Regulatory Compliance: Automatically generate and maintain detailed logs required for SOC2, HIPAA, or GDPR audits involving AI model data processing.
  • Security Auditing: Monitor API access patterns and trigger security logs to identify potential unauthorized usage or anomalies in LLM interactions.
  • Operational Visibility: Create a centralized audit trail to track model usage across different teams, helping in cost management and internal policy enforcement.
  • Incident Response: Provide a historical record of AI interactions to facilitate forensic analysis and troubleshooting during security incidents or system failures.
nameopenrouter-audit-logging
description|
allowed-toolsRead, Write, Edit, Grep
version1.0.0
licenseMIT
authorJeremy Longshore <jeremy@intentsolutions.io>

Openrouter Audit Logging

Overview

This skill demonstrates implementing comprehensive audit logging for security, compliance, and operational visibility.

Prerequisites

  • OpenRouter integration
  • Audit requirements defined
  • Log storage infrastructure

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