Ollama 支持 Kimi、GLM、DeepSeek、Qwen 等模型
ollama/ollama: Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other model
Ollama 在 GitHub 已获 18.8 万星,现可一键运行 Kimi、GLM、MiniMax、DeepSeek、gpt-oss、Qwen、Gemma 等模型。开发者本地部署和切换国产及开源大模型的门槛进一步降低。
核心要点
- Ollama 提供 macOS、Windows、Linux 与 Docker 四种安装方式,支持本地或云端运行开放模型,并强调数据隐私。
- 通过
ollama launch命令可将 Ollama 接入 Claude Code、Codex、Copilot CLI、OpenCode 等编码工具,或通过 OpenClaw 将其变为跨平台个人 AI 助手。 - 提供 REST API(默认
localhost:11434)以及 Python(pip install ollama)和 JavaScript(npm i ollama)官方库,便于集成到应用中。 - 底层推理后端基于 llama.cpp,文档覆盖 CLI、REST API、模型导入、Modelfile 与源码构建。
- 社区生态丰富,涵盖 Open WebUI、LibreChat、Dify.AI、AnythingLLM 等大量 Web、桌面与移动端集成项目。
正文
Ollama
开始使用开放模型进行构建。在本地或云端访问最新发布的模型,并享有完全的隐私保护。
下载
macOS
curl -fsSL https://ollama.com/install.sh | sh
或手动下载:https://ollama.com/download/Ollama.dmg
Windows
irm https://ollama.com/install.ps1 | iex
或手动下载:https://ollama.com/download/OllamaSetup.exe
Linux
curl -fsSL https://ollama.com/install.sh | sh
手动安装说明:https://docs.ollama.com/linux#manual-install
Docker
官方 Ollama Docker 镜像 ollama/ollama 已发布在 Docker Hub:https://hub.docker.com/r/ollama/ollama
库
社区
快速开始
ollama
运行后,系统会提示你运行某个模型,或将 Ollama 连接到已有的智能体或应用,例如 Claude Code、OpenClaw、OpenCode、Codex、Copilot 等。
编码
启动特定的集成:
ollama launch claude
支持的集成包括 Claude Code、Codex、Copilot CLI、DeepSeek Harness、Droid 以及 OpenCode。
AI 助手
使用 OpenClaw 可将 Ollama 变成跨 WhatsApp、Telegram、Slack、Discord 等平台的个人 AI 助手:
ollama launch openclaw
与模型对话
运行 Gemma 4 并与之对话:
ollama run gemma4
完整模型列表见 ollama.com/library。更多细节请参阅快速开始指南。
REST API
Ollama 提供用于运行和管理模型的 REST API。
curl http://localhost:11434/api/chat -d '{
"model": "gemma4",
"messages": [
{
"role": "user",
"content": "Why is the sky blue?"
}
],
"stream": false
}'
所有端点见 API 文档。
Python
pip install ollama
from ollama import chat
response = chat(
model='gemma4',
messages=[
{
'role': 'user',
'content': 'Why is the sky blue?',
},
],
)
print(response.message.content)
JavaScript
npm i ollama
import ollama from "ollama";
const response = await ollama.chat({
model: "gemma4",
messages: [
{
role: "user",
content: "Why is the sky blue?",
},
],
});
console.log(response.message.content);
支持的后端
- llama.cpp,由 Georgi Gerganov 创立的项目。
文档
社区集成
想添加你的项目?提交一个 pull request。
聊天界面
Web
- Open WebUI - 可扩展的自托管 AI 界面
- Onyx - 互联的 AI 工作空间
- LibreChat - 增强版 ChatGPT 克隆,支持多提供商
- Lobe Chat - 带插件生态的现代聊天框架 文档
- NextChat - 跨平台 ChatGPT UI 文档
- Perplexica - AI 驱动的搜索引擎,开源版 Perplexity 替代品
- big-AGI - 面向专业人士的 AI 套件
- Lollms WebUI - 多模型 Web 界面
- ChatOllama - 带知识库的聊天机器人
- Bionic GPT - 本地部署的 AI 平台
- Chatbot UI - ChatGPT 风格 Web 界面
- Hollama - 极简 Web 界面
- Chatbox - 桌面与 Web AI 客户端
- chat - 面向团队的聊天 Web 应用
- Ollama RAG Chatbot - 使用 RAG 与多个 PDF 对话
- Tkinter-based client - Python 桌面客户端
桌面
- Dify.AI - LLM 应用开发平台
- AnythingLLM - 适用于 Mac、Windows 和 Linux 的一体化 AI 应用
- Maid - 跨平台移动与桌面客户端
- Witsy - 适用于 Mac、Windows 和 Linux 的 AI 桌面应用
- Cherry Studio - 多提供商桌面客户端
- Ollama App - 桌面与移动端多平台客户端
- PyGPT - 适用于 Linux、Windows 和 Mac 的 AI 桌面助手
- Alpaca - 适用于 Linux 和 macOS 的 GTK4 客户端
- SwiftChat - 跨平台,包括 iOS、Android 和 Apple Vision Pro
- Enchanted - 原生 macOS 和 iOS 客户端
- RWKV-Runner - 多模型桌面运行器
- Ollama Grid Search - 评估与比较模型
- macai - 适用于 Ollama 和 ChatGPT 的 macOS 客户端
- AI Studio - 多提供商桌面 IDE
- Reins - 参数调优与推理模型支持
- ConfiChat - 注重隐私,支持可选加密
- LLocal.in - Electron 桌面客户端
- MindMac - Mac 上的 AI 聊天客户端
- Msty - 多模型桌面客户端
- BoltAI for Mac - Mac 上的 AI 聊天客户端
- [IntelliBar](ht...(原文在此处截断)