ruby_llm

(★ 4,309)

One delightful Ruby framework for every major AI provider. Build AI agents, chatbots, RAG apps, and multimodal workflows in beautiful, expressive code.

File Explorer

  • .env.example
  • .flayignore
  • .gitignore
  • .gitleaks.toml
  • .gitleaksignore
  • .overcommit.yml
  • .rdoc_options
  • .rspec
  • .rubocop.yml
  • AGENTS.md
  • Appraisals
  • Archspec.rb
  • CLAUDE.md
  • codecov.yml
  • CONTRIBUTING.md
  • Gemfile
  • LICENSE
  • mise.toml
  • Rakefile
  • README.md
  • ruby_llm.gemspec

# Installation Guide

ruby
Prerequisites

Setup Steps

cp .env.example .env

Copy the environment configuration template file.

bundle install

Install the project's Ruby gem dependencies.

bin/rails generate ruby_llm:install

Generate RubyLLM Rails integration files.

bin/rails db:migrate

Run database migrations.

bundle exec rspec

Run the test suite.

Key Commands

bundle install

Install all dependency packages defined in the Gemfile.

bundle exec rspec

Run the project's RSpec tests.

bin/rails generate ruby_llm:install

Generate migrations and initializer files needed for Rails.

bin/rails db:migrate

Apply database tables and migrations.

You must configure your AI provider API keys in the .env file before running.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

bundle

View Details ▼

Dependency manager for the Ruby programming language.

bundle install

Install all gems defined in the `Gemfile` expected in the working directory:

bundle exec {{command}} {{arguments}}

Execute a command in the context of the current bundle:

bundle update

Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:

🔍

gem

View Details ▼

A package manager for the Ruby programming language.

gem search {{regex}} {{[-a|--all]}}

Search for remote gem(s) and show all available versions:

gem install {{gem_name}}

Install the latest version of a gem:

gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}

Install a specific version of a gem:

// repository documentation