
所有的💘光鲜代理编码
概览
你的新编程好友,现在可以在你最喜欢的终端中找到。你的工具、代码和工作流程,都连接到你选择的大型语言模型中。终端里的编程新搭档, 无缝接入你的工具、代码与工作流,全面兼容主流 LLM 模型。 - 从多种大型语言模型中选择,或通过OpenAI或Anthropic兼容API添加自己的 - 在会话中切换LLM同时保留上下文 - 每个项目维护多个工作会话和上下文 - Crush 使用LSP来提供额外上下文,就像你一样 - 通过MCP(http、stdio和sse)添加功能 - 在macOS、Linux、Windows(PowerShell和WSL)、Android、FreeBSD、OpenBSD和NetBSD的每个终端都提供一流的支持 - 基于Charm生态系统,支持25k+应用,从领先的开源项目到关键业务基础设施 Crush 可以通过官方 Charm NUR 在 nur.repos.charmbracelet.crush 获取,这是获得 Nix Crush 的最新方式。 你也可以通过NUR试试用nix-shell的Crush: Crush 通过 NUR 提供 NixOS 和 Home Manager 模块。
概述(AI 翻译)
你的新编程好友,现在可以在你最喜欢的终端中找到。你的工具、代码和工作流程,都连接到你选择的大型语言模型中。 终端里的编程新搭档, 无缝接入你的工具、代码与工作流,全面兼容主流 LLM 模型。
特色
- 多模型: 从多种大型语言模型中选择,或通过OpenAI或Anthropic兼容API添加自己的
- 灵活: 在会话中切换LLMs,同时保持上下文
- 基于会话: 为每个项目维护多个工作会话和上下文
- LSP-增强版: Crush 也用 LSP 来提供额外的上下文,就像你一样
- 可扩展: 通过MCP(
http、stdio和sse)添加功能 - 无处不在: 在 macOS、Linux、Windows(PowerShell 和 WSL)、Android、FreeBSD、OpenBSD 和 NetBSD 的所有终端中都提供一流的支持
- 工业级: 基于 Charm 生态系统,支持从 领先的开源项目到关键业务基础设施的 25k+ 应用
安装
使用包管理器:
Windows用户:
尼克斯(NUR)
Crush可以通过官方Charm NUR在nur.repos.charmbracelet.crush获得,这是获得Nix最现代的Crush方式。
你也可以通过NUR尝试用nix-shell来体验Crush:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Crush
Your new coding bestie, now available in your favourite terminal.Your tools, your code, and your workflows, wired into your LLM of choice. 终端里的编程新搭档,无缝接入你的工具、代码与工作流,全面兼容主流 LLM 模型。
Features
- Multi-Model: choose from a wide range of LLMs or add your own via OpenAI- or Anthropic-compatible APIs
- Flexible: switch LLMs mid-session while preserving context
- Session-Based: maintain multiple work sessions and contexts per project
- LSP-Enhanced: Crush uses LSPs for additional context, just like you do
- Extensible: add capabilities via MCPs (
http,stdio, andsse) - Works Everywhere: first-class support in every terminal on macOS, Linux, Windows (PowerShell and WSL), Android, FreeBSD, OpenBSD, and NetBSD
- Industrial Grade: built on the Charm ecosystem, powering 25k+ applications, from leading open source projects to business-critical infrastructure
Installation
Use a package manager:
# Homebrew
brew install charmbracelet/tap/crush
# NPM (macOS, Linux, and Windows)
npm install -g @charmland/crush
# Arch Linux (btw)
yay -S crush
# Nix
nix run github:numtide/nix-ai-tools#crush
# FreeBSD
pkg install crush
Windows users:
# Winget
winget install charmbracelet.crush
# Scoop
scoop bucket add charm https://github.com/charmbracelet/scoop-bucket.git
scoop install crush
Crush is available via the official Charm NUR in nur.repos.charmbracelet.crush, which is the most up-to-date way to get Crush in Nix.
You can also try out Crush via the NUR with nix-shell:
# Add the NUR channel.
nix-channel --add https://github.com/nix-community/NUR/archive/main.tar.gz nur
nix-channel --update
# Get Crush in a Nix shell.
nix-shell -p '(import { pkgs = import {}; }).repos.charmbracelet.crush'
NixOS & Home Manager Module Usage via NUR
Crush provides NixOS and Home Manager modules via NUR. You can use these modules directly in your flake by importing them from NUR. Since it auto detects whether it’s a home manager or nixos context you can use the import the exact same way :)
{
inputs = {
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add charmbracelet/crush