mruby's most capable AI runtime.
mruby-llm brings the full llm.rb AI runtime to mruby, making it possible to embed AI capabilities into small standalone applications. It supports the same execution model as llm.rb — providers, agents, tools, MCP, A2A, streaming, and persisted state — but adapted for mruby's constraints.
The project began as a port of llm.rb to mruby, and a large number of features proved portable. Code continues to flow between both projects, with improvements in each benefiting the other.
mruby-llm is the runtime that powers robert, a native 2MB FreeBSD AI binary.
Add to your mruby build config:
MRuby::Build.new("app") do |conf|
conf.gem github: "llmrb/mruby-llm", branch: "main"
end
Requires libcurl for HTTP support.