本地AI工具 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
本地AI工具 是一款基于 Crystal 开发的开源工具,专注于 kv-cache、local-ai、privacy-first 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
本地AI工具 是一款基于 Crystal 开发的开源工具,专注于 kv-cache、local-ai、privacy-first 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/zendrx/speak cd speak # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 speak --help # 基本运行 speak [options] <input> # 详细使用说明请查阅文档 # https://github.com/zendrx/speak
# speak 配置说明 # 查看配置选项 speak --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export SPEAK_CONFIG="/path/to/config.yml"
| Feature | What it means for you | Status |
|---|---|---|
| 100% Local | Runs on your laptop. No data sent to anyone. | Yes |
| Persistent Memory | Tell speak something once. It remembers forever. | Yes |
| File Reading | "Read my config.json" - speak shows you the content. | Yes |
| Web Search | "Search for latest news" - speak finds current information. | Yes |
| Low RAM Usage | Uses disk caching. Long conversations don't fill your memory. | Yes |
| Hardware Detection | Auto-configures itself for your computer. | Yes |
| Offline First | Works without internet. Web search is optional. | Yes |
| Streaming Output | Tokens appear as they are generated. | Yes |
| Agent Loop | Multi-step tool use (search, read, then answer). | Yes |
| Disk KV Cache | Conversation state saved to SSD, not RAM. | Yes |
| Resumable Downloads | Interrupted model downloads continue where they stopped. | Yes |
---
shards install
| Component | Minimum | Recommended | | ---- | ---- | ---- | | RAM | 4 GB | 8 GB | | Storage | 3 GB free | 10 GB free | | OS | Linux | Ubuntu 22.04+ | | CPU | Any 64-bit | AVX2 support |
macOS works but is experimental. Windows support coming soon.
---
crystal build src/speak.cr --release -o speak
Chat Commands
Inside the chat, type these commands:
| Command | Action | | ---- | ---- | | exit or quit | Save and quit | | clear | Clear the screen | | history | Show conversation history | | save | Save conversation manually | | memory | Show what speak remembers about you | | clearmemory | Clear all memories | | reset | Reset working memory |
Example conversation
``` $ ./speak
All settings are stored in ./speak/config.json. You can edit this file to customize speak.
Configuration Structure
{
"detected": {
"total_ram_mb": 8192,
"available_ram_mb": 6200,
"os_reserved_ram_mb": 512
},
"active": {
"cpu_cores": 4,
"has_avx2": true,
"free_disk_space_mb": 51200,
"context_size": 2048,
"kv_cache_type": "standard",
"model_quant": "Q4_K_M",
"model_file": "nanbeige-3b-q4_k_m.gguf",
"temperature": 0.7,
"max_tokens": 512,
"use_mmap": true
},
"user_overrides": {
"os_reserved_ram_mb": null,
"context_size": null,
"kv_cache_type": null,
"model_quant": null,
"temperature": null,
"max_tokens": null,
"use_mmap": null
}
}
| Setting | What it does | Default | ---- | ---- | ---- | |context_size | How many tokens the AI remembers| 2048| |temperature | Creativity (0.0 = strict, 1.5 = creative) | 0.7| |max_tokens | Maximum response length | 512| |model_quant | Quality vs speed (Q2_K, Q4_K_M, Q6_K) | Q4_K_M|
Make AI more creative
Edit ./speak/config.json:
"user_overrides": {
"temperature": 1.2
}
Reduce RAM usage
"user_overrides": {
"context_size": 1024,
"model_quant": "Q2_K"
}
Custom System Prompt
Edit src/speak/system_prompt.txt and recompile. The prompt is embedded at build time.
---
Unable to create dir ./speak
Your binary is named speak and conflicts with the data directory. Rename the binary:
mv speak speak_app
./speak_app
401 Unauthorized during download
The model repository requires authentication. Run:
./hfd.sh Edge-Quant/Nanbeige4.1-3B-Q4_K_M-GGUF --include *.gguf --local-dir ./speak/models
Then run ./speak again.
Model loads slowly on HDD
Use the smaller Q2_K model. Edit config.json:
"user_overrides": {
"model_quant": "Q2_K"
}
Then delete the old model file in ./speak/models/ and restart speak.
Readline not working
Install the system library:
```bash
轻量级本地LLM,支持磁盘缓存和文件读取
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,本地AI工具 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | speak |
| 原始描述 | 开源AI工具:Lightweight local LLM in Crystal. Disk-based KV cache, file reading, user memory。⭐7 · Crystal |
| Topics | kv-cachelocal-aiprivacy-first |
| GitHub | https://github.com/zendrx/speak |
| License | MIT |
| 语言 | Crystal |
收录时间:2026-05-26 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。