📢 Sponsored: Check out Susan's Sudoku - A free daily sudoku puzzle.

Intermediate

RubyLLM

A delightful Ruby way to work with AI through a unified interface to Anthropic, AWS Bedrock Anthropic, DeepSeek, Ollama, OpenAI, Gemini, OpenRouter, and any OpenAI-compatible API.

Updated May 24, 2025
Price: Free

Description

A delightful Ruby way to work with AI. RubyLLM provides one beautiful, Ruby-like interface to interact with modern AI models. Chat, generate images, create embeddings, and use tools – all with clean, expressive code that feels like Ruby, not like patching together multiple services.

Every AI provider comes with its own client library, its own response format, its own conventions for streaming, and its own way of handling errors. Want to use multiple providers? Prepare to juggle incompatible APIs and bloated dependencies.

RubyLLM fixes all that. One beautiful API for everything. One consistent format. Minimal dependencies — just Faraday and Zeitwerk. Because working with AI should be a joy, not a chore.

Core Capabilities

  • 💬 Unified Chat: Converse with models from OpenAI, Anthropic, Gemini, Bedrock, OpenRouter, DeepSeek, Ollama, or any OpenAI-compatible API using RubyLLM.chat.
  • 👁️ Vision: Analyze images within chats.
  • 🔊 Audio: Transcribe and understand audio content.
  • 📄 PDF Analysis: Extract information and summarize PDF documents.
  • 🖼️ Image Generation: Create images with RubyLLM.paint.
  • 📊 Embeddings: Generate text embeddings for vector search with RubyLLM.embed.
  • 🔧 Tools (Function Calling): Let AI models call your Ruby code using RubyLLM::Tool.
  • 🚂 Rails Integration: Easily persist chats, messages, and tool calls using acts_as_chat and acts_as_message.
  • 🌊 Streaming: Process responses in real-time with idiomatic Ruby blocks.

More "Free" Projects

RailsDevs

The reverse job board for Ruby on Rails developers.

Flappy Bird on Rails

A simple Flappy Bird clone that uses Falcon and Live to implement real-time interactivity.

Writebook

Instantly publish your own books on the web for free, no publisher required.

More "AI" Projects

Patterns of Application Development Using AI

Unlock the power of AI in your applications with this groundbreaking book on AI-driven application architecture.

HostedGPT - A free ChatGPT clone

A free, and open-source ChatCPT alternative built using the latest Ruby on Rails and Hotwire features.

Tidewave

Speed up development with AI assistants that understand your web application, how it runs, and what it delivers

More "Open Source" Projects

joshpigford.com

A completely over-engineered personal website.

DailyLog

A Ruby on Rails web application that uses Turbo Native, iOS, and Android app to track my daily habits like exercise, medication, food, and water.

RubyUI

A UI component library, crafted precisely for Ruby devs who want to stay organised and build modern apps, fast.

Stay updated with the latest Rails projects

Join our newsletter to get updates on new Rails projects and resources.

    We won't send you spam. Unsubscribe at any time.