aish

作者 AI-Shell-Team已验证

Empower the Shell to think. Evolve Operations.

516
Stars
108
Forks
Rust
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/AI-Shell-Team/aish

快速入门

使用 aish 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

English | 简体中文


AISH

Empower the Shell to think. Evolve Operations.

Official Website GitHub Rust Version Platform License

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

FeatureAISHClaude Code
🎯 Core PositioningOps/System Troubleshooting CLIDevelopment 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 SupportedFully 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-<version>-linux-<arch>.tar.gz bundle from the official release directory, then run:

tar -xzf aish-<version>-linux-<arch>.tar.gz
cd aish-<version>-linux-<arch>
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

TypeExampleDescription
Shell Commandsls -la, cd /path, git statusExecute regular commands directly
AI Requests;how to check port usage, ;find files larger than 100MEnter AI mode with ;/ prefix
Built-in Commandshelp, clear, exit, quitShell built-in control commands
Model Switching/model gpt-4View 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. /etc/aish/security_policy.yaml (system-level)
  2. ~/.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

LinkDescription
Official WebsiteProject homepage and more information
GitHub RepositorySource code and issue tracking
GitHub IssuesBug reports
GitHub DiscussionsCommunity discussions
DiscordJoin the community
LINUX DOCommunity 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)

CrateDescription
aish-coreError types, shared enums (RiskLevel, MemoryCategory, etc.)
aish-configYAML config loading with XDG paths and env overrides
aish-i18nInternationalization with 6 locales and embedded fallback
aish-ptyPTY executor with fork/exec, select()-based I/O, output offload
aish-llmOpenAI-compatible HTTP client with SSE streaming and tool calling
aish-sessionSQLite session persistence with WAL mode
aish-contextSliding-window context manager with tiktoken token counting
aish-securitySecurity policy engine with glob-to-regex pattern matching
aish-skillsSkill plugin discovery with hot-reload via notify
aish-memoryMarkdown-based long-term memory with relevance scoring
aish-toolsBuilt-in tools: bash, WebFetch, fs (read/write/edit), ask_user, memory, skill
aish-scripts.aish script system with frontmatter, ai "prompt" syntax, hooks
aish-shellMain shell: REPL loop, AI handler, built-in commands, animation
aish-cliCLI entry point with clap derive macros

Contributing

See CONTRIBUTING.md for guidelines.

License

LICENSE (Apache 2.0)

常见问题

What is aish?

aish is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by AI-Shell-Team. Empower the Shell to think. Evolve Operations. It has 516 GitHub stars.

Is aish safe to use?

Yes. aish passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install aish?

Clone the repository with "git clone https://github.com/AI-Shell-Team/aish" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is aish written in?

aish is primarily written in Rust. It is open-source under AI-Shell-Team on GitHub, so you can review or fork the full source.

Are there alternatives to aish?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh aish against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情