ruby-openai
RubyLLM
| ruby-openai | RubyLLM | |
|---|---|---|
| 15 | 22 | |
| 3,224 | 3,981 | |
| 0.2% | 2.5% | |
| 9.3 | 9.7 | |
| about 1 month ago | 5 days ago | |
| Ruby | Ruby | |
| MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ruby-openai
-
ruby-openai VS ruby_llm - a user suggested alternative
2 projects | 9 Dec 2025
-
Official OpenAI Ruby Gem
What’s the relationship, if any, with https://github.com/alexrudall/ruby-openai ?
That gem is actively maintained and widely used. It’s a good gem! But by definition they’re always playing catch up.
- RubyLLM: A delightful Ruby way to work with AI
-
tiktoken_ruby VS ruby-openai - a user suggested alternative
2 projects | 3 May 2024
If you are using Open AI's API, this tokenizer is more accurate than the one coming with `ruby-openai` gem.
-
ruby and ML/AI chatgpt
ruby-openai
-
Building an app around a LLM, Rails + Python or just Python?
If you can just interact with OpenAI api directly without langchain then that eliminates need for python. Here’s a gem for interacting with the OpenAI api : https://github.com/alexrudall/ruby-openai
- Use OpenAI embeddings with Rails?
-
I need help building a Chatbot using Openai Chatgpt API
There is a gem developed by Alex - https://github.com/alexrudall/ruby-openai.
-
Looking for self-hosted tools with OpenAI API support
I've been playing with ruby-openai, a Ruby gem (ie, library) that interfaces with the OpenAI API. I'm building myself a small movie-recommendation tool, just a personal need, as well as to teach myself how this stuff works. It's unlikely I'll ever build it into a proper app, as I'm okay with interacting in the shell and with text files, versus a web-based thing. But if there's interest, I'll push my tool up to Github.
-
Creating AI assistant with GPT and Ruby and Redis using embeddings
Can use https://github.com/alexrudall/ruby-openai to do this sort of thing also :)
RubyLLM
- RubyLLM 1.16: concurrent tool execution, Rails-style instrumentation, and more
-
🇺🇸 Glancer — Ask your Rails database questions in plain language
OpenAI and OpenRouter are also supported. It runs on top of RubyLLM, so any model it supports works here too. You can assign different models per role: a smarter model for query generation, a cheaper one for writing the response.
- 🇧🇷 Glancer — Converse com seu banco de dados Rails em linguagem natural
-
How to implement AI agents in Rails with RubyLLM
RubyLLM is a Ruby gem and an AI interface for GPT, Claude, and Gemini to give us an easy way to run LLM chat inside a Ruby application. It allows us to avoid writing JSON and lets us work with AI using beautiful Ruby DSL.
-
Semantic Caching for RubyLLM: Cut Your AI Costs by 70%
If you're using RubyLLM to build AI-powered applications in Ruby, you're already enjoying a clean, unified API across multiple providers. But there's one problem RubyLLM doesn't solve: every API call costs money.
-
T-Ruby is Ruby with syntax for types
I have been programming with Ruby for 11 years with most of the time in a professional context. It's my favorite language :).
I don't care much for types, but it can be useful with denser libraries where IDE's can assist with writing code. It has been helpful in my professional life with regards to typed Python and Typescript.
One potential example that would be interesting is utilizing types for reflection for AI tool calling, the python library for Ollama already supports this[0].
It would make it easier to use such tools in a Ruby context and potentially enhance libraries like ruby-llm [1] and ollama-ruby [2].
[0] https://docs.ollama.com/capabilities/tool-calling#using-func...
[1] https://rubyllm.com/
[2] https://github.com/flori/ollama-ruby
-
ruby-openai VS ruby_llm - a user suggested alternative
2 projects | 9 Dec 2025
ruby_llm seems to be the most popular "AI integration" gem these days.
- RubyLLM 1.4.0: Structured Output, Custom Parameters, and Rails Generators
-
Async Ruby is the Future of AI Apps (And It's Already Here)
Then, building RubyLLM and Chat with Work, I noticed that LLM communication is async Ruby's killer app. The unique demands of streaming AI responses -- long-lived connections, token-by-token delivery, thousands of concurrent conversations -- expose exactly why async matters.
-
RubyLLM 1.3.0: Just When You Thought the Developer Experience Couldn't Get Any Better 🎉
Want to shape RubyLLM's future? Join us on GitHub.
What are some alternatives?
langchainrb - Build LLM-powered applications in Ruby
activeagent - ActiveAgent Rails framework for Agent Apps
discourse-ai
vllora - Debug your AI agents
pycall.rb - Calling Python functions from the Ruby language
simple-openai - A Java library to use the OpenAI Api in the simplest possible way.