Build AI agent crews,
the Rails way.

A Rails engine for orchestrating AI agents โ€” with ActiveRecord persistence, background-job execution, generators, a web dashboard, built on rcrewai 0.10.

gem 'rcrewai-rails'

Everything you need

A batteries-included engine for AI agent orchestration in Rails.

๐Ÿ—„๏ธ

ActiveRecord Integration

Persist crews, agents, tasks, and executions directly in your database.

โš™๏ธ

Background Jobs

Runs through ActiveJob โ€” works with Sidekiq, Resque, Delayed Job, or any adapter.

๐Ÿ—๏ธ

Rails Generators

Scaffold new crews and agents from the command line in seconds.

๐Ÿ“Š

Web Dashboard

Monitor executions, view logs, and manage crews through a built-in UI.

๐Ÿค–

Multi-LLM Support

OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, Ollama, AWS Bedrock, Snowflake Cortex, and any OpenAI-compatible endpoint.

๐Ÿงฐ

Rails-Specific Tools

Pre-built tools for ActiveRecord, ActionMailer, the Rails cache, and more.

What's new 0.4 โ€“ 0.10

rcrewai features through 0.9, surfaced through ActiveRecord, on rcrewai 0.10.

Agent intelligence

Reasoning passes, per-agent LLM overrides, rate limiting, context-window trimming, and cognitive memory.

Task output

Structured output schemas, guardrails, file output, and multimodal image attachments.

Crew orchestration

before/after kickoff hooks, planning, the consensual process, and batch execution.

Knowledge (RAG)

String, file, PDF, CSV, and URL sources attached to agents or crews.

Flows

Persist and resume rcrewai Flow state through the database; track each run.

Cognitive memory

Semantic recall with a pluggable embedder and SQLite-backed store.

Observation engine

Span-level traces of every run, with timings, tokens, cost, and a live view.

Checkpointing

Resume an interrupted run without re-running the tasks it already finished.

Interceptors and providers

Hooks around every LLM request, plus Bedrock, Snowflake, and OpenAI-compatible endpoints.

Concurrent tool calls

A turn's tool calls run in parallel, with a per-agent opt-out.

Ready to build?

Install the engine and run your first crew in minutes.

Get Started โ†’