/text-corpus-analysis:setup-openrouterfrom text-corpus-analysis
Configure OpenRouter as the cloud-LLM backend for skills in this plugin. Use when a skill needs cloud LLM access and the user wants pay-as-you-go routing across Claude, GPT, Gemini, DeepSeek, Llama, Qwen without managing multiple provider keys.
Ships in text-corpus-analysis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Single API key, access to ~every hosted LLM.
Key: check env for OPENROUTER_API_KEY. If absent, ask the user to set it (point at 1Password if they use op-vault). Never print the key.
Endpoint: https://openrouter.ai/api/v1 — set as OPENAI_BASE_URL with the OpenAI SDK.
Recommended model aliases (update when prices shift — check openrouter.ai/models):
| Tier | Model id (OpenRouter) | Good for |
|---|---|---|
| Ultra-cheap | deepseek/deepseek-chat, google/gemini-2.0-flash-001 | Bulk classification, labeling |
| Cheap | anthropic/claude-haiku-4-5, openai/gpt-4o-mini | Classification with higher quality, summarization |
| Premium | anthropic/claude-sonnet-4-6, anthropic/claude-opus-4-7, openai/gpt-4o | Taxonomy design, nuanced labeling, residue review |
| Embeddings | openai/text-embedding-3-small (direct OpenAI), or local sentence-transformers | Clustering, similarity |
Prices change — always fetch current pricing before large runs.
Test call: send a 1-token completion to verify routing + key.
Set safe defaults in a shared config:
Enable prompt caching for providers that support it (Anthropic, OpenAI) — huge savings on repeated system prompts in classification/taxonomy work.
choose-approach.max_spend_usd envelope; abort if projected exceed.logs/openrouter-calls.jsonl.OpenRouter forwards to the chosen provider. If the corpus is sensitive, prefer setup-local-llm.
What SKILL.md sets; muted values are Claude Code's defaults
text-corpus-analysis@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin text-corpus-analysis15 skills in this plugin
/categorize-corpusAssign each document in a corpus to one of N user-defined categories. Use when the user has a fixed taxonomy (e.g. 10-20 labels) and wants every note/document routed into exactly one (or top-k) of them. Supports zero-shot classifiers, local LLMs, and cloud LLMs with cost-aware batching./choose-approachDecide whether a corpus analysis task should use classical NLP, a local LLM, or a cloud LLM (OpenRouter) given corpus size, task complexity, and cost tolerance. Use first, before any other skill in this plugin, especially when the corpus is large (thousands+ of documents) or when an LLM pass could get expensive./complementary-pluginsOther plugins' skills for the same job