crush README

项目的 README,来自 github.com/charmbracelet/crush。合并为一个 markdown 文件:README.md。

Crush

Charm Crush Logo
Latest Release Build Status

Your new coding bestie, now available in your favourite terminal.
Your tools, your code, and your workflows, wired into your LLM of choice.

终端里的编程新搭档,
无缝接入你的工具、代码与工作流,全面兼容主流 LLM 模型。

Crush Demo

Features

Installation

# Homebrew
brew install charmbracelet/tap/crush

# NPM (macOS, Linux, and Windows)
npm install -g @charmland/crush

# Arch Linux (btw)
yay -S crush

# Windows (Winget)
winget install charmbracelet.crush

# Go
go install github.com/charmbracelet/crush@latest

Nix, Debian/Ubuntu, Fedora/RHEL, Scoop, FreeBSD, binaries, and more are covered in the installation guide.

[!WARNING] Productivity may increase when using Crush and you may find yourself nerd sniped when first using the application. If the symptoms persist, join the Slack or Discord and nerd snipe the rest of us.

Getting Started

The quickest way to get started is to choose a Hyper model from the little model picker. Follow the steps to authenticate and you're ready to go.

Charm Hyper

Hyper, from Charm, is the official model provider for Crush. It’s built on open-weight models and is optimized for Crush, with an emphasis on high-quality inference. There are subscription and prepaid options, including zero data retention (ZDR). It's also GDPR compliant!

You can also use Crush with Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, local models, and many more. Press ctrl+l to open the model picker and paste your API key, or see Providers.

Documentation

Everything else lives at crush.charm.land:

Crush also ships with a builtin skill for configuring itself, so most of the time you can just tell it what you want.

Crush’s default model listing is managed in Catwalk, a community-supported, open source repository of Crush-compatible models, and you’re welcome to contribute.

Contributing

See the contributing guide.

Whatcha think?

We’d love to hear your thoughts on this project. Need help? We gotchu. You can find us on:

License

FSL-1.1-MIT


Part of Charm.

The Charm logo

Charm热爱开源 • Charm loves open source

crush (charmbracelet/crush)

正在搜索数据库…

29.2K ·GitHub
这是什么?Charm 出品的一个基于终端的 AI 编程助手:它把你的工具、代码和工作流接入你自选的大语言模型,直接在终端里充当编程搭档。
那它是个终端应用,不是 IDE 插件?没错——它是一个 TUI(终端界面)应用,在 macOS、Linux、Windows(PowerShell 和 WSL)、Android、FreeBSD、OpenBSD 和 NetBSD 的各类终端上都是一等公民支持。多个客户端还可以通过 crush serve 共享同一个工作区。
我需要自己的 API 密钥吗?可以用哪些服务商?可以自带密钥,也可以订阅 Charm 的 Hyper(有免费额度)。支持的服务商包括 Anthropic、OpenAI、Gemini、OpenRouter、Z.ai、Groq、AWS Bedrock、Azure OpenAI 等——在模型选择器里按 ctrl+l 设置密钥,或者用 ANTHROPIC_API_KEY 这类环境变量。本地模型也能用。
让它执行命令有什么风险吗?它的配置文件是被信任的代码:crushrc 会在完整的 shell 里运行,crush.json 里的 $(...) 会在加载时执行,所以不要在配置还没审查过的目录里启动 Crush。工具默认会先征得你的许可;--yolo 标志会跳过所有提示。
我的代码会被发到我没选过的地方吗?Crush 是本地客户端,但你的代码上下文会发送到你配置的那个大语言模型服务商。Charm 自家的 Hyper 服务商宣称零数据保留(ZDR),并符合 GDPR。
Hyper 是什么?Hyper 是 Charm 自家的订阅制模型服务,专为 Crush 优化,并在模型选择器里作为默认选项提供。它有免费额度,注重隐私、零数据保留,并按 GDPR 合规设计。
两个终端能共用同一个 Crush 会话吗?可以。指向同一工作目录的客户端会加入同一个工作区,共享会话列表、消息历史和权限队列。用会话选择器附加到另一个客户端已打开的会话,就能实时同步看到它的内容。
它支持技能(skills)吗?支持——它自带一个用于配置自身的内置技能,你也可以完全禁用任何技能。被禁用的技能会对智能体隐藏。
Crush 是开源的吗?GitHub 上该仓库没有标注标准许可证(NOASSERTION),所以它不会被自动验证为开源。请查看仓库里的 LICENSE 文件,了解你被允许怎么使用它。
有哪些类似的项目?ordewell, opencode, aichat, claurst, Baize, tau, DeepCode, qwen-code
大小
40.8 MB
星标
29.2K
时长
1年
提交 · 90 天