openrouter-embeddings

openrouter-embeddings is a skill for Claude Code from QinghongLin/data2story-skill. It costs 22 tokens per session (576 once invoked), scanned A, original, MIT.

A tool that converts text into embedding vectors using an OpenRouter model. An embedding is a list of numbers that represents the meaning of text so software can compare or search texts by similarity.

In plain words
What is it for?
Use it to embed one text string or many records from a JSONL file, where each line is a separate JSON record, and save the results with an added embedding field.
Why use it?
It turns written content into a format that other programs can use for semantic search, matching, clustering, or retrieval.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the data2story-pro plugin — 25 skills shipped together

Good fit Use it to embed one text string or many records from a JSONL file, where each line is a separate JSON record, and save the results with an added embedding field.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qinghonglin/data2story-skill/openrouter-embeddings
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add QinghongLin/data2story-skill --skill openrouter-embeddings
Clone the repo
git clone --depth 1 https://github.com/QinghongLin/data2story-skill

Made for: Claude Code.

Or install data2story-pro, the plugin that ships this one along with the rest of its 25 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openrouter-embeddings

README.md
[![agentmods](https://agentmods.dev/badge/skills/qinghonglin/data2story-skill/openrouter-embeddings/github.svg)](https://agentmods.dev/skills/qinghonglin/data2story-skill/openrouter-embeddings)
Your own site
<a href="https://agentmods.dev/skills/qinghonglin/data2story-skill/openrouter-embeddings"><img src="https://agentmods.dev/badge/skills/qinghonglin/data2story-skill/openrouter-embeddings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openrouter-embeddings

Your own site · 80×15
<a href="https://agentmods.dev/skills/qinghonglin/data2story-skill/openrouter-embeddings"><img src="https://agentmods.dev/badge/skills/qinghonglin/data2story-skill/openrouter-embeddings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 576 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00576
Opus 5.5 $0.00009 $0.00230
Sonnet 5.5 $0.00004 $0.00115
Haiku 4.5 $0.00002 $0.00058

Measured 2mo ago against content hash 2db68fd3909d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openrouter-embeddings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/embed.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/data2story-pro/designer/scripts/openrouter-embeddings/SKILL.md · 71 lines

What it actually says

openrouter-embeddings

Text → embedding vector via OpenRouter. Default model: qwen/qwen3-embedding-8b.

Usage

Resolve TOOL_DIR = the directory containing this SKILL.md. Commands below use TOOL_DIR as a symbolic placeholder; replace it with the resolved, quoted path before running Bash.

Single text

export OPENROUTER_API_KEY=sk-or-v1-...

python3 TOOL_DIR/scripts/embed.py \
  --text "The quick brown fox jumps over the lazy dog" \
  --output vec.json

Batch from JSONL

Input records.jsonl (one JSON per line):

{"id": "row_0", "text": "Every place name in the United States."}
{"id": "row_1", "text": "Nearby stars and potential exoplanets."}

Run:

python3 TOOL_DIR/scripts/embed.py \
  --jsonl records.jsonl \
  --output records_with_embeddings.jsonl \
  --batch-size 32

Output is the same JSONL with an added embedding field per line.

Flags

Flag Default Description
--text — Embed one string (mutually exclusive with --jsonl)
--jsonl — Embed many; each line must have a text field
--output required Output path
--model qwen/qwen3-embedding-8b Any embedding model on OpenRouter
--batch-size 32 Records per API call (jsonl mode)
--dimensions — Optional: truncate to N dims if supported

Endpoint

POST /api/v1/embeddings — OpenAI-compatible schema.

Request:

{ "model": "qwen/qwen3-embedding-8b", "input": ["text1", "text2", ...] }

Response:

{ "data": [ { "embedding": [0.01, -0.02, ...], "index": 0 }, ... ], "model": "...", "usage": {...} }

Notes

  • qwen3-embedding-8b outputs high-dimensional dense vectors suitable for semantic similarity, clustering, RAG.
  • For cheaper batches, consider qwen/qwen3-embedding-4b or other listed embedding models (GET /api/v1/embeddings/models).
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 71 lines · 22 tokens per session scan A 2db68fd3909d

Subscribe to this mod's changes

openrouter-embeddings is a skill published in the GitHub repository QinghongLin/data2story-skill (161 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 576 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

openrouter-embeddings compared with skills from other repositories

openrouter-embeddings next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openrouter-embeddingsQinghongLin/data2story-skillSkill1614mo agoMITA22Claude Code
aidp-knowledge-basesoracle-samples/oracle-aidp-samplesSkill582d agoUPL-1.0A125Claude Code
aidp-toolsoracle-samples/oracle-aidp-samplesSkill582d agoUPL-1.0A107Claude Code
rag-pipelineparam087/agent-ml-skillsSkill135mo agoMITA40Claude Code, Codex
embeddingsruvnet/rufloSkill81kyesterdayMITA62Claude Code
agent-platform-rag-engine-managementgoogle/skillsSkill22kyesterdayApache-2.0A85Claude Code, Codex
llm-app-patternsdavila7/claude-code-templatesSkill33kyesterdayMITA54Claude Code, Codex