← 开源
AI-Shell-Team

aish

Empower the Shell to think. Evolve Operations.

ApplicationsSpecialistsRust
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
563
Star
126
Fork
+1
本周
10
贡献者
创建于 2026-03-04 · 更新于 2026-10-16 · 今日第 16953 名
主要开发者
F16shenjexShainenderfirst

AI-Shell-Team/aish 排名第 16,953,有 563 个星标。

同类别比较

AI-Shell-Team/aish 排名第 16,953,此处有 8 个同类条目;Mozilla-Ocho/Memory-Cache 排名第 16,955。

同类别比较
名称排名指标
Kamalnrf/claude-plugins16,936
语言:
TypeScript
星标数:
564
分叉数:
41
简介:
Lightweight registry to discover, install, and manage all public Claude plugins and agent skills for your favourite AI coding agent.
KanHarI/gpt-commit-summarizer16,937
语言:
JavaScript
星标数:
564
分叉数:
39
akazwz/openchat-monorepo16,942
语言:
TypeScript
星标数:
564
分叉数:
55
简介:
一个现代化的全栈 AI Chatbot 应用,使用 React 和 Cloudflare Workers 结合 Connect RPC 构建,通过 Tauri 支持 Web、移动 App 和桌面端
githubnext/testpilot16,946
语言:
TypeScript
星标数:
564
分叉数:
55
简介:
Test generation using large language models
Mozilla-Ocho/Memory-Cache16,955
语言:
JavaScript
星标数:
563
分叉数:
26
简介:
MemoryCache is an experimental development project to turn a local desktop environment into an on-device AI agent
Explorerlowi/ESP32_AI_LLM16,970
语言:
C
星标数:
562
分叉数:
108
简介:
本项目使用esp32、esp32s3接入Chatgpt、Claude、讯飞星火、豆包等15款大模型,实现语音对话聊天,支持语音唤醒、连续对话、音乐播放等功能,同时外接了一块显示屏实时显示对话的内容。
redis-developer/ArXivChatGuru16,981
语言:
Python
星标数:
562
分叉数:
74
简介:
Use ArXiv ChatGuru to talk to research papers. This app uses LangChain, OpenAI, Streamlit, and Redis as a vector database/semantic cache.
wassname/rl-portfolio-management16,983
语言:
Jupyter Notebook
星标数:
562
分叉数:
178
简介:
Attempting to replicate "A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem" https://arxiv.org/abs/1706.10059 (and an openai gym environment)
关键参数与规格
关键参数与规格
参数值
语言Rust
类别Applications
子类别Specialists
关键词Automation, DevOps, Guardrails, Terminal
星标数563
分叉数126
贡献者10
创建日期2026-03-04
更新日期2026-10-16
1 天星标数0
7 天星标数1
排名16,953
上次排名16,743
排名变化-210
7 天星标排名11,332
上次 7 天星标排名8,864
7 天星标排名变化-2,468
总星标排名17,643
上次总星标排名17,617
总星标排名变化-26
README 摘录

Configuration file Minimal Configuration Example Alternatively via environment variables (more suitable for secrets): Tip: LiteLLM also supports reading vendor-specific environment variables (e. Interactive configuration (optional): Tool calling compatibility check (confirm selected model/channel supports tool calling): Langfuse (optional observability): 1) Enable in configuration: 2) Set environment variables: will run checks when exists in project root. Risk Levels **LOW**: Allowed by default **MEDIUM**: Confirmation before execution **HIGH**: Blocked by default Security Policy File Path Policy files are resolved in this

order: 1. (user-level; auto-generated template if not exists) Sandbox Pre-run (Optional, Recommended for Production) Default policy has sandbox pre-run **disabled**. To enable: 1) Set in security policy: 2) Start privileged sandbox service (systemd): Default socket: . When sandbox is unavailable, it will fallback according to (BLOCK/CONFIRM/ALLOW) in policy. Production environments can combine security policies to limit AI-accessible directory scope. The remaining Python scripts under are release automation helpers and are covered by shell smoke

tests. ) | | | YAML config loading with XDG paths and env overrides | | | Internationalization with 6 locales and embedded fallback | | | PTY executor with fork/exec, select()-based I/O, output offload | | | OpenAI-compatible HTTP client with SSE streaming and tool calling | | | SQLite session persistence with WAL mode | | | Sliding-window context manager with tiktoken token counting | | | Security policy engine with glob-to-regex pattern matching | | | Skill plugin discovery with hot-reload via notify | | | Markdown-based long-term memory with relevance scoring | | | Built-in tools

: bash, WebFetch, fs (read/write/edit), ask_user, memory, skill | | | .

常见问题

记录了多少星标和分叉?

AI-Shell-Team/aish 有 563 个星标和 126 个分叉。

仓库排名是多少?

AI-Shell-Team/aish 排名第 16,953。

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

AI-Shell-Team/aish 有 563 个星标,语言为 Rust,类别为 Applications。

哪个仓库排名最接近?

AI-Shell-Team/aish 与 Mozilla-Ocho/Memory-Cache 比较,后者排名第 16,955,有 563 个星标。

README

English | 简体中文


AISH

Empower the Shell to think. Evolve Operations.

A Real AI Shell: Complete PTY + Configurable Security & Risk Control


Table of Contents


Why Choose AISH

  • True Interactive Shell: Full PTY support, runs interactive programs like vim / ssh / top
  • AI Native Integration: Describe tasks in natural language, generate, explain and execute commands
  • Secure & Controllable: AI commands have risk grading and confirmation flow; optional sandbox pre-run for change assessment
  • Extensible: Skills plugin system with hot loading and priority override
  • Low Migration Cost: Compatible with regular commands and workflows, everything in terminal by default

Feature Comparison

Feature AISH Claude Code
🎯 Core Positioning Ops/System Troubleshooting CLI Development Coding Assistant
🤖 Multi-Model Support ✅ Fully Open ⚠️ Mainly Claude
🔧 Sub-Agent System ✅ ReAct Diagnostic Agent ✅ Multiple Agent Types
🧩 Skills Support ✅ Hot Loading ✅
🖥️ Native Terminal Integration ✅ Full PTY Support ⚠️ Limited Support
🛡️ Security Risk Assessment ✅ Security Confirmation ✅ Security Confirmation
🌐 Local Model Support ✅ Fully Supported Fully Supported
📁 File Operation Tools ✅ Minimal Essential Suppport ✅ Full Support
💰 Completely Free ✅ Open Source ❌ Paid Service
📊 Observability ✅ Langfuse Optional ⚠️ Built-in
🌍 Multi-language Output ✅ Auto Detection ✅

Quick Start

1) Install and Launch

Option 1: One-line install (Recommended)

curl -fsSL https://www.aishell.ai/repo/install.sh | bash

Option 2: Manual bundle install

Download the matching aish--linux-.tar.gz bundle from the official release directory, then run:

tar -xzf aish--linux-.tar.gz
cd aish--linux-
sudo ./install.sh

Then launch:

aish

Note: aish without subcommands is equivalent to aish run.

2) Use Like a Regular Shell

aish> ls -la
aish> cd /etc
aish> vim hosts

3) Let AI Do the Work (Start with ;)

Starting with ; or ; enters AI mode:

aish> ;find files larger than 100M in current directory and sort by size
aish> ;explain this command: tar -czf a.tgz ./dir

Installation

Linux Release Bundle

curl -fsSL https://www.aishell.ai/repo/install.sh | bash

The installer resolves the latest stable version, downloads the matching bundle for your architecture, and installs aish, aish-sandbox, and aish-uninstall into /usr/local/bin.

Run from Source (Development/Trial)

cargo run --bin aish

Uninstallation

Uninstall (keep configuration files):

sudo aish-uninstall

Complete uninstallation (also removes system-level security policies):

sudo aish-uninstall --purge-config

Optional: Clean user-level configuration (will clear model/API keys etc.):

rm -rf ~/.config/aish

Configuration

Configuration File Location

  • Default: ~/.config/aish/config.yaml (or $XDG_CONFIG_HOME/aish/config.yaml if XDG_CONFIG_HOME is set)

Priority (High to Low)

  1. Command-line arguments
  2. Environment variables
  3. Configuration file

Minimal Configuration Example

# ~/.config/aish/config.yaml
model: openai/deepseek-chat
api_base: https://openrouter.ai/api/v1
api_key: your_api_key

Alternatively via environment variables (more suitable for secrets):

export AISH_MODEL="openai/deepseek-chat"
export AISH_API_BASE="https://openrouter.ai/api/v1"
export AISH_API_KEY="your_api_key"

Tip: LiteLLM also supports reading vendor-specific environment variables (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY).

Interactive configuration (optional):

aish setup

Tool calling compatibility check (confirm selected model/channel supports tool calling):

aish check-tool-support --model openai/deepseek-chat --api-base https://openrouter.ai/api/v1 --api-key your_api_key

Langfuse (optional observability):

  1. Enable in configuration:
enable_langfuse: true
  1. Set environment variables:
export LANGFUSE_PUBLIC_KEY="..."
export LANGFUSE_SECRET_KEY="..."
export LANGFUSE_HOST="https://cloud.langfuse.com"

aish check-langfuse will run checks when check_langfuse.py exists in project root.


Usage

Common Input Types

Type Example Description
Shell Commands ls -la, cd /path, git status Execute regular commands directly
AI Requests ;how to check port usage, ;find files larger than 100M Enter AI mode with ;/; prefix
Built-in Commands help, clear, exit, quit Shell built-in control commands
Model Switching /model gpt-4 View or switch model

Shell Compatibility (PTY)

aish> ssh user@host
aish> top
aish> vim /etc/hosts

Security & Risk Control

AI Shell only performs security assessment on AI-generated and ready-to-execute commands.

Risk Levels

  • LOW: Allowed by default
  • MEDIUM: Confirmation before execution
  • HIGH: Blocked by default

Security Policy File Path

Policy files are resolved in this order:

  1. ~/.config/aish/security_policy.yaml (user-level; auto-generated template if not exists)

Sandbox Pre-run (Optional, Recommended for Production)

Default policy has sandbox pre-run disabled. To enable:

  1. Set in security policy:
global:
  enable_sandbox: true
  1. Start privileged sandbox service (systemd):
sudo systemctl enable --now aish-sandbox.socket

Default socket: /run/aish/sandbox.sock. When sandbox is unavailable, it will fallback according to sandbox_off_action (BLOCK/CONFIRM/ALLOW) in policy.


Skills (Plugins)

Skills extend AI's domain knowledge and workflows, supporting hot loading and priority override.

Default scan directories and priority:

  • ~/.config/aish/skills/ (or $AISH_CONFIG_DIR/skills)
  • ~/.claude/skills/

Data & Privacy

This project stores the following data locally (for troubleshooting and traceability):

  • Logs: Default ~/.config/aish/logs/aish.log
  • Sessions/History: Default ~/.local/share/aish/sessions.db (SQLite)
  • Large Output Offload: Default ~/.local/share/aish/offload/

Recommendations:

  • Don't commit real API keys to repository; prefer environment variables or secret management systems.
  • Production environments can combine security policies to limit AI-accessible directory scope.

Documentation

  • Configuration Guide: CONFIGURATION.md
  • Quick Start: QUICKSTART.md
  • Command Correction Mechanism: docs/command-interaction-correction.md

Community & Support

Link Description
Official Website Project homepage and more information
GitHub Repository Source code and issue tracking
GitHub Issues Bug reports
GitHub Discussions Community discussions
Discord Join the community
LINUX DO Community friend link

If you find AISH helpful, please consider giving us a Star ⭐ It helps more people discover the project and keeps us motivated to continue improving it.


Development & Testing

This repository is now the Rust implementation of aish. The remaining Python scripts under packaging/scripts/ are release automation helpers and are covered by shell smoke tests.

# Build
cargo build --release

# Run Rust tests
cargo test --workspace

# Lint Rust code
cargo clippy --all-targets -- -D warnings

# Run packaging release script smoke tests
./packaging/tests/release_scripts_smoke.sh

Architecture (14 crates)

Crate Description
aish-core Error types, shared enums (RiskLevel, MemoryCategory, etc.)
aish-config YAML config loading with XDG paths and env overrides
aish-i18n Internationalization with 6 locales and embedded fallback
aish-pty PTY executor with fork/exec, select()-based I/O, output offload
aish-llm OpenAI-compatible HTTP client with SSE streaming and tool calling
aish-session SQLite session persistence with WAL mode
aish-context Sliding-window context manager with tiktoken token counting
aish-security Security policy engine with glob-to-regex pattern matching
aish-skills Skill plugin discovery with hot-reload via notify
aish-memory Markdown-based long-term memory with relevance scoring
aish-tools Built-in tools: bash, WebFetch, fs (read/write/edit), ask_user, memory, skill
aish-scripts .aish script system with frontmatter, ai "prompt" syntax, hooks
aish-shell Main shell: REPL loop, AI handler, built-in commands, animation
aish-cli CLI entry point with clap derive macros

Contributing

See CONTRIBUTING.md for guidelines.

License

LICENSE (Apache 2.0)

排名相邻
同类项目