RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

ruby-crewai: The missing Ruby SDK for CrewAI's multi-agent AI API

CrewAI is one of the fastest-growing multi-agent AI frameworks right now, but it’s Python-only. There’s no official Ruby SDK, which means Rails developers have been left out.

ruby-crewai fills that gap.

A minimal, production-grade Ruby client for the CrewAI AMP REST API, the interface that lets you run, monitor, and control AI crews programmatically from Ruby.

```ruby client = CrewAI::Client.new

response = client.kickoff(inputs: { topic: “Ruby gems for AI integration” }) client.status(response[“kickoff_id”]) ```

What it covers:

  • inputs — discover what your crew needs before kickoff
  • kickoff — start a crew run, returns a kickoff_id
  • status — poll an async run
  • resume — continue a crew paused at a human-in-the-loop step

Error handling is typedL AuthenticationError, TimeoutError, ServerError, NotFoundError, so you can rescue granularly in production rather than catching a generic exception.

One runtime dependency (Faraday >= 2). Ruby 3.1+. MIT licensed.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in