npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-openrouter-official

v1.0.22

Published

The Ultimate OpenRouter Toolkit for n8n. Includes a unified Multimodal Action Node, Embeddings, and Advanced Reranker to supercharge your RAG workflows.

Readme

n8n-nodes-openrouter-official

The Ultimate OpenRouter Toolkit for n8n. This package solves some of the most critical shortcomings in n8n's native AI capabilities, bringing unprecedented flexibility, power, and cost-efficiency to your workflows.

Developed and maintained by Jay Nguyen (Nguyễn Thiệu Toàn).

🛡️ Verified n8n Creator | 💼 CEO/Founder of GenStaff

Connect with me:
LinkedIn Facebook Website Email


🌟 Why is this package a game-changer for n8n?

While n8n provides a solid foundation for AI Agent workflows, it has historical limitations when it comes to model variety, embedding flexibility, and advanced RAG (Retrieval-Augmented Generation) strategies like Reranking. This package fixes all of that.

By integrating OpenRouter deeply into n8n's standard operations and Advanced AI (LangChain) engine, you unlock three extremely powerful nodes:

1. The Core OpenRouter Node

n8n natively requires you to set up separate credentials, billing, and nodes for OpenAI, Anthropic, Google, etc. Furthermore, handling multimodal inputs (like PDFs, audio, video) can be notoriously clunky.

  • The Solution: A unified node that connects to hundreds of models via a single API key.
  • Unmatched Multimodal Power: We've designed this node to easily analyze ANY content—from plain text to complex documents (PDFs), images, audio, and video (provided the selected model, like Gemini or Claude, supports it).
  • Beyond Text: Support for Image Generation, Video Generation, and Audio processing workflows all within one unified interface.

2. EmbeddingsOpenRouter Node

n8n's native embedding options are highly restricted (mostly defaulting to OpenAI or a few others).

  • The Solution: A massive step forward for RAG setups. This node allows you to use OpenRouter's vast ecosystem to generate vector embeddings. It gives you the freedom to choose the most cost-effective or domain-specific embedding models available on OpenRouter without being locked into OpenAI's ecosystem.

3. RerankerOpenRouter Node (Document Compressor)

Retrieval alone often yields irrelevant context, leading to hallucinations. Native n8n severely lacks accessible, high-quality Rerankers (often forcing you to use Cohere).

  • The Solution: This node brings OpenRouter into the Document Compressor layer of n8n. You can now use any advanced reasoning LLM on OpenRouter to rerank, score, and compress your retrieved documents before they reach your final Agent. This drastically increases RAG accuracy and reduces token costs for the final generation step.

🚀 Installation

Go to Settings > Community Nodes in your n8n instance and install:

n8n-nodes-openrouter-official

⚙️ Credentials Configuration

  1. Get your API Key from the OpenRouter Console.
  2. In n8n, set up a new OpenRouter API credential:
    • API Key: Enter your OpenRouter API key.
    • Site URL (Optional): Your application's URL for OpenRouter rankings.
    • Site Name (Optional): Your application's name.

(Bonus: You can use the built-in Test Connection button in n8n to instantly verify your API key!)

📚 Included Nodes

| Node | Type | Description | |------|------|-------------| | OpenRouter | Standard Action Node | unified gateway to process text, analyze multimodal documents/PDFs/media, and generate images/video. | | OpenRouter Embeddings | Advanced AI (LangChain) | Generate vector embeddings using any supported OpenRouter model for your Vector Stores. | | OpenRouter Reranker | Advanced AI (LangChain) | Rerank and compress documents dynamically in RAG workflows to boost context accuracy. |

License

MIT