机器翻译正文由机器翻译自项目原始文档(英文),排版经程序统一处理,可能存在偏差,请以原项目仓库为准。
奥拉玛
开始使用开源模型构建。
下载
macOS
curl -fsSL https://ollama.com/install.sh | sh
或 手动下载
窗口
irm https://ollama.com/install.ps1 | iex
或 手动下载
Linux
curl -fsSL https://ollama.com/install.sh | sh
Docker
官方的 Ollama Docker 镜像 ollama/ollama 可在 Docker Hub 上获取。
库
社区
入门
ollama
系统会提示您运行一个模型或将 Ollama 连接到您现有的代理或应用程序,例如 Claude Code、OpenClaw、OpenCode、Codex、Copilot 等。
编码
要启动特定的集成:
ollama launch claude
支持的集成包括 Claude Code、Codex、Copilot CLI、DeepSeek Harness、Droid 和 OpenCode。
人工智能助手
使用 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 创立。
文档
社区集成
想添加你的项目?提交一个拉取请求。
聊天界面
网页
- 打开 WebUI - 可扩展、自托管的 AI 界面
- Onyx - 连接的 AI 工作空间
- LibreChat - 支持多提供商的增强版 ChatGPT 克隆
- Lobe Chat - 现代聊天框架,带插件生态系统 (文档)
- NextChat - 跨平台 ChatGPT 用户界面 (文档)
- Perplexica - AI 驱动的搜索引擎,开源 Perplexity 替代方案
- big-AGI - 专业人员的 AI 套件
- Lollms WebUI - 多模型网页界面
- ChatOllama - 带知识库的聊天机器人
- Bionic GPT - 本地部署 AI 平台
- Chatbot UI - ChatGPT 风格网页界面
- Hollama - 极简网页界面
- Chatbox - 桌面和网页 AI 客户端
- chat - 团队聊天网页应用
- Ollama RAG Chatbot - 使用 RAG 与多个 PDF 进行聊天
- Tkinter 客户端 - Python 桌面客户端
桌面
- [Dify.AI](https://github.com/langgenius/dify)- 大型语言模型应用开发平台
- [AnythingLLM](https://github.com/Mintplex-Labs/anything-llm)- 适用于Mac、Windows和Linux的一体化AI应用
- [女佣](https://github.com/Mobile-Artificial-Intelligence/maid)- 跨平台移动和桌面客户端
- [机智](https://github.com/nbonamy/witsy)- 适用于Mac、Windows和Linux的AI桌面应用
- [樱桃工作室](https://github.com/kangfenmao/cherry-studio)- 多供应商桌面客户端
- [Ollama 应用](https://github.com/JHubi1/ollama-app)- 桌面和移动端多平台客户端
- [PyGPT](https://github.com/szczyglis-dev/py-gpt)- Linux、Windows和Mac的AI桌面助手
- [羊驼](https://github.com/Jeffser/Alpaca)- Linux和macOS的GTK4客户端
- [SwiftChat](https://github.com/aws-samples/swift-chat)- 跨平台支持iOS、Android和Apple Vision Pro
- [魔法](https://github.com/AugustDev/enchanted)- 原生macOS和iOS客户端
- [RWKV-跑者](https://github.com/josStorer/RWKV-Runner)- 多款桌面跑者
- [奥拉玛网格搜索](https://github.com/dezoito/ollama-grid-search)- 评估与比较模型
- [macai](https://github.com/Renset/macai)- Ollama 和 ChatGPT 的 macOS 客户端
- [AI Studio](https://github.com/MindWorkAI/AI-Studio)- 多供应商桌面集成开发环境
- [缰绳](https://github.com/ibrahimcetin/reins)- 参数调优与推理模型支持
- [ConfiChat](https://github.com/1runeberg/confichat)- 注重隐私,支持可选加密
- [LLocal.in](https://github.com/kartikm7/llocal)- Electron 桌面客户端
- [MindMac](https://mindmac.app)- Mac 的 AI 聊天客户端
- [Msty](https://msty.app)- 多模型桌面客户端
- [BoltAI for Mac](https://boltai.com)- Mac AI 聊天客户端
- IntelliBar - macOS 的 AI 助手
- Kerlig AI - macOS 的 AI 写作助手
- Hillnote - 以 Markdown 为核心的 AI 工作空间
- Perfect Memory AI - 根据屏幕和会议历史个性化的生产力 AI
移动端
- Ollama Android Chat - Android 上的一键 Ollama
上面列出的 SwiftChat、Enchanted、Maid、Ollama App、Reins 和 ConfiChat 也支持移动平台。
代码编辑器与开发
- Cline - VS Code 扩展,用于多文件/整个代码仓库编码
- Continue - 适用于任何 IDE 的开源 AI 代码助手
- Void - 开源 AI 代码编辑器,Cursor 替代品
- Copilot for Obsidian - Obsidian 的 AI 助手
- twinny - Copilot 及 Copilot 聊天替代品
- gptel Emacs client - Emacs 的 LLM 客户端
- Ollama Copilot - 将 Ollama 用作 GitHub Copilot
- Obsidian Local GPT - Obsidian 的本地 AI
- Ellama Emacs 客户端 - Emacs 的 LLM 工具
- orbiton - 无需配置的文本编辑器,支持 Ollama 标签补全
- AI ST Completion - Sublime Text 4 AI 助手
- VT Code - 基于 Rust 的终端代码代理,带 Tree-sitter
- [Qode协助](https://github.com/Palm1r/QodeAssist)- Qt Creator的AI编码助手
- [VS Code 的 AI 工具包](https://aka.ms/ai-tooklit/ollama-docs)- Microsoft官方 VS Code 扩展
- [开放解释器](https://docs.openinterpreter.com/language-model-setup/local-models/ollama)- 计算机自然语言接口
库与 SDK
- [LiteLLM](https://github.com/BerriAI/litellm)- 面向100个LLM提供商的统一API。
- [语义内核](https://github.com/microsoft/semantic-kernel/tree/main/python/semantic_kernel/connectors/ai/ollama)- Microsoft AI 编排 SDK
- LangChain4j - Java 版 LangChain (示例)
- LangChainGo - Go LangChain (示例)
- [Spring AI](https://github.com/spring-projects/spring-ai)- Spring 框架 AI 支持 ([docs](https://docs.spring.io/spring-ai/reference/api/chat/ollama-chat.html) )
- LangChain 和 LangChain.js 以及 示例
- [Ollama for Ruby](https://github.com/crmne/ruby_llm)- Ruby LLM 库
- [任意大型语言模型](https://github.com/mozilla-ai/any-llm)- Mozilla 的统一大型语言模型接口
- OllamaSharp for .NET - .NET 开发工具包
- LangChainRust - Rust LangChain (示例)
- [Java代理Flex](https://github.com/agents-flex/agents-flex)- Java 代理框架([示例](https://github.com/agents-flex/agents-flex/tree/main/agents-flex-llm/agents-flex-llm-ollama/src/test/java/com/agentsflex/llm/ollama))
- Elixir LangChain - Elixir LangChain
- Ollama-rs for Rust - Rust SDK
- .NET 的 LangChain - .NET LangChain (示例)
- [chromem-go](https://github.com/philippgille/chromem-go)- 带Ollama嵌入的Go向量数据库([example](https://github.com/philippgille/chromem-go/tree/v0.5.0/examples/rag-wikipedia-ollama))
- LangChainDart - Dart 版 LangChain
- [LlmTornado](https://github.com/lofcz/llmtornado)- 多推理API的统一C#接口
- Ollama4j for Java - Java 开发工具包
- Ollama for Laravel - Laravel 集成
- Ollama for Swift - Swift 软件开发工具包
- LlamaIndex 和 LlamaIndexTS - 用于大型语言模型应用的数据框架
- [干草堆](https://github.com/deepset-ai/haystack-integrations/blob/main/integrations/ollama.md)- 人工智能流水线框架
- [Firebase Genkit](https://firebase.google.com/docs/genkit/plugins/ollama)- 谷歌AI框架
- Ollama-hpp for C++ - C++ SDK
- [提示工具.jl](https://github.com/svilupp/PromptingTools.jl)- Julia大型语言模型工具包([示例](https://svilupp.github.io/PromptingTools.jl/dev/examples/working_with_ollama))
- Ollama for R - rollama - R 软件开发工具包
- Portkey - AI 网关
- [测试容器](https://testcontainers.com/modules/ollama/)- 基于容器的测试
- [LLPhant](https://github.com/theodo-group/LLPhant?tab=readme-ov-file#ollama)- PHP AI 框架
框架与代理
- [自动GPT](https://github.com/Significant-Gravitas/AutoGPT/blob/master/docs/content/platform/ollama.md)- 自主人工智能代理平台
- [船员AI](https://github.com/crewAIInc/crewAI)- 多智能体编排框架
- [Strands Agents](https://github.com/strands-agents/sdk-python)- AWS的模型驱动代理构建
- [柴郡猫](https://github.com/cheshire-cat-ai/core)- AI助手框架
- [任意代理](https://github.com/mozilla-ai/any-agent)- Mozilla 的统一代理框架接口
- [Stakpak](https://github.com/stakpak/agent)- 开源DevOps代理
- [六角机器人](https://github.com/hexastack/hexabot)- 对话式人工智能构建器
- [神经科学](https://github.com/cognizant-ai-lab/neuro-san-studio)- 多智能体编排([文档](https://github.com/cognizant-ai-lab/neuro-san-studio/blob/main/docs/user_guide.md#ollama))
RAG与知识库
- [RAGFlow](https://github.com/infiniflow/ragflow)- 基于深度文档理解的RAG引擎
- [R2R](https://github.com/SciPhi-AI/R2R)- 开源RAG引擎
- [MaxKB](https://github.com/1Panel-dev/MaxKB/)- 即用RAG聊天机器人
- [最小值]( https://github.com/dmayboroda/minima ) - 本地部署或完全本地化 RAG
- [Chipper](https://github.com/TilmanGriesel/chipper)- 与Haystack RAG的AI接口
- [ARGO](https://github.com/xark-argo/argo)- 关于Mac/Windows/Linux的RAG与深入研究
- [Archyve](https://github.com/nickthecook/archyve)- 支持RAG的文档库
- [Casibase](https://casibase.org)- 带有RAG和SSO的AI知识库
- [脑汤](https://www.nurgo-software.com/products/brainsoup)- 原生客户端,支持RAG和多代理自动化
机器人与消息传递
- [LangBot](https://github.com/RockChinQ/LangBot)- 多平台消息机器人,配备代理和RAG
- [星形机器人](https://github.com/Soulter/AstrBot/)- 多平台聊天机器人,包含RAG和插件
- Discord-Ollama 聊天机器人 - TypeScript Discord 机器人
- Ollama Telegram 机器人 - Telegram 机器人
- LLM Telegram 机器人 - 用于角色扮演的 Telegram 机器人
终端 & 命令行界面
- aichat - 集成 Shell 助理、RAG 和 AI 工具的全能 LLM CLI
- oterm - Ollama 的终端客户端
- gollama - 基于 Go 的 Ollama 模型管理器
- tlm - 本地 Shell 助手
- tenere - LLM 的终端用户界面
- ParLlama - Ollama 的终端用户界面
- llm-ollama - Datasette 的 LLM CLI 插件
- ShellOracle - Shell 命令建议
- LLM-X - LLM 的渐进式网页应用
- cmdh - 自然语言转 Shell 命令
- VT - 极简多模态 AI 聊天应用
生产力 & 应用
- AppFlowy - AI 协作工作区,可自托管的 Notion 替代品
- Screenpipe - 24/7 屏幕和麦克风录制,带 AI 搜索功能
- Vibe - 会议转录与分析
- Page Assist - AI 驱动的浏览 Chrome 扩展
- NativeMind - 私有、设备上的浏览器 AI 助手
- Ollama Fortress - Ollama 的安全代理
- [1面板](https://github.com/1Panel-dev/1Panel/)- 基于网页的Linux服务器管理
- [Writeopia](https://github.com/Writeopia/Writeopia)- 带Ollama集成的文本编辑器
- [质量保证试点](https://github.com/reid41/QA-Pilot)- GitHub代码仓库理解
- [Raycast扩展](https://github.com/MassimilianoPasquini97/raycast_ollama)- Raycast中的Ollama
- [涂装机器人](https://github.com/mateuszmigas/painting-droid)- 带有AI集成的绘画应用
- [宁静酒吧](https://github.com/doolijb/serene-pub)- AI角色扮演应用
- [玛雅EDMS](https://gitlab.com/mayan-edms/mayan-edms)- 使用Ollama工作流程进行文档管理
- [标签空间](https://www.tagspaces.org)- 使用[AI标签]进行文件管理(https://docs.tagspaces.org/ai/)
可观测性与监控
- [Opik](https://www.comet.com/docs/opik/cookbook/ollama)- 调试、评估和监控LLM应用
- [OpenLIT](https://github.com/openlit/openlit)- Ollama和GPU的OpenTelemetry原生监控
- [Lunary](https://lunary.ai/docs/integrations/ollama)- LLM可观察性,包含分析和个人信息掩蔽
- [Langfuse](https://langfuse.com/docs/integrations/ollama)- 开源LLM可观察性
- [蜂巢](https://docs.honeyhive.ai/integrations/ollama)- 智能体的AI可观察性与评估
- [机器学习流追踪](https://mlflow.org/docs/latest/llms/tracing/index.html#automatic-tracing)- 开源LLM可观察性
数据库与嵌入
- [pgai](https://github.com/timescale/pgai)- PostgreSQL作为矢量数据库([guide](https://github.com/timescale/pgai/blob/main/docs/vectorizer-quick-start.md))
- [MindsDB](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/integrations/handlers/ollama_handler/README.md)- 连接Ollama与200个数据平台
- [chromem-go](https://github.com/philippgille/chromem-go/blob/v0.5.0/embed_ollama.go)- 可嵌入围棋向量数据库([example](https://github.com/philippgille/chromem-go/tree/v0.5.0/examples/rag-wikipedia-ollama))
- [袋鼠](https://github.com/dbkangaroo/kangaroo)- AI驱动SQL客户端
基础设施与部署
云
包管理器
本站来源与版权声明
- 本文标题:ollama - 使用 Kimi
- 本文链接:https://www.cn121.com/llm/ollama-ollama.html
- 原项目:ollama/ollama 版权归原作者 ollama 及贡献者所有
- 收录信息:本站于 2026-09-21 收录本项目,本页所列协议与仓库指标均为收录当时的状态;该日期之后原项目的版本更新与协议变更,本页不作同步。
- 开源协议:收录时本项目采用 MIT(查看 LICENSE 原文),本站译文为其衍生内容;使用、修改、分发请以该仓库 LICENSE 原文为准。
- 站点出处:本文首发于 OneTwoOne,收录自 GitHub 开源项目 ollama/ollama。
- 翻译说明:本页正文为人工智能生成内容——由机器翻译对原项目 README 初译、经程序校验排版,可能存在错漏,请以原项目文档为准。
- 引用声明:商业转载、第三方聚合或 AI 检索训练引用时,请务必保留以上来源出处、本文永久链接,以及原项目的版权声明与许可信息。
- 下架通道:若原项目此后变更或收紧了许可协议、或作者/权利人认为本站的收录方式(译文、排版适配、简介翻译等)超出其授权范围,请通过 xyd3302001@163.com 发送下架通知,并附上项目地址与本页链接。本站核实后将第一时间删除本页内容,或改为不复制原文的目录性收录;署名更正等其他要求可一并提出。