There are already several great Ruby gems for working with AI, including full-featured SDKs and frameworks.
I wanted something simpler: a lightweight way to interact with AI providers without adding dependencies or imposing a particular application architecture.
So I built AI Lite, a Ruby gem that provides API wrappers for OpenAI, Gemini, and Claude.
Keep it simple
The idea is straightforward: let the gem handle API communication, and let developers build their own architecture around it.
AI Lite doesn't manage agent loops, automatically execute tools, or dictate how you structure services, background jobs, or conversation history.
It works with Rails applications, background workers, or standalone Ruby scripts.
No runtime dependencies
AI Lite uses Ruby's standard library, primarily Net::HTTP, URI, and JSON.
No additional runtime gem dependencies, no Rails requirement, and no separate provider SDKs.
Support for older Ruby versions
Many existing Ruby and Rails applications still run older Ruby…