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 is a terminal-based coding agent designed to act as a pair programming buddy. It helps developers write code, fix bugs, and automate terminal workflows without leaving the command line.

How it works

Written in Rust, Shai provides an interactive TUI (Terminal User Interface) for chatting with LLMs. It can be run in several modes:

  • Interactive Mode: A full TUI for conversational coding.
  • Headless Mode: Allows piping prompts and outputs for scripting and automation.
  • Shell Assistant: Monitors terminal output and automatically suggests fixes when a command fails.
  • HTTP Server Mode: Exposes an OpenAI-compatible API with SSE streaming, allowing it to be used as a backend service.

It supports multiple LLM providers (OVHcloud, OpenAI, Anthropic, Mistral, Ollama, OpenRouter) and integrates with the Model Context Protocol (MCP) and AGENTS.md files for project-specific context.

Who it’s for

Developers who prefer working in the terminal and want an AI coding assistant that integrates deeply with their shell and project structure.

Highlights

  • Shell Integration: Proposes fixes for failed terminal commands in real-time.
  • Project Context: Uses AGENTS.md files to understand build steps and coding guidelines.
  • Extensibility: Supports custom "skills" (procedural instructions) and MCP servers.
  • Flexible Deployment: Can be used as a CLI tool, a piped script, or a hosted HTTP service.
  • Multi-Provider Support: Compatible with a wide range of LLM providers including local options like Ollama.

Related

  • Project
  • Project
  • Project
  • Project
  • Project