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 $0.00011 $0.00288
Sonnet 5 $0.00004 $0.00115
Haiku 4.5 $0.00002 $0.00058

Measured 12d ago against content hash 2db68fd3909d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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. 12d 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 (155 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 576 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

aidp-knowledge-bases

Build and manage AIDP Knowledge Bases for RAG — create a KB over catalog data, pick an embedding model + chunking, build an HNSW/IVF vector index, add data sources (volume/table), run ingestion jobs, and manage KB permissions. Use when the user wants RAG, a knowledge base, document/vector search, embeddings, semantic…

oracle-samples/oracle-aidp-samples · 125 tokens

aidp-tools

Create and manage standalone reusable AIDP agent Tools — SQL, Prompt, RAG, HTTP, Custom, and MCP tools that can be shared across agent flows by key. Use when the user wants to define a reusable tool (not inline in one flow), list/create/update/delete a tool, test a tool, or build a tool an agent/agent-flow node will…

oracle-samples/oracle-aidp-samples · 107 tokens

rag-pipeline

Use when building retrieval-augmented generation. Covers chunking strategy, embedding choice, vector stores, hybrid + reranking retrieval, prompt assembly, and evaluating retrieval and answer quality.

param087/agent-ml-skills · 40 tokens

embeddings

Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.

ruvnet/ruflo · 62 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

llm-app-patterns

Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

davila7/claude-code-templates · 54 tokens