← 开源
ovh

shai

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

ApplicationsCodingRust
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
626
Star
61
Fork
+-1
本周
14
贡献者
创建于 2025-07-16 · 更新于 2026-10-16 · 今日第 15878 名
主要开发者

ovh/shai 排名第 15,878,有 626 个星标。

同类别比较

ovh/shai 排名第 15,878,此处有 8 个同类条目;sauravrao637/oproxy 排名第 15,891。

同类别比较
名称排名指标
waynesutton/markdown-site15,859
语言:
TypeScript
星标数:
627
分叉数:
91
简介:
An open-source publishing framework built for AI agents and developers to ship websites, docs, or blogs. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex and Netlify.
yoeven/ai-video-search-engine15,861
语言:
TypeScript
星标数:
627
分叉数:
58
简介:
AI Video Search Engine (RAG)
51bitquant/ai-hedge-fund-crypto15,862
语言:
Python
星标数:
626
分叉数:
158
简介:
AI-Hedge-Fund for Crypto 🚀 AI-powered hedge fund for cryptocurrency trading, leveraging LLM agents for intelligent decision-making.
AHS12/thoth-blueprint15,863
语言:
TypeScript
星标数:
626
分叉数:
53
简介:
Design databases the way you think. Create unlimited schemas, import existing designs, visualize relationships, export to multiple formats, and generate framework migrations. Offline-first, local by default, with optional cloud or local AI.
sauravrao637/oproxy15,891
语言:
Rust
星标数:
625
分叉数:
25
简介:
Open-source MITM proxy to intercept, inspect, and mock network traffic.
cognitivetech/ollama-ebook-summary15,903
语言:
Python
星标数:
624
分叉数:
52
简介:
LLM for Long Text Summary (Comprehensive Bulleted Notes)
djyde/ccmate15,906
语言:
TypeScript
星标数:
624
分叉数:
53
简介:
Configure your Claude Code without pain
robsannaa/mission-control15,922
语言:
TypeScript
星标数:
623
分叉数:
118
简介:
A GUI that runs on your Openclaw host and lets you totally manage it without touching the CLI. Not a technical user? Deploy it on agentbay.space
关键参数与规格
关键参数与规格
参数值
语言Rust
类别Applications
子类别Coding
星标数626
分叉数61
贡献者14
创建日期2025-07-16
更新日期2026-10-16
1 天星标数0
7 天星标数-1
排名15,878
上次排名15,683
排名变化-195
7 天星标排名17,824
上次 7 天星标排名11,183
7 天星标排名变化-6,641
总星标排名16,244
上次总星标排名16,220
总星标排名变化-24
国家France
README 摘录

SHAI shai is a coding agent, your pair programming buddy that lives in the terminal. This works by injecting command hooks while monitoring your terminal output. Configuration Compatible OVHcloud endpoints OVHcloud AI Endpoints provides OpenAI-compatible LLM endpoints for using shai with tools. Follow the official getting started guide to create a Public Cloud project and then generate an API key from the section of the control panel. Authenticating with an API key raises the rate limit from **2 requests

per minute** (anonymous, per IP and model) to **400 requests per minute** (per project and model). Once your key is set in shai, pick a model from the AI Endpoints catalog: models with a function calling feature work best with shai; for models without it, force structured output with the option. Project Context File Shai supports the AGENTS. Shai loads context from two files (in priority order): 1. Custom Agents Instead of a single global configuration, you can create custom

agent configurations with specific providers, tools, and system prompts. See Agent Configuration for the full schema. Skills Skills are composable, on-demand procedural instructions that extend shai's capabilities: They are discovered from (project), (global), and built-ins embedded in the binary (e. A same-named skill in a higher tier shadows the lower one, so you can override built-ins with your own version. Development Benchmarks Shai includes a measurement harness that runs the agent against scripted tasks. See Benchmarks

documentation for details.

常见问题

记录了多少星标和分叉?

ovh/shai 有 626 个星标和 61 个分叉。

仓库排名是多少?

ovh/shai 排名第 15,878。

记录的语言和类别是什么?

ovh/shai 有 626 个星标,语言为 Rust,类别为 Applications。

哪个仓库排名最接近?

ovh/shai 与 sauravrao637/oproxy 比较,后者排名第 15,891,有 625 个星标。

README

SHAI

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

Features

  • Interactive coding agent — Chat with shai in your terminal to write code, fix bugs, and get answers
  • Headless mode — Pipe prompts directly into shai for scripting and automation
  • HTTP server — Run shai as a service with OpenAI-compatible APIs and SSE streaming
  • Shell assistant — Automatically suggests fixes when commands fail in your terminal
  • Project context — Load project-specific information via AGENTS.md files
  • MCP Support — Configure specialized agents with MCP and OAuth support
  • Skills — Extend shai with composable, on-demand procedural instructions
  • Multiple LLM providers — Works with OVHcloud, OpenAI, Anthropic, Mistral, Ollama, OpenRouter

Installation

Latest stable release

curl -fsSL https://raw.githubusercontent.com/ovh/shai/main/install.sh | sh

Nightly version

curl -fsSL https://raw.githubusercontent.com/ovh/shai/main/install.sh | SHAI_RELEASE=unstable sh

The shai binary will be installed in $HOME/.local/bin

Quick Start

By default shai uses OVHcloud as an anonymous user meaning you will be rate limited! If you want to sign in with your account or select another provider, run:

shai auth

Once you have a provider set up, you can run shai:

shai

Usage

Interactive Mode

Simply run shai to start the interactive coding agent:

shai                          # Start TUI
shai -a myagent              # Start TUI with a custom agent
shai session                 # Start TUI with session picker
shai session             # Start TUI restoring a specific session
shai session latest          # Start TUI restoring the most recent session
shai -r         # Restore a session by ID
shai --latest                # Restore the most recent session

Headless Mode

Run shai without the TUI for scripting and automation:

shai -p "make me a hello world in main.py"
echo "make me a hello world in main.py" | shai

Chain multiple shai calls together:

echo "make me a hello world in main.py" | shai --trace | shai -p "now run it!"

Interactive Pipe Mode

Pipe content into shai and continue the conversation in the TUI:

echo "analyze this code" | shai -i

HTTP Server Mode

Run shai as an HTTP service with SSE streaming support:

shai serve --port 3000

Available API endpoints:

  • POST /v1/chat/completions — OpenAI Chat Completions API (ephemeral mode)
  • POST /v1/responses — OpenAI Responses API (stateful/stateless)
  • GET /v1/responses/{id} — Get response by ID
  • POST /v1/responses/{id}/cancel — Cancel a response
  • POST /v1/multimodal — Simple multimodal API (streaming)
  • POST /v1/multimodal/{session_id} — Simple multimodal API (with session)

Shell Assistant

shai can also act as a shell assistant — when a command fails, it will propose a fix. This works by injecting command hooks while monitoring your terminal output.

shai on      # Start monitoring
shai off     # Stop monitoring
shai status   # Check if shai is active

Configuration

Compatible OVHcloud endpoints

OVHcloud AI Endpoints provides OpenAI-compatible LLM endpoints for using shai with tools. Follow the official getting started guide to create a Public Cloud project and then generate an API key from the AI Endpoints section of the control panel.

Authenticating with an API key raises the rate limit from 2 requests per minute (anonymous, per IP and model) to 400 requests per minute (per project and model).

Once your key is set in shai, pick a model from the AI Endpoints catalog:

  • models with a function calling feature work best with shai;
  • for models without it, force structured output with the /set so option.

Project Context File

Shai supports the AGENTS.md convention — a standard markdown file at the root of your project containing build steps, code style guidelines, testing instructions, and other context for AI coding agents.

Shai loads context from two files (in priority order):

  1. AGENTS.md — the canonical project context file (recommended).
  2. SHAI.md — legacy override/supplement (deprecated, use AGENTS.md instead).

For nested projects in a monorepo, place an AGENTS.md in each subdirectory — the closest one to the edited file takes precedence.

Custom Agents

Instead of a single global configuration, you can create custom agent configurations with specific providers, tools, and system prompts.

shai agent           # Open agent picker in TUI
shai agent myagent   # Launch TUI with a specific agent
shai list agent      # List available agents

Agent configs live in ~/.config/shai/agents/. See Agent Configuration for the full schema.

Skills

Skills are composable, on-demand procedural instructions that extend shai's capabilities:

.shai/skills/
└── my-skill/
    └── SKILL.md

They are discovered from .shai/skills/ (project), ~/.config/shai/skills/ (global), and built-ins embedded in the binary (e.g. memory, the persistent-memory protocol). A same-named skill in a higher tier shadows the lower one, so you can override built-ins with your own version. See Skills documentation for details.

TUI Slash Commands

Command Description
/auth Configure AI provider
/agent Switch agent (keeps conversation context)
/restore [index|id] Restore a previous session
/latest Restore the most recent session
/temp Set sampling temperature
/tc Set tool call method (auto, fc, fc2, so)
/theme [dark|light|toggle] Set or toggle theme
/tokens Display token usage
/tools List all registered tools
/skills List available skills
/mcp List MCP servers and connection status
/regenerate Regenerate the last response
/exit Exit the TUI

See TUI Configuration for keyboard shortcuts and customization.

Development

git clone git@github.com:ovh/shai.git
cd shai
cargo build --release

Benchmarks

Shai includes a measurement harness that runs the agent against scripted tasks. See Benchmarks documentation for details.

排名相邻
同类项目