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-custom-litellm

v0.4.2

Published

LiteLLM chat models, embeddings, credentials, and tool-calling AI agent nodes for n8n

Downloads

1,162

Readme

n8n LiteLLM custom nodes

Community nodes for using a LiteLLM proxy with n8n AI workflows.

Nodes

  • LiteLLM Chat Model — supplies a LangChain chat model to any compatible n8n AI chain or agent. Models can be selected from the proxy's /models endpoint or entered directly by ID.
  • LiteLLM Embeddings — supplies an embeddings model to vector-store nodes, with the same list and direct-ID selector.
  • LiteLLM Agent — tool-calling agent with primary and fallback AI Model, Tool, Memory, and Output Parser connectors. Its output is compatible with n8n's AI Agent ({ "output": "..." }).
  • LiteLLM API credential — stores the proxy URL, key, organization, and LiteLLM team.

Install

Build and install the package in the same environment as self-hosted n8n:

npm install
npm run build
npm pack
npm install ./n8n-nodes-custom-litellm-0.4.2.tgz

Restart n8n after installation. Community nodes are supported on self-hosted n8n.

Configure

  1. Create a Lite LLM credential.
  2. Enter the proxy URL including /v1, for example http://litellm:4000/v1.
  3. Enter a LiteLLM master key or virtual key.
  4. Add LiteLLM Chat Model, then select a model returned by the proxy or choose By ID and enter a model alias directly.
  5. Connect it to LiteLLM Agent or a built-in n8n AI chain. Connect any built-in n8n Tool and Memory sub-nodes to the agent.

The agent uses OpenAI-compatible tool calls exposed by LiteLLM. The selected model must support tool/function calling when tools are connected.

The Embeddings node removes the OpenAI SDK's automatic encoding_format request parameter so providers such as Gemini embeddings work without enabling LiteLLM's global drop_params setting.

Fallback model

Enable Fallback Model on the LiteLLM Agent and connect a second Chat Model to the new Fallback Model input. The agent always tries the primary model first and only invokes the fallback when the primary model call fails. When tools are connected, both models must support tool/function calling.

Reasoning and thinking

The Chat Model's options include:

  • Reasoning Effort — sends LiteLLM's reasoning_effort parameter. Available values include none, minimal, low, medium, high, extra high, and maximum.
  • Thinking Mode — sends a thinking object with enabled or disabled state.
  • Thinking Budget Tokens — controls thinking.budget_tokens when thinking is enabled.

Leave these options at Not Set for models that do not support them. Provider support and accepted effort values vary by model. Some Anthropic thinking models require a temperature of 1.

If a reverse proxy returns 403 Your request was blocked, edit the User Agent field in the Lite LLM credential. The node overrides the OpenAI SDK user agent by default because some Cloudflare/WAF configurations block SDK-identifying request headers.

Compatibility notes

  • Requires Node.js 20.15 or newer.
  • Designed for current n8n 2.x and the n8n AI cluster-node connection API.
  • The agent supports model, tool, memory, and output-parser connectors.
  • LiteLLM-specific request fields can be supplied using Extra Body on the chat model.

License

MIT