llmgateway

n8n community node: LLM Gateway Chat Model with custom credential for OpenAI-compatible gateways

Package Information

Downloads: 90 weekly / 90 monthly
Latest Version: 0.1.0

Documentation

n8n-nodes-llmgateway

n8n community package: LLM Gateway Chat Model node with custom LLM Gateway credential for any OpenAI-compatible gateway (e.g. /v1/chat/completions, /v1/models).

  • Node: Shows in AI Agent → Chat Model dropdown (n8n v1.101+).
  • Credential: API Key + Gateway Base URL; uses Bearer auth like OpenAI.

Installation in n8n

  1. In n8n: SettingsCommunity nodesInstall a community node.
  2. Enter: n8n-nodes-llmgateway (or your npm package name).
  3. Install. Then add LLM Gateway credential and use LLM Gateway Chat Model in AI Agent.

Artifactory (company private registry): See ARTIFACTORY.md for publish and n8n install steps.

What to do next

  1. Point npm at Artifactory – The repo has an .npmrc that sets the registry to Wayfair’s internal npm (artifactory.service.bo1.csnzoo.com/artifactory/api/npm/npm). No change needed unless your team uses a different registry.
  2. Authenticate and publish – From the repo root run npm login --registry=https://artifactory.service.bo1.csnzoo.com/artifactory/api/npm/npm (use your Artifactory/SSO credentials), then npm publish. The package will be pushed to Artifactory. See ARTIFACTORY.md § 2.1.
  3. Use in n8n – Set N8N_COMMUNITY_PACKAGES_REGISTRY to the same Artifactory npm URL; add .npmrc auth in the n8n container if required. Then in n8n go to Settings → Community nodes and install n8n-nodes-llmgateway. See ARTIFACTORY.md § 3.

Package structure (for npm / repo)

n8n-nodes-llmgateway/
├── package.json
├── README.md
├── credentials/
│   ├── LlmGatewayApi.credentials.js
│   └── LlmGatewayApi.png          ← add icon (optional)
└── nodes/
    └── LlmGatewayChatModel/
        ├── LlmGatewayChatModel.node.js
        └── LlmGatewayChatModel.png   ← add icon (optional)

Icons (optional)

  • credentials/LlmGatewayApi.png – credential icon (e.g. 48×48 or 128×128).
  • nodes/LlmGatewayChatModel/LlmGatewayChatModel.png – node icon.

If missing, n8n uses default icons.

Requirements

  • n8n v1.101+ (uses @langchain/openai and ai_languageModel).
  • Gateway: OpenAI-compatible (e.g. GET /v1/models, POST /v1/chat/completions).

License

MIT

Discussion