简例 AI学习 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
简例 AI学习常宝一为一的编辗常宝。当前简例为编辗常宝。
简例 AI学习 是一款基于 Python 开发的开源工具,专注于 installable、fish-plugin、fisher 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
简例 AI学习常宝一为一的编辗常宝。当前简例为编辗常宝。
简例 AI学习 是一款基于 Python 开发的开源工具,专注于 installable、fish-plugin、fisher 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install fish-ai
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install fish-ai
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/Realiserad/fish-ai
cd fish-ai
pip install -e .
# 验证安装
python -c "import fish_ai; print('安装成功')"
# 命令行使用
fish-ai --help
# 基本用法
fish-ai input_file -o output_file
# Python 代码中调用
import fish_ai
# 示例
result = fish_ai.process("input")
print(result)
# fish-ai 配置文件示例(config.yml) app: name: "fish-ai" debug: false log_level: "INFO" # 运行时指定配置文件 fish-ai --config config.yml # 或通过环境变量配置 export FISH_AI_API_KEY="your-key" export FISH_AI_OUTPUT_DIR="./output"
fish-ai adds AI functionality to Fish. It's awesome! I built it to make my life easier, and I hope it will make yours easier too. Here is the complete sales pitch:
- It can turn a comment into a shell command and vice versa, which means less time spent reading manpages, googling and copy-pasting from Stack Overflow. Great when working with git, kubectl, curl and other tools with loads of parameters and switches. - Did you make a typo? It can also fix a broken command (similarly to thefuck). - Not sure what to type next or just lazy? Let the LLM autocomplete your commands with a built in fuzzy finder. - Everything is done using two (configurable) keyboard shortcuts, no mouse needed! - It can be hooked up to the LLM of your choice (even a self-hosted one!). - The whole thing is open source, hopefully somewhat easy to read and around 2000 lines of code, which means that you can audit the code yourself in an afternoon. - Install and update with ease using fisher. - Tested on both macOS and the most common Linux distributions. - Does not interfere with fzf.fish, tide or any of the other plugins you're already using! - Does not wrap your shell, install telemetry or force you to switch to a proprietary terminal emulator.
This plugin was originally based on Tom Dörr's fish.codex repository. Without Tom, this repository would not exist!
If you like it, please add a ⭐.
Bug fixes are welcome! I consider this project largely feature complete. Before opening a PR for a feature request, consider opening an issue where you explain what you want to add and why, and we can talk about it first.
Make sure git and either uv, or a supported version of Python along with pip and venv is installed. Then grab the plugin using fisher:
fisher install realiserad/fish-ai
Create a configuration file $XDG_CONFIG_HOME/fish-ai.ini (use ~/.config/fish-ai.ini if $XDG_CONFIG_HOME is not set) where you specify which LLM fish-ai should talk to. If you're not sure, use GitHub Models.
To use Anthropic:
[anthropic]
provider = anthropic
api_key = <your API key>
model = claude-sonnet-4-6
To use Azure OpenAI:
[fish-ai]
configuration = azure
[azure]
provider = azure
server = https://<your instance>.openai.azure.com
model = <your deployment name>
api_key = <your API key>
AWS Bedrock provides LLMs hosted by AWS. They can be accessed either through the Mantle gateway or the Converse API.
If no api_key is configured, a short-term token is automatically generated from your AWS credentials. You can also specify an api_key directly if you prefer to use a Bedrock API key.
Use aws_profile to select a named profile from your AWS configuration. If omitted, the default credential chain is used.
Available model IDs are listed in the Bedrock documentation.
To use the Converse API:
[fish-ai]
configuration = aws-converse
[aws-converse]
provider = bedrock
bedrock_api = converse
model = anthropic.claude-haiku-4-5-20251001-v1:0
aws_region = us-east-1
aws_profile = default
It requires the bedrock:InvokeModel permission.
To use the Mantle gateway:
[fish-ai]
configuration = aws-mantle
[aws-mantle]
provider = bedrock
model = anthropic.claude-haiku-4-5
aws_region = us-east-1
aws_profile = default
It requires the bedrock-mantle:CreateInference permission.
To use Cohere:
[cohere]
provider = cohere
api_key = <your API key>
model = command-a-03-2025
To use DeepSeek:
[deepseek]
provider = deepseek
api_key = <your API key>
model = deepseek-chat
To use GitHub Models:
[fish-ai]
configuration = github
[github]
provider = self-hosted
server = https://models.github.ai/inference
api_key = <paste GitHub PAT here>
model = gpt-4o-mini
You can create a personal access token (PAT) here. The PAT does not require any permissions.
To use Gemini from Google:
[google]
provider = google
api_key = <your API key>
model = gemini-3.1-pro-preview
To use Groq:
[groq]
provider = groq
api_key = <your API key>
To use OpenAI:
[fish-ai]
configuration = openai
[openai]
provider = openai
model = gpt-4o
api_key = <your API key>
organization = <your organization>
To use OpenRouter:
[fish-ai]
configuration = openrouter
[openrouter]
provider = self-hosted
server = https://openrouter.ai/api/v1
model = google/gemini-3-flash-preview
api_key = <your API key>
extra_body = {"reasoning": {"effort": "minimal", "exclude": true}}
To use a self-hosted LLM (behind an OpenAI-compatible API):
[fish-ai]
configuration = self-hosted
[self-hosted]
provider = self-hosted
server = https://<your server>:<port>/v1
model = <your model>
api_key = <your API key>
If you are self-hosting, my recommendation is to use Ollama with Llama 3.3 70B. An out of the box configuration running on localhost could then look something like this:
[fish-ai]
configuration = local-llama
[local-llama]
provider = self-hosted
model = llama3.3
server = http://localhost:11434/v1
Available models are listed here.
You can tweak the behaviour of fish-ai by putting additional options in your fish-ai.ini configuration file.
You can change the progress indicator (the default is ⏳) shown when the plugin is waiting for a response from the LLM.
To change the default, set the progress_indicator option to zero or more characters.
[fish-ai]
progress_indicator = wait...
Instead of putting the API key in the configuration file, you can let fish-ai load it from your keyring. To save a new API key or transfer an existing API key to your keyring, run fish_ai_put_api_key.
简例 AI学习常宝一为一的编辗常宝。当前简例为编辗常宝。一为一的编辗常宝。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,简例 AI学习 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | fish-ai |
| 原始描述 | 开源AI工具:Supercharge your command line with LLMs and get shell scripting assistance in Fi。⭐532 · Python |
| Topics | installablefish-pluginfisherpython |
| GitHub | https://github.com/Realiserad/fish-ai |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-25 · 更新时间:2026-05-25 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。