Connect Openrouter logo

Connect Openrouter

Organization
Senuto
connect-openrouter

Step-by-step guide to connect OpenRouter API so you can use LLM-powered skills (SERP clustering with cluster naming, PAA question clustering, semantic clustering). Use when user says "connect OpenRouter," "set up OpenRouter," "OpenRouter setup," "OpenRouter API key," or "how to connect to OpenRouter." No API cost — setup only.

Overview

PublisherSenuto
Repositorynodeshub-seo-skills
Skill nameconnect-openrouter
Stars
41
Forks
7
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Senuto on GitHub. Read the source before you install it.

Installation

Install the Connect Openrouter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/connect-openrouter
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Senuto/nodeshub-seo-skills.git /tmp/nodeshub-seo-skills
mkdir -p .claude/skills
cp -r /tmp/nodeshub-seo-skills/.claude/skills/connect-openrouter .claude/skills/connect-openrouter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Connect Openrouter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Connect Openrouter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Connect Openrouter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Connect with OpenRouter

First action: Run the banner:

bash
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.

⛔ CRITICAL SECURITY RULE — NEVER ASK THE USER TO PASTE THE API KEY INTO CHAT

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:

  • Never write "paste it here," "paste the key," "send me the key," or similar.
  • Never offer to save a key the user pastes.
  • If the user pastes a key anyway, stop, refuse to use it, tell them the key is now compromised and they should revoke it at openrouter.ai/keys immediately, then re-run setup with a new key saved locally.

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).


Step 0: Check if OpenRouter is already connected

Run:

bash
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.')
"
  • If key found: Ask the user: "OpenRouter is already connected. Do you want to change the key or are you done?"
  • If no key: Continue with Step 1.

Step 1: Get your API key

Tell the user — do not ask them to paste anything here:

  1. Open openrouter.ai/keys.
  2. Sign in (Google, GitHub, or email).
  3. Click "Create Key".
  4. Copy the key (starts with 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."


Step 2: The user saves the key locally (NOT via chat)

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:

bash
 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:

json
{
  "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."


Step 3: Verify with a real skill

Suggest a quick test:

bash
# 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:

bash
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'))
"

Summary

  • Get key: openrouter.ai/keys → Create Key → copy.
  • Save: python3 .claude/skills/nod-nodeshub-api/scripts/save_openrouter_key.py "sk-or-v1-..." — saves to gitignored .claude/settings.local.json.
  • Used by: nod-serp-clusters (cluster naming), nod-paa-miner (question clustering), semantic clustering.
  • Default model: google/gemini-2.5-flash-lite — fast and cheap.

Which skills need OpenRouter?

SkillRequired?What for
nod-serp-clustersYesLLM names each cluster
nod-paa-miner --clusterOptionalGroups questions by topic
Semantic clusteringYesEmbeddings + cluster naming

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Connect Openrouter AI skill do?

Step-by-step guide to connect OpenRouter API so you can use LLM-powered skills (SERP clustering with cluster naming, PAA question clustering, semantic clustering). Use when user says "connect OpenRouter," "set up OpenRouter," "OpenRouter setup," "OpenRouter API key," or "how to connect to OpenRouter." No API cost — setup only.

Why use Connect Openrouter on TypingMind?

Because you install it once and use it with any model. Connect Openrouter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Connect Openrouter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Senuto/nodeshub-seo-skills/tree/main/.claude/skills/connect-openrouter. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Connect Openrouter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Connect Openrouter?

As many as you like. As long as a model supports skills, you can use Connect Openrouter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Connect Openrouter AI skill free?

It is published on GitHub by Senuto. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇