能力标签
MiniClosedAI
🛠
AI工具

MiniClosedAI

基于 Python · 开源免费,本地部署,数据完全自主可控
英文名:miniclosedai
⭐ 8 Stars 🍴 1 Forks 💻 Python 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
installablepython
✦ AI Skill Hub 推荐

MiniClosedAI 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

MiniClosedAI 是一款基于 Python 的开源工具,在 GitHub 上收获 0k+ Star,是installable、python领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
MiniClosedAI 依赖 Python 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Python 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 MiniClosedAI 的版本更新,及时通知重要功能变化。

📋 工具概览

MiniClosedAI:开源AI工具,实现本地LLM玩耍,保存聊天记录为可调用函数。

MiniClosedAI 是一款基于 Python 开发的开源工具,专注于 installable、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 8
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
AI工具
Forks
1

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

MiniClosedAI:开源AI工具,实现本地LLM玩耍,保存聊天记录为可调用函数。

MiniClosedAI 是一款基于 Python 开发的开源工具,专注于 installable、python 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install miniclosedai

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install miniclosedai

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/edantonio505/miniclosedai
cd miniclosedai
pip install -e .

# 验证安装
python -c "import miniclosedai; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
miniclosedai --help

# 基本用法
miniclosedai input_file -o output_file

# Python 代码中调用
import miniclosedai

# 示例
result = miniclosedai.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# miniclosedai 配置文件示例(config.yml)
app:
  name: "miniclosedai"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
miniclosedai --config config.yml

# 或通过环境变量配置
export MINICLOSEDAI_API_KEY="your-key"
export MINICLOSEDAI_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 67/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

MiniClosedAI — Be Your Own OpenAI

Be your own OpenAI. A tiny, 100%-local LLM playground where every saved chat becomes a callable /v1/chat/completions endpoint — like OpenAI's Playground, but you own it. Any local model (Llama, Qwen, Mistral). No cloud, no API keys, no costs.

Built with FastAPI (5 Python deps), vanilla JS, and SQLite. Runs on a laptop. Data never leaves your machine.

<p align="center"> <img src="docs/images/miniclsedai1.png" alt="MiniClosedAI — a saved Pikachu bot responding to a message, with system prompt and parameters visible in the sidebar" width="820"> <br><em>A saved bot. The sidebar is the full control panel; the chat is the live test.</em> </p>

stack Ollama license

The defining idea: each saved conversation is an addressable microservice. You craft a system prompt + sampling params once in the UI, and that chat becomes a stable URL you can call from anything that speaks HTTP — including any OpenAI SDK.

<sub>If MiniClosedAI saves you a SaaS bill or just makes a fun afternoon, a quick ⭐ on GitHub helps others find it. No pressure — but it's the whole ask.</sub>

---

Requirements

RequirementVersionNotes
Python3.10 or newerpython3 --version
At least one LLM backendOllama *or* LM Studio *or* any OpenAI-compatible serverOllama is the built-in default. **Optional in lite mode** — see below.
Ollamaany recent releaseOptional if you only use OpenAI-compat backends or run in [lite mode](#lite-install-no-local-ollama). Default URL http://localhost:11434
LM Studioany recent release with the *Local Server* featureOptional. Serves /v1 at (typically) http://host:1234/v1
At least one modelpulled (Ollama) or loaded (LM Studio)see [recommended models](#recommended-models-1b10b). In lite mode the model lives on the *remote* endpoint, not this machine.
RAM~2 GB for 1–3B models; 8+ GB for 7–9BMore for 20B+. **Lite mode needs only ~150 MB** — inference runs elsewhere.
Disk~1–10 GB per modelPlus 200 MB for the app itself. **Lite mode**: ~50 MB total — no model storage needed.

Five Python dependencies — fastapi, uvicorn, httpx, pypdf, python-multipart. That's it. The same five whether you run heavy or lite.

Lite mode (no local Ollama) drops every requirement except Python + the five pip packages. See Lite install below.

---

Install

Quickest — one-line install (macOS, Linux, WSL)

curl -fsSL https://raw.githubusercontent.com/edantonio505/miniclosedai/main/install.sh | bash

What it does: clones to ~/miniclosedai, creates a Python venv, installs the three dependencies, and starts the server detached on port 8095. When it returns, open <http://localhost:8095>. Re-run the same command later to update — it git pulls the latest and reinstalls deps in place.

No curl? Same thing with wget:

wget -qO- https://raw.githubusercontent.com/edantonio505/miniclosedai/main/install.sh | bash

Tunables (export before piping, or prepend on the same line):

Env varDefaultMeaning
MINICLOSEDAI_DIR$HOME/miniclosedaiWhere to clone.
MINICLOSEDAI_PORT8095Port to bind.
MINICLOSEDAI_START11 = auto-start the server detached, 0 = install only and print the run command.
MINICLOSEDAI_BRANCHmainCheckout a feature branch instead.
MINICLOSEDAI_REPOcanonical URLUse a fork.

Example — install to a custom path, skip auto-start:

curl -fsSL https://raw.githubusercontent.com/edantonio505/miniclosedai/main/install.sh \
  | MINICLOSEDAI_DIR=/opt/miniclosedai MINICLOSEDAI_START=0 bash

Requirements the script checks before doing anything: git, python3 ≥ 3.10. On a fresh macOS, both ship with the developer tools (xcode-select --install once if you've never used git). On Debian/Ubuntu, sudo apt install git python3 python3-venv covers it. Docker is not required — this is the bare-metal lite install.

Windows: use WSL (the command above works inside an Ubuntu/Debian WSL shell). Native Windows install is supported via the manual path below — there's no PowerShell installer yet.

All installation paths

Two methods (Docker or bare-metal), each with two modes — heavy (Ollama + baked models, ~10 GB image) or lite (no local Ollama; you point at any external Ollama / OpenAI-compatible endpoint via the Settings page, ~160 MB image, runs on any laptop). Pick whichever combination fits your hardware and use case:

Heavy (with built-in Ollama)Lite (no Ollama, BYO endpoint)
**Docker**[Docker quick start](#docker-quick-start-with-baked-models) — full stack, three baked models, GPU recommended.[Docker — lite](#docker--lite-no-built-in-ollama) — single ~160 MB container, zero GPU.
**Bare-metal**[Manual install](#1-ollama) — install Ollama + Python venv.[Lite install](#lite-install-no-local-ollama) — pip install -r requirements.txt and you're done.

Lite mode is the right pick when you have an inference server somewhere else — another machine on your LAN, a cloud Ollama relay, an LM Studio, vLLM, or any OpenAI-compatible URL — and you just want the playground UI on this machine.

Docker quick start (with baked models)

One-command setup that boots MiniClosedAI and Ollama with three small-but-capable models (llama3.2:3b, qwen2.5:3b, gemma2:2b — about 5.5 GB of weights) already on disk inside the image. No ollama pull step. No host Ollama install. Works on any Linux with Docker + NVIDIA GPU; CPU-only fallback below.

Requirements

VersionNotes
Docker Engine20.10+ (Compose v2 bundled)docker --version. Use docker compose (space), not docker-compose (hyphen, v1 — ignores healthcheck conditions).
NVIDIA drivers + nvidia-container-toolkitcurrentLinux: sudo apt install nvidia-container-toolkit && sudo systemctl restart docker. Without it, up fails with *"could not select device driver nvidia with capabilities [[gpu]]"*.
Free disk~20 GBBuild-time working space on Docker's data-root — ~10.3 GB final Ollama image (base ships CUDA/ROCm libs) + model blobs + layer commit overhead.

Bring it up

git clone https://github.com/edantonio505/miniclosedai.git && cd miniclosedai
docker compose up -d --build

First build takes ~8–15 min (downloads three models from registry.ollama.ai). Subsequent up -d calls boot in ~30 s. When both services report healthy in docker compose ps, open <http://127.0.0.1:8095> — the model dropdown lists the three baked models under Ollama (built-in).

CPU-only hosts

If you don't have (or don't want to use) an NVIDIA GPU:

docker compose -f docker-compose.yml -f docker-compose.cpu.yml up -d --build

The override strips the GPU reservation. Inference on the 3B models will be noticeably slower; gemma2:2b stays usable in real time.

Adding or removing models after build

Models pulled at runtime persist in the ollama_models named volume across restarts and image rebuilds:

```bash

Docker — lite (no built-in Ollama)

Single-service compose file. Brings up only the MiniClosedAI web app (~160 MB image) — no Ollama container, no GPU passthrough, no nvidia-container-toolkit requirement, no model layers. The dashboard starts empty; you register your external endpoint(s) through the Settings page and the dropdown lights up.

```bash git clone https://github.com/edantonio505/miniclosedai.git && cd miniclosedai docker compose -f docker-compose.lite.yml up -d --build

Systemd installs automatically. To verify:

systemctl status ollama curl http://localhost:11434/api/tags # → {"models":[]}


**Windows**

Download and run `OllamaSetup.exe` from <https://ollama.com/download>. It installs as a background service. Verify with PowerShell:
powershell Invoke-RestMethod http://localhost:11434/api/tags ```

Lite install (no local Ollama)

If you don't want to install Ollama on this machine — for example, you'll point at a remote Ollama, an LM Studio on your LAN, or any OpenAI-compatible endpoint — skip steps 1 and 2 above and run just step 3, then start the app with the MINICLOSEDAI_NO_OLLAMA=1 env var:

git clone https://github.com/edantonio505/miniclosedai.git && cd miniclosedai
python -m venv .venv
source .venv/bin/activate             # Windows: .venv\Scripts\activate
pip install -r requirements.txt       # 5 deps total, no system packages

MINICLOSEDAI_NO_OLLAMA=1 \
  python -m uvicorn app:app --host 0.0.0.0 --port 8095

(On Windows PowerShell: $env:MINICLOSEDAI_NO_OLLAMA=1; python -m uvicorn app:app --host 0.0.0.0 --port 8095)

Open <http://localhost:8095>. The dashboard's empty state shows "Welcome — let's add your first endpoint" with a button that takes you straight to Settings → Add endpoint. Fill in:

  • Name — anything you like (e.g. Home server Ollama).
  • Kindollama for native Ollama servers (recommended; supports think: false properly), openai for LM Studio / vLLM / llama.cpp / Bonsai / any OpenAI-compatible URL.
  • Base URL — the full URL of your server. For native-Ollama use the host root (e.g. https://my-server.example.com — no /v1 suffix). For OpenAI-compat include /v1 (e.g. http://192.168.1.50:1234/v1).
  • API key (optional) — sent as Authorization: Bearer <key> on every request. Use this if your endpoint is gated by a Bearer token.
  • Custom headers (optional) — any extra headers your endpoint requires.

Save. The endpoint's models appear in the dashboard's model dropdown immediately. From there everything else (chat, attachments, API Code modal, fine-tuning data export) works exactly the same as the heavy install — only the inference happens elsewhere.

What MINICLOSEDAI_NO_OLLAMA=1 does:

  • On a fresh database, the built-in Ollama backend isn't seeded. The dashboard starts with zero endpoints registered.
  • On an existing database that previously ran in heavy mode, the built-in row is auto-disabled at startup (its enabled flag is set to 0) so it doesn't show as a permanently-broken endpoint in the dropdown.
  • Without the env var, behavior is identical to the heavy default — no breaking changes for existing users.

Other env vars you may want for the lite setup:

VarPurpose
MINICLOSEDAI_DB_PATHOverride where the SQLite DB lives. Default: ./miniclosedai.db next to app.py.
OLLAMA_URLThe default seeded URL for the built-in Ollama row when it *does* get seeded. Irrelevant in lite mode.

---

One-shot setup — builds llama.cpp and downloads the default GGUF model (Bonsai-8B)

./setup.sh

UI guide

Clone PrismML's demo repo

git clone https://github.com/PrismML-Eng/Bonsai-demo.git cd Bonsai-demo

→ click ⚙️ Settings → Add endpoint


Build is ~30 seconds (one Python deps layer, no model pulls). The compose file sets `MINICLOSEDAI_NO_OLLAMA=1` in the container env so the built-in Ollama backend isn't seeded — the dashboard's empty state shows a "Welcome — let's add your first endpoint" CTA that flips to the Settings tab in one click.

| When to pick this | When to pick the heavy default |
|---|---|
| You have an Ollama (or OpenAI-compat server) on another machine, in a VPS, or behind a relay. | You want everything on one host. |
| Laptop with no GPU, or with limited disk. | Workstation or server with NVIDIA GPU + ≥20 GB free disk. |
| You don't want a 10 GB image to build/store. | You want zero external dependencies. |
| Your hardware can't run a 7–9B model locally. | Your hardware can. |

To switch back to the heavy default later, just bring the lite stack down and start the standard one — the SQLite DB lives in the same `miniclosedai_db` volume, so your conversations persist:
bash docker compose -f docker-compose.lite.yml down docker compose up -d --build ```

The auto-disable on the built-in row is reversible — running the standard compose without MINICLOSEDAI_NO_OLLAMA won't re-flip the row's enabled flag automatically. If you've previously been in lite mode and the built-in row is disabled, re-enable it once via the Settings page (or set its enabled = 1 in the DB).

To run without Docker — keep reading.

API Code modal

Three independent toggles produce 12 snippet variants:

  • Language: cURL · Python · JavaScript
  • Mode: Streaming · Non-streaming
  • Style: Native · OpenAI-compat

A clickable "Bot #N" pill sits in the modal header next to the title. One click copies just the raw conversation id (e.g. 42) to the clipboard — useful when your microservice config only needs the id, not the full URL or code. The pill briefly flashes "Copied!" in accent color, then fades back. Disabled (greyed) when no conversation has been created yet.

The modal can be opened from two places: the chat topbar's </> icon (scopes to the currently-open bot), OR a bot card's row </> action on the Bots list (scopes to that specific bot without changing your current open chat). The pill always reflects whichever conversation the modal is currently scoped to.

Copy button works on both HTTPS/localhost (via navigator.clipboard) and plain-HTTP LAN (falls back to document.execCommand("copy")).

<p align="center"> <img src="docs/images/miniclosedai3.png" alt="API Integration Code modal with three toggle groups — Language, Mode, Style — showing the JavaScript / Non-streaming / OpenAI-compat variant pointed at this instance" width="820"> <br><em>Every saved chat is a microservice. Copy the snippet as cURL, Python, or JavaScript — native or OpenAI-SDK-compatible.</em> </p>

Connecting LM Studio and other OpenAI-compatible endpoints

MiniClosedAI ships with Ollama as a built-in endpoint and lets you register any number of additional servers alongside it: OpenAI-compatible ones like LM Studio, vLLM, llama.cpp's server binary, Text Generation WebUI's OpenAI extension, or the real OpenAI API itself, plus Ollama-compatible cloud services such as Interdata Lab that expose a remote Ollama at a public URL.

Each saved conversation picks one endpoint + one model; the Dashboard's model dropdown groups everything into a single OpenWebUI-style <optgroup> picker so you can chat with a Qwen3.6 on LM Studio and a Llama3.2 on Ollama in separate tabs without swapping anything.

<p align="center"> <img src="docs/images/miniclosedai6.png" alt="MiniClosedAI Settings page with three registered LLM endpoints: Ollama (built-in) at localhost:11434 showing 23 reachable models, LM Studio at 192.168.0.110:1234/v1 with 7 models and an API key set, and Bonsai at localhost:8080/v1 with 1 model — each card has Edit and (for non-built-in) Delete buttons" width="820"> <br><em>Settings → LLM Endpoints. The built-in Ollama, an LM Studio instance on your LAN, and PrismML's 1-bit Bonsai server all coexist. Each card shows its kind, base URL, API-key status, and a live reachability count.</em> </p>

Serves at http://localhost:8080 — health check at /health, API at /v1/chat/completions


Pick a different size by setting `BONSAI_MODEL` before the script: `8B` (default), `4B`, or `1.7B`.
bash BONSAI_MODEL=4B ./scripts/start_llama_server.sh ```

aarch64 / ARM: the shipped binaries are x86_64. Build from source with ./scripts/build_cuda_linux.sh (Linux+NVIDIA) or ./scripts/build_mac.sh (macOS+Metal) before the start_llama_server step.

2. Register Bonsai as an endpoint in MiniClosedAI

Settings (gear icon, bottom of activity bar) → + Add endpoint:

FieldValue
**Name**Bonsai (or anything readable)
**Kind****OpenAI-compatible**
**Base URL****http://localhost:8080/v1** — local. For LAN, substitute the host's IP. **Do not confuse 8080 (Bonsai) with 8095 (MiniClosedAI itself)** — see the pitfall below. The /v1 suffix is required.
**API key***(leave blank — llama.cpp --server doesn't require auth by default)*
**Extra headers***(leave empty)*

Click Test connection — should say "✓ Reachable · 1 model(s)" and list Bonsai-8B.gguf (or whichever size you loaded). Save.

3. Chat with Bonsai

Back on the Dashboard, open the model dropdown → there's a Bonsai optgroup with Bonsai-8B.gguf inside it. Create a new chat, pick that model, write a prompt. Every subsequent turn routes automatically to http://localhost:8080/v1/chat/completions because the conversation is pinned to (backend_id=<Bonsai>, model="Bonsai-8B.gguf").

The per-conv microservice pattern applies unchanged: POST /api/conversations/{id}/chat is your Bonsai bot's stable callable URL, and the API Code modal emits cURL / Python / JavaScript snippets that point at it.

Ready-made Bonsai microservice recipe: see RAG Query Router.md for a complete system prompt, recommended settings, and Python integration code for a latency-critical query-classification bot that's purpose-built for Bonsai's speed profile. Covered in the Recipes section below as #8 RAG query router.

Notes and gotchas specific to Bonsai

  • Thinking: Off (or Default). start_llama_server.sh already boots with --reasoning-budget 0 --reasoning-format none --chat-template-kwargs '{"enable_thinking": false}' — thinking is disabled upstream. Leave MiniClosedAI's Thinking control on Off or Default to match. Flipping it to On just wastes tokens; the server still won't emit reasoning.
  • Context window. Bonsai-8B is trained at 65,536 tokens; the start script uses llama.cpp's -c 0 (auto-fit). For very long contexts your GPU VRAM will be the binding constraint, not MiniClosedAI.
  • Server-side sampling defaults (set in start_llama_server.sh): temp=0.5, top-p=0.85, top-k=20, min-p=0. MiniClosedAI's per-conversation sliders override these on every request, so tune per-chat as usual.
  • Pitfall — wrong port = feedback loop. If you accidentally set Bonsai's Base URL to http://localhost:8095/v1 (MiniClosedAI's own port), the endpoint's /v1/models call loops back and returns MiniClosedAI's saved conversations as "models". The model dropdown will show conversation IDs (e.g. "30") under the Bonsai optgroup; picking one sends the chat through that conversation's bot instead of Bonsai, producing nonsensically on-topic responses (the Lead Qualifier's JSON, etc.). Fix: edit the endpoint, change the port to 8080.
  • Stop the server when you're done: kill $(lsof -ti TCP:8080) (or Ctrl+C in the terminal you started it in).

Managing endpoints

From the Settings page:

  • Test connection (on each card or in the Add/Edit modal) probes the endpoint through the MiniClosedAI server — avoids browser CORS blocks on cross-origin calls to LM Studio.
  • Edit lets you change the name, URL, API key, or custom headers. kind is immutable once saved.
  • Delete removes a non-built-in endpoint. Two paths depending on whether bots are pinned to it:
  • No bots pinned → single confirm, gone.
  • N bots pinned → first dialog lists the bot titles and recommends rebinding instead. If you OK, a second dialog gates the cascade (Really delete N bot(s)? This is permanent.); confirming both deletes the backend AND every bot pinned to it in one transaction. Use this for stale endpoints whose bots aren't worth migrating.
  • The built-in Ollama endpoint can be renamed or have its URL changed (useful if Ollama runs on a different port or host), but can't be deleted (the 403 fires regardless of force=true so you can't accidentally wipe the only Ollama row in lite mode).

API reference — native endpoints

Base URL: http://<host>:8095. All endpoints return JSON unless noted. Interactive OpenAPI docs at /docs.

Backends (endpoint lifecycle)

GET    /api/backends              → list all (api_key scrubbed to api_key_set bool)
POST   /api/backends              → create. Strip trailing /, normalize URL.
PATCH  /api/backends/{id}         → update (kind is immutable)
DELETE /api/backends/{id}         → 403 on is_builtin, 409 if bound (force=true cascades)
GET    /api/backends/{id}/models  → list that backend's models only
GET    /api/backends/{id}/status  → is it reachable?
POST   /api/backends/test         → probe a draft config without saving

Create body:

curl -X POST http://localhost:8095/api/backends \
  -H "Content-Type: application/json" \
  -d '{
    "name": "LM Studio",
    "kind": "openai",
    "base_url": "http://localhost:1234/v1",
    "api_key": "optional-bearer-token",
    "headers": {"X-Custom": "optional"}
  }'

Valid kind values: "ollama" · "openai". The OpenAI kind speaks the /v1/chat/completions wire format and works with any compliant server.

Delete guardrails:

  • DELETE /api/backends/1 (or any row with is_builtin=1) → 403 Forbidden, regardless of force=true. The built-in is undeletable so a lite-mode user can't accidentally end up with zero Ollama rows.
  • DELETE /api/backends/<id> when one or more conversations still point at it → 409 Conflict with a bound_conversations list. Rebind those conversations first (change their saved model to one on a different backend), then retry. Or cascade-delete with ?force=true to remove the backend AND every bot pinned to it in one transaction. Response body includes deleted_conversations: <count> so callers can confirm what was wiped.

```bash

🎯 aiskill88 AI 点评 B 级 2026-05-24

MiniClosedAI是一个开源的AI工具,允许用户在本地环境中玩耍LLM,实现AI自助开发和测试。虽然工具功能齐全,但仍需要进一步优化和完善。

📚 实用指南(长尾问题)
适合谁
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
最佳实践
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • Docker:miniclosedai 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 本地部署:CPU 8GB 起,GPU 推荐 16GB+ 显存
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
miniclosedai 中文教程miniclosedai 安装报错怎么办miniclosedai Docker 部署miniclosedai Agent 工作流miniclosedai 与同类工具对比miniclosedai 最佳实践miniclosedai 适合谁用

⚡ 核心功能

👥 适合谁
  • 构建多智能体协作系统的 Agent 开发者
  • 构建企业知识库 / RAG 检索应用的团队
  • 跨境业务、多语言内容运营团队
⭐ 最佳实践
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • 本地部署优先选 GGUF 量化模型,节省显存并保持响应速度
  • 分块大小建议 256-512 tokens,向量库优选 pgvector 或 Qdrant
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • embedding 模型与查询模型不一致导致检索失效
  • 显存不足直接 OOM — 优先降低 context 或换更小的量化模型

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

miniclosedai 是一款Python开发的AI辅助工具。开源AI工具:Be your own OpenAI. A local LLM playground where every saved chat is a callable 。⭐8 · Python 主要应用场景包括:本地LLM玩耍,实现AI自助开发和测试。
💡 AI Skill Hub 点评

经综合评估,MiniClosedAI 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 MiniClosedAI
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 miniclosedai
原始描述 开源AI工具:Be your own OpenAI. A local LLM playground where every saved chat is a callable 。⭐8 · Python
Topics installablepython
GitHub https://github.com/edantonio505/miniclosedai
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/edantonio505/miniclosedai

收录时间:2026-05-23 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。