ruby_llm Agent工作流 是 AI Skill Hub 本期精选AI工具之一。已获得 3.9k 颗 GitHub Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
统一的Ruby API框架,集成OpenAI、Anthropic、Gemini、Bedrock等多个AI模型服务。提供简洁优雅的接口,支持工作流和Agent构建,适合Ruby开发者快速集成大语言模型能力。
ruby_llm Agent工作流 是一款基于 Ruby 开发的开源工具,专注于 Ruby、多模型、工作流 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
统一的Ruby API框架,集成OpenAI、Anthropic、Gemini、Bedrock等多个AI模型服务。提供简洁优雅的接口,支持工作流和Agent构建,适合Ruby开发者快速集成大语言模型能力。
ruby_llm Agent工作流 是一款基于 Ruby 开发的开源工具,专注于 Ruby、多模型、工作流 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/crmne/ruby_llm cd ruby_llm # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 ruby_llm --help # 基本运行 ruby_llm [options] <input> # 详细使用说明请查阅文档 # https://github.com/crmne/ruby_llm
# ruby_llm 配置说明 # 查看配置选项 ruby_llm --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export RUBY_LLM_CONFIG="/path/to/config.yml"
<picture> <source media="(prefers-color-scheme: dark)" srcset="/docs/assets/images/logotype_dark.svg"> <img src="/docs/assets/images/logotype.svg" alt="RubyLLM" height="120" width="250"> </picture>
<strong>Build AI features the Ruby way</strong>
<p>The Ruby-native AI framework. Build with chats, tools, agents, images, audio, and video through one consistent API, in plain Ruby or Rails.</p>
Battle tested at <picture><source media="(prefers-color-scheme: dark)" srcset="https://chatwithwork.com/logotype-dark.svg"><img src="https://chatwithwork.com/logotype.svg" alt="Chat with Work" height="30" align="absmiddle"></picture> - Fully private work AI
<a href="https://trendshift.io/repositories/13640" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13640" alt="crmne%2Fruby_llm | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> </div>
[!NOTE] Using RubyLLM? Share your story! Takes 5 minutes.
---
Work with OpenAI, xAI, Anthropic, Google, AWS, local models, and more. Seventeen providers are built in, and you can connect an OpenAI-compatible endpoint directly.
chat = RubyLLM.chat(model: "gemini-3.7-flash") chat.ask "What's in this image?", with: "ruby_conf.jpg" chat.ask "What's happening in this video?", with: "video.mp4" chat.ask "Describe this meeting", with: "meeting.wav" chat.ask "Summarize this document", with: "contract.pdf" chat.ask "Explain this code", with: "app.rb"
ruby
RubyLLM.chatRubyLLM.transcribe and generate it with RubyLLM.speakRubyLLM.ocrRubyLLM.paintRubyLLM.animateRubyLLM.embedRubyLLM.rerankRubyLLM.moderaterequires_approvalask_later, step, and complete?with_server_toolsRubyLLM::Agentapp/prompts, rendered with RubyLLM.render_promptRubyLLM.workflowresponse.parsedRubyLLM.uploadwith_caching and cache_until_herewith_fallbacks, stop a run with cancelchat.tokens and chat.costRubyLLM.batchwith_compactioncount_tokenshttps://github.com/user-attachments/assets/65422091-9338-47da-a303-92b918bd1345
Install the 2.0 release candidate:
bundle add ruby_llm --version 2.0.0.rc1
Configure a provider in your script, or in config/initializers/ruby_llm.rb in Rails:
require 'ruby_llm'
RubyLLM.configure do |config|
config.openai_api_key = ENV.fetch('OPENAI_API_KEY')
end
Configure the other providers used by the examples as needed: Gemini for files, xAI for video, Mistral for OCR, and Cohere for reranking. Getting Started shows each setup beside its example. If your app uses 1.16, follow the upgrade guide before deploying 2.0.
bin/rails generate ruby_llm:install bin/rails db:migrate bin/rails ruby_llm:load_models
bin/rails generate ruby_llm:chat_ui
ruby class Chat < ApplicationRecord acts_as_chat end
chat = Chat.create! model: "gpt-5.6-luna" chat.ask "What's in this file?", with: "report.pdf" ```
Visit http://localhost:3000/chats for a ready-to-use chat interface!
chat = RubyLLM.chat chat.ask "What's the best way to learn Ruby?"
ruby
设计优雅的多模型统一框架,降低Ruby开发者集成AI成本。活跃维护、生态成熟,是Ruby生态中AI集成的首选方案。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,ruby_llm Agent工作流 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | ruby_llm |
| 原始描述 | 开源AI工作流:One beautiful Ruby API for OpenAI, Anthropic, Gemini, Bedrock, Azure, OpenRouter。⭐3.9k · Ruby |
| Topics | Ruby多模型工作流AgentAPI集成 |
| GitHub | https://github.com/crmne/ruby_llm |
| License | MIT |
| 语言 | Ruby |
收录时间:2026-05-16 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。