/nodeshub-seo-skills:connect-openrouterfrom nodeshub-seo-skills
Step-by-step guide to connect an OpenRouter API key so LLM-powered skills (SERP clustering, PAA clustering) can run. Handles setup, verification, and secure key storage.
Ships in nodeshub-seo-skills. 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.
First action: Run the banner:
python3 -c "import sys; sys.path.insert(0,'.claude/skills/nod-nodeshub-api/scripts'); from banner import print_banner; print_banner('Connect OpenRouter')"
Walk the user through connecting OpenRouter so they can use LLM-powered features in skills like nod-serp-clusters and nod-paa-miner. Do it step by step, asking for confirmation before continuing.
Anything the user types into the chat leaves their machine — it's sent to the LLM provider, written to local session logs (~/.claude/projects/<slug>/*.jsonl) in plain text, and may appear in telemetry, backups, or IDE sync. A secret that touches the chat context is a leaked secret. An OpenRouter key with credit attached can be burned by anyone who gets it.
You MUST:
The user saves the key themselves (Step 2). You only read the file afterwards to verify.
Privacy: The API key is stored in .claude/settings.local.json (gitignored).
Run:
python3 -c "
import sys, os
sys.path.insert(0, '.claude/skills/nod-nodeshub-api/scripts')
from openrouter_client import _load_key_from_settings
key, source = _load_key_from_settings()
if key:
print(f'OpenRouter key found in {source}')
print(f'Key: {key[:12]}...')
print('Already connected.')
else:
print('No OpenRouter key found.')
"
Tell the user — do not ask them to paste anything here:
sk-or-v1-...).Pricing: OpenRouter is pay-per-use. Most skills use google/gemini-2.5-flash-lite which costs fractions of a cent per call. Add $5 credit to start — it lasts a long time for cluster naming.
Then say: "Copy the key to your clipboard. Do not paste it into this chat. Go to Step 2."
Give the user these two options. They run one themselves — you never see the key.
Option A — one-line terminal command (recommended):
Tell the user to open their terminal in the repo root, prepend a space (so it's skipped by shell history if HISTCONTROL=ignorespace/ignoreboth is set), paste their key in place of <paste-your-key-here>, and run:
python3 .claude/skills/nod-nodeshub-api/scripts/save_openrouter_key.py "<paste-your-key-here>"
This saves the key to .claude/settings.local.json under env.OPENROUTER_API_KEY and runs a quick verification call.
If their shell doesn't respect ignorespace, they can run history -d <n> afterwards to wipe that line.
Option B — edit the file manually:
Tell the user to open .claude/settings.local.json in their editor and add/merge:
{
"env": {
"OPENROUTER_API_KEY": "<paste-your-key-here>"
}
}
Reply "done" (not the key) when saved.
Expected output:
Saved OpenRouter API key to .claude/settings.local.json
Test response: OK
Setup OK.
If verification fails: Check that the key is correct and has credit. The test call uses ~1 token.
Ask: "Did you see 'Setup OK'? If you see any error, paste it here."
Suggest a quick test:
# Quick test: cluster 3 keywords (costs ~1 NodesHub token + tiny OpenRouter cost)
python3 .claude/skills/nod-serp-clusters/scripts/cluster.py \
--keywords "seo tools,keyword research,serp analysis" \
--output /tmp/test-cluster \
--levels 1
Or if they don't have NodesHub tokens, test OpenRouter directly:
python3 -c "
import sys
sys.path.insert(0, '.claude/skills/nod-nodeshub-api/scripts')
from openrouter_client import OpenRouterClient
client = OpenRouterClient()
print(client.chat('Name this group of topics in 2-3 words: SEO, keywords, SERP analysis'))
"
python3 .claude/skills/nod-nodeshub-api/scripts/save_openrouter_key.py "sk-or-v1-..." — saves to gitignored .claude/settings.local.json.nod-serp-clusters (cluster naming), nod-paa-miner (question clustering), semantic clustering.google/gemini-2.5-flash-lite — fast and cheap.| Skill | Required? | What for |
|---|---|---|
nod-serp-clusters | Yes | LLM names each cluster |
nod-paa-miner --cluster | Optional | Groups questions by topic |
| Semantic clustering | Yes | Embeddings + cluster naming |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (senuto/nodeshub-seo-skills) — no native marketplace selected
npx claudepluginhub p/senuto-nodeshub-seo-skills19 skills in this plugin
/ai-scoreDetect AI-generated content using Genuino API. Analyzes text and returns
AI probability score, writing style classification, and optional humanization
guidelines. Supports text input, files, and URLs (via Jina Reader).
Use when user says "AI score," "AI detection," "check if AI," "is this AI content,"
"genuino check," "AI probability," "humanize text," or "content authenticity."
Requires GENUINO_API_KEY.
/connect-ga4Step-by-step guide to connect Google Analytics 4 so you can use fetch-ga4.js
and GA4 data (pageviews, sessions, events, traffic sources). Use when user says
"connect GA4," "set up Google Analytics," "GA4 setup," "connect Analytics,"
or "how to connect to GA4." No API cost — setup only.
/connect-genuinoOther plugins' skills for the same job