crmne/ruby_llm is a Ruby framework that provides one interface for building AI chats, agents, tools, retrieval-augmented generation, and multimodal workflows across multiple model providers. Ruby and Rails developers use it to add AI features without rewriting application code for each provider. The catalogue contains instructions and a skill for working with the framework.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add crmne/ruby_llm --skill rubyllmgit clone --depth 1 https://github.com/crmne/ruby_llmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/crmne/ruby_llm/rubyllm)<a href="https://agentmods.dev/skills/crmne/ruby_llm/rubyllm"><img src="https://agentmods.dev/badge/skills/crmne/ruby_llm/rubyllm/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/crmne/ruby_llm/rubyllm"><img src="https://agentmods.dev/badge/skills/crmne/ruby_llm/rubyllm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01824 |
| Opus 5 | $0.00030 | $0.00912 |
| Sonnet 5 | $0.00012 | $0.00365 |
| Haiku 4.5 | $0.00006 | $0.00182 |
Grade A, and why
rubyllm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build with RubyLLM
Use the application's installed RubyLLM version and existing conventions. This skill describes the 2.0 API. Read Gemfile.lock, or inspect the installed gem before choosing an API:
bundle exec ruby -rruby_llm -e 'puts RubyLLM::VERSION'
bundle show ruby_llm
For a 1.x application, use its version's documentation and keep the requested change on 1.x unless the user asks for an upgrade. Adding an AI feature does not require upgrading the application's framework.
Choose the API for the task
RubyLLM has two public API families: conversations use chats, messages, tools, agents, structured output, streaming, and loop control; individual operations use paint, animate, speak, transcribe, ocr, moderate, embed, and rerank. Individual operations return typed results without requiring a chat. Some stream or have an asynchronous lifecycle.
Providers supply service endpoints, authentication, catalogs, and protocol selection. Protocols translate requests and responses. Both API families use this integration layer and shared services for model selection, configuration, accounting, and instrumentation. Build against the public API and let RubyLLM handle the service formats.
Rails integration adds persistence, attachments, streaming UI support, jobs, and generators around the same Ruby API.
Find the relevant API
The installed gem's public method signatures and RDoc describe the code the application actually runs. Use them when online documentation differs. Find the matching version through RubyLLM's documentation. During the 2.0 release-candidate period, the 2.0 guides and Markdown API reference are under rubyllm.com/next/.
Read the relevant page instead of loading the entire documentation site:
| Task | Guide path under the matching documentation version |
|---|---|
| Understand the framework's structure | overview/ |
| Configure a provider or select a model | configuration/, configuration-providers/, models/ |
| Chat, stream, or attach files | chat/, streaming/, attachments/ |
| Declare tools or require approval | tools/, tool-parameters/, tool-execution/ |
| Parse structured output | structured-output/ |
| Build reusable agents | agents/, prompt-rendering/ |
| Generate images or video | image-generation/, video-generation/ |
| Generate speech or transcribe audio | text-to-speech/, audio-transcription/ |
| Extract document text or moderate content | ocr/, moderation/ |
| Embed text or rank search results | embeddings/, rerank/ |
| Persist chats, attach files, or stream with Hotwire | rails/, rails-persistence/, rails-streaming/, rails-generators/ |
| Resume agents in background jobs | durable-agents/ |
| Track spend or handle failures | cost-and-usage-tracking/, error-handling/ |
| Submit batches or drive the conversation loop | batches/, agentic-workflows/ |
| Upgrade an existing application | upgrading/ |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 82 lines · 61 tokens per session scan A b87f31d4303e
rubyllm is a skill published in the GitHub repository crmne/ruby_llm (4,342 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,824 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.
Other skills, from other repositories
telephony
Provision Twilio numbers, SMS/MMS, and AI outbound calls.
accelerate
Run PyTorch training across GPUs with minimal changes.
serving-llms-vllm
Use when deploying production LLM APIs, optimizing inference latency/throughput, or serving models with limited GPU memory. Supports OpenAI-compatible endpoints, quantization (GPTQ/AWQ/FP8), and tensor parallelism.
har-derived-api-client
Record a site's XHR into a HAR, derive an HTTP client.
fastmcp
Build, test, and deploy Python MCP servers.
jupyter-notebook
Iterative Python via live Jupyter kernel (hamelnb).