Toolverse
All skills

openrouter-openai-compat

by jeremylongshore

Configure OpenRouter as an OpenAI API drop-in replacement. Use when migrating from OpenAI or using OpenAI-compatible libraries. Trigger with phrases like 'openrouter openai', 'openrouter drop-in', 'openrouter compatibility', 'migrate to openrouter'.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Data Science
Views
1

About this skill

Configure OpenRouter as an OpenAI API drop-in replacement. Use when migrating from OpenAI or using OpenAI-compatible libraries. Trigger with phrases like 'openrouter openai', 'openrouter drop-in', 'openrouter compatibility', 'migrate to openrouter'.

How to use

  1. Zainstaluj skill w swoim środowisku Claude Code, Codex lub OpenClaw — skill będzie dostępny po dodaniu do kolekcji umiejętności.

  2. Przygotuj klucz API OpenRouter — utwórz konto na openrouter.ai i wygeneruj token dostępu, który będzie używany zamiast klucza OpenAI.

  3. Wyzwól skill frazą zawierającą słowa kluczowe takie jak "openrouter openai", "openrouter drop-in", "openrouter compatibility" lub "migrate to openrouter" — skill rozpozna intencję migracji.

  4. Zmień dwie linie w kodzie: ustaw base_url na "https://openrouter.ai/api/v1" i api_key na zmienną środowiskową z tokenem OpenRouter. W Pythonie: client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"]). W TypeScript: baseURL: "https://openrouter.ai/api/v1" i apiKey: process.env.OPENROUTER_API_KEY.

  5. Dodaj opcjonalne nagłówki HTTP (HTTP-Referer i X-Title) w polu default_headers lub defaultHeaders — pomaga OpenRouter identyfikować Twoją aplikację.

  6. Zmień nazwę modelu na format z prefiksem dostawcy — np. "openai/gpt-4o" zamiast "gpt-4o" — i uruchom kod. Reszta logiki pozostaje bez zmian, istniejące wywołania SDK będą działać bez modyfikacji.

Related skills

xlsx

by anthropics

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2)

Data Science
40128

data-storytelling

by wshobson

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

Data Science
26105

skill-installer

by openai

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

Data Science
23118

infographic-creation

by antvis

Create beautiful infographics based on the given text content. Use this when users request creating infographics.

Data Science
60199

pdf-processing

by Ming-Kai-LC

Comprehensive PDF processing techniques for handling large files that exceed Claude Code's reading limits, including chunking strategies, text/table extraction, and OCR for scanned documents. Use when working with PDFs larger than 10-15MB or more than 30-50 pages.

Data Science
23134

stock-analyzer

by FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

Data Science
23128