πŸ“’ 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

Supercharts

Add charts to a Bullet Train app, the same way you super-scaffold a resource. Because you’re too busy to learn the chart part.

Fullstack LMS

A course were you build a full-stack learning management system.

Mastodon

Your self-hosted, globally interconnected microblogging community

More "AI" Projects

Tidewave

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

HostedGPT - A free ChatGPT clone

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

Patterns of Application Development Using AI

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

More "Open Source" Projects

StarryWeather

A modern weather application built with Ruby on Rails and iOS, featuring real-time weather data, beautiful UI animations, and seamless cross-platform integration.

Maybe

The OS for your personal finances.

HostedGPT - A free ChatGPT clone

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

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.