专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
ghcr.io/BerriAI/litellm-helm

ghcr.io/BerriAI/litellm-helm:1.82.0-nightly

ghcr.io
ghcr.iolinux/amd641.82.0-nightly大小: 未知更新于 2026年5月20日

🚅 LiteLLM

LiteLLM AI Gateway

适用于 100+ 种 LLM 的开源 AI 网关。可自托管。企业级就绪。以 OpenAI 格式调用任何 LLM。

LiteLLM Proxy Server (AI Gateway) | Hosted Proxy | Enterprise Tier | Website


什么是 LiteLLM

LiteLLM 是一个开源 AI 网关,为您提供单一、统一的接口,可使用 OpenAI 格式调用 100 多种 LLM 提供商——包括 OpenAI、Anthropic、Gemini、Bedrock、Azure 等。

您可以将其用作 Python SDK 进行直接库集成,或部署 AI 网关(代理服务器) 作为团队或组织的集中式服务。

跳至 LiteLLM 代理(LLM 网关)文档 跳至支持的 LLM 提供商


为什么选择 LiteLLM

跨提供商管理 LLM 调用很快会变得复杂——每种模型都有不同的 SDK、身份验证模式、请求格式和错误类型。LiteLLM 消除了这种摩擦:

  • 统一 API —— 一个接口支持 100+ 种 LLM,无需处理特定于提供商的 SDK
  • 即插即用的 OpenAI 兼容性 —— 无需重写代码即可切换提供商
  • 生产就绪的网关 —— 开箱即用地提供虚拟密钥、支出跟踪、安全护栏、负载均衡和管理仪表板
  • 8ms P95 延迟(在 1k RPS 下)(基准测试)

开源采用者

Netflix


功能

LLM - 调用 100+ 种 LLM(Python SDK + AI 网关)

所有支持的端点 - /chat/completions、/responses、/embeddings、/images、/audio、/batches、/rerank、/a2a、/messages 等。

Python SDK

uv add litellm
from litellm import completion
import os

os.environ["OPENAI_API_KEY"] = "your-openai-key"
os.environ["ANTHROPIC_API_KEY"] = "your-anthropic-key"

# OpenAI
response = completion(model="openai/gpt-4o", messages=[{"role": "user", "content": "Hello!"}])

# Anthropic
response = completion(model="anthropic/claude-sonnet-4-20250514", messages=[{"role": "user", "content": "Hello!"}])

AI 网关(代理服务器)

快速开始 - 端到端教程 - 设置虚拟密钥,发送第一个请求

uv tool install 'litellm[proxy]'
litellm --model gpt-4o
import openai

client = openai.OpenAI(api_key="anything", base_url="http://0.0.0.0:4000")
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)

文档:LLM 提供商

代理 - 调用 A2A 代理(Python SDK + AI 网关)

支持的提供商 - LangGraph、Vertex AI Agent Engine、Azure AI Foundry、Bedrock AgentCore、Pydantic AI

Python SDK - A2A 协议

from litellm.a2a_protocol import A2AClient
from a2a.types import SendMessageRequest, MessageSendParams
from uuid import uuid4

client = A2AClient(base_url="http://localhost:10001")

request = SendMessageRequest(
id=str(uuid4()),
params=MessageSendParams(
message={
"role": "user",
"parts": [{"kind": "text", "text": "Hello!"}],
"messageId": uuid4().hex,
}
)
)
response = await client.send_message(request)

AI 网关(代理服务器)

步骤 1. 将您的代理添加到 AI 网关

步骤 2. 通过 A2A SDK 调用代理

from a2a.client import A2ACardResolver, A2AClient
from a2a.types import MessageSendParams, SendMessageRequest
from uuid import uuid4
import httpx

base_url = "http://localhost:4000/a2a/my-agent" # LiteLLM 代理 + 代理名称
headers = {"Authorization": "Bearer sk-1234"} # LiteLLM 虚拟密钥

async with httpx.AsyncClient(headers=headers) as httpx_client:
resolver = A2ACardResolver(httpx_client=httpx_client, base_url=base_url)
agent_card = await resolver.get_agent_card()
client = A2AClient(httpx_client=httpx_client, agent_card=agent_card)

request = SendMessageRequest(
id=str(uuid4()),
params=MessageSendParams(
message={
"role": "user",
"parts": [{"kind": "text", "text": "Hello!"}],
"messageId": uuid4().hex,
}
)
)
response = await client.send_message(request)

文档:A2A 代理网关

MCP 工具 - 将 MCP 服务器连接到任何 LLM(Python SDK + AI 网关)

Python SDK - MCP 桥接

from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from litellm import experimental_mcp_client
import litellm

server_params = StdioServerParameters(command="python", args=["mcp_server.py"])

async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()

# 以 OpenAI 格式加载 MCP 工具
tools = await experimental_mcp_client.load_mcp_tools(session=session, format="openai")

# 与任何 LiteLLM 模型配合使用
response = await litellm.acompletion(
model="gpt-4o",
messages=[{"role": "user", "content": "What's 3 + 5?"}],
tools=tools
)

AI 网关 - MCP 网关

步骤 1. 将您的 MCP 服务器添加到 AI 网关

步骤 2. 通过 /chat/completions 调用 MCP 工具

curl -X POST 'http://0.0.0.0:4000/v1/chat/completions' \
-H 'Authorization: Bearer sk-1234' \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Summarize the latest open PR"}],
"tools": [{
"type": "mcp",
"server_url": "litellm_proxy/mcp/github",
"server_label": "github_mcp",
"require_approval": "never"
}]
}'

与 Cursor IDE 配合使用

{
"mcpServers": {
"LiteLLM": {
"url": "http://localhost:4000/mcp/",
"headers": {
"x-litellm-api-key": "Bearer sk-1234"
}
}
}
}

文档:MCP 网关

支持的提供商 (网站支持的模型 | 文档)

提供商/chat/completions/messages/responses/embeddings/image/generations/audio/transcriptions/audio/speech/moderations/batches/rerank
Abliteration (abliteration)✅
AI/ML API (aiml)✅✅✅✅✅
AI21 (ai21)✅✅✅
AI21 Chat (ai21_chat)✅✅✅
Aleph Alpha✅✅✅
Amazon Nova✅✅✅
Anthropic (anthropic)✅✅✅✅
Anthropic Text (anthropic_text)✅✅✅✅
Anyscale✅✅✅
AssemblyAI (assemblyai)✅✅✅✅
Auto Router (auto_router)✅✅✅
AWS - Bedrock (bedrock)✅✅✅✅✅
AWS - Sagemaker (sagemaker)✅✅✅✅
Azure (azure)✅✅✅✅✅✅✅✅✅
Azure AI (azure_ai)✅✅✅✅✅✅✅✅✅
Azure Text (azure_text)✅✅✅✅✅✅✅
Baseten (baseten)✅✅✅
Bytez (bytez)✅✅✅
Cerebras (cerebras)✅✅✅
Clarifai (clarifai)✅✅✅
Cloudflare AI Workers (cloudflare)✅✅✅
Codestral (codestral)✅✅✅
Cohere (cohere)✅✅✅✅✅
Cohere Chat (cohere_chat)✅✅✅
CometAPI (cometapi)✅✅✅✅
CompactifAI (compactifai)✅✅✅
Custom (custom)✅✅✅
Custom OpenAI (custom_openai)✅✅✅✅✅✅✅
Dashscope (dashscope)✅✅✅✅✅
Databricks (databricks)✅✅✅
DataRobot (datarobot)✅✅✅
Deepgram (deepgram)✅✅✅✅
DeepInfra (deepinfra)✅✅✅
Deepseek (deepseek)✅✅✅
ElevenLabs (elevenlabs)✅✅✅✅✅
Empower (empower)✅✅✅
Fal AI (fal_ai)✅✅✅✅
Featherless AI (featherless_ai)✅✅✅
Fireworks AI (fireworks_ai)✅✅✅
FriendliAI (friendliai)✅✅✅
Galadriel (galadriel)✅✅✅
GitHub Copilot (github_copilot)✅✅✅✅
GitHub Models (github)✅✅✅
Google - PaLM✅✅✅
Google - Vertex AI (vertex_ai)✅✅✅✅✅
Google AI Studio - Gemini (gemini)✅✅✅
GradientAI (gradient_ai)✅✅✅
Groq AI (groq)✅✅✅
Heroku (heroku)✅✅✅
Hosted VLLM (hosted_vllm)✅✅✅
Huggingface (huggingface)✅✅✅✅✅
Hyperbolic (hyperbolic)✅✅✅
IBM - Watsonx.ai (watsonx)✅✅✅✅
Infinity (infinity)✅
Jina AI (jina_ai)✅
Lambda AI (lambda_ai)✅✅✅
Lemonade (lemonade)✅✅✅
LiteLLM Proxy (litellm_proxy)✅✅✅✅✅
Llamafile (llamafile)✅✅✅
LM Studio (lm_studio)✅✅✅
Maritalk (maritalk)✅✅✅
Meta - Llama API✅✅✅

贡献

我们欢迎对 LiteLLM 的贡献!无论您是修复错误、添加功能还是改进文档,我们都感谢您的帮助。

贡献者快速入门

这需要安装 uv。

git clone https://github.com/BerriAI/litellm.git
cd litellm
make install-dev # 安装开发依赖
make format # 格式化代码
make lint # 运行所有 lint 检查
make test-unit # 运行单元测试
make format-check # 仅检查格式

有关详细的贡献指南,请参阅 CONTRIBUTING.md。

📖 想要为文档做贡献? LiteLLM 文档已迁移到单独的仓库:https://github.com/BerriAI/litellm-docs%E3%80%82%E8%AF%B7%E5%9C%A8%E8%AF%A5%E4%BB%93%E5%BA%93%E6%8F%90%E4%BA%A4%E6%96%87%E6%A1%A3 PR。文档托管于 docs.litellm.ai。

代码质量 / Linting

LiteLLM 遵循 https://google.github.io/styleguide/pyguide.html%E3%80%82

我们的自动化检查包括:

  • Black 用于代码格式化
  • Ruff 用于 linting 和代码质量检查
  • MyPy 用于类型检查
  • 循环导入检测
  • 导入安全性检查

您的 PR 必须通过所有这些检查才能合并。

支持 / 与创始人交流

  • 预约演示 👋
  • 社区 *** 💭
  • 社区 Slack 💭
  • 我们的*** ✉️ 是 *** / ***

贡献者

拉取命令

轩辕镜像通过轩辕镜像拉取

专属域名未获取到

请登录使用轩辕镜像享受快速拉取体验,支持国内访问优化,速度提升

🚀 国内优化⚡ 访问优化🔒 安全可靠
原始仓库从原始仓库拉取镜像
docker pull ghcr.io/BerriAI/litellm-helm:1.82.0-nightly

更多版本

共 33 个版本
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.14-stable
1.81.14-stableghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.1-nightly-latest
1.82.1-nightly-latestghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.85.0
1.85.0ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.0-stable.patch5
1.82.0-stable.patch5ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.0-stable
1.82.0-stableghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.3-stable.patch.2
1.82.3-stable.patch.2ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.14-stable
1.83.14-stableghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.7-stable.patch.1
1.83.7-stable.patch.1ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.5-nightly-latest
1.82.5-nightly-latestghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.84.0-rc.1
1.84.0-rc.1ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.12-stable.3
1.81.12-stable.3ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.84.0
1.84.0ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.85.0-rc.2
1.85.0-rc.2ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.14-stable.patch.2
1.83.14-stable.patch.2ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.6-nightly-latest
1.82.6-nightly-latestghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.14-stable.gpt-5.4-patch5
1.81.14-stable.gpt-5.4-patch5ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.14-stable.gpt-5.4-patch7
1.81.14-stable.gpt-5.4-patch7ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.3-stable
1.83.3-stableghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.2-nightly
1.82.2-nightlyghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.3-stable
1.82.3-stableghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.14-stable.patch.3
1.83.14-stable.patch.3ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.14-stable.patch.1
1.83.14-stable.patch.1ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.3
1.82.3ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.4-nightly-latest
1.82.4-nightly-latestghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.3-stable.patch.3
1.83.3-stable.patch.3ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.10-stable.patch.1
1.83.10-stable.patch.1ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.12-stable.patch.2
1.81.12-stable.patch.2ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.82.3-stable.patch.1
1.82.3-stable.patch.1ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.14-stable.gpt-5.4-patch6
1.81.14-stable.gpt-5.4-patch6ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.12-stable.langfuse-fix
1.81.12-stable.langfuse-fixghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.81.12-stable.patch.3
1.81.12-stable.patch.3ghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.10-stable
1.83.10-stableghcr.iolinux/amd64
ghcr.io/BerriAI/litellm-helm
ghcr.io/BerriAI/litellm-helm:1.83.7-stable
1.83.7-stableghcr.iolinux/amd64

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

为什么拉取镜像的 :latest 标签,拿到的往往不是「最新」镜像?

latest 与「最新」

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ghcr.io/BerriAI/litellm-helm
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单。官方公众号:源码跳动。官方技术交流群:51517718。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单。官方公众号:源码跳动。官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.