RubyLLM: A Ruby framework for all major AI providers

The 30-Second Skim
- What happened: RubyLLM, a new open-source Ruby framework, unifies more than a dozen AI providers — including OpenAI, Anthropic, Google, DeepSeek, and local Ollama models — behind a single API, with built-in chat, vision, audio, tools, agents, and Rails integration in a minimal-dependency package.
- Key facts & numbers: RubyLLM launches as a unified Ruby framework offering a single interface across 14+ AI providers: OpenAI, xAI, Anthropic, Gemini, VertexAI, Bedrock, DeepSeek, Mistral, Ollama, OpenRouter, Perplexity, GPUStack, and any OpenAI-compatible API The framework ships with only three dependencies — Faraday, Zeitwerk, and Marcel — and ships a registry of 800+ models with automatic capability detection and pricing baked in RubyLLM consolidates chat, vision (images and video), audio transcription, document extraction (PDF, CSV, JSON), image generation, embeddings, and content moderation into one library, alongside a tool-calling DSL and a
RubyLLM::Agentclass for reusable assistants - What happens next: One gem, three dependencies, 14 AI providers, and a Rails generator that scaffolds a working chat UI. Ruby devs finally get the unified AI SDK Python stole from them years ago.
- RubyLLM launches as a unified Ruby framework offering a single interface across 14+ AI providers: OpenAI, xAI, Anthropic, Gemini, VertexAI, Bedrock, DeepSeek, Mistral, Ollama, OpenRouter, Perplexity, GPUStack, and any OpenAI-compatible API
- The framework ships with only three dependencies — Faraday, Zeitwerk, and Marcel — and ships a registry of 800+ models with automatic capability detection and pricing baked in
- RubyLLM consolidates chat, vision (images and video), audio transcription, document extraction (PDF, CSV, JSON), image generation, embeddings, and content moderation into one library, alongside a tool-calling DSL and a
RubyLLM::Agentclass for reusable assistants - The library supports structured JSON output via a schema DSL, streaming responses via Ruby blocks, fiber-based async concurrency, and persistent "extended thinking" reasoning traces from supported models
Why It Matters
Ruby teams building AI features currently stitch together vendor-specific SDKs with mismatched response shapes; RubyLLM replaces that with one gem, three dependencies, and 14+ providers, so swapping from GPT-5-nano to Claude Sonnet 4 or a local Ollama model is a config change rather than a rewrite. The Rails-native persistence layer and bundled chat-UI generator compress the path from bundle install to a production-shaped chatbot into minutes.
Sources Cited
- Hacker News — RubyLLM: A Ruby framework for all major AI providers
Related Coverage
Ask SkimNews