Skip to content
Back to skills

1993 Openrouter Openai Compat 1148b310

ASecurity

> Use OpenRouter with existing OpenAI SDK code

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentpythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1993-openrouter-openai-compat_1148b310 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1993 Openrouter Openai Compat 1148b310?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1993 Openrouter Openai Compat 1148b310
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1993-openrouter-openai-compat-1148b310/badge)](https://www.skillsdirectory.com/skills/tools-only-1993-openrouter-openai-compat-1148b310)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# openrouter-openai-compat

> Use OpenRouter with existing OpenAI SDK code

## Directory Structure

```
openrouter-openai-compat/
├── 📄 SKILL.md                    # Main skill definition with YAML frontmatter
└── 📂 examples/                   # Optional examples directory
    ├── 🐍 migration_guide.py      # OpenAI to OpenRouter migration
    └── 🐍 drop_in_replacement.py  # Drop-in replacement patterns
```

## File Descriptions

| File | Type | Purpose |
|------|------|---------|
| `SKILL.md` | 📄 Markdown | Skill definition with OpenAI compatibility guide |
| `migration_guide.py` | 🐍 Python | Step-by-step migration from OpenAI |
| `drop_in_replacement.py` | 🐍 Python | Minimal changes for OpenRouter |

## Summary

**Category:** onboarding
**Target Audience:** Developer migrating from OpenAI
**Trigger Phrases:** `openrouter openai`, `openai to openrouter`, `openrouter compatible`, `migrate to openrouter`

### What This Skill Does

This skill teaches using OpenRouter with existing OpenAI SDK code. It covers:

- OpenAI SDK base_url configuration
- Model name mapping (openai/gpt-4 format)
- API compatibility differences
- Feature parity and limitations
- Drop-in replacement patterns
- Migration best practices

### Technical Success Criteria

- Seamless integration with minimal code changes
- Existing OpenAI code working with OpenRouter
- Model names properly mapped

### Business Success Criteria

- Faster migration with code reuse
- Access to 100+ models through familiar SDK
- Reduced vendor lock-in

## Related Skills

- `openrouter-sdk-patterns` - Production client patterns
- `openrouter-model-catalog` - Available models beyond OpenAI
- `openrouter-multi-provider` - Using multiple providers

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.