EveryDev.ai
Subscribe
Home
Tools

3,484+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2189
  • Coding1574
  • Infrastructure698
  • Marketing534
  • Projects498
  • Research456
  • Design416
  • Analytics389
  • Testing296
  • MCP290
  • Security286
  • Data262
  • Integration197
  • Prompts189
  • Communication183
  • Extensions173
  • Learning170
  • Voice151
  • Commerce135
  • DevOps123
  • Web86
  • Finance26
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. Universal LLM Client
    Universal LLM Client icon

    Universal LLM Client

    AI Development Libraries

    A provider-agnostic TypeScript/JavaScript LLM client with transparent failover across OpenAI, Anthropic, Google Gemini, Ollama, and any OpenAI-compatible endpoint.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Free to use, modify, and distribute under the MIT License.

    Engagement

    Available On

    API
    SDK
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    AI Development LibrariesLLM OrchestrationMCP Integration

    Alternatives

    llm-exeTanStack AIagent-proxy-kit
    Developer
    Igor Lins e SilvaIgor Lins e Silva builds open-source developer tooling for A…

    Listed Aug 2026

    About Universal LLM Client

    Universal LLM Client is an open-source TypeScript/JavaScript library that gives developers a single AIModel class to interact with any major LLM provider — OpenAI, Anthropic, Google Gemini, Ollama, Vertex AI, LlamaCpp, and any OpenAI-compatible endpoint. It is MIT-licensed, zero-dependency at its core, and designed to run on Node.js 22+, Bun, Deno, and modern browsers. The project is maintained by Igor Lins e Silva and published on npm as universal-llm-client.

    What It Is

    Universal LLM Client is a provider-agnostic reasoning and chat API for JavaScript/TypeScript. Rather than writing separate integration code for each LLM backend, developers configure a priority-ordered list of providers and call a single unified API. The library handles failover, retries, health tracking, streaming, structured output, tool calling, and observability behind the scenes — the calling code never needs to know which backend actually served the response.

    Transparent Failover Architecture

    The core differentiator is the built-in Router/failover engine. Providers are assigned priorities; if the highest-priority provider returns an error or times out, the library retries (configurable, default 2 retries) and then seamlessly moves to the next provider in the chain. Health tracking and cooldowns prevent repeated calls to a known-bad backend. The getProviderStatus() method exposes live health state at any time.

    • Supports Google AI Studio → OpenRouter → local Ollama chains out of the box
    • Configurable retries and timeout per model instance
    • Failover events are captured by the built-in Auditor for observability

    Unified Reasoning and Streaming

    The library exposes a single thinking flag — true/false or a level string ('minimal' | 'low' | 'medium' | 'high') — that maps to each provider's native reasoning control: Gemini thinkingLevel/thinkingBudget, OpenAI reasoning_effort, Anthropic budget_tokens, Ollama think, and vLLM enable_thinking. Chain-of-thought is surfaced as response.reasoning and as streaming thinking events. Streaming uses async generators with pluggable decoder strategies — standard chat, interleaved reasoning (parses <think> tags), and passthrough — selectable per call.

    Tool Calling, MCP, and Structured Output

    Tools are registered once via registerTool() or a fluent ToolBuilder and work across all providers. The chatWithTools() method runs an autonomous multi-turn execution loop and returns a full tool execution trace. MCP (Model Context Protocol) servers are bridged via MCPToolBridge, supporting both stdio and HTTP transports with automatic tool discovery — no glue code required. Structured output uses Zod 4 schemas: generateStructured() returns fully typed, validated JSON; tryParseStructured() is a non-throwing variant; and generateStructuredStream() yields partial validated objects as the response streams in.

    Agent Framework Design

    The library is explicitly designed as a transport layer for agent frameworks. Key design choices include:

    • Stateless — no conversation history stored; the framework manages memory
    • Composable — separate instances for chat, embeddings, and vision
    • Observable — every request, response, retry, failover, and tool call is a structured, flushable AuditEvent via the Auditor interface (built-in ConsoleAuditor and BufferedAuditor for custom sinks like OpenTelemetry)
    • Context budget — getModelInfo() exposes contextLength for budget management
    • Embeddings — single and batch embedding generation via embed() and embedArray()

    Update: v4.6.0 — Pool-Aware Routing and Failover Hardening

    The latest release, v4.6.0 (published July 22, 2026), is titled "pool-aware routing, StreamLoopGuard & failover hardening." The repository was created in July 2025 and has seen active development through mid-2026, with the last push on August 3, 2026. The project is in active development with a versioned release cadence on npm.

    Universal LLM Client - 1

    Community Discussions

    Be the first to start a conversation about Universal LLM Client

    Share your experience with Universal LLM Client, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Free to use, modify, and distribute under the MIT License.

    • Full source code access
    • MIT License
    • All features included
    • npm package: universal-llm-client

    Capabilities

    Key Features

    • Transparent provider failover with retries and health tracking
    • Unified reasoning API (thinking flag mapped to each backend)
    • Streaming via async generators with pluggable decoder strategies
    • Autonomous tool calling with multi-turn execution loop
    • MCP server integration via MCPToolBridge (stdio and HTTP)
    • Structured output with Zod 4 schemas and streaming partial objects
    • Gemini Deep Research support (background interactions with polling)
    • Built-in observability via Auditor interface (ConsoleAuditor, BufferedAuditor)
    • Single and batch embedding generation
    • Multimodal/vision support
    • Zero core dependencies
    • Runs on Node.js 22+, Bun, Deno, and modern browsers
    • Provider health status API
    • ToolBuilder fluent API and ToolExecutor wrappers
    • Tree-shakeable structured output module

    Integrations

    OpenAI
    Anthropic Claude
    Google Gemini (AI Studio)
    Google Vertex AI
    Ollama
    LlamaCpp
    OpenRouter
    xAI/Grok
    Mistral
    DeepSeek
    Groq
    Together AI
    Fireworks AI
    Perplexity Sonar
    vLLM
    LM Studio
    Azure OpenAI
    Model Context Protocol (MCP)
    OpenTelemetry
    Zod
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Universal LLM Client and help others make informed decisions.

    Developer

    Igor Lins e Silva

    Igor Lins e Silva builds open-source developer tooling for AI applications. The Universal LLM Client project provides a provider-agnostic TypeScript library for interacting with LLMs across multiple backends with transparent failover. The project is MIT-licensed and published on npm, targeting both individual developers and agent framework authors.

    Read more about Igor Lins e Silva
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    llm-exe icon

    llm-exe

    A TypeScript library for building type-safe LLM agents and AI functions with modular, composable components that work with any LLM provider.

    TanStack AI icon

    TanStack AI

    An open-source, TypeScript-first AI SDK that provides a unified interface across multiple AI providers to avoid vendor lock-in.

    agent-proxy-kit icon

    agent-proxy-kit

    A lightweight TypeScript library that normalizes long-running agent and LLM streams into stable, provider-agnostic progress events for UI rendering.

    Browse all tools

    Related Topics

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    280 tools

    LLM Orchestration

    Platforms and frameworks for designing, managing, and deploying complex LLM workflows with visual interfaces, allowing for the coordination of multiple AI models and services.

    200 tools

    MCP Integration

    Tools for integrating MCP with existing AI systems and applications.

    84 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions