ovh/shai

shai is a coding agent, your pair programming buddy that lives in the terminal. Written in rust with love <3

What it solves

Shai provides a terminal-based AI coding assistant that helps developers write code, fix bugs, and automate shell tasks without leaving their command-line environment.

How it works

Written in Rust, Shai connects to various LLM providers (such as OVHCloud and OpenAI) to process prompts. It can operate in an interactive chat mode, a headless mode for piping commands, or as an HTTP server providing OpenAI-compatible APIs. It also monitors terminal output via shell hooks to suggest fixes for failed commands and uses SHAI.md files to ingest project-specific context.

Who it’s for

Developers who prefer working in the terminal and want an integrated AI pair programmer for coding, debugging, and shell automation.

Highlights

  • Shell Assistant: Automatically analyzes failed terminal commands and proposes fixes.
  • Headless Mode: Supports piping prompts and chaining calls for scripting and automation.
  • HTTP Server: Can be deployed as a service with SSE streaming and multimodal API endpoints.
  • Project Context: Automatically loads project-specific information from SHAI.md files.
  • MCP Support: Allows the configuration of specialized agents via Model Context Protocol (MCP) and OAuth.

Related

  • Project
  • Project
  • Project
  • Project