Guide

Build your first AI agent in Rails.

Fifteen minutes, one file, one deploy. This is the entire path from `bundle add rails-agent-stack` to a live agent on the internet.

1. Install

bundle add rails-agent-stack
bin/rails generate rails_agent:install

2. Mount the engine

# config/routes.rb
mount RailsAgent::Engine => "/agents"

3. Define the agent

class Concierge < RailsAgents::Base
  model "gpt-4o-mini"
  instructions "You are a helpful concierge for a Rails SaaS."
end

4. Deploy

bin/rails agent:deploy
# → https://your-app.rails-agent.cloud