Migrating to RubyLLM
Move to RubyLLM from another AI framework or client, with side-by-side code and an honest account of what each one does better.
After reading this guide, you will know:
- Which guide covers the framework or client you use today.
- What each guide shows you.
- Where to start with RubyLLM.
Each guide puts the same task side by side, with the other project’s code taken from its own documentation at the version it names. It says what maps across, what RubyLLM adds, and when to stay where you are.
Choosing a Guide
| Coming from | Language | Guide |
|---|---|---|
| Vercel AI SDK | JavaScript and TypeScript | Vercel AI SDK |
| LangChain and LangGraph | Python | LangChain and LangGraph |
| OpenAI Agents SDK | Python | OpenAI Agents SDK |
| Pydantic AI | Python | Pydantic AI |
| CrewAI | Python | CrewAI |
| LlamaIndex | Python | LlamaIndex |
The official openai and anthropic gems |
Ruby | Official Ruby SDKs |
ruby-openai |
Ruby | ruby-openai |
The guides for other languages are about the framework as much as the language. If your application is already in Ruby, the Ruby guides move it one call site at a time.
Next Steps
- Getting Started: install RubyLLM and build a small support desk.
- How RubyLLM Works: see how the pieces fit together.
- Agents: define agents as classes and use them anywhere.