专属域名
文档搜索
提交工单
轩辕助手
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像
轩辕镜像专业版
个人中心搜索镜像
交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 13763429

轩辕镜像
镜像详情
...
pysergio/chibi
官方博客热门镜像提交工单
本站面向开发者与科研用户,提供开源镜像的搜索和下载加速服务。
所有镜像均来源于原始开源仓库,本站不存储、不修改、不传播任何镜像内容。
轩辕镜像 · 专业版提供 SLA 级可用性保障 · 免费版为公共服务,可能存在不可用情况。了解差异 。 在线技术支持请优先 提交工单,技术交流欢迎加入官方QQ群:13763429 。
本站面向开发者与科研用户,提供开源镜像的搜索和下载加速服务。所有镜像均来源于原始开源仓库,本站不存储、不修改、不传播任何镜像内容。

chibi Docker 镜像下载 - 轩辕镜像

chibi 镜像详细信息和使用指南

chibi 镜像标签列表和版本信息

chibi 镜像拉取命令和加速下载

chibi 镜像使用说明和配置指南

Docker 镜像加速服务 - 轩辕镜像平台

国内开发者首选的 Docker 镜像加速平台

极速拉取 Docker 镜像服务

相关 Docker 镜像推荐

热门 Docker 镜像下载

chibi
pysergio/chibi

chibi 镜像详细信息

chibi 镜像标签列表

chibi 镜像使用说明

chibi 镜像拉取命令

Docker 镜像加速服务

轩辕镜像平台优势

镜像下载指南

相关 Docker 镜像推荐

*** bot gateway to multiple LLMs & Image models. Asynchronous, context-aware, for arm64/amd64.
1 收藏0 次下载activepysergio镜像
🚀轩辕镜像专业版更稳定💎一键安装 Docker 配置镜像源
镜像简介版本下载
🚀轩辕镜像专业版更稳定💎一键安装 Docker 配置镜像源

chibi 镜像详细说明

chibi 使用指南

chibi 配置说明

chibi 官方文档

logo

![GitHub]([] ![Build]([] ![docker hub]([] ![docker image arch]([] ![docker image size]([***] !license

Chibi is a Python-based *** chatbot that allows users to interact with a variety of powerful large language models (LLMs) and image generation models. The bot is asynchronous, providing fast response times and serving multiple users simultaneously without blocking each other's requests. Chibi supports session management, enabling models to remember the user's conversation history. The conversation history is stored for a configurable duration and is preserved even if the bot is restarted (when using persistent storage).

GitHub

Supported platforms

Currently supported architectures:

  • linux/amd64
  • linux/arm64

Note on armv7: Support for the linux/armv7 architecture was discontinued after version 0.8.2. However, if there is sufficient user interest, resuming armv7 builds can be investigated.

Supported providers

Chibi currently supports models from the following providers:

  • Alibaba (Qwen models)
  • Anthropic (Claude models)
  • Cloudflare (44+ open-source models)
  • DeepSeek
  • Google (Gemini models, including image generation)
  • MistralAI
  • MoonshotAI
  • OpenAI (including DALL-E for images)
  • xAI (Grok models, including image generation)

Features

  • Multi-Provider Support: Interact with models from 7 different providers (see list above).
  • Seamless Provider Switching: Change the underlying LLM provider anytime without losing the current conversation context. The history is automatically adapted for the new model.
  • Image Generation: Request images using DALL-E (OpenAI), Gemini (Google), or Grok (xAI) directly within the chat.
  • Context Management:
    • Automatic conversation summarization (optional) to save tokens on long conversations by replacing older parts of the history with a summary.
    • Manual context reset (/reset command) to start fresh and save tokens.
  • Flexible Session Storage: Store conversation history locally (requires mounting a volume for persistence), in Redis, or simply keep it in memory (lost on restart).
  • Optional "Public Mode": Run the bot without a master API key. Each user will be prompted to provide their own key via private message to the bot.
  • User and Group Whitelists: Restrict bot access to specific users or chat groups.
  • Easy Deployment with Docker: Pre-configured Docker image ready to run with minimal setup. Public mode works out-of-the-box without needing API keys in the environment variables.
  • Low Resource Usage: Runs efficiently even on low-spec hardware like a Raspberry Pi 4.
  • Asynchronous: Fast, non-blocking performance.
  • Configurable: Extensive options via environment variables.
  • MIT Licensed: Open source and free to use.

System Requirements

Chibi is designed to be very resource-efficient. It runs smoothly on hardware like a Raspberry Pi 4 (or higher) or even minimal cloud instances such as an AWS EC2 t4g.nano (2 arm64 vCPUs, 512MB RAM), capable of serving multiple users concurrently.

Essentially, the main requirements are:

  • A machine running on a supported architecture (linux/amd64 or linux/arm64).
  • Docker installed and running on that machine.

Prerequisites

  • Docker
  • Docker Compose (optional)

Getting Started

Using Docker Run

  1. Pull the Chibi Docker image:

    shell
    docker pull pysergio/chibi:latest
    
  2. Run the Docker container with the necessary environment variables: This command runs the bot in private mode using a Google Gemini key. It requires your *** token and at least one AI provider API key. Data is not persisted between restarts.

    shell
    docker run -d --name chibi \
     -e ***_BOT_TOKEN='YOUR_***_TOKEN' \
     -e GEMINI_API_KEY='AIzaSyYourGeminiKey...' \
     # Add other keys like -e OPENAI_API_KEY='sk-...' if needed
     pysergio/chibi:latest
    

Replace placeholders with your actual values.

Docker Compose Examples

Here are a few examples to get you started with docker-compose. Remember to create a .env file in the same directory as your docker-compose.yml to store your secrets like ***_BOT_TOKEN and API keys.

Minimal Private Mode Example

This is the bare minimum setup to run Chibi in private mode. It uses the OpenAI API key provided in your .env file.

yaml
version: '3.8'

services:
  chibi:
    image: pysergio/chibi:latest
    restart: unless-stopped
    environment:
      # Required: Get from BotFather
      ***_BOT_TOKEN: ${***_BOT_TOKEN}

      # Required for Private Mode: Add at least one provider API key
      OPENAI_API_KEY: ${OPENAI_API_KEY}
      # Add other keys (GEMINI_API_KEY, ANTHROPIC_API_KEY, etc.) here if needed

# --- .env file example ---
# ***_BOT_TOKEN=***:ABC-DEF1234...
# OPENAI_API_KEY=sk-YourOpenAIKey...
# -------------------------

Advanced Private Mode Example

This example shows a more customized setup for private mode:

  • Uses multiple AI providers.
  • Stores conversation history locally and persistently using a Docker volume.
  • Sets user/group whitelists.
  • Defines a custom assistant prompt and default model.
  • Sets a monthly limit for image generations.
yaml
version: '3.8'

services:
  chibi:
    image: pysergio/chibi:latest
    restart: unless-stopped
    environment:
      # --- Required ---
      ***_BOT_TOKEN: ${***_BOT_TOKEN}

      # --- API Keys (add whichever you use) ---
      OPENAI_API_KEY: ${OPENAI_API_KEY}
      GEMINI_API_KEY: ${GEMINI_API_KEY}
      ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
      # ... add other provider keys as needed

      # --- Whitelists ---
      USERS_WHITELIST: "@your_***_username,***" # Usernames and User IDs
      GROUPS_WHITELIST: "-100987654321" # Group Chat IDs (usually negative)

      # --- Customization ---
      BOT_NAME: "MyChibiBot"
      ASSISTANT_PROMPT: "You are a specialized assistant for code reviews."
      MODEL_DEFAULT: "gpt-4o" # Set your preferred default model

      # --- Limits & History ---
      MAX_HISTORY_TOKENS: 8000 # Adjust context window size
      IMAGE_GENERATIONS_LIMIT: 20 # Monthly limit per user (requires volume)

      # --- Storage ---
      # LOCAL_DATA_PATH: /app/data # Default path

    volumes:
      # Mounts the 'chibi_data' volume for persistence
      - chibi_data:/app/data

volumes:
  # Defines the Docker volume
  chibi_data: {}

# --- .env file example ---
# ***_BOT_TOKEN=***:ABC-DEF1234...
# OPENAI_API_KEY=sk-YourOpenAIKey...
# GEMINI_API_KEY=AIzaSy...
# ANTHROPIC_API_KEY=sk-ant-...
# -------------------------

Public Mode Example

This setup runs the bot in public mode. No master API keys are needed here; the bot will ask each user to provide their own key via private message.

yaml
version: '3.8'

services:
  chibi:
    image: pysergio/chibi:latest
    restart: unless-stopped
    environment:
      # Required: Get from BotFather
      ***_BOT_TOKEN: ${***_BOT_TOKEN}

      # --- Enable Public Mode ---
      PUBLIC_MODE: "True"

      # --- Optional Customization ---
      BOT_NAME: "ChibiPublic"
      # HIDE_MODELS: "True"
      # HIDE_IMAGINE: "True"

      # --- Whitelists (Optional for Public Mode) ---
      # You can still restrict *which* users/groups can use the bot
      # USERS_WHITELIST: "allowed_user1,***"
      # GROUPS_WHITELIST: "-1001122334455"

    # Volumes are optional unless needed for IMAGE_GENERATIONS_LIMIT
    # or specific local storage needs.
    # volumes:
    #   - chibi_public_data:/app/data

# volumes:
#   chibi_public_data: {}

# --- .env file example ---
# ***_BOT_TOKEN=***:ABC-DEF1234...
# (No API keys needed here for public mode)
# -------------------------

Please, visit the examples directory of the current repository for more examples.

*** Bot Settings

VariableDescriptionDefault Value
***_BOT_TOKENRequired. Your *** Bot Token obtained from BotFather.None
BOT_NAMEThe name the bot uses for itself (e.g., in the default prompt).Chibi
ANSWER_DIRECT_MESSAGES_ONLYIf True, the bot only responds to direct messages, ignoring group messages (unless whitelisted and mentioned).True
ALLOW_BOTSIf True, allows the bot to respond to messages sent by other bots.False
MESSAGE_FOR_DISALLOWED_USERSThe message sent to users or groups not in the whitelists when they try to interact with the bot."You're not allowed to interact with me, sorry. Contact my owner first, please."
PROXYOptional HTTP/SOCKS proxy specifically for connecting to the *** Bot API (e.g., socks5://user:pass@host:port).None

General Application Settings

VariableDescriptionDefault Value
PUBLIC_MODEIf True, the bot doesn't require master API keys. Users will be asked to provide their own keys via PM.False
LOG_PROMPT_DATASet to True to log the full prompt data sent to the API (includes history). Use with caution, logs may contain PII!False
HIDE_MODELSSet to True to hide the /model command from users.False
HIDE_IMAGINESet to True to hide the /image command from users.False
PROXYOptional HTTP/SOCKS proxy for outgoing AI provider API requests (e.g., socks5://user:pass@host:port). Distinct from *** proxy.None
RETRIESNumber of times to retry a failed AI provider API request.3
TIMEOUTTimeout in seconds for waiting for a response from the AI provider API.600

Storage Settings

VariableDescriptionDefault Value
REDISRedis connection string (e.g., redis://localhost:6379/0). If set, Redis will be used for session storage instead of local files.None
REDIS_PASSWORDDEPRECATED Password for the Redis connection.None
LOCAL_DATA_PATHPath inside the container where local session data is stored. Mount a volume to this path for persistence between restarts./app/data

API Keys (Master Keys)

These keys are used when PUBLIC_MODE is False. If PUBLIC_MODE is True, these are ignored (users provide their own keys).

VariableDescriptionDefault Value
ALIBABA_API_KEYAPI key for Alibaba (Qwen) models.None
ANTHROPIC_API_KEYAPI key for Anthropic (Claude) models.None
CLOUDFLARE_API_KEYAPI key for Cloudflare (44+ open-source models).None
CLOUDFLARE_ACCOUNT_IDAccount ID in the Cloudflare platform.None
DEEPSEEK_API_KEYAPI key for DeepSeek models.None
GEMINI_API_KEYAPI key for Google (Gemini & Imagen) models.None
GROK_API_KEYAPI key for xAI (Grok) models.None
MISTRALAI_API_KEYAPI key for MistralAI models.None
MOONSHOTAI_API_KEYAPI key for MoonshotAI (Kimi) models.None
OPENAI_API_KEYAPI key for OpenAI (GPT & DALL-E) models.None

Model & Conversation Settings

VariableDescriptionDefault Value
MODEL_DEFAULTDefault model ID used for new conversations (e.g., gpt-4o, claude-3-opus-20240229). If unset, the provider's default is used.None
ASSISTANT_PROMPTThe system prompt used to initialize the conversation. Uses BOT_NAME from *** settings."You're helpful and friendly assistant. Your name is {BOT_NAME}". Use markdown for formatting.
MAX_CONVERSATION_AGE_MINUTESMaximum age (in minutes) of messages kept in the active history. Older messages might be summarized or dropped.60
MAX_HISTORY_TOKENSMaximum number of tokens to retain in the conversation history sent to the model. Helps manage context window size and cost.64000
MAX_TOKENSMaximum number of tokens the model is allowed to generate in a single response.4096
TEMPERATUREControls randomness (0.0 to 2.0). Lower values are more deterministic, higher values are more creative/random.1.0
FREQUENCY_PENALTYPenalty applied to tokens based on their frequency in the text so far (positive values decrease repetition). Range: -2.0 to 2.0.0.0
PRESENCE_PENALTYPenalty applied to tokens based on whether they appear in the text so far (positive values encourage exploring new topics). Range: -2.0 to 2.0.0.0

Image Generation Settings

VariableDescriptionDefault Value
IMAGE_GENERATIONS_LIMITMonthly limit on the number of /image commands per user (0 means unlimited). Requires persistent storage.0
IMAGE_N_CHOICESDefault number of images to generate per request (currently supported mainly by DALL-E).1
IMAGE_QUALITYDefault image quality for providers that support it (e.g., DALL-E: standard or hd).standard
IMAGE_SIZEDefault image size (e.g., 1024x1024, 1792x1024). Check provider documentation for supported values.1024x1024
IMAGE_ASPECT_RATIODefault image aspect ratio for providers that support it (e.g.: 1:1, 16:9, 9:16).16:9

Whitelists

VariableDescriptionDefault Value
USERS_WHITELISTComma-separated list of *** usernames (with or without @) or user IDs allowed to interact with the bot. If empty or unset, allow all users.None
GROUPS_WHITELISTComma-separated list of *** group chat IDs where the bot is allowed to operate. If empty or unset, allow all groups.None
MODELS_WHITELISTComma-separated list of specific model IDs users are allowed to switch to. If empty or unset, all available models are allowed.None
IMAGE_GENERATIONS_WHITELISTComma-separated list of *** usernames (with or without @) or user IDs excluded from the image generation limit.None

Getting API Keys

To use Chibi in private mode, or for users interacting with the bot in public mode, you'll need API keys from the desired AI providers. Here's where you can typically find information or generate keys:

  • Alibaba (Qwen via DashScope): [***]
  • Anthropic (Claude): [***] (Sign up and navigate to API Keys)
  • Cloudflare: [***] (Need API key with Account.Workers AI permissions)
  • DeepSeek: [***] (Sign up and navigate to API Keys)
  • Google (Gemini): [***]
  • MistralAI: [***] (Sign up and navigate to API Keys)
  • MoonshotAI (Kimi): [***] (Sign up and navigate to API Keys)
  • OpenAI (GPT & DALL-E): [***]
  • xAI (Grok): [***] (Check documentation for API access details)

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

查看更多 chibi 相关镜像 →
chibisafe/chibisafe logo
chibisafe/chibisafe
by chibisafe
Chibisafe 是一个用 Node.js 编写的文件上传服务,易于部署和使用,支持公共/私有模式、分块上传、文件管理及直观的 UI 配置面板,可快速搭建个人或团队文件分享平台。
2100K+ pulls
上次更新:5 个月前
chibisafe/chibisafe-server logo
chibisafe/chibisafe-server
by chibisafe
暂无描述
100K+ pulls
上次更新:5 个月前
ardupilot/ardupilot-dev-chibios logo
ardupilot/ardupilot-dev-chibios
by ardupilot
ArduPilot CI镜像,用于构建Chibios开发板
11M+ pulls
上次更新:4 个月前

用户好评

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

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

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

用户评价详情

oldzhang - 运维工程师

Linux服务器

5

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

Nana - 后端开发

Mac桌面

4.9

配置Docker镜像源后,拉取速度快了数倍,开发体验提升明显。

Qiang - 平台研发

K8s集群

5

轩辕镜像在K8s集群中表现很稳定,容器部署速度明显加快。

小敏 - 测试工程师

Windows桌面

4.8

Docker镜像下载不再超时,测试环境搭建更加高效。

晨曦 - DevOps工程师

宝塔面板

5

配置简单,Docker镜像源稳定,适合快速部署环境。

阿峰 - 资深开发

群晖NAS

5

在群晖NAS上配置后,镜像下载速度飞快,非常适合家庭实验环境。

俊仔 - 后端工程师

飞牛NAS

4.9

Docker加速让容器搭建顺畅无比,再也不用等待漫长的下载。

Lily - 测试经理

Linux服务器

4.8

镜像源覆盖面广,更新及时,团队一致反馈体验不错。

浩子 - 云平台工程师

Podman容器

5

使用轩辕镜像后,Podman拉取镜像稳定无比,生产环境可靠。

Kai - 运维主管

爱快路由

5

爱快系统下配置加速服务,Docker镜像拉取速度提升非常大。

翔子 - 安全工程师

Linux服务器

4.9

镜像源稳定性高,安全合规,Docker拉取无忧。

亮哥 - 架构师

K8s containerd

5

大规模K8s集群下镜像加速效果显著,节省了大量时间。

慧慧 - 平台开发

Docker Compose

4.9

配置Compose镜像加速后,整体构建速度更快了。

Tina - 技术支持

Windows桌面

4.8

配置简单,镜像拉取稳定,适合日常开发环境。

宇哥 - DevOps Leader

极空间NAS

5

在极空间NAS上使用Docker加速,体验流畅稳定。

小静 - 数据工程师

Linux服务器

4.9

Docker镜像源下载速度快,大数据环境搭建轻松完成。

磊子 - SRE

宝塔面板

5

使用轩辕镜像后,CI/CD流程整体快了很多,值得推荐。

阿Yang - 前端开发

Mac桌面

4.9

国内网络环境下,Docker加速非常给力,前端环境轻松搭建。

Docker迷 - 架构师

威联通NAS

5

威联通NAS下配置镜像加速后,Docker体验比官方源好很多。

方宇 - 系统工程师

绿联NAS

5

绿联NAS支持加速配置,Docker镜像下载快且稳定。

常见问题

Q1:轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

Q2:轩辕镜像免费版与专业版有分别支持哪些镜像?

免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。

Q3:流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

Q4:410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

Q5:manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

Q6:镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

轩辕镜像下载加速使用手册

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

登录仓库拉取

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

Linux

在 Linux 系统配置镜像加速服务

Windows/Mac

在 Docker Desktop 配置镜像加速

Docker Compose

Docker Compose 项目配置加速

K8s Containerd

Kubernetes 集群配置 Containerd

宝塔面板

在宝塔面板一键配置镜像加速

群晖

Synology 群晖 NAS 配置加速

飞牛

飞牛 fnOS 系统配置镜像加速

极空间

极空间 NAS 系统配置加速服务

爱快路由

爱快 iKuai 路由系统配置加速

绿联

绿联 NAS 系统配置镜像加速

威联通

QNAP 威联通 NAS 配置加速

Podman

Podman 容器引擎配置加速

Singularity/Apptainer

HPC 科学计算容器配置加速

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名加速

需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429

商务:17300950906
©2024-2025 源码跳动
商务合作电话:17300950906Copyright © 2024-2025 杭州源码跳动科技有限公司. All rights reserved.