大模型底座 · 中文选型解读

ollama

已解读GitHubMITGo

Ollama是一款可快速部署运行多种开源大模型的工具,适配多类操作系统,提供API与多语言SDK,支持对接各类AI应用与开发工具。

185.4kstar5 天前更新维护状态MIT · 可评估商用商用提醒
在 GitHub 查看官方项目
适合解决作为问答、生成和智能体应用的基础模型
更适合正在比较模型能力、成本与部署方式的团队
投入判断上手门槛:较高。需要评测真实业务数据与许可边界
一分钟看懂

这个项目值得继续研究吗?

AI 依据上游资料解读 · 2026/10/10

Ollama是一款可快速部署运行多种开源大模型的工具,适配多类操作系统,提供API与多语言SDK,支持对接各类AI应用与开发工具。

解决什么问题
企业部署开源大模型时,常面临环境适配复杂、模型管理成本高、对接业务系统与第三方工具开发工作量大、落地周期长的问题,该工具可大幅降低大模型落地的技术门槛。
适合什么团队
适合需要私有化部署开源大模型的企业业务团队、AI应用开发团队,以及需本地运行大模型做功能验证、搭建内部AI工具的团队。
使用前注意
本项目采用MIT许可,可自由使用、修改与商用,所调用的第三方大模型需遵守对应模型的许可规则。

本页用于缩短初步筛选时间,不构成技术、采购或法律结论。 正式使用前请在真实业务数据上验证,并以官方说明与许可证为准。

项目导读

从官方资料看清能力、部署与采用边界

AI 翻译整理 · 保留官方来源

以下内容依据项目公开 README 或模型卡翻译整理,代码、命令和产品名保持原样。

项目定位

Ollama是一款面向大模型落地场景的运行工具,核心目标是降低开源大模型的部署与使用门槛,用户无需完成复杂的底层环境配置,即可快速运行Kimi、GLM、MiniMax、DeepSeek、gpt-oss、Qwen、Gemma、Llama、Mistral等主流开源大模型,支撑各类AI场景的验证与落地,底层基于llama.cpp实现推理,性能优化成熟。

核心能力

  1. 多环境适配:支持macOS、Windows、Linux、Docker等多种运行环境,提供一键安装脚本,也可通过Homebrew、Pacman、Helm Chart等常用包管理器完成部署,同时支持Google Cloud、Fly.io等主流云平台的部署方案。
  2. 多模型支持:内置丰富的开源大模型库,覆盖通用对话、代码生成、多模态等多种类型的模型,可按需一键拉取运行。
  3. 标准接入接口:提供REST API,以及Python、JavaScript等多语言官方SDK,开发人员可快速将大模型能力接入自有业务系统。
  4. 生态对接能力:支持直接对接Claude Code、Copilot、OpenCode等主流AI开发工具,也可对接OpenClaw等助手工具,快速搭建跨渠道的AI服务。

典型使用方式

直接与大模型对话

安装完成后,只需执行ollama run 模型名命令,即可启动对应大模型并直接在命令行对话,例如运行ollama run gemma4即可启动Gemma 4模型进行交互,适合快速验证大模型能力,完整模型列表可查看官方模型库。

对接开发工具

可通过ollama launch 工具名命令快速对接各类AI开发工具,例如执行ollama launch claude即可对接Claude Code,也可对接Codex、Copilot CLI、DeepSeek Harness等开发工具,替代公有大模型服务完成代码生成、调试等工作。

搭建跨渠道AI助手

执行ollama launch openclaw即可启动OpenClaw集成,将Ollama运行的大模型作为底座,快速搭建覆盖WhatsApp、Telegram、Slack、Discord等渠道的个人或团队AI助手。

开发自有AI应用

可通过官方提供的REST API或者Python、JavaScript SDK调用大模型能力,嵌入业务系统完成智能客服、内容生成、数据处理等场景的开发,也可对接RAG(检索增强生成,一种让大模型可调用外部知识库内容生成回答的技术)等扩展能力,搭建企业级AI应用。

部署说明

Ollama提供多种部署方式,可根据团队需求选择:

  • 本地测试可直接使用对应系统的一键安装脚本,几分钟即可完成部署,也可下载官方安装包手动安装;
  • 服务器部署可使用官方Docker镜像ollama/ollama,快速完成容器化部署;
  • 云环境部署可直接使用Google Cloud、Fly.io、Koyeb等云厂商提供的官方部署方案,也可通过Helm Chart在K8s集群中部署。

生态适配情况

Ollama拥有丰富的第三方生态适配,可满足不同场景的使用需求:

  • 聊天交互界面:支持Open WebUI、Lobe Chat、NextChat等数十种开源Web、桌面、移动端聊天界面,也可对接ChatOllama、Ollama RAG Chatbot等带知识库能力的交互工具,无需额外开发即可获得类公有大模型的交互体验。
  • 开发工具集成:支持VS Code、Emacs、Sublime Text、Qt Creator等主流代码编辑器的AI插件,可替代公有大模型服务实现代码补全、代码解释、调试辅助等能力,也可对接Dify.AI、AnythingLLM等LLM应用开发平台,低代码搭建AI应用。
  • 开发框架适配:已适配LangChain、Semantic Kernel、Spring AI、LiteLLM等主流AI开发框架,支持Java、Go、.NET、Ruby、Rust等多语言的第三方SDK,开发人员可基于熟悉的技术栈快速完成应用开发。

许可证与采用建议

本项目采用MIT许可证,用户可免费使用、修改、二次分发,也可用于商业场景,无额外授权限制。项目目前处于活跃维护状态,近期仍有代码更新,适合需要私有化部署开源大模型的企业作为底座工具使用,可大幅减少底层环境适配、模型管理的人力投入,缩短大模型业务场景的验证周期。

可核对的事实层

官方资料与来源

查看来源 →
  • deepseek
  • gemma
  • glm
  • go
  • golang
  • gpt-oss
  • llama
  • llm
  • llms
  • minimax
  • mistral
  • muse
默认分支main
关注仓库1.0k
复刻次数18.8k
开放议题4.5k
近期更新2026/10/31
仓库状态未标记归档
上游部署线索
### Infrastructure & Deployment

#### Cloud

- [Google Cloud](https://cloud.google.com/run/docs/tutorials/gpu-gemma2-with-ollama)
- [Fly.io](https://fly.io/docs/python/do-more/add-ollama/)
- [Koyeb](https://www.koyeb.com/deploy/ollama)
- [Harbor](https://github.com/av/harbor) - Containerized LLM toolkit with Ollama as default backend

#### Package Managers

- [Pacman](https://archlinux.org/packages/extra/x86_64/ollama/)
- [Homebrew](https://formulae.brew.sh/formula/ollama)
- [Nix package](https://search.nixos.org/packages?show=ollama&from=0&size=50&sort=relevance&type=packages&query=ollama)
- [Helm Chart](https://artifacthub.io/packages/helm/ollama-helm/ollama)
- [Gentoo](https://github.com/gentoo/gentoo/tree/master/sci-ml/ollama)
- [Flox](https://flox.dev/blog/ollama-part-one)
- [Guix channel](https://codeberg.org/tusharhero/ollama-guix)

该片段来自项目 README,仅用于初步判断;实际部署请以官方文档为准。

核对上游原始说明节选

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Ollama

Start building with open models. Access the latest releases locally or in the cloud with complete privacy.

Download

macOS

curl -fsSL https://ollama.com/install.sh | sh

or download manually

Windows

irm https://ollama.com/install.ps1 | iex

or download manually

Linux

curl -fsSL https://ollama.com/install.sh | sh

Manual install instructions

Docker

The official Ollama Docker image ollama/ollama is available on Docker Hub.

Libraries

  • ollama-python
  • ollama-js

Community

  • Discord
  • 𝕏 (Twitter)
  • Reddit

Get started

ollama

You'll be prompted to run a model or connect Ollama to your existing agents or applications such as Claude Code, OpenClaw, OpenCode , Codex, Copilot, and more.

Coding

To launch a specific integration:

ollama launch claude

Supported integrations include Claude Code, Codex, Copilot CLI, DeepSeek Harness, Droid, and OpenCode.

AI assistant

Use OpenClaw to turn Ollama into a personal AI assistant across WhatsApp, Telegram, Slack, Discord, and more:

ollama launch openclaw

Chat with a model

Run and chat with Gemma 4:

ollama run gemma4

See ollama.com/library for the full list.

See the quickstart guide for more details.

REST API

Ollama has a REST API for running and managing models.

curl http://localhost:11434/api/chat -d '{
  "model": "gemma4",
  "messages": [{
    "role": "user",
    "content": "Why is the sky blue?"
  }],
  "stream": false
}'

See the API documentation for all endpoints.

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);

Supported backends

  • llama.cpp project founded by Georgi Gerganov.

Documentation

  • CLI reference
  • REST API reference
  • Importing models
  • Modelfile reference
  • Building from source

Community Integrations

Want to add your project? Open a pull request.

Chat Interfaces

Web

  • Open WebUI - Extensible, self-hosted AI interface
  • Onyx - Connected AI workspace
  • LibreChat - Enhanced ChatGPT clone with multi-provider support
  • Lobe Chat - Modern chat framework with plugin ecosystem (docs)
  • NextChat - Cross-platform ChatGPT UI (docs)
  • Perplexica - AI-powered search engine, open-source Perplexity alternative
  • big-AGI - AI suite for professionals
  • Lollms WebUI - Multi-model web interface
  • ChatOllama - Chatbot with knowledge bases
  • Bionic GPT - On-premise AI platform
  • Chatbot UI - ChatGPT-style web interface
  • Hollama - Minimal web interface
  • Chatbox - Desktop and web AI client
  • chat - Chat web app for teams
  • Ollama RAG Chatbot - Chat with multiple PDFs using RAG
  • Tkinter-based client - Python desktop client

Desktop

  • Dify.AI - LLM app development platform
  • AnythingLLM - All-in-one AI app for Mac, Windows, and Linux
  • Maid - Cross-platform mobile and desktop client
  • Witsy - AI desktop app for Mac, Windows, and Linux
  • Cherry Studio - Multi-provider desktop client
  • Ollama App - Multi-platform client for desktop and mobile
  • PyGPT - AI desktop assistant for Linux, Windows, and Mac
  • Alpaca - GTK4 client for Linux and macOS
  • SwiftChat - Cross-platform including iOS, Android, and Apple Vision Pro
  • Enchanted - Native macOS and iOS client
  • RWKV-Runner - Multi-model desktop runner
  • Ollama Grid Search - Evaluate and compare models
  • macai - macOS client for Ollama and ChatGPT
  • AI Studio - Multi-provider desktop IDE
  • Reins - Parameter tuning and reasoning model support
  • ConfiChat - Privacy-focused with optional encryption

Mobile

  • Ollama Android Chat - One-click Ollama on Android
SwiftChat, Enchanted, Maid, Ollama App, Reins, and ConfiChat listed above also support mobile platforms.

Code Editors & Development

  • Cline - VS Code extension for multi-file/whole-repo coding
  • Continue - Open-source AI code assistant for any IDE
  • Void - Open source AI code editor, Cursor alternative
  • Copilot for Obsidian - AI assistant for Obsidian
  • twinny - Copilot and Copilot chat alternative
  • gptel Emacs client - LLM client for Emacs
  • Ollama Copilot - Use Ollama as GitHub Copilot
  • Obsidian Local GPT - Local AI for Obsidian
  • Ellama Emacs client - LLM tool for Emacs
  • orbiton - Config-free text editor with Ollama tab completion
  • AI ST Completion - Sublime Text 4 AI assistant
  • VT Code - Rust-based terminal coding agent with Tree-sitter
  • QodeAssist - AI coding assistant for Qt Creator
  • AI Toolkit for VS Code - Microsoft-official VS Code extension
  • Open Interpreter - Natural language interface for computers
  • oxi - Native Rust desktop coding agent with editor, Git panel and terminal

Libraries & SDKs

  • LiteLLM - Unified API for 100+ LLM providers
  • Semantic Kernel - Microsoft AI orchestration SDK
  • LangChain4j - Java LangChain (example)
  • LangChainGo - Go LangChain (example)
  • Spring AI - Spring framework AI support (docs)
  • LangChain and LangChain.js with example
  • Ollama for Ruby - Ruby LLM library
  • any-llm - Unified LLM interface by Mozilla
  • OllamaSharp for .NET - .NET SDK
  • LangChainRust - Rust LangChain (example)
  • Agents-Flex for Java - Java agent framework ([example](https://github.com/agents-flex/agents-flex/tr