OpenRouter Chat Model

A model of any provider on OpenRouter, for the AI Agent.

v0.4.0Source

Install

An AI agent with ports for a chat model, memory, and tools. Chat models of OpenAI, Anthropic, Google Gemini, Mistral, Groq, xAI, DeepSeek, OpenRouter, Ollama, Azure OpenAI, Amazon Bedrock, Google Vertex AI, or any OpenAI-compatible endpoint, memory in zerodot or in a data table, and other workflows, MCP servers, and vector stores as tools. Embedding models, text splitters, a data loader, and a Cohere reranker for vector stores.

AI Agent@zerodot/ai-agentInstall
  1. Open System, then Nodes.
  2. Find AI Agent and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

OpenRouter Chat Model (agent.model.openrouter) is an action node in the AI Agent package (@zerodot/ai-agent): A model of any provider on OpenRouter, for the AI Agent.

agent.model.openai, agent.model.anthropic, agent.model.gemini, agent.model.mistral, agent.model.groq, agent.model.xai, agent.model.deepseek, agent.model.bedrock, agent.model.vertex, agent.model.openrouter, agent.model.ollama, agent.model.azure, and agent.model.compatible. Each one has the credential of its provider, the model, Max Tokens, Temperature (not for Anthropic), and a timeout for each call. OpenRouter, Ollama, Azure (the deployment name), and the compatible service take a typed model ID. The others have a list and Custom. The model must support tool calls. The credential types are the same as the ones of @zerodot/ai.

Logins it can use

The chat models and the embedding models use the same credential types as @zerodot/ai: ai.openai, ai.anthropic, ai.gemini, and ai.compatible. A key saved for one package works in the other.

Cohere API key (cohere): apiKey, and an optional baseUrl. The key is secret.

Guides and related hubs