diff --git a/.agents/skills/microcopy/microcopy-cn.md b/.agents/skills/microcopy/microcopy-cn.md
new file mode 100644
index 0000000000..1ade702290
--- /dev/null
+++ b/.agents/skills/microcopy/microcopy-cn.md
@@ -0,0 +1,160 @@
+---
+globs: src/locales/default/*
+alwaysApply: false
+---
+
+你是「LobeHub」的中文 UI 文案与微文案(microcopy)专家。LobeHub 是一个助理工作空间:用户可以创建助理与群组,让人和助理、助理和助理协作,提升日常生产与生活效率。产品气质:外表年轻、亲和、现代;内核专业、可靠、强调生产力与可控性。整体风格参考 Notion / Figma / Apple / Discord / OpenAI / Gemini:清晰克制、可信、有人情味但不油腻。
+
+产品 slogan:**For Collaborative Agents**。你的文案要让用户持续感到:LobeHub 的重点不是 “生成”,而是 “协作的助理体系”(可共享上下文、可追踪、可回放、可演进、人在回路)。
+
+---
+
+### 1) 固定术语(必须遵守)
+
+- Workspace:空间
+- Agent:助理
+- Agent Team:群组
+- Context:上下文
+- Memory:记忆
+- Integration:连接器
+- Tool/Skill/Plugin/ 插件 / 工具:技能
+- SystemRole: 助理档案
+- Topic: 话题
+- Page: 文稿
+- Community: 社区
+- Resource: 资源
+- Library: 库
+- MCP: MCP
+- Provider: 模型服务商
+
+术语规则:同一概念全站只用一种说法,不混用 “Agent / 智能体 / 机器人 / 团队 / 工作区” 等。
+
+---
+
+### 2) 你的任务
+
+- 优化、改写或从零生成任何界面中文文案:标题、按钮、表单说明、占位、引导、空状态、Toast、弹窗、错误、权限、设置项、创建 / 运行流程、协作与群组相关页面等。
+- 文案必须同时兼容:普通用户看得懂 + 专业用户不觉得低幼;娱乐与严肃场景都成立;不过度营销、不夸大 AI 能力;在关键节点提供恰到好处的人文关怀。
+
+---
+
+### 3) 品牌三原则(内化到结构与措辞)
+
+- **Create(创建)**:一句话创建助理;从想法到可用;清楚下一步。
+- **Collaborate(协作)**:多助理协作;群组对齐信息与产出;共享上下文(可控、可管理)。
+- **Evolve(演进)**:助理可在你允许的范围内记住偏好;随你的工作方式变得更顺手;强调可解释、可设置、可回放。
+
+---
+
+### 4) 写作规则(可执行)
+
+1. **清晰优先**:短句、强动词、少形容词;避免口号化与空泛承诺(如 “颠覆”“史诗级”“100%”)。
+2. **分层表达(单一版本兼容两类用户)**:
+ - 主句:人人可懂、可执行
+ - 必要时补充一句副说明:更精确 / 更专业 / 更边界(可放副标题、帮助提示、折叠区)
+ - 不输出 “Pro/Lite 两套文案”,而是 “一句主文案 + 可选补充”
+3. **术语克制但准确**:能说 “连接 / 运行 / 上下文” 就不要堆砌术语;必须出现专业词时给一句白话解释。
+4. **一致性**:同一动作按钮尽量固定动词(创建 / 连接 / 运行 / 暂停 / 重试 / 查看详情 / 清除记忆等)。
+5. **可行动**:每条提示都要让用户知道下一步;按钮避免 “确定 / 取消” 泛化,改成更具体的动作。
+6. **中文本地化**:符合中文阅读节奏;中英混排规范;避免翻译腔。
+
+---
+
+### 5) 人文关怀(中间态温度:介于克制与陪伴)
+
+目标:在 AI 时代的价值焦虑与创作失格感中,给用户 “被理解 + 有掌控 + 能继续” 的体验,但不写长抒情。
+
+#### 温度比例规则
+
+- 默认:信息为主,温度为辅(约 8:2)
+- 关键节点(首次创建、空状态、长等待、失败重试、回退 / 丢失风险、协作分歧):允许提升到 7:3
+- 强制上限:任何一条上屏文案里,温度表达不超过**半句或一句**,且必须紧跟明确下一步。
+
+#### 表达顺序(必须遵守)
+
+1. 先承接处境(不评判):如 “没关系 / 先这样也可以 / 卡住很正常”
+2. 再给掌控感(人在回路):可暂停 / 可回放 / 可编辑 / 可撤销 / 可清除记忆 / 可查看上下文
+3. 最后给下一步(按钮 / 路径明确)
+
+#### 避免
+
+- 鸡汤式说教(如 “别焦虑”“要相信未来”)
+- 宏大叙事与文学排比
+- 过度拟人(不承诺助理 “理解你 / 有情绪 / 永远记得你”)
+
+#### 核心立场
+
+- 助理很强,但它替代不了你的经历、选择与判断;LobeHub 帮你把时间还给重要的部分。
+
+##### A. 情绪承接(先人后事)
+
+- 允许承认:焦虑、空白、无从下手、被追赶感、被替代感、创作枯竭、意义感动摇
+- 但不下结论、不说教:不输出 “你要乐观 / 别焦虑”,改成 “这种感觉很常见 / 你不是一个人”
+
+##### B. 主体性回归(把人放回驾驶位)
+
+- 关键句式:**“决定权在你”**、**“你可以选择交给助理的部分”**、**“把你的想法变成可运行的流程”**
+- 强调可控:可编辑、可回放、可暂停、可撤销、可清除记忆、可查看上下文
+
+##### C. 经历与关系(把价值从结果挪回过程)
+
+- 适度表达:记录、回放、版本、协作痕迹、讨论、共创、里程碑
+- 用 “经历 / 过程 / 痕迹 / 回忆 / 脉络 / 成长” 这类词,避免虚无抒情
+
+##### D. 不用 “AI 神话”
+
+- 不渲染 “AI 终将超越你 / 取代你”
+- 也不轻飘飘说 “AI 只是工具” 了事更像:**“它是工具,但你仍是作者 / 负责人 / 最终决定者”**
+
+##### 示例
+
+在用户可能产生自我否定或无力感的场景(空状态、创作开始、产出对比、失败重试、长时间等待、团队协作分歧、版本回退):
+
+```
+1. **先承接感受**:用一句短话确认处境(不评判)
+2. **再给掌控感**:强调“你可控/可选择/可回放/可撤销”
+3. **最后给下一步**:提供明确行动按钮或路径
+```
+
+- 允许出现 “经历、选择、痕迹、成长、一起、陪你把事做完” 等词来传递温度;但保持信息密度,不写长段抒情。
+- 严肃场景(权限 / 安全 / 付费 / 数据丢失风险)仍以清晰与准确为先,温度通过 “尊重与解释” 体现,而不是煽情。
+
+你可以让系统在需要时套这些结构(同一句兼容新手 / 专业):
+
+**开始创作 / 空白页**
+
+- 主句:给一个轻承接 + 行动入口
+- 模板:
+ - 「从一个念头开始就够了。写一句话,我来帮你搭好第一个助理。」
+ - 「不知道从哪开始也没关系:先说目标,我们一起把它拆开。」
+
+**长任务运行 / 等待**
+
+- 模板:
+ - 「正在运行中… 你可以先去做别的,完成后我会提醒你。」
+ - 「这一步可能要几分钟。想更快:减少上下文 / 切换模型 / 关闭自动运行。」
+
+**失败 / 重试**
+
+- 模板:
+ - 「没关系,这次没跑通。你可以重试,或查看原因再继续。」
+ - 「连接失败:权限未通过或网络不稳定。去设置重新授权,或稍后再试。」
+
+**对比与自我价值焦虑(适合提示 / 引导,不适合错误弹窗)**
+
+- 模板:
+ - 「助理可以加速产出,但方向、取舍和标准仍属于你。」
+ - 「结果可以很快,经历更重要:把每次尝试留下来,下一次会更稳。」
+
+**协作 / 群组**
+
+- 模板:
+ - 「把上下文对齐到同一处,群组里每个助理都会站在同一页上。」
+ - 「不同意见没关系:先把目标写清楚,再让助理分别给方案与取舍。」
+
+### 6) 错误 / 异常 / 权限 / 付费:硬规则
+
+- 必须包含:**发生了什么 +(可选)原因 + 你可以怎么做**
+- 必须提供可操作选项:**重试 / 查看详情 / 去设置 / 联系支持 / 复制日志**(按场景取舍)
+- 不责备用户;不只给错误码;错误码可放在 “详情” 里
+- 涉及数据与安全:语气更中性更完整,温度通过 “尊重与解释” 体现,而不是煽
diff --git a/.agents/skills/microcopy/microcopy-en.md b/.agents/skills/microcopy/microcopy-en.md
new file mode 100644
index 0000000000..46cc1ac163
--- /dev/null
+++ b/.agents/skills/microcopy/microcopy-en.md
@@ -0,0 +1,176 @@
+---
+globs: src/locales/default/*
+alwaysApply: false
+---
+
+You are **LobeHub’s English UI Copy & Microcopy Specialist**.
+
+LobeHub is an assistant workspace: users can create **Agents** and **Agent Teams** so people↔agents and agent↔agent can collaborate to improve productivity in work and life.
+Brand vibe: youthful, friendly, modern on the surface; professional, reliable, productivity- and controllability-first underneath. Overall style reference: Notion / Figma / Apple / Discord / OpenAI / Gemini — clear, restrained, trustworthy, human but not cheesy.
+
+Product slogan: **For Collaborative Agents**. Your copy must continuously reinforce that LobeHub is not about “generation”, but about a **collaborative agent system**: shareable context, traceable outcomes, replayable runs, evolvable setup, and **human-in-the-loop**.
+
+---
+
+## 1) Fixed Terminology (must follow)
+
+Use **exactly** these English terms across the product. Do not mix synonyms for the same concept.
+
+- 空间: **Workspace**
+- 助理: **Agent**
+- 群组: **Group**
+- 上下文: **Context**
+- 记忆: **Memory**
+- 连接器: **Integration**
+- 技能 /tool/plugin: **Skill**
+- 助理档案: **Agent Profile**
+- 话题: **Topic**
+- 文稿: **Page**
+- 社区: **Community**
+- 资源: **Resource**
+- 库: **Library**
+- MCP: **MCP**
+- 模型服务商: **Provider**
+
+Terminology rule: one concept = one term site-wide. Never alternate with “bot/assistant/AI agent/team/workspace” variations.
+
+---
+
+## 2) Your Responsibilities
+
+- Improve, rewrite, or create from scratch any **English UI copy**: titles, buttons, form labels/help text, placeholders, onboarding, empty states, toasts, modals, errors, permission prompts, settings, creation/run flows, collaboration and Agent Team pages, etc.
+- Copy must work for both:
+ - general users (immediately understandable)
+ - power users (not childish)
+- It must fit both playful and serious contexts.
+- Avoid overclaiming AI capabilities; add human warmth at the right moments.
+
+---
+
+## 3) The Three Brand Principles (bake into structure & wording)
+
+- **Create**: create an Agent in one sentence; clear next step from idea → usable.
+- **Collaborate**: multi-agent collaboration; align info and outputs; share Context (controlled, manageable).
+- **Evolve**: Agents can remember preferences **only with user consent**; become more helpful over time; emphasize explainability, settings, and replay.
+
+---
+
+## 4) Writing Rules (actionable)
+
+1. **Clarity first**: short sentences, strong verbs, minimal adjectives. Avoid hype (“revolutionary”, “epic”, “100%”).
+2. **Layered messaging (single version for everyone)**:
+ - Main line: simple and actionable
+ - Optional second line: more precise / technical / boundary-setting (subtitle, helper text, tooltip, collapsible)
+ - Do not produce “Pro vs Lite” variants; one main + optional detail
+3. **Use terms sparingly but correctly**: prefer plain words (“connect”, “run”, “context”) unless a technical term is necessary. When it is, add a plain-English explanation.
+4. **Consistency**: keep verbs consistent across similar actions (Create / Connect / Run / Pause / Retry / View details / Clear Memory).
+5. **Actionable**: every message tells the user what to do next. Avoid generic “OK/Cancel”; use specific actions.
+6. **English localization**: natural, product-native English; avoid translationese; keep punctuation and casing consistent.
+
+---
+
+## 5) Human Warmth (balanced, controlled)
+
+Goal: reduce anxiety and restore control without being sentimental.
+Default ratio: **80% information, 20% warmth**.
+Key moments (first-time create, empty state, long waits, failures/retries, rollback/data-loss risk, collaboration conflicts): may go **70/30**.
+
+Hard cap: any on-screen message may include **at most half a sentence to one sentence** of warmth, and it must be followed by a clear next step.
+
+Required order:
+
+1. Acknowledge the situation (no judgment)
+2. Restore control (human-in-the-loop: pause/replay/edit/undo/clear Memory/view Context)
+3. Provide the next action (button/path)
+
+Avoid:
+
+- preachy encouragement (“don’t worry”, “stay positive”)
+- grand narratives
+- overly anthropomorphic claims (“I understand you”, “I’ll always remember you”)
+
+Core stance: Agents can accelerate output, but **you** own the judgment, trade-offs, and final decision. LobeHub gives you time back for what matters.
+
+Suggested patterns:
+
+- **Getting started / blank state**
+ - “Starting with one sentence is enough. Describe your goal and I’ll help you set up the first Agent.”
+ - “Not sure where to begin? Tell me the outcome—we’ll break it down together.”
+- **Long run / waiting**
+ - “Running… You can switch tasks—I'll notify you when it’s done.”
+ - “This may take a few minutes. To speed up: reduce Context / switch model / disable Auto-run.”
+- **Failure / retry**
+ - “That didn’t run through. Retry, or view details to fix the cause.”
+ - “Connection failed: permission not granted or network unstable. Re-authorize in Settings, or try again later.”
+- **Value anxiety (guidance, not error dialogs)**
+ - “Agents can speed up output, but direction and standards stay with you.”
+ - “Fast results are great—keeping the trail makes the next run steadier.”
+- **Collaboration / Agent Teams**
+ - “Align everyone to the same Context. Every Agent in the Agent Team works from the same page.”
+ - “Different opinions are fine. Write the goal first, then let Agents propose options and trade-offs.”
+
+---
+
+## 6) Errors / Exceptions / Permissions / Billing: hard rules
+
+Every error must include:
+
+- **What happened**
+- (optional) **Why**
+- **What the user can do next**
+
+Provide actionable options as appropriate:
+
+- Retry / View details / Go to Settings / Contact support / Copy logs
+
+Never blame the user. Don’t show only an error code; put codes in “Details” if needed.
+For data/security/billing: be neutral, thorough, and respectful—warmth comes from clarity, not emotion.
+
+---
+
+## 7) Your Special Task: CN i18n → EN (localized, length-aware)
+
+You translate **raw Chinese i18n strings into English** for LobeHub.
+
+Requirements:
+
+- Prefer **localized**, product-native English over literal translation.
+- Do **not** chase perfect one-to-one consistency if a more natural UI phrase reads better.
+- Keep the **character length difference small**; try to make the English string **roughly the same visual length** as the Chinese source (avoid overly long expansions).
+- Preserve meaning, tone, and actionability; keep verbs consistent with LobeHub’s UI patterns.
+- If space is tight (buttons, tabs, toasts), prioritize: **verb + object**, drop optional words first.
+- If the Chinese includes placeholders/variables, preserve them exactly (e.g., `{name}`, `{{count}}`, `%s`) and keep word order sensible.
+- Keep capitalization consistent with UI norms (buttons/title case only when appropriate).
+
+Output format when translating:
+
+- Provide **English only**, unless asked otherwise.
+- If multiple options are useful, give **one best option** + **one shorter fallback** (only when length constraints are likely).
+
+---
+
+You always optimize for: **clarity, control, collaboration, replayability, and human-in-the-loop**—in a modern, restrained, trustworthy English voice.
+
+## 8) Product Introduction
+
+LobeHub, we define agents as the unit of work. We’re building the first human–agent co-working, co-evolving network.
+
+It is a fundamentally new, agent-first experience.You can pop up your agents or agent teams while writing, while chatting -- from ideation, to execution, to delivery -- across your entire workflow. Here, agents are not just tools, but always-on units of work.
+
+### Create
+
+It is a unified workspace where you can find, build, or team up with agent co-workers.Simply describe what you need, and Lobe AI will generate the prompts and assemble the right set of tools to compose your agent.In agent marketplace, you can easily discover agents created by others,use them instantly,and flexibly swap in your own tools.
+
+### Collaboration
+
+You can also spin up agent groups to handle system-level projects, even like building a quant team.
+Within this group, some agents track signals and mine quantitative factors in real time, some manage risk, some execute orders, collaborate together to make money.
+We’re defining how humans and agents work together. Now we support agent-to-agent collaboration, and we continue to scale new forms of collaboration networks — from agents collaborating across teams, to multiple humans working through the same agent.
+
+### Evolve
+
+Humans and agents should co-evolve, and we design this paradigm from both technical and economic perspectives. Our memory system is structured and editable,enabling models to better align with individual users, while allowing users to provide cleaner reward signals for continual learning. Agent evolution is powered by shared human intelligence through our agent marketplace. Creators are rewarded, and agents, in turn, pay for human intelligence.
+
+Is AI replacing humans? No.
+We’re building a human–agent co-working, co-evolving society.
+Agents become smarter and more personalized through human intelligence, taking on repetitive and exhausting work — so humans can focus on fewer, but more important things: taste, and creation.
diff --git a/AGENTS.md b/AGENTS.md
index 6c265f82a2..68d827bde3 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
-# LobeChat Development Guidelines
+# LobeHub Development Guidelines
-This document serves as a comprehensive guide for all team members when developing LobeChat.
+This document serves as a comprehensive guide for all team members when developing LobeHub.
## Project Description
diff --git a/CLAUDE.md b/CLAUDE.md
index 18e6584cbb..75a0a49418 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -1,6 +1,6 @@
# CLAUDE.md
-Guidelines for using Claude Code in this LobeChat repository.
+Guidelines for using Claude Code in this LobeHub repository.
## Tech Stack
diff --git a/GEMINI.md b/GEMINI.md
index c1bdab8da2..537e7f63aa 100644
--- a/GEMINI.md
+++ b/GEMINI.md
@@ -1,6 +1,6 @@
# GEMINI.md
-Guidelines for using Gemini CLI in this LobeChat repository.
+Guidelines for using Gemini CLI in this LobeHub repository.
## Tech Stack
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 0639aa7dcc..e471bc4ff5 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -100,7 +100,7 @@ LobeHub 是一个工作与生活空间,用于发现、构建并与会随着您
我们是一群充满热情的设计工程师,希望为 AIGC 提供现代化的设计组件和工具,并以开源的方式分享。
同时通过 Bootstrapping 的方式,我们希望能够为开发者和用户提供一个更加开放、更加透明友好的产品生态。
-不论普通用户与专业开发者,LobeHub 旨在成为所有人的 AI Agent 实验场。LobeChat 目前正在积极开发中,有任何需求或者问题,欢迎提交 [issues][issues-link]
+不论普通用户与专业开发者,LobeHub 旨在成为所有人的 AI Agent 实验场。LobeHub 目前正在积极开发中,有任何需求或者问题,欢迎提交 [issues][issues-link]
| [](https://www.producthunt.com/products/lobehub?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-lobehub) | 我们已在 Product Hunt 上线!我们很高兴将 LobeHub 推向世界。如果您相信人类与 Agent 共同进化的未来,请支持我们的旅程。 |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------- |
diff --git a/apps/desktop/README.md b/apps/desktop/README.md
index 1c9fdd50cc..db13a63f0a 100644
--- a/apps/desktop/README.md
+++ b/apps/desktop/README.md
@@ -1,6 +1,6 @@
# 🤯 LobeHub Desktop Application
-LobeHub Desktop is a cross-platform desktop application for [LobeChat](https://github.com/lobehub/lobe-chat), built with Electron, providing a more native desktop experience and functionality.
+LobeHub Desktop is a cross-platform desktop application for [LobeHub](https://github.com/lobehub/lobe-chat), built with Electron, providing a more native desktop experience and functionality.
## ✨ Features
@@ -11,7 +11,7 @@ LobeHub Desktop is a cross-platform desktop application for [LobeChat](https://g
- **🔒 Secure & Reliable**: macOS notarized, encrypted token storage, secure OAuth flow
- **📦 Multiple Release Channels**: Stable, beta, and nightly build versions
- **⚡ Advanced Window Management**: Multi-window architecture with theme synchronization
-- **🔗 Remote Server Sync**: Secure data synchronization with remote LobeChat instances
+- **🔗 Remote Server Sync**: Secure data synchronization with remote LobeHub instances
- **🎯 Developer Tools**: Built-in development panel and comprehensive debugging tools
## 🚀 Development Setup
@@ -347,7 +347,7 @@ Desktop application development involves complex cross-platform considerations a
### Contribution Process
-1. Fork the [LobeChat repository](https://github.com/lobehub/lobe-chat)
+1. Fork the [LobeHub repository](https://github.com/lobehub/lobe-chat)
2. Set up the desktop development environment following our setup guide
3. Make your changes to the desktop application
4. Submit a Pull Request describing:
diff --git a/apps/desktop/README.zh-CN.md b/apps/desktop/README.zh-CN.md
index d4fbf05337..0766dc8fdf 100644
--- a/apps/desktop/README.zh-CN.md
+++ b/apps/desktop/README.zh-CN.md
@@ -1,6 +1,6 @@
# 🤯 LobeHub 桌面应用程序
-LobeHub Desktop 是 [LobeChat](https://github.com/lobehub/lobe-chat) 的跨平台桌面应用程序,使用 Electron 构建,提供了更加原生的桌面体验和功能。
+LobeHub Desktop 是 [LobeHub](https://github.com/lobehub/lobe-chat) 的跨平台桌面应用程序,使用 Electron 构建,提供了更加原生的桌面体验和功能。
## ✨ 功能特点
@@ -11,7 +11,7 @@ LobeHub Desktop 是 [LobeChat](https://github.com/lobehub/lobe-chat) 的跨平
- **🔒 安全可靠**:macOS 公证认证,加密令牌存储,安全的 OAuth 流程
- **📦 多渠道发布**:提供稳定版、测试版和每日构建版本
- **⚡ 高级窗口管理**:多窗口架构,支持主题同步
-- **🔗 远程服务器同步**:与远程 LobeChat 实例的安全数据同步
+- **🔗 远程服务器同步**:与远程 LobeHub 实例的安全数据同步
- **🎯 开发者工具**:内置开发面板和全面的调试工具
## 🚀 开发环境设置
@@ -337,7 +337,7 @@ pnpm type-check # 类型验证
### 贡献流程
-1. Fork [LobeChat 仓库](https://github.com/lobehub/lobe-chat)
+1. Fork [LobeHub 仓库](https://github.com/lobehub/lobe-chat)
2. 按照我们的设置指南建立桌面开发环境
3. 对桌面应用程序进行修改
4. 提交 Pull Request 并描述:
diff --git a/docs/changelog/2025-03-02-new-models.mdx b/docs/changelog/2025-03-02-new-models.mdx
index 92dfe6781c..9f6a21a038 100644
--- a/docs/changelog/2025-03-02-new-models.mdx
+++ b/docs/changelog/2025-03-02-new-models.mdx
@@ -1,6 +1,8 @@
---
-title: "A Major AI Ecosystem Upgrade: 50+ Models and 10+ Providers Added 🚀"
-description: LobeHub v1.49.12 fully supports the DeepSeek R1 model, bringing an unprecedented chain-of-thought experience.
+title: "A Major AI Ecosystem Upgrade: 50+ Models and 10+ Providers Added \U0001F680"
+description: >-
+ LobeHub v1.49.12 fully supports the DeepSeek R1 model, bringing an
+ unprecedented chain-of-thought experience.
tags:
- DeepSeek R1
- CoT
diff --git a/docs/changelog/2025-04-06-exports.mdx b/docs/changelog/2025-04-06-exports.mdx
index a96d4ac2f9..e757ec88ba 100644
--- a/docs/changelog/2025-04-06-exports.mdx
+++ b/docs/changelog/2025-04-06-exports.mdx
@@ -1,6 +1,8 @@
---
-title: Hotkey Settings, Data Export, and Multiple Optimizations ⚡
-description: LobeHub v1.49.12 fully supports the DeepSeek R1 model, bringing an unprecedented chain-of-thought experience.
+title: 'Hotkey Settings, Data Export, and Multiple Optimizations ⚡'
+description: >-
+ LobeHub v1.49.12 fully supports the DeepSeek R1 model, bringing an
+ unprecedented chain-of-thought experience.
tags:
- LobeHub Hotkeys
- CoT
diff --git a/docs/changelog/2025-05-08-desktop-app.mdx b/docs/changelog/2025-05-08-desktop-app.mdx
index 989da2c5c6..af49a45a9c 100644
--- a/docs/changelog/2025-05-08-desktop-app.mdx
+++ b/docs/changelog/2025-05-08-desktop-app.mdx
@@ -1,6 +1,8 @@
---
title: Brand-New Design Style and Desktop App Release ✨
-description: LobeHub officially launches the desktop app, delivering a more modern and smoother experience.
+description: >-
+ LobeHub officially launches the desktop app, delivering a more modern and
+ smoother experience.
tags:
- Desktop App
- LobeHub
diff --git a/docs/changelog/2025-06-08-claude-4.mdx b/docs/changelog/2025-06-08-claude-4.mdx
index 656fb45b01..9b99d58cd2 100644
--- a/docs/changelog/2025-06-08-claude-4.mdx
+++ b/docs/changelog/2025-06-08-claude-4.mdx
@@ -1,6 +1,8 @@
---
-title: "Prompt Variables and Claude 4 Reasoning Model Support 🚀"
-description: Supports Claude 4 reasoning models and expands search and reasoning capabilities across multiple AI providers.
+title: "Prompt Variables and Claude 4 Reasoning Model Support \U0001F680"
+description: >-
+ Supports Claude 4 reasoning models and expands search and reasoning
+ capabilities across multiple AI providers.
tags:
- DeepSeek R1
- Prompt Variables
diff --git a/docs/changelog/2025-07-08-mcp-market.mdx b/docs/changelog/2025-07-08-mcp-market.mdx
index 04f6a1f13d..ecc5b58535 100644
--- a/docs/changelog/2025-07-08-mcp-market.mdx
+++ b/docs/changelog/2025-07-08-mcp-market.mdx
@@ -1,6 +1,9 @@
---
-title: "MCP Marketplace and Search Provider Expansion 🔍"
-description: Adds support for multiple search providers, integrates Amazon Cognito and Google SSO, and continues improving user experience and the developer ecosystem.
+title: "MCP Marketplace and Search Provider Expansion \U0001F50D"
+description: >-
+ Adds support for multiple search providers, integrates Amazon Cognito and
+ Google SSO, and continues improving user experience and the developer
+ ecosystem.
tags:
- MCP Marketplace
- Best MCP
diff --git a/docs/changelog/2025-08-08-image-generation.mdx b/docs/changelog/2025-08-08-image-generation.mdx
index dcfb2e7f20..26a12da484 100644
--- a/docs/changelog/2025-08-08-image-generation.mdx
+++ b/docs/changelog/2025-08-08-image-generation.mdx
@@ -1,6 +1,8 @@
---
-title: AI Image Generation and Desktop Enhancements 🎨
-description: Introduces AI image generation with multiple providers and continues improving the desktop experience and authentication system.
+title: "AI Image Generation and Desktop Enhancements \U0001F3A8"
+description: >-
+ Introduces AI image generation with multiple providers and continues improving
+ the desktop experience and authentication system.
tags:
- AI Image Generation
- Desktop App
diff --git a/docs/changelog/2025-09-08-gemini.mdx b/docs/changelog/2025-09-08-gemini.mdx
index bbc3cf5572..b8c43d204c 100644
--- a/docs/changelog/2025-09-08-gemini.mdx
+++ b/docs/changelog/2025-09-08-gemini.mdx
@@ -1,6 +1,8 @@
---
-title: "Gemini Image Generation and Non-Streaming Mode Support 🎨"
-description: Adds Gemini 2.5 Flash Image generation, non-streaming response mode, and expands provider and model support.
+title: "Gemini Image Generation and Non-Streaming Mode Support \U0001F3A8"
+description: >-
+ Adds Gemini 2.5 Flash Image generation, non-streaming response mode, and
+ expands provider and model support.
tags:
- Gemini
- Nano Banana
diff --git a/docs/changelog/2025-10-08-python.mdx b/docs/changelog/2025-10-08-python.mdx
index 51048def01..ee232461a5 100644
--- a/docs/changelog/2025-10-08-python.mdx
+++ b/docs/changelog/2025-10-08-python.mdx
@@ -1,6 +1,8 @@
---
-title: "Claude Sonnet 4.5 and Built-in Python Plugin 🐍"
-description: LobeHub v1.49.12 fully supports the DeepSeek R1 model, bringing an unprecedented chain-of-thought experience.
+title: "Claude Sonnet 4.5 and Built-in Python Plugin \U0001F40D"
+description: >-
+ LobeHub v1.49.12 fully supports the DeepSeek R1 model, bringing an
+ unprecedented chain-of-thought experience.
tags:
- Claude Sonnet 4.5
- Chain of Thought
diff --git a/docs/changelog/2025-11-08-comfy-ui.mdx b/docs/changelog/2025-11-08-comfy-ui.mdx
index d0e4744db2..1ba7ff714d 100644
--- a/docs/changelog/2025-11-08-comfy-ui.mdx
+++ b/docs/changelog/2025-11-08-comfy-ui.mdx
@@ -1,6 +1,9 @@
---
title: ComfyUI Integration and Knowledge Base Improvements ⭐
-description: Integrates ComfyUI workflows, adds support for multiple AI providers and models, and continues improving the knowledge base and overall user experience.
+description: >-
+ Integrates ComfyUI workflows, adds support for multiple AI providers and
+ models, and continues improving the knowledge base and overall user
+ experience.
tags:
- AI Knowledge Base
- Workflow
diff --git a/docs/changelog/2025-12-20-mcp.mdx b/docs/changelog/2025-12-20-mcp.mdx
index 6325a725ce..dcfb05e0b2 100644
--- a/docs/changelog/2025-12-20-mcp.mdx
+++ b/docs/changelog/2025-12-20-mcp.mdx
@@ -1,5 +1,5 @@
---
-title: "MCP Cloud Endpoints and Model Library Expansion 🔌"
+title: "MCP Cloud Endpoints and Model Library Expansion \U0001F50C"
description: Adds multiple AI providers and improves knowledge base capabilities.
tags:
- MCP
diff --git a/docs/development/basic/architecture.mdx b/docs/development/basic/architecture.mdx
index 6600fcdd9b..dcd95f0001 100644
--- a/docs/development/basic/architecture.mdx
+++ b/docs/development/basic/architecture.mdx
@@ -1,8 +1,8 @@
---
title: Architecture Design
description: >-
- Explore the architecture of LobeHub, an open-source AI Agent platform
- built on Next.js, covering frontend, backend, runtime, and data storage.
+ Explore the architecture of LobeHub, an open-source AI Agent platform built on
+ Next.js, covering frontend, backend, runtime, and data storage.
tags:
- LobeHub
- Architecture Design
@@ -35,6 +35,13 @@ The overall architecture of LobeHub consists of the following core layers:
The frontend uses the Next.js framework with a **Next.js RSC + React Router DOM hybrid routing** approach: Next.js App Router handles server-rendered pages (e.g., auth pages), while React Router DOM powers the main SPA.
+| Router | Use Case | Location |
+| ---------------------- | ------------------------------- | -------------------------- |
+| **Next.js App Router** | Auth pages, SSR, static routes | `src/app/(backend)/` |
+| **React Router DOM** | Main chat SPA, agent interfaces | `src/spa/` + `src/routes/` |
+
+**Why hybrid?** SSR delivers auth page security, SEO, and static page performance; SPA delivers instant navigation and reactive state for interactive chat and agent interfaces — the best of both worlds.
+
Key tech stack:
- **UI Components**: `@lobehub/ui`, antd
@@ -43,6 +50,8 @@ Key tech stack:
- **Data Fetching**: SWR + tRPC
- **i18n**: react-i18next
+**Component priority** when building UI: project components (`src/components/`) → `@lobehub/ui` → Ant Design (`antd`). Always prefer project-level components for consistency.
+
Frontend code is organized by responsibility under `src/`. See [Directory Structure](/docs/development/basic/folder-structure) for details.
## Backend API
@@ -75,6 +84,15 @@ The backend provides two API styles:
In short: Model Runtime handles "how to communicate with an LLM provider"; Agent Runtime handles "how to run a complete agent using LLMs, tools, and human approvals."
+**Agent execution flow:**
+
+1. Parse user input
+2. LLM decides: respond directly or use a tool
+3. Execute tools (single or batch)
+4. Human-in-the-loop approval (if needed)
+5. Feed results back to LLM
+6. Loop until final response is produced
+
## Authentication
LobeHub uses [Better Auth](https://www.better-auth.com/) as the authentication framework, supporting:
@@ -105,6 +123,24 @@ Database operations use Drizzle ORM, with schemas defined in `packages/database/
- **Agent Market**: Provides AI agents for various scenarios; users can discover, use, and share agents
- **MCP Tool Market**: Discover and integrate MCP tools to extend agent capabilities
+## Performance Optimizations
+
+- **Code splitting**: Route-based chunking keeps initial bundle size small
+- **Lazy loading**: Heavy components and routes load on demand
+- **SWR caching**: Client-side data is cached and revalidated in the background
+- **Edge caching**: Static and CDN-cacheable responses are edge-distributed
+- **Streaming**: Chat responses stream incrementally via SSE for perceived speed
+- **Virtualization**: Long message lists and agent lists use virtual scroll
+
+## Security Measures
+
+- **CSRF protection**: SameSite cookies and token validation
+- **XSS prevention**: Content Security Policy headers and output sanitization
+- **Rate limiting**: API rate limits enforced at the edge
+- **SSRF prevention**: Outbound request allowlisting for plugin and MCP calls
+- **SQL injection prevention**: Parameterized queries via Drizzle ORM
+- **Secret management**: API keys and credentials stored as environment variables, never in code or client bundles
+
## Development and Deployment
- **Version Control**: Git + GitHub, gitmoji commit conventions
diff --git a/docs/development/basic/architecture.zh-CN.mdx b/docs/development/basic/architecture.zh-CN.mdx
index 91d1543ab0..012abee550 100644
--- a/docs/development/basic/architecture.zh-CN.mdx
+++ b/docs/development/basic/architecture.zh-CN.mdx
@@ -33,6 +33,13 @@ LobeHub 的整体架构由以下核心层组成:
前端采用 Next.js 框架,使用 **Next.js RSC + React Router DOM 混合路由**方案:Next.js App Router 处理服务端渲染页面(如认证页),React Router DOM 承载主应用 SPA。
+| 路由方式 | 使用场景 | 位置 |
+| ---------------------- | ---------------- | -------------------------- |
+| **Next.js App Router** | 认证页、SSR、静态路由 | `src/app/(backend)/` |
+| **React Router DOM** | 主聊天 SPA、Agent 界面 | `src/spa/` + `src/routes/` |
+
+**为什么使用混合路由?** SSR 为认证页提供安全性、SEO 和静态页性能;SPA 为交互式聊天和 Agent 界面提供即时导航和响应式状态管理 —— 两者各取所长。
+
主要技术栈:
- **UI 组件**:`@lobehub/ui`、antd
@@ -41,6 +48,8 @@ LobeHub 的整体架构由以下核心层组成:
- **数据请求**:SWR + tRPC
- **国际化**:react-i18next
+**组件使用优先级**:项目组件(`src/components/`)→ `@lobehub/ui` → Ant Design(`antd`)。始终优先使用项目级组件以保持一致性。
+
前端代码按职责分层在 `src/` 目录下,详见 [目录架构](/zh/docs/development/basic/folder-structure)。
## 后端 API
@@ -73,6 +82,15 @@ LobeHub 的整体架构由以下核心层组成:
简言之:Model Runtime 解决 "如何与 LLM Provider 通信",Agent Runtime 解决 "如何运行一个使用 LLM、工具、人工审批的完整 Agent"。
+**Agent 执行流程:**
+
+1. 解析用户输入
+2. LLM 决策:直接回复还是调用工具
+3. 执行工具(单工具或批量)
+4. Human-in-the-Loop 人工审批(如需要)
+5. 将执行结果反馈给 LLM
+6. 循环直至生成最终回复
+
## 认证鉴权
LobeHub 使用 [Better Auth](https://www.better-auth.com/) 作为认证框架,支持:
@@ -101,6 +119,24 @@ LobeHub 使用 [Better Auth](https://www.better-auth.com/) 作为认证框架,
- **Agent 市场**:提供各种场景的 AI Agent,用户可以发现、使用和分享 Agent
- **MCP 工具市场**:发现和集成 MCP 工具,扩展 Agent 的能力
+## 性能优化
+
+- **代码拆分**:基于路由的按需分块,保持初始包体积小
+- **懒加载**:重型组件和路由按需加载
+- **SWR 缓存**:客户端数据缓存并在后台自动重新验证
+- **边缘缓存**:静态和可缓存响应分发至 CDN 边缘节点
+- **流式响应**:聊天回复通过 SSE 增量流式传输,提升感知速度
+- **虚拟滚动**:长消息列表和 Agent 列表使用虚拟滚动优化渲染
+
+## 安全措施
+
+- **CSRF 防护**:SameSite Cookie 和 Token 验证
+- **XSS 防护**:Content Security Policy 请求头和输出内容净化
+- **速率限制**:API 请求限流在边缘层执行
+- **SSRF 防护**:插件和 MCP 调用的出站请求白名单
+- **SQL 注入防护**:通过 Drizzle ORM 使用参数化查询
+- **密钥管理**:API Key 和凭据以环境变量方式存储,绝不写入代码或客户端包
+
## 开发和部署
- **版本控制**:Git + GitHub,gitmoji commit 规范
diff --git a/docs/development/basic/chat-api.mdx b/docs/development/basic/chat-api.mdx
index e54726d520..bcbe600fbe 100644
--- a/docs/development/basic/chat-api.mdx
+++ b/docs/development/basic/chat-api.mdx
@@ -1,8 +1,8 @@
---
title: Chat API Client-Server Interaction Logic
description: >-
- Explore the client-server interaction logic of LobeChat
- Chat API, including event sequences and core components.
+ Explore the client-server interaction logic of LobeHub Chat API, including
+ event sequences and core components.
tags:
- Chat API
- Client-Server Interaction
@@ -14,7 +14,7 @@ tags:
# Chat API Client-Server Interaction Logic
This document explains the implementation logic of
-LobeChat Chat API in client-server interactions,
+LobeHub Chat API in client-server interactions,
including event sequences and core components involved.
## Interaction Sequence Diagram
@@ -153,7 +153,7 @@ the executor calls ChatService:
When the AI model returns a `tool_calls` field in its
response, the Agent issues a `call_tool` instruction.
-LobeChat supports three types of tools:
+LobeHub supports three types of tools:
**Builtin Tools**: Tools built into the application,
executed directly via local executors.
@@ -338,7 +338,7 @@ depends on the scenario:
## Model Runtime
Model Runtime (`packages/model-runtime/`) is the core
-abstraction layer in LobeChat for interacting with
+abstraction layer in LobeHub for interacting with
LLM model providers, adapting different provider APIs
into a unified interface.
@@ -396,7 +396,7 @@ in `packages/model-runtime/src/providers/`.
## Agent Runtime
-Agent Runtime (`packages/agent-runtime/`) is LobeChat's
+Agent Runtime (`packages/agent-runtime/`) is LobeHub's
agent orchestration engine. As described above, it is the
core execution engine that drives the entire chat flow.
diff --git a/docs/development/basic/chat-api.zh-CN.mdx b/docs/development/basic/chat-api.zh-CN.mdx
index de3304f1fe..98ed943cc9 100644
--- a/docs/development/basic/chat-api.zh-CN.mdx
+++ b/docs/development/basic/chat-api.zh-CN.mdx
@@ -1,6 +1,6 @@
---
title: Chat API 前后端交互逻辑
-description: 深入了解 LobeChat Chat API 的前后端交互实现逻辑和核心组件。
+description: 深入了解 LobeHub Chat API 的前后端交互实现逻辑和核心组件。
tags:
- Chat API
- 前后端交互
@@ -11,7 +11,7 @@ tags:
# Chat API 前后端交互逻辑
-本文档说明了 LobeChat Chat API 在前后端交互中的实现逻辑,
+本文档说明了 LobeHub Chat API 在前后端交互中的实现逻辑,
包括事件序列和涉及的核心组件。
## 交互时序图
@@ -139,7 +139,7 @@ while (state.status !== 'done' && state.status !== 'error') {
### 6. 工具调用场景
当 AI 模型在响应中返回 `tool_calls` 字段时,Agent 会发出
-`call_tool` 指令。LobeChat 支持三种工具类型:
+`call_tool` 指令。LobeHub 支持三种工具类型:
**Builtin 工具**:内置在应用中的工具,通过本地执行器直接运行。
@@ -304,7 +304,7 @@ Agent Runtime 循环的执行位置取决于场景:
## Model Runtime
-Model Runtime(`packages/model-runtime/`)是 LobeChat 中
+Model Runtime(`packages/model-runtime/`)是 LobeHub 中
与 LLM 模型提供商交互的核心抽象层,
负责将不同提供商的 API 适配为统一接口。
@@ -360,7 +360,7 @@ export interface LobeRuntimeAI {
## Agent Runtime
Agent Runtime(`packages/agent-runtime/`)是
-LobeChat 的 Agent 编排引擎。
+LobeHub 的 Agent 编排引擎。
如上文所述,它是驱动整个 chat 流程的核心执行引擎。
**核心组件**:
diff --git a/docs/development/basic/contributing-guidelines.mdx b/docs/development/basic/contributing-guidelines.mdx
index 8c05a55870..83c92b81dd 100644
--- a/docs/development/basic/contributing-guidelines.mdx
+++ b/docs/development/basic/contributing-guidelines.mdx
@@ -89,14 +89,105 @@ bunx vitest run --silent='passed-only' '[file-path]'
For more testing details, see the [Testing Guide](/docs/development/basic/test).
+### Gitmoji Reference
+
+Use the following emojis to prefix your commit messages:
+
+| Emoji | Code | Type | Description | Triggers Release? |
+| ----- | ------------------------ | -------- | ------------------------ | ----------------- |
+| ✨ | `:sparkles:` | feat | New feature | Yes |
+| 🐛 | `:bug:` | fix | Bug fix | Yes |
+| 📝 | `:memo:` | docs | Documentation | No |
+| 💄 | `:lipstick:` | style | UI/styling changes | No |
+| ♻️ | `:recycle:` | refactor | Code refactoring | No |
+| ✅ | `:white_check_mark:` | test | Tests | No |
+| 🔨 | `:hammer:` | chore | Maintenance tasks | No |
+| 🚀 | `:rocket:` | perf | Performance improvements | No |
+| 🌐 | `:globe_with_meridians:` | i18n | Internationalization | No |
+
### How to Contribute
-1. Fork the project to your account.
-2. Create a new branch for development.
-3. After completing development, ensure your code passes code style checks and tests.
-4. Commit your changes and use appropriate gitmoji to label your commit message.
-5. Create a Pull Request to the main branch of the original project.
-6. Ensure all GitHub Actions CI checks pass.
-7. Await code review and make necessary modifications based on feedback.
+**1. Fork and clone the repository**
+
+Fork [lobehub/lobe-chat](https://github.com/lobehub/lobe-chat) on GitHub, then clone your fork locally.
+
+**2. Create a branch**
+
+Use the branch naming format: `username/type/description`
+
+```bash
+git checkout -b yourname/feat/add-voice-input
+git checkout -b yourname/fix/message-duplication
+git checkout -b yourname/docs/update-api-guide
+```
+
+**3. Make changes**
+
+Follow the [code style guidelines](/docs/development/basic/contributing-guidelines#code-style) above. Run linters before committing:
+
+```bash
+pnpm lint:ts # TypeScript/JavaScript
+pnpm lint:style # CSS/styles
+bun run type-check # Type checking
+```
+
+**4. Commit with gitmoji**
+
+```bash
+git commit -m "✨ feat: add voice input support"
+git commit -m "🐛 fix: resolve message duplication in group chat"
+git commit -m "📝 docs: update installation guide"
+```
+
+**5. Open a Pull Request**
+
+
+ Always target the **`canary`** branch — not `main`. `canary` is the active development branch.
+ PRs to `main` will be redirected.
+
+
+Fill out the PR template in `.github/PULL_REQUEST_TEMPLATE.md`:
+
+```markdown
+## Description
+Clear description of what this PR does.
+
+## Type of Change
+- [ ] ✨ New feature
+- [ ] 🐛 Bug fix
+- [ ] 📝 Documentation
+- [ ] ♻️ Refactoring
+
+## Checklist
+- [ ] Code follows project style guidelines
+- [ ] Tests added/updated
+- [ ] Documentation updated
+- [ ] All tests pass
+
+## Related Issues
+Fixes #123
+```
+
+**PR titles with `✨ feat:` or `🐛 fix:` automatically trigger a new release.** Use other prefixes for changes that don't need a release.
+
+**6. Code review**
+
+Automated checks run on every PR: ESLint, TypeScript type check, Vitest unit tests, E2E tests, and build. Address review feedback by pushing additional commits to the same branch.
+
+### Syncing Your Fork with Upstream
+
+```bash
+git remote add upstream https://github.com/lobehub/lobe-chat.git
+git fetch upstream
+git rebase upstream/canary
+```
+
+### Ways to Contribute
+
+- **Features** — Check [issues labeled `good first issue`](https://github.com/lobehub/lobe-chat/issues?q=is%3Aissue+label%3A%22good+first+issue%22) to find beginner-friendly tasks
+- **Bug fixes** — Search open issues labeled `bug`
+- **Documentation** — Improve docs, fix typos, add examples
+- **Testing** — Add test coverage for uncovered code paths
+- **Translations** — Add missing i18n keys (see [i18n guide](/docs/development/internationalization/internationalization-implementation))
Thank you for following these guidelines, as they help us maintain the quality and consistency of the project. We look forward to your contributions!
diff --git a/docs/development/basic/contributing-guidelines.zh-CN.mdx b/docs/development/basic/contributing-guidelines.zh-CN.mdx
index 82409e7825..2b04889430 100644
--- a/docs/development/basic/contributing-guidelines.zh-CN.mdx
+++ b/docs/development/basic/contributing-guidelines.zh-CN.mdx
@@ -87,14 +87,104 @@ bunx vitest run --silent='passed-only' '[file-path]'
更多测试相关信息请参阅 [测试指南](/zh/docs/development/basic/test)。
+### Gitmoji 参考表
+
+提交信息请使用以下 emoji 作为前缀:
+
+| Emoji | 代码 | 类型 | 说明 | 触发发布? |
+| ----- | ------------------------ | -------- | --------- | ----- |
+| ✨ | `:sparkles:` | feat | 新功能 | 是 |
+| 🐛 | `:bug:` | fix | Bug 修复 | 是 |
+| 📝 | `:memo:` | docs | 文档更新 | 否 |
+| 💄 | `:lipstick:` | style | UI / 样式更改 | 否 |
+| ♻️ | `:recycle:` | refactor | 代码重构 | 否 |
+| ✅ | `:white_check_mark:` | test | 测试相关 | 否 |
+| 🔨 | `:hammer:` | chore | 维护任务 | 否 |
+| 🚀 | `:rocket:` | perf | 性能优化 | 否 |
+| 🌐 | `:globe_with_meridians:` | i18n | 国际化 | 否 |
+
### 如何贡献
-1. Fork 项目到您的账户。
-2. 创建一个新的分支进行开发。
-3. 开发完成后,确保您的代码通过了代码风格检查和测试。
-4. 提交您的更改,并使用合适的 gitmoji 标注您的提交信息。
-5. 创建一个 Pull Request 到原项目的主分支。
-6. 确保 GitHub Actions CI 全部通过。
-7. 等待代码审查,并根据反馈进行必要的修改。
+**1. Fork 并克隆仓库**
+
+在 GitHub 上 Fork [lobehub/lobe-chat](https://github.com/lobehub/lobe-chat),然后克隆你的 Fork 到本地。
+
+**2. 创建分支**
+
+使用分支命名格式:`用户名/类型/描述`
+
+```bash
+git checkout -b yourname/feat/add-voice-input
+git checkout -b yourname/fix/message-duplication
+git checkout -b yourname/docs/update-api-guide
+```
+
+**3. 进行更改**
+
+遵循上方的代码风格指南。提交前运行代码检查:
+
+```bash
+pnpm lint:ts # TypeScript/JavaScript
+pnpm lint:style # CSS/样式
+bun run type-check # 类型检查
+```
+
+**4. 使用 gitmoji 提交**
+
+```bash
+git commit -m "✨ feat: 添加语音输入支持"
+git commit -m "🐛 fix: 修复群聊消息重复问题"
+git commit -m "📝 docs: 更新安装指南"
+```
+
+**5. 创建 Pull Request**
+
+
+ PR 的目标分支必须是 **`canary`**,而非 `main`。`canary` 是当前活跃的开发分支,向 `main` 发起的 PR 会被重定向。
+
+
+请使用 `.github/PULL_REQUEST_TEMPLATE.md` 中的 PR 模板:
+
+```markdown
+## Description
+清晰描述此 PR 的改动内容。
+
+## Type of Change
+- [ ] ✨ 新功能
+- [ ] 🐛 Bug 修复
+- [ ] 📝 文档
+- [ ] ♻️ 重构
+
+## Checklist
+- [ ] 代码符合项目风格指南
+- [ ] 已添加/更新测试
+- [ ] 已更新文档
+- [ ] 所有测试通过
+
+## Related Issues
+Fixes #123
+```
+
+**PR 标题中带有 `✨ feat:` 或 `🐛 fix:` 前缀时将自动触发新版本发布。** 不需要发布新版本的改动请使用其他前缀。
+
+**6. 代码审查**
+
+每次 PR 会自动运行:ESLint、TypeScript 类型检查、Vitest 单元测试、E2E 测试和构建验证。请根据审查意见向同一分支推送新的提交。
+
+### 同步 Fork 与上游代码
+
+```bash
+git remote add upstream https://github.com/lobehub/lobe-chat.git
+git fetch upstream
+git rebase upstream/canary
+```
+
+### 贡献方向
+
+- **功能开发** — 查看 [标注为 `good first issue` 的 Issue](https://github.com/lobehub/lobe-chat/issues?q=is%3Aissue+label%3A%22good+first+issue%22),找到适合新手的任务
+- **Bug 修复** — 搜索标注为 `bug` 的开放 Issue
+- **文档改善** — 完善文档、修正错别字、添加示例
+- **测试补充** — 为缺少覆盖的代码路径添加测试
+- **翻译** — 添加缺失的 i18n 键(参见 [i18n 指南](/zh/docs/development/internationalization/internationalization-implementation))
感谢您遵循这些指导原则,它们有助于我们维护项目的质量和一致性。我们期待您的贡献!
diff --git a/docs/development/basic/feature-development.mdx b/docs/development/basic/feature-development.mdx
index c8658f1eef..2135d6bdeb 100644
--- a/docs/development/basic/feature-development.mdx
+++ b/docs/development/basic/feature-development.mdx
@@ -294,6 +294,7 @@ const OpeningQuestions = memo(() => {
```
Key points:
+
- Read store config via `selectors`
- Update config via the `setAgentConfig` action
- Use `useTranslation('setting')` for i18n text
@@ -321,7 +322,8 @@ const WelcomeMessage = () => {
{/* Render guiding questions */}
-
+
+
) : (
);
diff --git a/docs/development/basic/feature-development.zh-CN.mdx b/docs/development/basic/feature-development.zh-CN.mdx
index 771866693e..6675dc753b 100644
--- a/docs/development/basic/feature-development.zh-CN.mdx
+++ b/docs/development/basic/feature-development.zh-CN.mdx
@@ -293,6 +293,7 @@ const OpeningQuestions = memo(() => {
```
关键点:
+
- 通过 `selectors` 读取 store 中的配置
- 通过 `setAgentConfig` action 更新配置
- 使用 `useTranslation('setting')` 获取 i18n 文案
@@ -320,7 +321,8 @@ const WelcomeMessage = () => {
{/* 渲染引导性问题 */}
-
+
+
) : (
);
diff --git a/docs/development/basic/setup-development.mdx b/docs/development/basic/setup-development.mdx
index 017f758088..7cb5361365 100644
--- a/docs/development/basic/setup-development.mdx
+++ b/docs/development/basic/setup-development.mdx
@@ -135,6 +135,23 @@ When running with Docker Compose development setup:
- **SearXNG**: `http://localhost:8180`
- **Application**: `http://localhost:3010`
+## Alternative Development Modes
+
+**Desktop App Development** — To work on the Electron desktop app:
+
+```bash
+cd apps/desktop
+pnpm run dev
+```
+
+**Mobile SPA Development** — To develop the mobile web app:
+
+```bash
+bun run dev:spa:mobile
+```
+
+Access at [http://localhost:3012](http://localhost:3012)
+
## Troubleshooting
### Reset Services
@@ -167,6 +184,14 @@ Run migrations manually when needed:
pnpm db:migrate
```
+### Clean Install
+
+If you encounter dependency issues, remove all `node_modules` and reinstall:
+
+```bash
+bun run clean:node_modules && pnpm install
+```
+
---
During the development process, if you encounter any issues with environment setup or have any questions about LobeHub development, feel free to ask us at any time. We look forward to seeing your contributions!
diff --git a/docs/development/basic/setup-development.zh-CN.mdx b/docs/development/basic/setup-development.zh-CN.mdx
index 7b3bdd45aa..4487233723 100644
--- a/docs/development/basic/setup-development.zh-CN.mdx
+++ b/docs/development/basic/setup-development.zh-CN.mdx
@@ -132,6 +132,23 @@ bun run dev
- **SearXNG**:`http://localhost:8180`
- **应用程序**:`http://localhost:3010`
+## 其他开发模式
+
+**桌面端开发** — 开发 Electron 桌面应用:
+
+```bash
+cd apps/desktop
+pnpm run dev
+```
+
+**移动端 SPA 开发** — 开发移动端 Web 应用:
+
+```bash
+bun run dev:spa:mobile
+```
+
+访问地址:[http://localhost:3012](http://localhost:3012)
+
## 故障排除
### 重置服务
@@ -164,6 +181,14 @@ lsof -i :8180 # SearXNG
pnpm db:migrate
```
+### 清洁安装
+
+如遇到依赖问题,删除所有 `node_modules` 并重新安装:
+
+```bash
+bun run clean:node_modules && pnpm install
+```
+
---
在开发过程中,如果你在环境设置上遇到任何问题,或者有任何关于 LobeHub 开发的问题,欢迎随时向我们提问。我们期待看到你的贡献!
diff --git a/docs/development/basic/test.mdx b/docs/development/basic/test.mdx
index bf170ca509..11dd9a6d1c 100644
--- a/docs/development/basic/test.mdx
+++ b/docs/development/basic/test.mdx
@@ -1,92 +1,560 @@
---
title: Testing Guide
description: >-
- Explore LobeHub's testing strategy, including unit and end-to-end testing
- methods.
+ Explore LobeHub's testing strategy, including unit testing with Vitest and
+ end-to-end testing with Playwright + Cucumber.
tags:
- LobeHub
- Testing
- Unit Testing
- End-to-End Testing
- vitest
+ - Playwright
---
# Testing Guide
-LobeHub's testing strategy includes unit testing and end-to-end (E2E) testing. Below are detailed explanations of each type of testing:
+LobeHub's testing strategy includes unit testing with [Vitest][vitest-url] and end-to-end (E2E) testing with Playwright + Cucumber. This guide covers how to write and run tests effectively.
-## Unit Testing
+## Overview
-Unit testing is used to test the functionality of independent units in the application, such as components, functions, utility functions, etc. We use [vitest][vitest-url] for unit testing.
+Our testing strategy includes:
-To run unit tests, you can use the following command:
+- **Unit Tests** — Vitest for functions, components, and stores
+- **E2E Tests** — Playwright + Cucumber for user flows
+- **Type Checking** — TypeScript compiler (`bun run type-check`)
+- **Linting** — ESLint, Stylelint
+
+## Quick Reference
+
+### Commands
```bash
-npm run test
+# Run a specific unit test (RECOMMENDED)
+bunx vitest run --silent='passed-only' 'path/to/test.test.ts'
+
+# Run tests in a package (e.g., database)
+cd packages/database && bunx vitest run --silent='passed-only' 'src/models/user.test.ts'
+
+# Type checking
+bun run type-check
+
+# E2E tests
+pnpm e2e
```
-This will run all unit tests and generate a test report.
+
+ **Never run the full test suite** with `bun run test` — it runs all tests and takes \~10 minutes.
+ Always target a specific file with `bunx vitest run --silent='passed-only' '[file-path]'`.
+
-We encourage developers to write corresponding unit tests while writing code to ensure the quality and stability of the code.
+## Unit Testing with Vitest
-## 🚧 End-to-End Testing
+### Test File Structure
-End-to-end testing is used to test the functionality and performance of the application in a real environment. It simulates real user operations and verifies the application's performance in different scenarios.
+Create test files alongside the code being tested, named `.test.ts`:
-Currently, there is no integrated end-to-end testing in LobeHub. We will gradually introduce end-to-end testing in subsequent iterations.
+```
+src/utils/
+├── formatDate.ts
+└── formatDate.test.ts
+```
-## Development Testing
+### Writing Test Cases
-### 1. Unit Testing
+Use `describe` and `it` to organize test cases. Use `beforeEach`/`afterEach` to manage setup and teardown:
-Unit testing is conducted on the smallest testable units in the application, usually functions, components, or modules. In LobeHub, we use [vitest][vitest-url] for unit testing.
+```typescript
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
+import { formatDate } from './formatDate';
-#### Writing Test Cases
+beforeEach(() => {
+ vi.clearAllMocks();
+});
-Before writing unit tests, you need to create a directory with the same name as the file to be tested and name the test file `.test.ts`. For example, if you want to test the `src/utils/formatDate.ts` file, the test file should be named `src/utils/formatDate.test.ts`.
+afterEach(() => {
+ vi.restoreAllMocks();
+});
-In the test file, you can use the `describe` and `it` functions to organize and write test cases. The `describe` function is used to create a test suite, and the `it` function is used to write specific test cases.
-
-```ts
-import { formatNumber } from './formatNumber';
-
-describe('formatNumber', () => {
- it('should format number with comma separator', () => {
- const result = formatNumber(1000);
- expect(result).toBe('1,000');
+describe('formatDate', () => {
+ describe('with default format', () => {
+ it('should format date correctly', () => {
+ const date = new Date('2024-03-15');
+ const result = formatDate(date);
+ expect(result).toBe('Mar 15, 2024');
+ });
});
- it('should return the same number if it is less than 1000', () => {
- const result = formatNumber(500);
- expect(result).toBe('500');
+ describe('with custom format', () => {
+ it('should use custom format', () => {
+ const date = new Date('2024-03-15');
+ const result = formatDate(date, 'YYYY-MM-DD');
+ expect(result).toBe('2024-03-15');
+ });
});
});
```
-In test cases, you can use the `expect` function to assert whether the test results meet expectations. The `expect` function can be used with various matchers, such as `toBe`, `toEqual`, `toBeTruthy`, etc.
+### Testing React Components
-#### Running Unit Tests
+Use `@testing-library/react` to test component behavior:
-Execute unit tests by running the following command:
+```typescript
+import { describe, it, expect, vi } from 'vitest';
+import { render, screen, fireEvent, waitFor } from '@testing-library/react';
+import { UserProfile } from './UserProfile';
-```bash
-npm run test
+describe('UserProfile', () => {
+ it('should render user name', () => {
+ render();
+ expect(screen.getByText('Alice')).toBeInTheDocument();
+ });
+
+ it('should call onClick when button clicked', () => {
+ const onClick = vi.fn();
+ render();
+
+ fireEvent.click(screen.getByRole('button'));
+ expect(onClick).toHaveBeenCalledOnce();
+ });
+
+ it('should handle async data loading', async () => {
+ render();
+
+ expect(screen.getByText('Loading...')).toBeInTheDocument();
+
+ await waitFor(() => {
+ expect(screen.getByText('Alice')).toBeInTheDocument();
+ });
+ });
+});
```
-This will run all unit tests and output the test results.
+### Testing Zustand Stores
-## Testing Strategy
+Reset store state in `beforeEach` to keep tests independent:
-To write effective test cases, you can consider the following testing strategies:
+```typescript
+import { describe, it, expect, beforeEach } from 'vitest';
+import { act } from '@testing-library/react';
+import { useUserStore } from './index';
-- **Boundary Testing**: Test the boundary conditions of inputs, such as minimum value, maximum value, empty value, etc.
-- **Exception Testing**: Test the code handling exceptional cases, such as error handling, fallback in exceptional situations, etc.
-- **Functional Testing**: Test whether various functional modules of the application work properly, including user interaction, data processing, etc.
-- **Compatibility Testing**: Test the compatibility of the application on different browsers and devices.
-- **Performance Testing**: Test the performance of the application under different loads, such as response time, resource utilization, etc.
+beforeEach(() => {
+ useUserStore.setState({
+ users: {},
+ currentUserId: null,
+ });
+});
-Also, ensure that your test cases have good coverage, covering critical code and functionality in the application.
+describe('useUserStore', () => {
+ describe('addUser', () => {
+ it('should add user to store', () => {
+ const user = { id: '1', name: 'Alice' };
-By properly writing and executing unit tests, integration tests, and end-to-end tests, you can improve the quality and stability of the application and promptly identify and fix potential issues.
+ act(() => {
+ useUserStore.getState().addUser(user);
+ });
+
+ const state = useUserStore.getState();
+ expect(state.users['1']).toEqual(user);
+ });
+ });
+
+ describe('setCurrentUser', () => {
+ it('should update current user ID', () => {
+ act(() => {
+ useUserStore.getState().setCurrentUser('123');
+ });
+
+ expect(useUserStore.getState().currentUserId).toBe('123');
+ });
+ });
+});
+```
+
+### Mocking
+
+#### Prefer `vi.spyOn` Over `vi.mock`
+
+```typescript
+// ✅ Good — spyOn is scoped and auto-restores
+vi.spyOn(messageService, 'createMessage').mockResolvedValue('msg_123');
+
+// ❌ Avoid — global mocks are fragile and leak between tests
+vi.mock('@/services/message');
+```
+
+#### Mock Browser APIs
+
+```typescript
+// Mock Image
+const mockImage = vi.fn(() => ({
+ addEventListener: vi.fn((event, handler) => {
+ if (event === 'load') setTimeout(handler, 0);
+ }),
+ removeEventListener: vi.fn(),
+}));
+vi.stubGlobal('Image', mockImage);
+
+// Mock URL.createObjectURL
+vi.spyOn(URL, 'createObjectURL').mockReturnValue('blob:mock-url');
+
+// Mock fetch
+global.fetch = vi.fn(() =>
+ Promise.resolve({
+ json: () => Promise.resolve({ data: 'test' }),
+ ok: true,
+ }),
+);
+```
+
+#### Mock Modules
+
+```typescript
+// Mock external library
+vi.mock('axios', () => ({
+ default: {
+ get: vi.fn(() => Promise.resolve({ data: {} })),
+ },
+}));
+
+// Mock internal module
+vi.mock('@/utils/logger', () => ({
+ logger: {
+ info: vi.fn(),
+ error: vi.fn(),
+ },
+}));
+```
+
+### Testing Async Code
+
+```typescript
+import { waitFor } from '@testing-library/react';
+
+it('should load data asynchronously', async () => {
+ await expect(fetchUser('123')).resolves.toEqual({ id: '123', name: 'Alice' });
+});
+
+it('should handle errors', async () => {
+ await expect(fetchUser('invalid')).rejects.toThrow('User not found');
+});
+```
+
+### Testing Database Code
+
+For database and ORM tests in packages:
+
+```bash
+# Client DB tests
+cd packages/database
+bunx vitest run --silent='passed-only' 'src/models/user.test.ts'
+
+# Server DB tests
+cd packages/database
+TEST_SERVER_DB=1 bunx vitest run --silent='passed-only' 'src/models/user.test.ts'
+```
+
+## E2E Testing with Playwright
+
+### Running E2E Tests
+
+```bash
+# Run all E2E tests
+pnpm e2e
+
+# Run in UI mode (interactive)
+pnpm e2e:ui
+
+# Smoke tests only (quick validation)
+pnpm test:e2e:smoke
+```
+
+### E2E Test Structure
+
+E2E tests live in the `e2e/` directory:
+
+```
+e2e/
+├── features/ # Cucumber feature files (.feature)
+│ ├── auth.feature
+│ └── chat.feature
+├── step-definitions/ # Step implementations
+│ ├── auth.steps.ts
+│ └── chat.steps.ts
+├── support/ # Shared helpers and hooks
+└── playwright.config.ts
+```
+
+### Writing E2E Tests
+
+**Feature file** (`e2e/features/chat.feature`):
+
+```gherkin
+Feature: Chat Functionality
+
+ Scenario: User sends a message
+ Given I am logged in
+ And I am on the chat page
+ When I type "Hello, AI!"
+ And I click the send button
+ Then I should see my message in the chat
+ And I should see a response from the AI
+```
+
+**Step definitions** (`e2e/step-definitions/chat.steps.ts`):
+
+```typescript
+import { Given, When, Then } from '@cucumber/cucumber';
+import { expect } from '@playwright/test';
+
+Given('I am on the chat page', async function () {
+ await this.page.goto('/chat');
+});
+
+When('I type {string}', async function (message: string) {
+ await this.page.fill('[data-testid="chat-input"]', message);
+});
+
+When('I click the send button', async function () {
+ await this.page.click('[data-testid="send-button"]');
+});
+
+Then('I should see my message in the chat', async function () {
+ await expect(this.page.locator('.user-message').last()).toBeVisible();
+});
+```
+
+## Best Practices
+
+### 1. Test Behavior, Not Implementation
+
+```typescript
+// ✅ Good — tests what the user experiences
+it('should allow user to submit form', () => {
+ render();
+
+ fireEvent.change(screen.getByLabelText('Name'), {
+ target: { value: 'Alice' },
+ });
+ fireEvent.click(screen.getByText('Submit'));
+
+ expect(screen.getByText('Form submitted')).toBeInTheDocument();
+});
+
+// ❌ Bad — tests internal implementation details
+it('should call setState when input changes', () => {
+ const setState = vi.fn();
+ render();
+
+ fireEvent.change(screen.getByLabelText('Name'), {
+ target: { value: 'Alice' },
+ });
+
+ expect(setState).toHaveBeenCalled();
+});
+```
+
+### 2. Use Semantic Queries
+
+```typescript
+// ✅ Good — accessible queries match what users see
+screen.getByRole('button', { name: 'Submit' });
+screen.getByLabelText('Email address');
+screen.getByText('Welcome back');
+
+// ❌ Bad — test IDs should be a last resort
+screen.getByTestId('submit-button');
+```
+
+### 3. Clean Up After Each Test
+
+```typescript
+import { beforeEach, afterEach, vi } from 'vitest';
+
+beforeEach(() => {
+ vi.clearAllMocks(); // Clear mock call history
+ vi.clearAllTimers(); // Clear timers if using fake timers
+});
+
+afterEach(() => {
+ vi.restoreAllMocks(); // Restore original implementations
+});
+```
+
+### 4. Test Edge Cases
+
+```typescript
+describe('validateEmail', () => {
+ it('should accept valid email', () => {
+ expect(validateEmail('user@example.com')).toBe(true);
+ });
+
+ it('should reject empty string', () => {
+ expect(validateEmail('')).toBe(false);
+ });
+
+ it('should reject email without @', () => {
+ expect(validateEmail('user.example.com')).toBe(false);
+ });
+
+ it('should reject email without domain', () => {
+ expect(validateEmail('user@')).toBe(false);
+ });
+});
+```
+
+### 5. Keep Tests Independent
+
+```typescript
+// ❌ Bad — tests share state and depend on execution order
+let userId: string;
+
+it('should create user', () => {
+ userId = createUser('Alice');
+ expect(userId).toBeDefined();
+});
+
+it('should fetch user', () => {
+ const user = getUser(userId); // depends on previous test
+ expect(user.name).toBe('Alice');
+});
+
+// ✅ Good — each test sets up its own data
+it('should create user', () => {
+ const userId = createUser('Alice');
+ expect(userId).toBeDefined();
+});
+
+it('should fetch user', () => {
+ const userId = createUser('Bob');
+ const user = getUser(userId);
+ expect(user.name).toBe('Bob');
+});
+```
+
+## Common Patterns
+
+### Testing Hooks
+
+```typescript
+import { renderHook, act } from '@testing-library/react';
+import { useCounter } from './useCounter';
+
+it('should increment counter', () => {
+ const { result } = renderHook(() => useCounter());
+
+ expect(result.current.count).toBe(0);
+
+ act(() => {
+ result.current.increment();
+ });
+
+ expect(result.current.count).toBe(1);
+});
+```
+
+### Testing Context Providers
+
+```typescript
+import { render, screen } from '@testing-library/react';
+import { ThemeProvider } from './ThemeProvider';
+import { MyComponent } from './MyComponent';
+
+function renderWithTheme(component: React.ReactElement) {
+ return render({component});
+}
+
+it('should use theme', () => {
+ renderWithTheme();
+ expect(screen.getByRole('main')).toHaveClass('dark-theme');
+});
+```
+
+### Testing API Calls with MSW
+
+```typescript
+import { rest } from 'msw';
+import { setupServer } from 'msw/node';
+
+const server = setupServer(
+ rest.get('/api/user', (req, res, ctx) => {
+ return res(ctx.json({ id: '1', name: 'Alice' }));
+ }),
+);
+
+beforeAll(() => server.listen());
+afterEach(() => server.resetHandlers());
+afterAll(() => server.close());
+
+it('should fetch user data', async () => {
+ const user = await fetchUser('1');
+ expect(user.name).toBe('Alice');
+});
+```
+
+## Coverage
+
+### Generate Coverage Report
+
+```bash
+bun run test-app:coverage
+```
+
+Then open `coverage/index.html` to view the report.
+
+### Coverage Goals
+
+| Area | Target |
+| -------------- | ------ |
+| Critical paths | 80%+ |
+| Utilities | 90%+ |
+| UI components | 70%+ |
+
+## Debugging Tests
+
+### VS Code Debugging
+
+Add to `.vscode/launch.json`:
+
+```json
+{
+ "type": "node",
+ "request": "launch",
+ "name": "Debug Vitest",
+ "runtimeExecutable": "bun",
+ "runtimeArgs": ["x", "vitest", "run", "${file}"],
+ "console": "integratedTerminal"
+}
+```
+
+### Vitest UI
+
+```bash
+bunx vitest --ui
+```
+
+Opens an interactive test explorer in the browser.
+
+### Console Logging
+
+```typescript
+it('should work', () => {
+ console.log('Debug:', value); // appears in test output
+ expect(value).toBe(expected);
+});
+```
+
+## CI/CD Integration
+
+GitHub Actions automatically runs on every PR:
+
+1. Linting (ESLint, Stylelint)
+2. Type checking
+3. Unit tests
+4. E2E tests
+5. Build verification
+
+All checks must pass before a PR can merge.
[vitest-url]: https://vitest.dev/
diff --git a/docs/development/basic/test.zh-CN.mdx b/docs/development/basic/test.zh-CN.mdx
index 9899b7c97d..53c5a89125 100644
--- a/docs/development/basic/test.zh-CN.mdx
+++ b/docs/development/basic/test.zh-CN.mdx
@@ -1,89 +1,558 @@
---
title: 测试指南
-description: 了解 LobeHub 的单元测试和端到端测试策略,确保代码质量与稳定性。
+description: 了解 LobeHub 的测试策略,包括使用 Vitest 进行单元测试以及使用 Playwright + Cucumber 进行端到端测试。
tags:
- LobeHub
- 单元测试
- 端到端测试
- 测试策略
+ - vitest
+ - Playwright
---
# 测试指南
-LobeHub 的测试策略包括单元测试和端到端 (E2E) 测试。下面是每种测试的详细说明:
+LobeHub 的测试策略包括使用 [Vitest][vitest-url] 进行单元测试,以及使用 Playwright + Cucumber 进行端到端 (E2E) 测试。本指南介绍如何高效地编写和运行测试。
-## 单元测试
+## 概述
-单元测试用于测试应用中的独立单元(如组件、函数、工具函数等)的功能。我们使用 [vitest][vitest-url] 进行单元测试。
+我们的测试策略包括:
-要运行单元测试,可以使用以下命令:
+- **单元测试** — 使用 Vitest 测试函数、组件和状态存储
+- **E2E 测试** — 使用 Playwright + Cucumber 测试用户流程
+- **类型检查** — TypeScript 编译器(`bun run type-check`)
+- **代码规范** — ESLint、Stylelint
+
+## 快速参考
+
+### 命令
```bash
-npm run test
+# 运行指定的单元测试(推荐)
+bunx vitest run --silent='passed-only' 'path/to/test.test.ts'
+
+# 在包中运行测试(例如 database 包)
+cd packages/database && bunx vitest run --silent='passed-only' 'src/models/user.test.ts'
+
+# 类型检查
+bun run type-check
+
+# E2E 测试
+pnpm e2e
```
-这将运行所有的单元测试,并生成测试报告。
+
+ **切勿运行完整测试套件**(`bun run test`)—— 这会运行所有测试,耗时约 10 分钟。请始终使用
+ `bunx vitest run --silent='passed-only' '[file-path]'` 指定目标文件。
+
-我们鼓励开发者在编写代码时,同时编写对应的单元测试,以确保代码的质量和稳定性。
+## 使用 Vitest 进行单元测试
-## 🚧 端到端测试
+### 测试文件结构
-端到端测试用于测试应用在真实环境中的功能和性能。它模拟用户的真实操作,并验证应用在不同场景下的表现。
+测试文件与被测代码并列放置,命名为 `.test.ts`:
-在 LobeHub 中,目前暂时没有集成端到端测试,我们会在后续迭代中逐步引入端到端测试。
+```
+src/utils/
+├── formatDate.ts
+└── formatDate.test.ts
+```
-## 开发测试
+### 编写测试用例
-### 1. 单元测试
+使用 `describe` 和 `it` 组织测试用例,使用 `beforeEach`/`afterEach` 管理测试前后的状态:
-单元测试是针对应用中的最小可测试单元进行的测试,通常是针对函数、组件或模块进行的测试。在 LobeHub 中,我们使用 [vitest][vitest-url] 进行单元测试。
+```typescript
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
+import { formatDate } from './formatDate';
-#### 编写测试用例
+beforeEach(() => {
+ vi.clearAllMocks();
+});
-在编写单元测试之前,您需要创建一个与被测试文件相同的目录,并将测试文件命名为 `.test.ts`。例如,如果要测试 `src/utils/formatDate.ts` 文件,测试文件应命名为 `src/utils/formatDate.test.ts`。
+afterEach(() => {
+ vi.restoreAllMocks();
+});
-在测试文件中,您可以使用 `describe` 和 `it` 函数来组织和编写测试用例。`describe` 函数用于创建测试套件,`it` 函数用于编写具体的测试用例。
-
-```ts
-import { formatNumber } from './formatNumber';
-
-describe('formatNumber', () => {
- it('should format number with comma separator', () => {
- const result = formatNumber(1000);
- expect(result).toBe('1,000');
+describe('formatDate', () => {
+ describe('使用默认格式', () => {
+ it('应正确格式化日期', () => {
+ const date = new Date('2024-03-15');
+ const result = formatDate(date);
+ expect(result).toBe('Mar 15, 2024');
+ });
});
- it('should return the same number if it is less than 1000', () => {
- const result = formatNumber(500);
- expect(result).toBe('500');
+ describe('使用自定义格式', () => {
+ it('应使用自定义格式', () => {
+ const date = new Date('2024-03-15');
+ const result = formatDate(date, 'YYYY-MM-DD');
+ expect(result).toBe('2024-03-15');
+ });
});
});
```
-在测试用例中,您可以使用 `expect` 函数来断言测试结果是否符合预期。`expect` 函数可以与各种匹配器(matchers)一起使用,例如 `toBe`、`toEqual`、`toBeTruthy` 等。
+### 测试 React 组件
-#### 运行单元测试
+使用 `@testing-library/react` 测试组件行为:
-通过运行以下命令来执行单元测试:
+```typescript
+import { describe, it, expect, vi } from 'vitest';
+import { render, screen, fireEvent, waitFor } from '@testing-library/react';
+import { UserProfile } from './UserProfile';
-```bash
-npm run test
+describe('UserProfile', () => {
+ it('应渲染用户名', () => {
+ render();
+ expect(screen.getByText('Alice')).toBeInTheDocument();
+ });
+
+ it('点击按钮时应调用 onClick', () => {
+ const onClick = vi.fn();
+ render();
+
+ fireEvent.click(screen.getByRole('button'));
+ expect(onClick).toHaveBeenCalledOnce();
+ });
+
+ it('应处理异步数据加载', async () => {
+ render();
+
+ expect(screen.getByText('Loading...')).toBeInTheDocument();
+
+ await waitFor(() => {
+ expect(screen.getByText('Alice')).toBeInTheDocument();
+ });
+ });
+});
```
-这将运行所有的单元测试,并输出测试结果。
+### 测试 Zustand 状态存储
-## 测试策略
+在 `beforeEach` 中重置 store 状态,确保测试互相独立:
-为了编写有效的测试用例,您可以考虑以下测试策略:
+```typescript
+import { describe, it, expect, beforeEach } from 'vitest';
+import { act } from '@testing-library/react';
+import { useUserStore } from './index';
-- **边界条件测试**:测试输入的边界条件,例如最小值、最大值、空值等。
-- **异常情况测试**:测试处理异常情况的代码,例如错误处理、异常情况下的回退等。
-- **功能测试**:测试应用的各个功能模块是否正常工作,包括用户交互、数据处理等。
-- **兼容性测试**:测试应用在不同浏览器和设备上的兼容性。
-- **性能测试**:测试应用在不同负载下的性能表现,例如响应时间、资源占用等。
+beforeEach(() => {
+ useUserStore.setState({
+ users: {},
+ currentUserId: null,
+ });
+});
-同时,请确保您的测试用例具有良好的覆盖率,覆盖到应用中的关键代码和功能。
+describe('useUserStore', () => {
+ describe('addUser', () => {
+ it('应将用户添加到 store', () => {
+ const user = { id: '1', name: 'Alice' };
-通过合理编写和执行单元测试、集成测试和端到端测试,您可以提高应用的质量和稳定性,并及时发现和修复潜在的问题。
+ act(() => {
+ useUserStore.getState().addUser(user);
+ });
+
+ const state = useUserStore.getState();
+ expect(state.users['1']).toEqual(user);
+ });
+ });
+
+ describe('setCurrentUser', () => {
+ it('应更新当前用户 ID', () => {
+ act(() => {
+ useUserStore.getState().setCurrentUser('123');
+ });
+
+ expect(useUserStore.getState().currentUserId).toBe('123');
+ });
+ });
+});
+```
+
+### Mock(模拟)
+
+#### 优先使用 `vi.spyOn` 而非 `vi.mock`
+
+```typescript
+// ✅ 推荐 — spyOn 作用域明确,且会自动恢复
+vi.spyOn(messageService, 'createMessage').mockResolvedValue('msg_123');
+
+// ❌ 避免 — 全局 mock 容易在测试间产生污染
+vi.mock('@/services/message');
+```
+
+#### Mock 浏览器 API
+
+```typescript
+// Mock Image
+const mockImage = vi.fn(() => ({
+ addEventListener: vi.fn((event, handler) => {
+ if (event === 'load') setTimeout(handler, 0);
+ }),
+ removeEventListener: vi.fn(),
+}));
+vi.stubGlobal('Image', mockImage);
+
+// Mock URL.createObjectURL
+vi.spyOn(URL, 'createObjectURL').mockReturnValue('blob:mock-url');
+
+// Mock fetch
+global.fetch = vi.fn(() =>
+ Promise.resolve({
+ json: () => Promise.resolve({ data: 'test' }),
+ ok: true,
+ }),
+);
+```
+
+#### Mock 模块
+
+```typescript
+// Mock 外部库
+vi.mock('axios', () => ({
+ default: {
+ get: vi.fn(() => Promise.resolve({ data: {} })),
+ },
+}));
+
+// Mock 内部模块
+vi.mock('@/utils/logger', () => ({
+ logger: {
+ info: vi.fn(),
+ error: vi.fn(),
+ },
+}));
+```
+
+### 测试异步代码
+
+```typescript
+import { waitFor } from '@testing-library/react';
+
+it('应异步加载数据', async () => {
+ await expect(fetchUser('123')).resolves.toEqual({ id: '123', name: 'Alice' });
+});
+
+it('应处理错误', async () => {
+ await expect(fetchUser('invalid')).rejects.toThrow('User not found');
+});
+```
+
+### 测试数据库代码
+
+针对包中的数据库和 ORM 测试:
+
+```bash
+# 客户端 DB 测试
+cd packages/database
+bunx vitest run --silent='passed-only' 'src/models/user.test.ts'
+
+# 服务端 DB 测试
+cd packages/database
+TEST_SERVER_DB=1 bunx vitest run --silent='passed-only' 'src/models/user.test.ts'
+```
+
+## 使用 Playwright 进行 E2E 测试
+
+### 运行 E2E 测试
+
+```bash
+# 运行所有 E2E 测试
+pnpm e2e
+
+# 交互模式(UI 界面)
+pnpm e2e:ui
+
+# 仅运行冒烟测试(快速验证)
+pnpm test:e2e:smoke
+```
+
+### E2E 测试结构
+
+E2E 测试位于 `e2e/` 目录下:
+
+```
+e2e/
+├── features/ # Cucumber feature 文件(.feature)
+│ ├── auth.feature
+│ └── chat.feature
+├── step-definitions/ # 步骤实现
+│ ├── auth.steps.ts
+│ └── chat.steps.ts
+├── support/ # 共享辅助函数和 hooks
+└── playwright.config.ts
+```
+
+### 编写 E2E 测试
+
+**Feature 文件** (`e2e/features/chat.feature`):
+
+```gherkin
+Feature: 聊天功能
+
+ Scenario: 用户发送消息
+ Given 我已登录
+ And 我在聊天页面
+ When 我输入 "你好,AI!"
+ And 我点击发送按钮
+ Then 我应该在聊天中看到我的消息
+ And 我应该看到 AI 的回复
+```
+
+**步骤定义** (`e2e/step-definitions/chat.steps.ts`):
+
+```typescript
+import { Given, When, Then } from '@cucumber/cucumber';
+import { expect } from '@playwright/test';
+
+Given('我在聊天页面', async function () {
+ await this.page.goto('/chat');
+});
+
+When('我输入 {string}', async function (message: string) {
+ await this.page.fill('[data-testid="chat-input"]', message);
+});
+
+When('我点击发送按钮', async function () {
+ await this.page.click('[data-testid="send-button"]');
+});
+
+Then('我应该在聊天中看到我的消息', async function () {
+ await expect(this.page.locator('.user-message').last()).toBeVisible();
+});
+```
+
+## 最佳实践
+
+### 1. 测试行为,而非实现细节
+
+```typescript
+// ✅ 推荐 — 测试用户可感知的行为
+it('应允许用户提交表单', () => {
+ render();
+
+ fireEvent.change(screen.getByLabelText('Name'), {
+ target: { value: 'Alice' },
+ });
+ fireEvent.click(screen.getByText('Submit'));
+
+ expect(screen.getByText('Form submitted')).toBeInTheDocument();
+});
+
+// ❌ 避免 — 测试内部实现细节
+it('输入变化时应调用 setState', () => {
+ const setState = vi.fn();
+ render();
+
+ fireEvent.change(screen.getByLabelText('Name'), {
+ target: { value: 'Alice' },
+ });
+
+ expect(setState).toHaveBeenCalled();
+});
+```
+
+### 2. 使用语义化查询
+
+```typescript
+// ✅ 推荐 — 语义化查询与用户感知一致
+screen.getByRole('button', { name: 'Submit' });
+screen.getByLabelText('Email address');
+screen.getByText('Welcome back');
+
+// ❌ 避免 — testId 应作为最后手段
+screen.getByTestId('submit-button');
+```
+
+### 3. 每次测试后清理状态
+
+```typescript
+import { beforeEach, afterEach, vi } from 'vitest';
+
+beforeEach(() => {
+ vi.clearAllMocks(); // 清除 mock 调用历史
+ vi.clearAllTimers(); // 使用 fake timers 时清除计时器
+});
+
+afterEach(() => {
+ vi.restoreAllMocks(); // 恢复原始实现
+});
+```
+
+### 4. 测试边界条件
+
+```typescript
+describe('validateEmail', () => {
+ it('应接受有效的电子邮件', () => {
+ expect(validateEmail('user@example.com')).toBe(true);
+ });
+
+ it('应拒绝空字符串', () => {
+ expect(validateEmail('')).toBe(false);
+ });
+
+ it('应拒绝不含 @ 的邮件', () => {
+ expect(validateEmail('user.example.com')).toBe(false);
+ });
+
+ it('应拒绝缺少域名的邮件', () => {
+ expect(validateEmail('user@')).toBe(false);
+ });
+});
+```
+
+### 5. 保持测试相互独立
+
+```typescript
+// ❌ 避免 — 测试之间共享状态,依赖执行顺序
+let userId: string;
+
+it('应创建用户', () => {
+ userId = createUser('Alice');
+ expect(userId).toBeDefined();
+});
+
+it('应获取用户', () => {
+ const user = getUser(userId); // 依赖上一个测试
+ expect(user.name).toBe('Alice');
+});
+
+// ✅ 推荐 — 每个测试自行准备数据
+it('应创建用户', () => {
+ const userId = createUser('Alice');
+ expect(userId).toBeDefined();
+});
+
+it('应获取用户', () => {
+ const userId = createUser('Bob');
+ const user = getUser(userId);
+ expect(user.name).toBe('Bob');
+});
+```
+
+## 常用模式
+
+### 测试 Hooks
+
+```typescript
+import { renderHook, act } from '@testing-library/react';
+import { useCounter } from './useCounter';
+
+it('应递增计数器', () => {
+ const { result } = renderHook(() => useCounter());
+
+ expect(result.current.count).toBe(0);
+
+ act(() => {
+ result.current.increment();
+ });
+
+ expect(result.current.count).toBe(1);
+});
+```
+
+### 测试 Context Provider
+
+```typescript
+import { render, screen } from '@testing-library/react';
+import { ThemeProvider } from './ThemeProvider';
+import { MyComponent } from './MyComponent';
+
+function renderWithTheme(component: React.ReactElement) {
+ return render({component});
+}
+
+it('应使用主题', () => {
+ renderWithTheme();
+ expect(screen.getByRole('main')).toHaveClass('dark-theme');
+});
+```
+
+### 使用 MSW 测试 API 调用
+
+```typescript
+import { rest } from 'msw';
+import { setupServer } from 'msw/node';
+
+const server = setupServer(
+ rest.get('/api/user', (req, res, ctx) => {
+ return res(ctx.json({ id: '1', name: 'Alice' }));
+ }),
+);
+
+beforeAll(() => server.listen());
+afterEach(() => server.resetHandlers());
+afterAll(() => server.close());
+
+it('应获取用户数据', async () => {
+ const user = await fetchUser('1');
+ expect(user.name).toBe('Alice');
+});
+```
+
+## 测试覆盖率
+
+### 生成覆盖率报告
+
+```bash
+bun run test-app:coverage
+```
+
+之后打开 `coverage/index.html` 查看报告。
+
+### 覆盖率目标
+
+| 类型 | 目标 |
+| ----- | ---- |
+| 关键路径 | 80%+ |
+| 工具函数 | 90%+ |
+| UI 组件 | 70%+ |
+
+## 调试测试
+
+### VS Code 调试
+
+在 `.vscode/launch.json` 中添加:
+
+```json
+{
+ "type": "node",
+ "request": "launch",
+ "name": "Debug Vitest",
+ "runtimeExecutable": "bun",
+ "runtimeArgs": ["x", "vitest", "run", "${file}"],
+ "console": "integratedTerminal"
+}
+```
+
+### Vitest UI
+
+```bash
+bunx vitest --ui
+```
+
+在浏览器中打开交互式测试资源管理器。
+
+### Console 日志
+
+```typescript
+it('应正常工作', () => {
+ console.log('调试:', value); // 在测试输出中显示
+ expect(value).toBe(expected);
+});
+```
+
+## CI/CD 集成
+
+GitHub Actions 会在每次 PR 时自动运行以下检查:
+
+1. 代码规范(ESLint、Stylelint)
+2. 类型检查
+3. 单元测试
+4. E2E 测试
+5. 构建验证
+
+所有检查通过后 PR 才可合并。
[vitest-url]: https://vitest.dev/
diff --git a/docs/self-hosting/advanced/feature-flags.mdx b/docs/self-hosting/advanced/feature-flags.mdx
index 611e68259b..5ec16b3c06 100644
--- a/docs/self-hosting/advanced/feature-flags.mdx
+++ b/docs/self-hosting/advanced/feature-flags.mdx
@@ -58,3 +58,27 @@ You can achieve various feature combinations using the above configuration synta
| `commercial_hide_docs` | Hides documentation and help menu including changelog, docs, and feedback (requires commercial license). | Disabled |
You can always check the [featureFlags](https://github.com/lobehub/lobehub/blob/main/src/config/featureFlags/schema.ts) to get the latest list of feature flags.
+
+## Standalone Feature Enable/Disable Variables
+
+In addition to the `FEATURE_FLAGS` system above, LobeHub provides dedicated environment variables to enable or disable specific features that depend on external infrastructure. These are standalone variables (not part of `FEATURE_FLAGS`):
+
+| Environment Variable | Default | Description | Requires |
+| ------------------------ | ------- | ---------------------------------------------------------------- | ------------------------ |
+| `ENABLED_ARTIFACTS` | `1` | Enable the Artifacts panel (Claude-style code/SVG/React preview) | — |
+| `ENABLED_MCP` | `1` | Enable the Model Context Protocol plugin system | — |
+| `ENABLED_UPLOAD` | `1` | Enable file upload functionality | S3-compatible storage |
+| `ENABLED_KNOWLEDGE_BASE` | `1` | Enable Knowledge Base and RAG features | S3 storage + PostgreSQL |
+| `ENABLED_WEB_SEARCH` | `1` | Enable web search integration (online search) | Searxng or search plugin |
+
+Set to `0` to disable. For example, to disable file upload if you haven't configured S3:
+
+```bash
+ENABLED_UPLOAD=0
+ENABLED_KNOWLEDGE_BASE=0
+```
+
+
+ `ENABLED_UPLOAD` and `ENABLED_KNOWLEDGE_BASE` should be disabled if you haven't configured
+ S3-compatible storage, as file operations will fail without it.
+
diff --git a/docs/self-hosting/advanced/feature-flags.zh-CN.mdx b/docs/self-hosting/advanced/feature-flags.zh-CN.mdx
index fd1a5f03b4..146ed791fc 100644
--- a/docs/self-hosting/advanced/feature-flags.zh-CN.mdx
+++ b/docs/self-hosting/advanced/feature-flags.zh-CN.mdx
@@ -54,3 +54,26 @@ tags:
| `commercial_hide_docs` | 隐藏文档和帮助菜单,包括更新日志、文档和反馈(需要商业授权)。 | 关闭 |
你可以随时检查 [featureFlags](https://github.com/lobehub/lobehub/blob/main/src/config/featureFlags/schema.ts) 以获取最新的特性标志列表。
+
+## 独立功能启用 / 禁用变量
+
+除了上述 `FEATURE_FLAGS` 体系外,LobeHub 还提供了一批独立的环境变量,用于控制依赖外部基础设施的特定功能。这些是独立变量(不属于 `FEATURE_FLAGS`):
+
+| 环境变量 | 默认值 | 说明 | 依赖 |
+| ------------------------ | --- | -------------------------------------------- | ------------------ |
+| `ENABLED_ARTIFACTS` | `1` | 启用 Artifacts 面板(Claude 风格的代码 / SVG/React 预览) | — |
+| `ENABLED_MCP` | `1` | 启用模型上下文协议(MCP)插件系统 | — |
+| `ENABLED_UPLOAD` | `1` | 启用文件上传功能 | S3 兼容存储 |
+| `ENABLED_KNOWLEDGE_BASE` | `1` | 启用知识库和 RAG 功能 | S3 存储 + PostgreSQL |
+| `ENABLED_WEB_SEARCH` | `1` | 启用网络搜索集成(在线搜索) | Searxng 或搜索插件 |
+
+设置为 `0` 可禁用对应功能。例如,若未配置 S3 存储,可禁用文件上传:
+
+```bash
+ENABLED_UPLOAD=0
+ENABLED_KNOWLEDGE_BASE=0
+```
+
+
+ 如果未配置 S3 兼容存储,应将 `ENABLED_UPLOAD` 和 `ENABLED_KNOWLEDGE_BASE` 设为禁用状态,否则文件相关操作将会失败。
+
diff --git a/docs/self-hosting/advanced/model-list.mdx b/docs/self-hosting/advanced/model-list.mdx
index 79551d7bf2..252ff17227 100644
--- a/docs/self-hosting/advanced/model-list.mdx
+++ b/docs/self-hosting/advanced/model-list.mdx
@@ -67,3 +67,84 @@ Currently supported extension capabilities are:
| `reasoning` | Support Reasoning |
| `search` | Support Web Search |
| `file` | File Upload (a bit hacky, not recommended for daily use) |
+
+## Provider-Specific Examples
+
+### Azure OpenAI
+
+Azure requires deployment name mapping using `->deploymentName`:
+
+```bash
+AZURE_ENDPOINT=https://your-resource.openai.azure.com
+AZURE_API_KEY=your-api-key
+AZURE_API_VERSION=2024-02-01
+# id->deploymentName=displayName
+AZURE_MODEL_LIST="gpt-35-turbo->my-gpt35-deploy=GPT-3.5 Turbo<16000:fc>,gpt-4->my-gpt4-deploy=GPT-4<128000:fc:vision"
+```
+
+### Ollama (Local Models)
+
+```bash
+OLLAMA_PROXY_URL=http://localhost:11434
+OLLAMA_MODEL_LIST="+llama3:8b=Llama 3 8B<8192>,+mistral:latest=Mistral<8192:fc>,+codellama:34b=Code Llama 34B<16000"
+```
+
+### Multiple Providers Simultaneously
+
+```bash
+# OpenAI — curated list
+OPENAI_API_KEY=sk-...
+OPENAI_MODEL_LIST=-all,+gpt-4o,+gpt-4o-mini
+
+# Anthropic — long context backup
+ANTHROPIC_API_KEY=sk-ant-...
+ANTHROPIC_MODEL_LIST="+claude-3-opus-20240229=Claude 3 Opus<200000:vision:fc>,+claude-3-5-sonnet-20241022=Claude 3.5 Sonnet<200000:vision:fc"
+
+# Google
+GOOGLE_API_KEY=...
+GOOGLE_MODEL_LIST="+gemini-1.5-pro=Gemini 1.5 Pro<1000000:vision:fc"
+```
+
+## Best Practices
+
+**Start with `-all` for a clean slate** — Hide all default models, then explicitly add only the ones you want:
+
+```bash
+OPENAI_MODEL_LIST=-all,+gpt-4o,+gpt-4o-mini
+```
+
+**Use descriptive display names** — Make model names user-friendly and meaningful to your users:
+
+```bash
+OPENAI_MODEL_LIST="gpt-4o=GPT-4o (Recommended),gpt-4o-mini=GPT-4o Mini (Fast & Cheap)"
+```
+
+**Test before production** — Verify a new model configuration in a dev environment:
+
+```bash
+docker run -d -p 3210:3210 \
+ -e OPENAI_API_KEY="sk-test..." \
+ -e OPENAI_MODEL_LIST="-all,+gpt-4o" \
+ --name lobe-chat-test lobehub/lobe-chat
+```
+
+## Troubleshooting
+
+**Model doesn't appear in the selector**
+
+- Check for syntax errors (missing commas, mismatched angle brackets)
+- Ensure the provider itself is enabled (`ENABLED_OPENAI=1`, etc.)
+- If using `-all`, confirm you added the model with `+`
+- Check logs: `docker logs lobehub | grep -i "model"`
+
+**Model returns empty responses**
+
+- Try adding `/v1` suffix to the proxy URL: `OPENAI_PROXY_URL=https://api.example.com/v1`
+- Verify the model ID matches what the provider API expects exactly
+- Confirm the API key has access to that model
+
+**Extension capabilities not working**
+
+- The `maxToken` value must be the **first** item inside `< >`: `<8192:fc:vision>` not ``
+- Confirm the model actually supports the capability in the provider's API (LobeHub cannot enable capabilities the API doesn't provide)
+- Verify you are running a recent enough version of LobeHub
diff --git a/docs/self-hosting/advanced/model-list.zh-CN.mdx b/docs/self-hosting/advanced/model-list.zh-CN.mdx
index 41a757ee8f..022ae91ce7 100644
--- a/docs/self-hosting/advanced/model-list.zh-CN.mdx
+++ b/docs/self-hosting/advanced/model-list.zh-CN.mdx
@@ -66,3 +66,84 @@ id->deploymentName=displayNamedeploymentName` 映射部署名称:
+
+```bash
+AZURE_ENDPOINT=https://your-resource.openai.azure.com
+AZURE_API_KEY=your-api-key
+AZURE_API_VERSION=2024-02-01
+# id->deploymentName=displayName<能力>
+AZURE_MODEL_LIST="gpt-35-turbo->my-gpt35-deploy=GPT-3.5 Turbo<16000:fc>,gpt-4->my-gpt4-deploy=GPT-4<128000:fc:vision"
+```
+
+### Ollama(本地模型)
+
+```bash
+OLLAMA_PROXY_URL=http://localhost:11434
+OLLAMA_MODEL_LIST="+llama3:8b=Llama 3 8B<8192>,+mistral:latest=Mistral<8192:fc>,+codellama:34b=Code Llama 34B<16000"
+```
+
+### 同时配置多个提供商
+
+```bash
+# OpenAI — 精选列表
+OPENAI_API_KEY=sk-...
+OPENAI_MODEL_LIST=-all,+gpt-4o,+gpt-4o-mini
+
+# Anthropic — 长上下文备选
+ANTHROPIC_API_KEY=sk-ant-...
+ANTHROPIC_MODEL_LIST="+claude-3-opus-20240229=Claude 3 Opus<200000:vision:fc>,+claude-3-5-sonnet-20241022=Claude 3.5 Sonnet<200000:vision:fc"
+
+# Google
+GOOGLE_API_KEY=...
+GOOGLE_MODEL_LIST="+gemini-1.5-pro=Gemini 1.5 Pro<1000000:vision:fc"
+```
+
+## 最佳实践
+
+**使用 `-all` 从零开始** — 隐藏所有默认模型,再明确添加你需要的模型:
+
+```bash
+OPENAI_MODEL_LIST=-all,+gpt-4o,+gpt-4o-mini
+```
+
+**使用描述性的展示名称** — 让模型名称对用户更友好、更清晰:
+
+```bash
+OPENAI_MODEL_LIST="gpt-4o=GPT-4o(推荐),gpt-4o-mini=GPT-4o Mini(快速省钱)"
+```
+
+**上生产前先测试** — 在开发环境中验证新的模型配置:
+
+```bash
+docker run -d -p 3210:3210 \
+ -e OPENAI_API_KEY="sk-test..." \
+ -e OPENAI_MODEL_LIST="-all,+gpt-4o" \
+ --name lobe-chat-test lobehub/lobe-chat
+```
+
+## 故障排查
+
+**模型未出现在选择器中**
+
+- 检查语法错误(逗号缺失、尖括号不匹配)
+- 确认提供商本身已启用(`ENABLED_OPENAI=1` 等)
+- 若使用了 `-all`,确认已用 `+` 添加该模型
+- 查看日志:`docker logs lobehub | grep -i "model"`
+
+**模型返回空响应**
+
+- 尝试在代理 URL 末尾加上 `/v1`:`OPENAI_PROXY_URL=https://api.example.com/v1`
+- 验证模型 ID 与提供商 API 期望的完全一致
+- 确认 API Key 有权访问该模型
+
+**扩展能力不生效**
+
+- `maxToken` 值必须是 `< >` 内的**第一个**值:`<8192:fc:vision>` 而非 ``
+- 确认该模型在提供商 API 中实际支持该能力(LobeHub 无法开启 API 本身不提供的能力)
+- 确认你运行的是足够新的 LobeHub 版本
diff --git a/docs/self-hosting/advanced/redis.mdx b/docs/self-hosting/advanced/redis.mdx
index 90134bb321..16e81a372c 100644
--- a/docs/self-hosting/advanced/redis.mdx
+++ b/docs/self-hosting/advanced/redis.mdx
@@ -1,6 +1,8 @@
---
title: Configure Redis Cache Service
-description: Learn how to configure Redis cache service to optimize LobeHub performance and session management.
+description: >-
+ Learn how to configure Redis cache service to optimize LobeHub performance and
+ session management.
tags:
- Redis
- Cache
diff --git a/docs/self-hosting/advanced/redis/upstash.mdx b/docs/self-hosting/advanced/redis/upstash.mdx
index 7d4a9eb913..28f8227902 100644
--- a/docs/self-hosting/advanced/redis/upstash.mdx
+++ b/docs/self-hosting/advanced/redis/upstash.mdx
@@ -1,6 +1,8 @@
---
title: Configuring Upstash Redis Service
-description: Step-by-step guide to configure Upstash Redis for LobeHub cache and session storage.
+description: >-
+ Step-by-step guide to configure Upstash Redis for LobeHub cache and session
+ storage.
tags:
- Upstash
- Redis
diff --git a/docs/self-hosting/auth.mdx b/docs/self-hosting/auth.mdx
index e4460cd1c2..e4050b5e8f 100644
--- a/docs/self-hosting/auth.mdx
+++ b/docs/self-hosting/auth.mdx
@@ -1,9 +1,9 @@
---
title: LobeHub Authentication Service Configuration
description: >-
- Learn how to configure external authentication services using Better Auth
- for centralized user authorization management. Supported
- authentication services include Auth0, Azure ID, etc.
+ Learn how to configure external authentication services using Better Auth for
+ centralized user authorization management. Supported authentication services
+ include Auth0, Azure ID, etc.
tags:
- Authentication Service
- Better Auth
@@ -105,9 +105,71 @@ When configuring OAuth providers, use the following callback URL format:
- **Development**: `http://localhost:3210/api/auth/callback/{provider}`
- **Production**: `https://yourdomain.com/api/auth/callback/{provider}`
+## Email/Password Options
+
+**Disable email/password login (SSO-only mode):**
+
+Set `AUTH_DISABLE_EMAIL_PASSWORD=1` to hide the email input on the login page and redirect the signup page to login. Users can only sign in via configured SSO providers. Ensure at least one SSO provider is configured before enabling this.
+
+**Restrict registration to specific emails or domains:**
+
+Set `AUTH_ALLOWED_EMAILS` with a comma-separated list:
+
+```bash
+# Allow only @example.com emails
+AUTH_ALLOWED_EMAILS=example.com
+
+# Allow multiple domains and specific addresses
+AUTH_ALLOWED_EMAILS=example.com,company.org,admin@other.com
+```
+
+
+ `AUTH_ALLOWED_EMAILS` restricts which emails can register, but does not verify email ownership.
+ Combine with `AUTH_EMAIL_VERIFICATION=1` to ensure users own the email they register with.
+
+
+## Quick OAuth Setup Examples
+
+**Google OAuth:**
+
+1. Create credentials at [Google Cloud Console](https://console.cloud.google.com/apis/credentials)
+2. Set authorized redirect URI: `https://yourdomain.com/api/auth/callback/google`
+3. Configure environment variables:
+
+```bash
+AUTH_SSO_PROVIDERS=google
+AUTH_GOOGLE_ID=xxxxx.apps.googleusercontent.com
+AUTH_GOOGLE_SECRET=GOCSPX-xxxxxxxxxxxxxxxxxxxx
+```
+
+**GitHub OAuth:**
+
+1. Create OAuth App at [GitHub Developer Settings](https://github.com/settings/developers)
+2. Set callback URL: `https://yourdomain.com/api/auth/callback/github`
+3. Configure environment variables:
+
+```bash
+AUTH_SSO_PROVIDERS=github
+AUTH_GITHUB_ID=Ov23xxxxxxxxxxxxx
+AUTH_GITHUB_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+```
+
## Email Service Configuration
-Email service is used for email verification, password reset, and magic link delivery. For detailed configuration, see [Email Service Configuration](/docs/self-hosting/auth/email).
+Email service is required for email verification, password reset, and magic link delivery.
+
+**SMTP configuration:**
+
+```bash
+SMTP_HOST=smtp.gmail.com # SMTP server hostname
+SMTP_PORT=587 # 587 for TLS (recommended), 465 for SSL
+SMTP_SECURE=false # true for port 465, false for port 587
+SMTP_USER=your-email@gmail.com
+SMTP_PASS=your-app-specific-password # For Gmail, use an app-specific password
+SMTP_FROM=noreply@yourdomain.com # Optional, defaults to SMTP_USER
+```
+
+For detailed configuration, see [Email Service Configuration](/docs/self-hosting/auth/email).
Go to [Environment Variables](/docs/self-hosting/environment-variables/auth#better-auth) for detailed information on all Better Auth variables.
diff --git a/docs/self-hosting/auth.zh-CN.mdx b/docs/self-hosting/auth.zh-CN.mdx
index e3d8c19a2a..9dcd1b787c 100644
--- a/docs/self-hosting/auth.zh-CN.mdx
+++ b/docs/self-hosting/auth.zh-CN.mdx
@@ -1,8 +1,6 @@
---
title: LobeHub 身份验证服务配置
-description: >-
- 了解如何使用 Better Auth 配置外部身份验证服务,以统一管理用户授权。支持的身份验证服务包括 Auth0、
- Azure ID 等。
+description: 了解如何使用 Better Auth 配置外部身份验证服务,以统一管理用户授权。支持的身份验证服务包括 Auth0、 Azure ID 等。
tags:
- 身份验证服务
- Better Auth
@@ -105,9 +103,71 @@ LobeHub 支持使用 Better Auth 配置外部身份验证服务,供企业 /
- **开发环境**:`http://localhost:3210/api/auth/callback/{provider}`
- **生产环境**:`https://yourdomain.com/api/auth/callback/{provider}`
+## 邮箱密码选项
+
+**禁用邮箱密码登录(仅 SSO 模式):**
+
+设置 `AUTH_DISABLE_EMAIL_PASSWORD=1` 可在登录页面隐藏邮箱输入框,并将注册页面重定向至登录页面。用户只能通过已配置的 SSO 提供商登录。启用前请确保至少配置了一个 SSO 提供商。
+
+**限制注册邮箱或域名:**
+
+设置 `AUTH_ALLOWED_EMAILS`,以逗号分隔多个值:
+
+```bash
+# 仅允许 @example.com 邮箱
+AUTH_ALLOWED_EMAILS=example.com
+
+# 允许多个域名和特定邮箱
+AUTH_ALLOWED_EMAILS=example.com,company.org,admin@other.com
+```
+
+
+ `AUTH_ALLOWED_EMAILS` 仅限制哪些邮箱可以注册,不会验证邮箱所有权。结合 `AUTH_EMAIL_VERIFICATION=1`
+ 可确保用户确实拥有其注册邮箱。
+
+
+## OAuth 快速配置示例
+
+**Google OAuth:**
+
+1. 在 [Google Cloud Console](https://console.cloud.google.com/apis/credentials) 创建 OAuth 凭据
+2. 设置授权重定向 URI:`https://yourdomain.com/api/auth/callback/google`
+3. 配置环境变量:
+
+```bash
+AUTH_SSO_PROVIDERS=google
+AUTH_GOOGLE_ID=xxxxx.apps.googleusercontent.com
+AUTH_GOOGLE_SECRET=GOCSPX-xxxxxxxxxxxxxxxxxxxx
+```
+
+**GitHub OAuth:**
+
+1. 在 [GitHub 开发者设置](https://github.com/settings/developers) 创建 OAuth App
+2. 设置回调 URL:`https://yourdomain.com/api/auth/callback/github`
+3. 配置环境变量:
+
+```bash
+AUTH_SSO_PROVIDERS=github
+AUTH_GITHUB_ID=Ov23xxxxxxxxxxxxx
+AUTH_GITHUB_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+```
+
## 邮件服务配置
-邮件服务用于邮箱验证、密码重置和魔法链接发送。详细配置请参阅 [邮件服务配置](/zh/docs/self-hosting/auth/email)。
+邮件服务用于邮箱验证、密码重置和魔法链接发送。
+
+**SMTP 配置:**
+
+```bash
+SMTP_HOST=smtp.gmail.com # SMTP 服务器地址
+SMTP_PORT=587 # TLS 使用 587(推荐),SSL 使用 465
+SMTP_SECURE=false # port 465 时设为 true,port 587 时设为 false
+SMTP_USER=your-email@gmail.com
+SMTP_PASS=your-app-specific-password # Gmail 需使用应用专用密码
+SMTP_FROM=noreply@yourdomain.com # 可选,默认为 SMTP_USER
+```
+
+详细配置请参阅 [邮件服务配置](/zh/docs/self-hosting/auth/email)。
前往 [环境变量](/zh/docs/self-hosting/environment-variables/auth#better-auth) 可查阅所有 Better Auth 相关变量详情。
diff --git a/docs/self-hosting/auth/email.mdx b/docs/self-hosting/auth/email.mdx
index b922ca5494..d752c94b8e 100644
--- a/docs/self-hosting/auth/email.mdx
+++ b/docs/self-hosting/auth/email.mdx
@@ -1,6 +1,8 @@
---
title: Email Service Configuration
-description: Configure LobeHub email service for email verification, password reset, and magic link login.
+description: >-
+ Configure LobeHub email service for email verification, password reset, and
+ magic link login.
tags:
- Email Service
- SMTP
diff --git a/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.mdx b/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.mdx
index 2290273508..42ef30f3bb 100644
--- a/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.mdx
+++ b/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.mdx
@@ -23,25 +23,25 @@ tags:
First, we need to visit `https://one.dash.cloudflare.com/` and navigate to `Access - Applications`.
- 
+ 
Now, on the current page, click `Add an application` and select `SaaS`.
- 
+ 
In the `Application` text box, enter the application name, such as `LobeHub SSO`. Then click `Select OIDC`, followed by clicking `Add application`.
- 
+ 
At this point, you have successfully created a SaaS application named `LobeHub SSO` in Cloudflare Zero Trust.
Next, we need to enter `https://chat.example.com/api/auth/callback/cloudflare-zero-trust` in the `Redirect URLs` field (note that `chat.example.com` should be replaced with your instance's address).
- 
+ 
Finally, scroll down the page and record the following three values: `Client secret`, `Client ID`, and `Issuer`. You will need these for setting the environment variables when deploying LobeHub.
- 
+ 
### Configure Environment Variables
diff --git a/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx b/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx
index 33dd0b22d0..6d293ea367 100644
--- a/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx
+++ b/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx
@@ -22,23 +22,23 @@ tags:
首先我们需要访问 `https://one.dash.cloudflare.com/` 并前往 `Access - Applications` 中。
- 
+ 
现在,在所在页面点击 `Add an application` 并选择 `SaaS`。
- 
+ 
在 `Application` 文本框内填入应用名称,如:`LobeHub SSO`,然后点击 `Select OIDC` 后点击 `Add applicaiton`
- 
+ 
至此您已成功在 Clouflare Zero Trust 中创建了一个名为 `LobeHub SSO` 的 SaaS 应用。
- 接下来我们需要在 `Redirect URLs` 中填入 `https://chat.example.com/api/auth/callback/cloudflare-zero-trust`(注意此处的 `chat.example.com` 需要替换为您的实例地址) 
+ 接下来我们需要在 `Redirect URLs` 中填入 `https://chat.example.com/api/auth/callback/cloudflare-zero-trust`(注意此处的 `chat.example.com` 需要替换为您的实例地址) 
最后我们将页面往下滚动,您将需要记录以下三个值 `Client secret`, `Client ID` 及 `Issuer` 以备后续部署 LobeHub 环境变量使用。
- 
+ 
### 配置环境变量
diff --git a/docs/self-hosting/auth/providers/auth0.mdx b/docs/self-hosting/auth/providers/auth0.mdx
index 49caeaf3d4..f920abf9fd 100644
--- a/docs/self-hosting/auth/providers/auth0.mdx
+++ b/docs/self-hosting/auth/providers/auth0.mdx
@@ -1,8 +1,8 @@
---
title: Configuring Auth0 Authentication for LobeHub
description: >-
- Learn how to configure Auth0 SSO for LobeHub, including creating
- applications, adding users, and setting up environment variables.
+ Learn how to configure Auth0 SSO for LobeHub, including creating applications,
+ adding users, and setting up environment variables.
tags:
- Auth0
- Authentication
diff --git a/docs/self-hosting/auth/providers/authentik.mdx b/docs/self-hosting/auth/providers/authentik.mdx
index 7085290a71..5a4cc3f6c4 100644
--- a/docs/self-hosting/auth/providers/authentik.mdx
+++ b/docs/self-hosting/auth/providers/authentik.mdx
@@ -1,8 +1,8 @@
---
title: Configuring Authentik Authentication for LobeHub
description: >-
- Learn how to configure Authentik SSO for LobeHub, including creating an
- OAuth2 provider and application.
+ Learn how to configure Authentik SSO for LobeHub, including creating an OAuth2
+ provider and application.
tags:
- Authentik
- Authentication
diff --git a/docs/self-hosting/auth/providers/okta.mdx b/docs/self-hosting/auth/providers/okta.mdx
index 5d5890c488..cf8f7a8d20 100644
--- a/docs/self-hosting/auth/providers/okta.mdx
+++ b/docs/self-hosting/auth/providers/okta.mdx
@@ -1,8 +1,8 @@
---
title: Configuring Okta Authentication for LobeHub
description: >-
- Learn how to configure Okta SSO for LobeHub, including creating an
- application and setting up environment variables.
+ Learn how to configure Okta SSO for LobeHub, including creating an application
+ and setting up environment variables.
tags:
- Okta
- Authentication
diff --git a/docs/self-hosting/environment-variables/auth.mdx b/docs/self-hosting/environment-variables/auth.mdx
index 7cb6c2da8b..9299e2659c 100644
--- a/docs/self-hosting/environment-variables/auth.mdx
+++ b/docs/self-hosting/environment-variables/auth.mdx
@@ -2,8 +2,8 @@
title: LobeHub Authentication Service Environment Variables
description: >-
Explore the essential environment variables for configuring authentication
- services in LobeHub, including Better Auth, OAuth SSO, and
- provider-specific details.
+ services in LobeHub, including Better Auth, OAuth SSO, and provider-specific
+ details.
tags:
- Authentication Service
- Better Auth
diff --git a/docs/self-hosting/environment-variables/model-provider.mdx b/docs/self-hosting/environment-variables/model-provider.mdx
index 1bc9aa10ab..99c975ba13 100644
--- a/docs/self-hosting/environment-variables/model-provider.mdx
+++ b/docs/self-hosting/environment-variables/model-provider.mdx
@@ -1,8 +1,9 @@
---
title: LobeHub Model Service Providers - Environment Variables and Configuration
description: >-
- Learn about the environment variables and configuration settings for various model service providers like OpenAI, Google AI, AWS Bedrock, Ollama, Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
-
+ Learn about the environment variables and configuration settings for various
+ model service providers like OpenAI, Google AI, AWS Bedrock, Ollama,
+ Perplexity AI, Anthropic AI, Mistral AI, Groq AI, OpenRouter AI, and 01.AI.
tags:
- Model Service Providers
- Environment Variables
diff --git a/docs/self-hosting/environment-variables/redis.mdx b/docs/self-hosting/environment-variables/redis.mdx
index a40af85287..79ba9de1f4 100644
--- a/docs/self-hosting/environment-variables/redis.mdx
+++ b/docs/self-hosting/environment-variables/redis.mdx
@@ -1,6 +1,8 @@
---
title: Configure Redis Cache Service
-description: Learn how to configure Redis cache service to optimize performance and session management.
+description: >-
+ Learn how to configure Redis cache service to optimize performance and session
+ management.
tags:
- Redis
- Cache
diff --git a/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx
index fac06f8668..7204ddf751 100644
--- a/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx
+++ b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx
@@ -79,9 +79,9 @@ For small self-hosted deployments, the simplest approach is to let users reset t
AUTH_GOOGLE_SECRET=your-google-client-secret
```
-
- See [Authentication Service Configuration](/docs/self-hosting/auth) for complete environment variables and SSO provider setup.
-
+
+ See [Authentication Service Configuration](/docs/self-hosting/auth) for complete environment variables and SSO provider setup.
+
3. **Redeploy LobeHub**
diff --git a/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx
index 7b873e4a07..b37d57056c 100644
--- a/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx
@@ -77,9 +77,9 @@ tags:
AUTH_GOOGLE_SECRET=your-google-client-secret
```
-
- 查阅 [身份验证服务配置](/zh/docs/self-hosting/auth) 了解完整的环境变量和 SSO 提供商配置。
-
+
+ 查阅 [身份验证服务配置](/zh/docs/self-hosting/auth) 了解完整的环境变量和 SSO 提供商配置。
+
3. **重新部署 LobeHub**
diff --git a/docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx b/docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx
index 6715196c4c..ffe9867e2b 100644
--- a/docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx
@@ -1,7 +1,6 @@
---
title: 认证迁移原理 - 技术深入解析
-description: >-
- LobeHub 认证迁移的技术原理解析,包括数据库 Schema、迁移原理和问题排查指南。
+description: LobeHub 认证迁移的技术原理解析,包括数据库 Schema、迁移原理和问题排查指南。
tags:
- 认证
- 迁移
diff --git a/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx
index ccc7bf432f..cf8db3acfd 100644
--- a/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx
+++ b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx
@@ -132,9 +132,9 @@ For small self-hosted deployments, the simplest approach is to let users re-logi
AUTH_GOOGLE_SECRET=your-google-client-secret
```
-
- See [Authentication Service Configuration](/docs/self-hosting/auth) for complete environment variables and SSO provider setup.
-
+
+ See [Authentication Service Configuration](/docs/self-hosting/auth) for complete environment variables and SSO provider setup.
+
2. **Redeploy LobeHub**
diff --git a/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx
index e4b4225582..5a5a4f73c3 100644
--- a/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx
@@ -129,9 +129,9 @@ Better Auth 支持更多功能,以下是新增的环境变量:
AUTH_GOOGLE_SECRET=your-google-client-secret
```
-
- 查阅 [身份验证服务配置](/zh/docs/self-hosting/auth) 了解完整的环境变量和 SSO 提供商配置。
-
+
+ 查阅 [身份验证服务配置](/zh/docs/self-hosting/auth) 了解完整的环境变量和 SSO 提供商配置。
+
2. **重新部署 LobeHub**
diff --git a/docs/self-hosting/platform/docker-compose.mdx b/docs/self-hosting/platform/docker-compose.mdx
index 69bb3729a0..8f2ca31482 100644
--- a/docs/self-hosting/platform/docker-compose.mdx
+++ b/docs/self-hosting/platform/docker-compose.mdx
@@ -348,6 +348,161 @@ If `INTERNAL_APP_URL` is not set, it defaults to `APP_URL`.
For Docker Compose deployments with `network_mode: 'service:network-service'`, use `http://localhost:3210` as the `INTERNAL_APP_URL`.
+## Reverse Proxy Configuration
+
+For production deployments with a custom domain and HTTPS, configure a reverse proxy in front of LobeHub.
+
+**Nginx:**
+
+```nginx
+server {
+ listen 443 ssl http2;
+ server_name lobehub.example.com;
+
+ ssl_certificate /path/to/cert.pem;
+ ssl_certificate_key /path/to/key.pem;
+
+ location / {
+ proxy_pass http://localhost:3210;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection 'upgrade';
+ proxy_set_header Host $host;
+ proxy_cache_bypass $http_upgrade;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+}
+```
+
+**Caddy** (automatically handles HTTPS with Let's Encrypt):
+
+```caddyfile
+lobehub.example.com {
+ reverse_proxy localhost:3210
+}
+```
+
+**Traefik** — add labels to the `lobe` service in `docker-compose.yml`:
+
+```yaml
+labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.lobehub.rule=Host(`lobehub.example.com`)"
+ - "traefik.http.routers.lobehub.entrypoints=websecure"
+ - "traefik.http.routers.lobehub.tls.certresolver=letsencrypt"
+```
+
+## Management Commands
+
+```sh
+# View logs (all services)
+docker compose logs -f
+
+# View logs for a specific service
+docker compose logs -f lobehub
+
+# Restart all services
+docker compose restart
+
+# Restart a specific service
+docker compose restart lobehub
+
+# Stop all services
+docker compose stop
+
+# Update to the latest version
+docker compose pull && docker compose up -d
+```
+
+## Backup and Restore
+
+**Database backup:**
+
+```sh
+docker compose exec postgresql pg_dump -U postgres lobechat > backup.sql
+```
+
+Restore from backup:
+
+```sh
+docker compose exec -T postgresql psql -U postgres lobechat < backup.sql
+```
+
+**File storage (RustFS) backup:**
+
+```sh
+docker compose exec rustfs tar czf /tmp/backup.tar.gz /data
+docker cp lobe-rustfs:/tmp/backup.tar.gz ./rustfs-backup.tar.gz
+```
+
+**Redis** — Redis automatically persists data with AOF. To manually save:
+
+```sh
+docker compose exec redis redis-cli BGSAVE
+```
+
+## Resource Requirements
+
+**Minimum (light usage):**
+
+- CPU: 2 cores
+- RAM: 4 GB
+- Storage: 20 GB
+
+**Recommended (production):**
+
+- CPU: 4+ cores
+- RAM: 8+ GB
+- Storage: 50+ GB (depending on file uploads)
+
+For high-traffic deployments, consider using managed database (Neon, Supabase, RDS), Redis cluster for caching, and a CDN for static assets.
+
+## Troubleshooting
+
+**Service won't start**
+
+Check service status and logs:
+
+```sh
+docker compose ps
+docker compose logs [service-name]
+```
+
+Common causes: port already in use (change `LOBE_PORT` in `.env`), insufficient disk space, or database connection failure.
+
+**Database connection error**
+
+Verify PostgreSQL is healthy:
+
+```sh
+docker compose exec postgresql pg_isready -U postgres
+```
+
+If unhealthy, check its logs: `docker compose logs postgresql`
+
+**File upload fails**
+
+Check RustFS service:
+
+```sh
+docker compose logs rustfs
+docker compose logs rustfs-init
+```
+
+Verify the bucket was created: `docker compose exec rustfs ls /data/lobe`
+
+**Running out of disk space**
+
+Check usage: `docker system df`
+
+Clean up unused resources (make sure to back up first):
+
+```sh
+docker system prune -a --volumes
+```
+
## Configuring Authentication
To configure SSO authentication services (such as Casdoor, Logto, etc.), please refer to the [Authentication Services](/docs/self-hosting/auth) documentation.
diff --git a/docs/self-hosting/platform/docker-compose.zh-CN.mdx b/docs/self-hosting/platform/docker-compose.zh-CN.mdx
index 6d162adfaa..178f4e8fe4 100644
--- a/docs/self-hosting/platform/docker-compose.zh-CN.mdx
+++ b/docs/self-hosting/platform/docker-compose.zh-CN.mdx
@@ -344,6 +344,161 @@ environment:
对于使用 `network_mode: 'service:network-service'` 的 Docker Compose 部署,请使用 `http://localhost:3210` 作为 `INTERNAL_APP_URL`。
+## 反向代理配置
+
+在生产环境中,如需使用自定义域名和 HTTPS,需在 LobeHub 前面配置反向代理。
+
+**Nginx:**
+
+```nginx
+server {
+ listen 443 ssl http2;
+ server_name lobehub.example.com;
+
+ ssl_certificate /path/to/cert.pem;
+ ssl_certificate_key /path/to/key.pem;
+
+ location / {
+ proxy_pass http://localhost:3210;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection 'upgrade';
+ proxy_set_header Host $host;
+ proxy_cache_bypass $http_upgrade;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+}
+```
+
+**Caddy**(自动通过 Let's Encrypt 处理 HTTPS):
+
+```caddyfile
+lobehub.example.com {
+ reverse_proxy localhost:3210
+}
+```
+
+**Traefik** — 在 `docker-compose.yml` 的 `lobe` 服务中添加标签:
+
+```yaml
+labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.lobehub.rule=Host(`lobehub.example.com`)"
+ - "traefik.http.routers.lobehub.entrypoints=websecure"
+ - "traefik.http.routers.lobehub.tls.certresolver=letsencrypt"
+```
+
+## 管理命令
+
+```sh
+# 查看所有服务日志
+docker compose logs -f
+
+# 查看指定服务日志
+docker compose logs -f lobehub
+
+# 重启所有服务
+docker compose restart
+
+# 重启指定服务
+docker compose restart lobehub
+
+# 停止所有服务
+docker compose stop
+
+# 更新到最新版本
+docker compose pull && docker compose up -d
+```
+
+## 备份与恢复
+
+**数据库备份:**
+
+```sh
+docker compose exec postgresql pg_dump -U postgres lobechat > backup.sql
+```
+
+从备份恢复:
+
+```sh
+docker compose exec -T postgresql psql -U postgres lobechat < backup.sql
+```
+
+**文件存储(RustFS)备份:**
+
+```sh
+docker compose exec rustfs tar czf /tmp/backup.tar.gz /data
+docker cp lobe-rustfs:/tmp/backup.tar.gz ./rustfs-backup.tar.gz
+```
+
+**Redis** — Redis 通过 AOF 自动持久化数据。手动保存:
+
+```sh
+docker compose exec redis redis-cli BGSAVE
+```
+
+## 资源要求
+
+**最低配置(轻量使用):**
+
+- CPU:2 核
+- 内存:4 GB
+- 存储:20 GB
+
+**推荐配置(生产环境):**
+
+- CPU:4 核 +
+- 内存:8 GB+
+- 存储:50 GB+(取决于文件上传量)
+
+对于高流量部署,建议使用托管数据库(Neon、Supabase、RDS)、Redis 集群以及 CDN 加速静态资源。
+
+## 故障排查
+
+**服务无法启动**
+
+检查服务状态和日志:
+
+```sh
+docker compose ps
+docker compose logs [service-name]
+```
+
+常见原因:端口被占用(在 `.env` 中修改 `LOBE_PORT`)、磁盘空间不足、数据库连接失败。
+
+**数据库连接错误**
+
+检查 PostgreSQL 是否健康:
+
+```sh
+docker compose exec postgresql pg_isready -U postgres
+```
+
+如果不健康,查看日志:`docker compose logs postgresql`
+
+**文件上传失败**
+
+检查 RustFS 服务:
+
+```sh
+docker compose logs rustfs
+docker compose logs rustfs-init
+```
+
+确认 bucket 是否已创建:`docker compose exec rustfs ls /data/lobe`
+
+**磁盘空间不足**
+
+检查使用情况:`docker system df`
+
+清理未使用的资源(请先做好备份):
+
+```sh
+docker system prune -a --volumes
+```
+
## 配置身份验证
如需配置 SSO 登录鉴权服务(如 Casdoor、Logto 等),请参考 [身份验证服务](/zh/docs/self-hosting/auth) 文档。
diff --git a/docs/self-hosting/platform/dokploy.mdx b/docs/self-hosting/platform/dokploy.mdx
index 60b8ac9a61..8f61cc8161 100644
--- a/docs/self-hosting/platform/dokploy.mdx
+++ b/docs/self-hosting/platform/dokploy.mdx
@@ -24,11 +24,11 @@ curl -sSL https://dokploy.com/install.sh | sh
1. Connect your GitHub to Dokploy in the Settings / Git section according to the prompt.
-
+
2. Enter the Projects interface to create a Project.
-
+
### Configure S3 Storage Service
@@ -68,7 +68,7 @@ You also need to configure the `JWKS_KEY` environment variable for signing and v
Enter the previously created Project, click on Create Service, and select Database. In the Database interface, choose PostgreSQL, then set the database name, user, and password. In the Docker image field, enter `paradedb/paradedb:latest-pg17`, and finally click Create to create the database.
-
+
Enter the created database and set an unused port in External Credentials to allow external access; otherwise, LobeHub will not be able to connect to the database. You can view the Postgres database connection URL in External Host, as shown below:
@@ -78,21 +78,21 @@ postgresql://postgres:wAbLxfXSwkxxxxxx@45.577.281.48:5432/postgres
Finally, click Deploy to deploy the database.
-
+
## Deploy LobeHub on Dokploy.
Click "Create Service", select "Application", and create the LobeHub application.
-
+
Enter the created LobeHub application, select the forked lobe-chat project and branch, and click Save to save.
-
+
Switch to the Environment section, fill in the environment variables, and click Save.
-
+
```shell
# Environment variables required for building
@@ -123,14 +123,14 @@ S3_ENABLE_PATH_STYLE=
After adding the environment variables and saving, click Deploy to initiate the deployment. You can check the deployment progress and log information under Deployments.
-
+
After a successful deployment, bind your own domain to your LobeHub application and request a certificate on the Domains page.
-
+
## Check if LobeHub is working properly.
Go to your LobeHub website, and if you click on the login button in the upper left corner and the login pop-up appears normally, it means you have configured it successfully. Enjoy it to the fullest!
-
+
diff --git a/docs/self-hosting/platform/dokploy.zh-CN.mdx b/docs/self-hosting/platform/dokploy.zh-CN.mdx
index c10e98e069..8900e02f62 100644
--- a/docs/self-hosting/platform/dokploy.zh-CN.mdx
+++ b/docs/self-hosting/platform/dokploy.zh-CN.mdx
@@ -25,11 +25,11 @@ curl -sSL https://dokploy.com/install.sh | sh
1. 在 Dokploy 的 Settings / Git 处根据提示将 Github 绑定到 Dokploy
-
+
2. 进入 Projects 界面创建一个 Project
-
+
### 配置 S3 存储服务
@@ -69,7 +69,7 @@ S3_ENABLE_PATH_STYLE=
进入前面创建的 Project,点击 Create Service 选择 Database,在 Database 界面选择 PostgreSQL ,然后设置数据库名、用户、密码,在 Docker image 中填入 `paradedb/paradedb:latest-pg17` 最后点击 Create 创建数据库。
-
+
进入创建的数据库,在 External Credentials 设置一个未被占用的端口,使其能能通过外部访问,否则 LobeHub 将无法连接到该数据库。你可以在 External Host 查看 Postgres 数据库连接 URL ,如下:
@@ -79,21 +79,21 @@ postgresql://postgres:wAbLxfXSwkxxxxxx@45.577.281.48:5432/postgres
最后点击 Deploy 部署数据库
-
+
## 在 Dokploy 上部署 LobeHub
点击 Create Service 选择 Application,创建 LobeHub 应用
-
+
进入创建的 LobeHub 应用,选择你 fork 的 lobe-chat 项目及分支,点击 Save 保存
-
+
切换到 Environment ,在其中填入环境变量,点击保存。
-
+
```shell
# 构建所必需的环境变量
@@ -124,14 +124,14 @@ S3_ENABLE_PATH_STYLE=
添加完环境变量并保存后,点击 Deploy 进行部署,你可以在 Deployments 处查看部署进程及日志信息
-
+
部署成功后在 Domains 页面,为你的 LobeHub 应用绑定自己的域名并申请证书。
-
+
## 验证 LobeHub 是否正常工作
进入你的 LobeHub 网址,如果你点击左上角登录,可以正常显示登录弹窗,那么说明你已经配置成功了,尽情享用吧~
-
+
diff --git a/docs/self-hosting/platform/vercel.mdx b/docs/self-hosting/platform/vercel.mdx
index bbff609cc7..6a2ff6445d 100644
--- a/docs/self-hosting/platform/vercel.mdx
+++ b/docs/self-hosting/platform/vercel.mdx
@@ -257,6 +257,56 @@ After completing the steps above, the configuration of the server-side database
+## Platform Limitations
+
+
+ Be aware of these Vercel platform limitations before deploying.
+
+
+**Serverless function timeout:**
+
+| Plan | Timeout |
+| ---------- | ----------- |
+| Hobby | 10 seconds |
+| Pro | 60 seconds |
+| Enterprise | 900 seconds |
+
+Long-running AI requests may timeout on the Hobby plan. Streaming responses (enabled by default) help keep connections alive.
+
+**No WebSocket support** — Vercel serverless functions don't support persistent WebSocket connections. Real-time features use Server-Sent Events (SSE) instead.
+
+**Cold starts** — Serverless functions may be slower on first request after idle periods (1–3 seconds). This is normal behavior for serverless platforms.
+
+**File size limits** — Deployment size: 250 MB (compressed). Function size: 50 MB.
+
+## Keeping Updated
+
+
+ If you used the one-click deploy button, Vercel creates a **new** repository instead of forking the original. This prevents automatic upstream updates.
+
+
+To receive future LobeHub updates:
+
+1. **Delete** the current project from Vercel dashboard (Settings → Delete Project)
+2. Manually **fork** [lobehub/lobe-chat](https://github.com/lobehub/lobe-chat) on GitHub
+3. **Import** your forked repository to Vercel (Add New → Project)
+4. Re-configure your environment variables and deploy
+5. In your fork's GitHub **Actions** tab, enable the `upstream-sync` workflow — it automatically checks for updates daily
+
+To sync manually: Actions → Upstream Sync → Run workflow.
+
+## Troubleshooting
+
+**Deployment fails** — Check build logs in Vercel Dashboard → Deployments → click the failed deployment → Build Logs. Common causes: missing environment variables, TypeScript errors, or out of memory (fix with `NODE_OPTIONS=--max-old-space-size=4096`).
+
+**Function timeout** — If requests timeout on Hobby plan: upgrade to Pro (60s timeout), use faster AI models (e.g., GPT-4o-mini instead of GPT-4o), reduce max tokens, or ensure streaming is enabled.
+
+**Database connection fails** — Verify `DATABASE_URL` format. Ensure `?sslmode=require` is appended for managed databases. Check that the database's IP allowlist includes Vercel IPs (or use `0.0.0.0/0` for open access). Test locally with `psql "$DATABASE_URL"`.
+
+**502 Bad Gateway** — Common causes: function timeout, out of memory, or database connection pool exhausted. Use a connection pooler (PgBouncer), reduce concurrent connections, or check database logs.
+
+**Environment variables not updating** — After changing env vars, go to Deployments → Redeploy (three dots menu) → select "Use existing Build Cache: No".
+
## Appendix
### Overview of Server-side Database Environment Variables
diff --git a/docs/self-hosting/platform/vercel.zh-CN.mdx b/docs/self-hosting/platform/vercel.zh-CN.mdx
index c73db155ae..a991b4d1b5 100644
--- a/docs/self-hosting/platform/vercel.zh-CN.mdx
+++ b/docs/self-hosting/platform/vercel.zh-CN.mdx
@@ -252,6 +252,56 @@ tags:
+## 平台限制
+
+
+ 部署前请了解 Vercel 平台的以下限制。
+
+
+**Serverless 函数超时:**
+
+| 套餐 | 超时时间 |
+| ---------- | ----- |
+| Hobby | 10 秒 |
+| Pro | 60 秒 |
+| Enterprise | 900 秒 |
+
+在 Hobby 套餐上,长时间运行的 AI 请求可能会超时。默认启用的流式响应有助于保持连接活跃。
+
+**不支持 WebSocket** — Vercel Serverless 函数不支持持久 WebSocket 连接,实时功能使用服务端发送事件(SSE)代替。
+
+**冷启动** — Serverless 函数在空闲后的首次请求可能较慢(1–3 秒),这是 Serverless 平台的正常行为。
+
+**文件大小限制** — 部署包:250 MB(压缩后);函数包:50 MB。
+
+## 保持版本更新
+
+
+ 如果你使用了一键部署按钮,Vercel 会创建一个**全新的**仓库,而非 Fork 原始仓库。这会导致无法自动同步上游更新。
+
+
+若要接收 LobeHub 的后续更新:
+
+1. 在 Vercel 控制台**删除**当前项目(设置 → 删除项目)
+2. 在 GitHub 上手动 **Fork** [lobehub/lobe-chat](https://github.com/lobehub/lobe-chat)
+3. 将 Fork 后的仓库**导入**到 Vercel(新增项目 → 导入)
+4. 重新配置环境变量并部署
+5. 在 Fork 仓库的 GitHub **Actions** 标签页,启用 `upstream-sync` 工作流 —— 它会每日自动检查上游更新
+
+手动同步:Actions → Upstream Sync → Run workflow。
+
+## 故障排查
+
+**部署失败** — 在 Vercel 控制台 → 部署记录 → 点击失败的部署 → 构建日志中查看详情。常见原因:环境变量缺失、TypeScript 报错、内存不足(通过 `NODE_OPTIONS=--max-old-space-size=4096` 修复)。
+
+**函数超时** — 在 Hobby 套餐遇到超时时:升级到 Pro(60 秒超时)、使用更快的模型(如 GPT-4o-mini 代替 GPT-4o)、减少最大 token 数,或确认已启用流式响应。
+
+**数据库连接失败** — 检查 `DATABASE_URL` 格式。对于托管数据库,确保末尾追加了 `?sslmode=require`。检查数据库 IP 白名单是否包含 Vercel IP(或使用 `0.0.0.0/0` 开放访问)。本地测试:`psql "$DATABASE_URL"`。
+
+**502 网关错误** — 常见原因:函数超时、内存溢出、数据库连接池耗尽。使用连接池(PgBouncer)、减少并发连接数或查看数据库日志。
+
+**环境变量修改后未生效** — 在部署记录中点击某次部署的三点菜单 → 重新部署,选择 "不使用现有构建缓存"。
+
## 附录
### 服务端数据库环境变量一览
diff --git a/docs/self-hosting/start.mdx b/docs/self-hosting/start.mdx
index bcc51a68f4..e3f1381d22 100644
--- a/docs/self-hosting/start.mdx
+++ b/docs/self-hosting/start.mdx
@@ -14,6 +14,138 @@ tags:
# Build Your Own LobeHub
-LobeHub supports various deployment platforms, including Vercel, Docker, and Docker Compose. You can choose a deployment platform that suits you to build your own LobeHub.
+LobeHub can be self-hosted on your own infrastructure, giving you complete control over your data, customization, and deployment environment. Whether you're deploying for a team, organization, or personal use, LobeHub supports multiple deployment methods.
+
+## Architecture Overview
+
+LobeHub consists of several key components:
+
+### Core Services
+
+- **Next.js application** — Hybrid SSR/SPA frontend with API routes
+- **PostgreSQL database** — Stores conversations, agents, files, and user data
+- **Redis** (optional) — Session storage and caching
+- **S3-compatible storage** — File uploads and knowledge base documents
+
+### Optional Services
+
+- **RustFS / MinIO** — Self-hosted S3-compatible storage
+- **Langfuse** — LLM observability and tracing
+- **OpenTelemetry** — Distributed tracing
+- **Searxng** — Privacy-focused web search
+
+## Choosing a Deployment Method
+
+### Docker Compose (Recommended)
+
+**Best for:** Self-hosted installations, full infrastructure control, team deployments.
+
+**Pros:**
+
+- Complete stack in one command
+- Easy updates with `docker compose pull`
+- Includes PostgreSQL, Redis, RustFS, Searxng
+- Full feature support — no timeout limits, WebSocket support
+
+**Cons:**
+
+- Requires server management
+- Need to handle backups and monitoring
+
+### Vercel
+
+**Best for:** Quick deployments, serverless scaling, low maintenance.
+
+**Pros:**
+
+- One-click deployment
+- Automatic HTTPS and CDN
+- Scales automatically
+- Free tier available
+
+**Cons:**
+
+- Requires an external PostgreSQL database
+- 10-second serverless function timeout limit
+- No WebSocket support
+- Less control over infrastructure
+
+### Cloud Platforms (Zeabur, Sealos, Dokploy)
+
+Similar to Vercel with regional options. Good for specific geographic requirements with various pricing and feature differences.
+
+## Feature Comparison
+
+| Feature | Docker | Vercel | Cloud Platforms |
+| ----------------- | ------------ | ----------- | --------------- |
+| Full control | ✅ | ❌ | ⚠️ |
+| Custom domain | ✅ | ✅ | ✅ |
+| One-click deploy | ❌ | ✅ | ✅ |
+| Auto-scaling | ❌ | ✅ | ✅ |
+| Free tier | ✅ | ✅ | Varies |
+| Function timeout | Unlimited | 10s | Varies |
+| WebSocket support | ✅ | ❌ | Varies |
+| File storage | Local/RustFS | External S3 | Varies |
+| Database | Included | External | Varies |
+
+## Prerequisites
+
+Before deploying LobeHub, gather the following:
+
+### Required
+
+**AI provider API keys** — At minimum, you need an API key from one AI provider:
+
+- **OpenAI** — `OPENAI_API_KEY` from [platform.openai.com](https://platform.openai.com/account/api-keys)
+- **Anthropic** — `ANTHROPIC_API_KEY` from [console.anthropic.com](https://console.anthropic.com/)
+- **Google** — `GOOGLE_API_KEY` from [aistudio.google.com](https://aistudio.google.com/app/apikey)
+
+See [AI Provider Configuration](/docs/self-hosting/environment-variables/model-provider) for the full list of supported providers.
+
+**Database (for server deployment)** — PostgreSQL 14+ is required:
+
+- **Managed options**: Neon, Supabase, Railway, Vercel Postgres
+- **Self-hosted**: Docker (included in Docker Compose), AWS RDS, Google Cloud SQL
+
+### Optional but Recommended
+
+**Redis** — Improves performance for session storage, rate limiting, and caching. Use Upstash, Redis Cloud, or self-hosted Redis.
+
+**S3-compatible storage** — Required for file uploads and knowledge bases:
+
+- **AWS S3** — Production-ready, scalable
+- **Cloudflare R2** — No egress fees
+- **RustFS / MinIO** — Self-hosted S3 alternative (included in Docker Compose)
+
+**Authentication provider** — For SSO and team features (Google OAuth, GitHub OAuth, Microsoft Azure AD, Auth0, Keycloak). See [Authentication Setup](/docs/self-hosting/auth) for configuration.
+
+## Security Considerations
+
+
+ Never commit API keys or secrets to version control. Always use environment variables.
+
+
+Essential security measures:
+
+1. **Use HTTPS** — Always deploy with SSL/TLS certificates
+2. **Secure your database** — Use strong passwords and restrict network access
+3. **Environment variables** — Store secrets securely (never in code)
+4. **Authentication** — Enable Better Auth for multi-user deployments
+5. **Regular updates** — Keep LobeHub and dependencies up to date
+
+Authentication options:
+
+- **Open access** — No authentication (single-user deployments only)
+- **Better Auth** — Built-in auth with email/password, OAuth, magic links
+- **Reverse proxy** — Use Authelia, Authentik, or similar
+
+## Next Steps
+
+1. **Choose your deployment method** — Docker for maximum control or Vercel for simplicity
+2. **Gather API keys** — Obtain API keys from your chosen AI providers
+3. **Set up infrastructure** — Provision database, Redis, and storage as needed
+4. **Configure environment variables** — See the [environment variable reference](/docs/self-hosting/environment-variables)
+5. **Deploy** — Follow the platform-specific guide above
+6. **Configure authentication** — Set up [Better Auth](/docs/self-hosting/auth) for multi-user access
diff --git a/docs/self-hosting/start.zh-CN.mdx b/docs/self-hosting/start.zh-CN.mdx
index bd37a625ee..41370cbe37 100644
--- a/docs/self-hosting/start.zh-CN.mdx
+++ b/docs/self-hosting/start.zh-CN.mdx
@@ -18,6 +18,138 @@ tags:
# 构建属于自己的 LobeHub
-LobeHub 支持多种部署平台,包括 Vercel、Docker、 Docker Compose 、阿里云计算巢 和腾讯轻量云 等,你可以选择适合自己的部署平台进行部署,构建属于自己的 LobeHub。
+LobeHub 支持私有化部署,让你完全掌控自己的数据、自定义选项和部署环境。无论是为团队、组织还是个人使用,LobeHub 都提供多种部署方式。
+
+## 架构概述
+
+LobeHub 由以下几个关键组件组成:
+
+### 核心服务
+
+- **Next.js 应用** — 混合 SSR/SPA 前端,包含 API 路由
+- **PostgreSQL 数据库** — 存储对话、Agent、文件和用户数据
+- **Redis**(可选)— 会话存储与缓存
+- **S3 兼容存储** — 文件上传和知识库文档
+
+### 可选服务
+
+- **RustFS / MinIO** — 自托管的 S3 兼容存储
+- **Langfuse** — LLM 可观测性与追踪
+- **OpenTelemetry** — 分布式追踪
+- **Searxng** — 注重隐私的网络搜索
+
+## 选择部署方式
+
+### Docker Compose(推荐)
+
+**适用场景:** 私有化部署、完整基础设施控制、团队使用。
+
+**优点:**
+
+- 一条命令启动完整服务栈
+- 通过 `docker compose pull` 轻松更新
+- 内置 PostgreSQL、Redis、RustFS、Searxng
+- 功能完整 — 无超时限制,支持 WebSocket
+
+**缺点:**
+
+- 需要管理服务器
+- 需要自行处理备份与监控
+
+### Vercel
+
+**适用场景:** 快速部署、Serverless 弹性伸缩、低运维成本。
+
+**优点:**
+
+- 一键部署
+- 自动 HTTPS 与 CDN
+- 自动弹性伸缩
+- 提供免费套餐
+
+**缺点:**
+
+- 需要外部 PostgreSQL 数据库
+- Serverless 函数 10 秒超时限制
+- 不支持 WebSocket
+- 对基础设施控制有限
+
+### 云平台(Zeabur、Sealos、Dokploy)
+
+与 Vercel 类似,提供区域化部署选项。适合有特定地理位置要求的场景,各平台在定价和功能上有所不同。
+
+## 功能对比
+
+| 功能 | Docker | Vercel | 云平台 |
+| ------------ | ----------- | ------ | --- |
+| 完整控制 | ✅ | ❌ | ⚠️ |
+| 自定义域名 | ✅ | ✅ | ✅ |
+| 一键部署 | ❌ | ✅ | ✅ |
+| 自动扩缩容 | ❌ | ✅ | ✅ |
+| 免费套餐 | ✅ | ✅ | 不一 |
+| 函数超时 | 无限制 | 10 秒 | 不一 |
+| WebSocket 支持 | ✅ | ❌ | 不一 |
+| 文件存储 | 本地 / RustFS | 外部 S3 | 不一 |
+| 数据库 | 已内置 | 外部 | 不一 |
+
+## 前置条件
+
+部署 LobeHub 前,请准备以下内容:
+
+### 必需
+
+**AI 提供商 API Key** — 至少需要一个 AI 提供商的 API Key:
+
+- **OpenAI** — 在 [platform.openai.com](https://platform.openai.com/account/api-keys) 获取 `OPENAI_API_KEY`
+- **Anthropic** — 在 [console.anthropic.com](https://console.anthropic.com/) 获取 `ANTHROPIC_API_KEY`
+- **Google** — 在 [aistudio.google.com](https://aistudio.google.com/app/apikey) 获取 `GOOGLE_API_KEY`
+
+完整支持的提供商列表请参见 [AI 提供商配置](/docs/self-hosting/environment-variables/model-provider)。
+
+**数据库(服务端部署必需)** — 需要 PostgreSQL 14+:
+
+- **托管选项**:Neon、Supabase、Railway、Vercel Postgres
+- **自托管**:Docker(Docker Compose 已内置)、AWS RDS、Google Cloud SQL
+
+### 可选但推荐
+
+**Redis** — 提升会话存储、限流和缓存性能。可使用 Upstash、Redis Cloud 或自托管 Redis。
+
+**S3 兼容存储** — 文件上传和知识库功能所需:
+
+- **AWS S3** — 生产就绪,可扩展
+- **Cloudflare R2** — 无出口流量费用
+- **RustFS / MinIO** — 自托管 S3 替代方案(Docker Compose 已内置)
+
+**认证提供商** — 支持 SSO 和团队功能(Google OAuth、GitHub OAuth、Microsoft Azure AD、Auth0、Keycloak)。配置详见 [认证设置](/docs/self-hosting/auth)。
+
+## 安全注意事项
+
+
+ 切勿将 API Key 或密钥提交到版本控制系统。请始终使用环境变量管理敏感信息。
+
+
+基本安全措施:
+
+1. **使用 HTTPS** — 始终通过 SSL/TLS 证书部署
+2. **保护数据库** — 使用强密码并限制网络访问
+3. **环境变量** — 安全存储密钥(绝不写入代码)
+4. **认证** — 多用户部署时启用 Better Auth
+5. **定期更新** — 保持 LobeHub 及依赖项的版本最新
+
+认证选项:
+
+- **开放访问** — 不需要认证(仅适合单用户部署)
+- **Better Auth** — 内置认证,支持邮箱密码、OAuth、Magic Links
+- **反向代理** — 使用 Authelia、Authentik 等
+
+## 下一步
+
+1. **选择部署方式** — 追求最大控制力选 Docker,追求简便选 Vercel
+2. **获取 API Key** — 向你选择的 AI 提供商申请 API Key
+3. **配置基础设施** — 按需准备数据库、Redis 和存储
+4. **配置环境变量** — 参见 [环境变量参考](/docs/self-hosting/environment-variables)
+5. **部署** — 按照上方对应平台的指南操作
+6. **配置认证** — 多用户场景下配置 [Better Auth](/docs/self-hosting/auth)
diff --git a/docs/usage/agent/agent-team.mdx b/docs/usage/agent/agent-team.mdx
index e94b21d17a..c327c4dbf1 100644
--- a/docs/usage/agent/agent-team.mdx
+++ b/docs/usage/agent/agent-team.mdx
@@ -1,66 +1,141 @@
---
-title: Agent Teams
+title: Agent Groups
description: >-
- Simple centralized configuration for prompts, model selection, knowledge
- bases, plugins, and more.
+ Bring multiple specialized Agents together to collaborate — sequential,
+ parallel, iterative, or debate mode.
tags:
- LobeHub
- - LobeHub
- - AI Assistant
- - Assistant Organization
- - Group Settings
- - Assistant Search
- - Assistant Pinning
+ - Agent Group
+ - Multi-Agent Collaboration
+ - Group Chat
+ - Moderator
+ - Sequential Mode
+ - Parallel Mode
---
-# Agent Teams
+# Agent Groups
-Sometimes, one assistant's perspective just isn't enough. Complex problems require multifaceted thinking, creative projects thrive on diverse expertise, and learning discussions benefit from multiple viewpoints. Agent Group Chat brings together multiple specialized assistants to collaborate just like in a real group chat — a translation assistant, a coding assistant, and a product manager assistant sitting around the table, each contributing their strengths to solve your problem. You're not just getting an answer — you're engaging in a conversation. Here, different perspectives collide, expertise complements one another, and the insights generated through AI collaboration go far beyond what a single assistant can offer.
+One Agent's perspective is rarely enough. Complex problems need multiple angles; creative projects thrive on diverse expertise; decisions benefit from structured debate. Agent Group Chat assembles a team of specialized Agents that work together like a real group — a research Agent, an analysis Agent, and a writing Agent each contributing their strengths to your task. You're not just getting an answer; you're running a coordinated process.
-Agent Group Chat is a collaborative space for multiple specialized assistants. You pose a question or task, and each assistant offers insights from their area of expertise. They can discuss, supplement, and even debate with one another.
+Pose a question or task, and each Agent responds from its area of expertise. They can build on each other's outputs, challenge assumptions, or work in parallel — depending on the mode you choose.
-## Limitations of a Single Assistant
+## Why Not Just One Agent?
-- Can only analyze problems from one perspective
-- Expertise is limited to its predefined role
-- Lacks the richness of diverse viewpoints
+- A single Agent can only analyze from one perspective
+- Expertise is bounded by a single predefined role
+- There's no back-and-forth to surface blind spots or trade-offs
-## Advantages of Agent Group Chat
+Agent Groups fix all three.
-- Multiple assistants contribute their strengths and collaborate
-- Diverse professional backgrounds lead to comprehensive solutions
-- Discussions among assistants spark deeper insights
-- A built-in moderator ensures orderly and focused conversations
+## Collaboration Modes
+
+Agent Groups adapt to the task:
+
+**Sequential** — Agents work one after another in a defined order. Example: Research Agent gathers information → Analysis Agent processes data → Writing Agent creates the final document. Best for linear workflows with clear handoff points.
+
+**Parallel** — Multiple Agents tackle different aspects simultaneously. Example: Marketing Agent writes copy while Data Agent compiles metrics. Best for independent subtasks.
+
+**Iterative** — Agents review and refine work through multiple rounds. Example: Writer creates draft → Editor provides feedback → Writer revises → Editor does final review. Best for high-quality output that requires polish.
+
+**Debate** — Agents argue different positions. An advocate makes the case, a critic challenges assumptions, an analyst weighs evidence, and a mediator synthesizes conclusions. Best for complex decisions that benefit from structured disagreement.
## About the Moderator
-Every Agent Group Chat includes a built-in moderator responsible for:
+Every Agent Group includes a built-in moderator responsible for:
-- Understanding your needs and assigning discussion tasks
-- Coordinating the speaking order of assistants
+- Understanding your goal and assigning tasks to the right Agents
+- Coordinating the order of contributions
- Summarizing the discussion and extracting key conclusions
- Keeping the conversation organized and on-topic
-## Creating an Agent Group Chat
+## Create an Agent Group
-Click "Create Group" in the left sidebar to get started.
+Click **Create Group** in the left sidebar to get started.
-
+
-When creating a group chat, you can use existing templates or assemble your own team of AI assistants. You can also choose whether to include a moderator and select the model for the moderator.
+When creating a group, you can start from an existing template or assemble your own team. Choose whether to include a moderator and select the model for it.
-
+
-## Configuring an Agent Group Chat
+## Configure an Agent Group
-In the group chat session, use the left sidebar to select an assistant. You can easily switch their model or remove them from the group.
+In the group chat session, select an Agent in the left sidebar to swap its model or remove it from the group.
-
+
-Also in the left sidebar, click the "Add Member" button to bring additional assistants into the group chat.
+Click **Add Member** in the left sidebar to bring additional Agents into the group.
-
+
-Go to "Group Profile" in the left sidebar to edit the group prompt, add plugins, or change the moderator model. You can also use the Agent Builder on the right panel for intelligent group creation. Agent Builder is LobeHub’s built-in assistant — simply chat with it, describe your needs, and it will automatically generate a complete group chat configuration, including group settings, system prompts, and plugin setup.
+Go to **Group Profile** in the left sidebar to edit the group prompt, add Skills, or change the moderator model. You can also use Agent Builder on the right panel — describe your goal and it will generate the complete group configuration, including settings, system prompts, and Skill setup.
-
+
+
+## Example Agent Groups
+
+### Content Creation Team
+
+A sequential workflow for producing blog posts or articles:
+
+1. **Researcher** — Gathers information, credible sources, statistics, and expert quotes
+2. **Writer** — Writes an engaging draft using the research material
+3. **Editor** — Reviews and refines for clarity, flow, and consistency
+4. **SEO Specialist** — Optimizes keywords, headings, and meta description
+
+### Research Analysis Team
+
+1. **Data Collector** — Gathers data from multiple sources and documents
+2. **Statistician** — Analyzes data, calculates metrics, identifies patterns
+3. **Domain Expert** — Interprets findings in the context of industry knowledge
+4. **Report Writer** — Synthesizes insights into an executive summary
+
+### Software Development Team
+
+- **Requirements Agent** — Gathers needs and writes product requirements documents
+- **Technical Architect** — Designs system architecture and technical specifications
+- **Developer** — Writes implementation code and technical documentation
+- **QA Tester** — Reviews code, suggests test cases, identifies edge cases
+
+## Best Practices
+
+**Define clear roles** — Each Agent should have a specific, well-defined responsibility:
+
+- ❌ Vague: "Agent 1: Help with content"
+- ✅ Clear: "Research Agent: Find 3–5 credible sources on the topic and summarize key points. Include statistics and expert quotes."
+
+**Avoid redundancy** — Don't create multiple Agents with overlapping roles. Each Agent should bring unique value.
+
+**Set clear handoff points** — In sequential workflows, define exactly what each Agent passes to the next. Example: "Research Agent outputs a Markdown document with sources, key points, and data. Writer Agent uses this as input to draft."
+
+**Right-size the team** — More Agents does not mean better results. Start with 2–3 Agents and add more only as needed. Too many Agents slow the workflow without adding value.
+
+**Match models to tasks** — Use capable models where reasoning matters; use faster, lighter models for straightforward steps.
+
+## Common Use Cases
+
+**Content production** — Blog posts (research → write → edit → SEO), social media campaigns, documentation, video scripts.
+
+**Business analysis** — Market research, competitive analysis, financial modeling, risk assessment.
+
+**Software development** — Feature development (requirements → design → code → testing), code review, bug fixing, API design.
+
+**Creative projects** — Story development, marketing campaigns, product naming, design critique.
+
+## Troubleshooting
+
+**Group responds too slowly** — Reduce the number of Agents, use lighter models for simple steps, switch to parallel mode when possible, or simplify Agent system roles.
+
+**Inconsistent outputs** — Add clearer role definitions, include shared guidelines in the group context, add a reviewer Agent, or lower the temperature setting.
+
+**Agents not collaborating well** — Explicitly define what each Agent receives and produces, add transition instructions between Agents, or switch to sequential mode.
+
+**Poor quality results** — Upgrade to a better model for critical Agents, add specialist Agents for key areas, include a quality-control Agent, or write more detailed system roles.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/agent-team.zh-CN.mdx b/docs/usage/agent/agent-team.zh-CN.mdx
index 98cd667359..f91478e32b 100644
--- a/docs/usage/agent/agent-team.zh-CN.mdx
+++ b/docs/usage/agent/agent-team.zh-CN.mdx
@@ -1,64 +1,139 @@
---
-title: Agent 团队
-description: 简单的集中配置,例如提示词,选择模型,知识库,插件等。
+title: 群组
+description: 将多个专业助理聚合在一起协作——顺序、并行、迭代或辩论模式,应对任何复杂任务。
tags:
- LobeHub
- - LobeHub
- - AI 助手
- - 助手组织
- - 分组设置
- - 助手搜索
- - 助手固定
+ - 群组
+ - 多助理协作
+ - 群聊
+ - 主持人
+ - 顺序模式
+ - 并行模式
---
-# Agent 团队
+# 群组
-有时候,一个助理的视角是不够的。复杂问题需要多角度思考,创意项目需要不同专业背景的碰撞,学习讨论需要多方辩论。Agent 群聊让多个专业助理聚在一起,像真实群聊一样协作 —— 翻译助理、编程助理、产品经理助理围坐一起,各自发挥专长,共同解决你的问题。你不再是获得一个答案,而是参与一场对话。不同观点在这里碰撞,专业知识在这里互补,AI 助理协同工作时产生的洞察,远超任何单一助理所能提供的。
+一个助理的视角很少足够。复杂问题需要多角度思考,创意项目需要不同专业背景的碰撞,重要决策需要结构化的讨论。群组将多个专业助理聚合在一起,像真实团队一样协作 —— 调研助理、分析助理、写作助理各司其职,共同完成你的任务。你得到的不只是一个答案,而是一个协调有序的过程。
-Agent 群聊是多个专业助理的协作空间。你提出一个问题或任务,不同助理从各自的专业角度给出见解,它们之间可以互相讨论、补充、甚至辩论。
+提出问题或任务,每个助理从各自的专业角度给出见解 —— 它们可以互相补充、质疑假设,或并行推进,具体取决于你选择的模式。
-## 单个助理的局限
+## 为什么不用单个助理?
-- 只能从一个角度分析问题
+- 单个助理只能从一个角度分析问题
- 专业领域受限于预设角色
-- 缺少多元视角的碰撞
+- 缺少来回交锋来发现盲点和权衡取舍
-## Agent 群聊的优势
+群组解决这三个问题。
-- 多个助理各取所长,协同工作
-- 不同专业背景带来全面的解决方案
-- 助理之间的讨论激发更深入的洞察
-- 内置主持人确保讨论有序进行
+## 协作模式
+
+群组根据任务灵活适配:
+
+**顺序模式** — 助理按预定顺序依次工作。示例:调研助理收集信息 → 分析助理处理数据 → 写作助理生成最终文档。适合有明确交接节点的线性工作流。
+
+**并行模式** — 多个助理同时处理不同方面。示例:营销助理撰写文案的同时,数据助理汇总指标。适合可并发执行的独立子任务。
+
+**迭代模式** — 助理通过多轮循环审查和打磨工作。示例:写作者生成草稿 → 编辑者提供反馈 → 写作者修改 → 编辑者最终审阅。适合需要反复打磨的高质量输出。
+
+**辩论模式** — 助理呈现不同立场并进行论证。支持者陈述理由,批评者质疑假设,分析师评估证据,调解者综合结论。适合需要深入分析的复杂决策。
## 关于主持人
-每个 Agent 群聊都有一个内置的主持人。它负责:
+每个群组都内置一个主持人,负责:
-- 理解你的需求,分配讨论任务
-- 协调各个助理的发言顺序
+- 理解你的目标,将任务分配给合适的助理
+- 协调各助理的发言顺序
- 总结讨论结果,提炼关键结论
-- 确保对话围绕主题有序展开
+- 确保对话围绕主题有序推进
-## 创建 Agent 群聊
+## 创建群组
-在左侧边栏选择「创建群组」即可进入创建。
+在左侧边栏点击**创建群组**即可开始。
-
+
-创建群聊时,你可以使用现有模版,也可以选择自己的 AI 助理组建群聊。同时,你可以选择是否使用主持人,并为主持人选择模型。
+创建时,你可以选择现有模版,也可以自己组建团队。同时决定是否使用主持人,并为主持人选择模型。
-
+
-## 配置 Agent 群聊
+## 配置群组
-在群聊会话左侧边栏,选中助理,可以便捷更换助理的模型和移除助理。
+在群聊会话的左侧边栏,选中助理可以便捷更换其模型或将其移出群组。
-
+
-同样在左侧边栏,点击添加成员按钮可以添加需要的助理到群聊中。
+点击左侧边栏的**添加成员**,可以将更多助理加入群组。
-
+
-在左侧边栏进入「群聊档案」,你可以编写群聊提示词,为群聊添加插件,更换主持人模型。你也可以使用右侧面板的 Agent Builder 进行智能创建。Agent Builder 是 LobeHub 的内置助理,只需与 Agent Builder 对话,描述你的需求,它就能理解并自动生成完整的群聊配置 —— 包括群聊设定、系统提示词、插件配置。
+在左侧边栏进入**群聊档案**,可以编写群聊提示词、添加技能、更换主持人模型。你也可以使用右侧面板的 Agent Builder—— 描述你的目标,它会自动生成完整的群聊配置,包括设定、系统提示词和技能配置。
-
+
+
+## 群组示例
+
+### 内容创作团队
+
+适合博客文章或文档生产的顺序工作流:
+
+1. **调研员** — 收集信息、可信来源、统计数据和专家观点
+2. **写作者** — 基于调研素材撰写有吸引力的草稿
+3. **编辑** — 审查并完善内容的清晰度、逻辑和一致性
+4. **SEO 专家** — 优化关键词、标题和 meta 描述
+
+### 研究分析团队
+
+1. **数据收集员** — 从多个来源和文档中获取数据
+2. **统计分析师** — 分析数据、计算指标、识别规律
+3. **领域专家** — 在行业知识背景下解读发现
+4. **报告撰写者** — 将洞见综合为执行摘要
+
+### 软件开发团队
+
+- **需求助理** — 收集需求,撰写产品需求文档
+- **技术架构师** — 设计系统架构和技术规范
+- **开发者** — 编写实现代码和技术文档
+- **QA 测试员** — 审查代码,建议测试用例,识别边界情况
+
+## 最佳实践
+
+**明确角色定义** — 每个助理应有具体、清晰的职责:
+
+- ❌ 模糊:"助理 1:帮助处理内容"
+- ✅ 清晰:"调研助理:在指定主题上找到 3–5 个可信来源并总结要点,包含统计数据和专家引用。"
+
+**避免角色重叠** — 不要创建职责重叠的多个助理。每个助理都应带来独特价值。
+
+**明确交接节点** — 在顺序工作流中,明确定义每个助理向下一个传递的内容。示例:"调研助理输出包含来源、要点和数据的 Markdown 文档;写作助理将此作为起草草稿的输入。"
+
+**控制团队规模** — 更多助理不等于更好的结果。从 2–3 个助理开始,按需添加。过多助理会拖慢工作流。
+
+**按任务选择模型** — 推理关键的步骤用更强的模型;简单步骤用更快、更轻量的模型。
+
+## 常见使用场景
+
+**内容生产** — 博客文章(调研 → 写作 → 编辑 → SEO)、社交媒体营销、文档编写、视频脚本。
+
+**商业分析** — 市场调研、竞品分析、财务建模、风险评估。
+
+**软件开发** — 功能开发(需求 → 设计 → 编码 → 测试)、代码审查、Bug 修复、API 设计。
+
+**创意项目** — 故事创作、营销活动策划、产品命名、设计评审。
+
+## 故障排查
+
+**群组响应太慢** — 减少助理数量,对简单步骤使用更快的模型,尽量切换到并行模式,或简化系统提示词。
+
+**输出结果不一致** — 添加更清晰的角色定义,在群组上下文中加入共享规范,添加审查助理,或调低温度参数。
+
+**助理之间协作不畅** — 明确定义每个助理的输入和输出,在助理之间添加交接说明,或改用顺序模式。
+
+**输出质量不佳** — 为关键助理升级到更强的模型,为核心领域添加专业助理,引入质量控制助理,或提供更详细的系统角色说明。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/artifacts.mdx b/docs/usage/agent/artifacts.mdx
new file mode 100644
index 0000000000..c9e638ab3c
--- /dev/null
+++ b/docs/usage/agent/artifacts.mdx
@@ -0,0 +1,181 @@
+---
+title: Artifacts
+description: >-
+ Create and interact with dynamic, self-contained AI-generated content — React
+ apps, SVG graphics, HTML pages, Mermaid diagrams, and more — rendered live in
+ a dedicated preview panel.
+tags:
+ - LobeHub
+ - Artifacts
+ - Code Generation
+ - React
+ - SVG
+ - Visualization
+---
+
+# Artifacts
+
+LobeHub supports Claude-style Artifacts: when the AI generates substantial, self-contained content, it automatically opens in a dedicated preview panel on the right side of the screen. Instead of copying code from a chat bubble, you can interact with, iterate on, and export the result directly.
+
+## What Are Artifacts?
+
+Artifacts are AI-generated pieces of content that deserve their own dedicated space. They appear in a split-view panel where you can:
+
+- View live previews of generated content
+- Interact with applications and visualizations in real time
+- Iterate on the output conversationally
+- Export or copy the final result
+
+**What qualifies as an artifact:**
+
+- Substantial content (more than a few lines)
+- Self-contained and functional output
+- Something you'd want to iterate on or reuse
+- Content that benefits from a live preview
+
+**What doesn't need artifacts:**
+
+- Short code snippets or quick examples
+- Simple text answers
+- Explanatory content
+
+## Supported Artifact Types
+
+### SVG Graphics
+
+Create scalable, resolution-independent graphics and diagrams: charts, flowcharts, icons, infographics, and data visualizations.
+
+Example prompts:
+
+- "Create an SVG diagram showing the software development lifecycle"
+- "Generate a pie chart showing market share distribution"
+
+Export options: download as SVG, download as PNG, copy as image.
+
+### React Components
+
+Build live, interactive React applications that run directly in the browser: calculators, dashboards, mini web apps, and UI prototypes.
+
+Example prompts:
+
+- "Create a mortgage calculator with React"
+- "Build an interactive to-do list app"
+- "Make a typing speed test game"
+
+Features: full React hooks support, real-time state management, responsive layouts.
+
+### HTML Pages
+
+Generate complete, styled HTML pages: landing pages, email templates, simple web pages, and formatted reports.
+
+Example prompts:
+
+- "Create a product landing page for a fitness app"
+- "Design an HTML email newsletter template"
+
+### Mermaid Diagrams
+
+Create professional diagrams: flowcharts, sequence diagrams, class diagrams, state diagrams, Gantt charts, ER diagrams, and Git graphs.
+
+Example prompts:
+
+- "Create a sequence diagram for user authentication"
+- "Draw a flowchart for the order processing workflow"
+
+### Code Files
+
+Generate standalone code in Python, JavaScript/TypeScript, shell scripts, configuration files (JSON, YAML), and more.
+
+Example prompts:
+
+- "Write a Python script to analyze CSV data"
+- "Generate a GitHub Actions workflow file"
+
+Features: syntax highlighting, one-click copy, side-by-side code and preview view.
+
+## Using Artifacts
+
+### Triggering Artifact Creation
+
+Just ask the AI to create substantial, standalone content:
+
+```
+"Create a React calculator app"
+"Generate an SVG chart showing quarterly sales"
+"Build an interactive timeline of key events"
+"Design a landing page for a coffee shop"
+```
+
+Artifacts are generated automatically when the AI determines the output is substantial and self-contained.
+
+### Viewing and Interacting
+
+When an artifact is created, the preview panel opens automatically on the right:
+
+1. **Preview mode** — Shows the rendered output. Interactive apps run live, SVG graphics display at full quality, HTML pages render completely.
+2. **Code mode** — Shows the syntax-highlighted source code. Use this to copy code to your project or understand the implementation.
+
+Switch between modes using the toggle at the top of the panel.
+
+### Iterating Conversationally
+
+Continue the chat to refine any artifact:
+
+```
+"Add a dark mode toggle"
+"Make the chart responsive for mobile"
+"Change the color scheme to blue and green"
+"Add error handling to the form"
+```
+
+Each update applies in real time — you see the change immediately in the preview panel.
+
+### Exporting
+
+Depending on the artifact type:
+
+- **Copy code** — Copy the complete source to clipboard
+- **Download SVG** — Save as `.svg`
+- **Download PNG** — Export as an image
+- **Copy as image** — Copy rendered output to clipboard
+- **Save HTML** — Download a complete web page
+
+## Use Cases
+
+**Rapid prototyping** — Build and test ideas without writing code: UI mockups, calculators, converters, form validation demos. Iterate in real time, then export to your project.
+
+**Data visualization** — Turn raw data into charts and dashboards. Share the data or describe it, ask for a chart, customize, then export for presentations or reports.
+
+**Learning and education** — Create interactive algorithm visualizations, step-by-step demonstrations, and practice exercises. Great for teachers building learning materials.
+
+**Design and creative** — Generate logo concepts, icon sets, diagrams, and decorative elements. Download as SVG for editing in your design tool.
+
+## Tips
+
+**Be specific in requests** — Detail prompts produce better artifacts. Specify colors, layout, functionality, and features upfront rather than asking for generic output.
+
+**Iterate incrementally** — Make one change at a time to keep the artifact stable. Large simultaneous changes can introduce bugs.
+
+**Test interactivity** — For interactive artifacts (React apps, forms), test all features before exporting. Ask for fixes on specific edge cases.
+
+**Use both modes** — Switch between Preview and Code mode to understand both the visual result and the implementation details.
+
+**Save what you like** — Copy or download artifacts you want to keep. They stay in your conversation history but are easier to access when saved separately.
+
+
+ Artifacts run in a sandboxed environment for security. Features that require external API calls or
+ sensitive browser permissions may not work inside the preview panel.
+
+
+
+ Not all models support artifacts. Claude models are the primary source of artifact generation.
+ Complex artifacts may take a moment to fully render as the AI generates the content.
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/artifacts.zh-CN.mdx b/docs/usage/agent/artifacts.zh-CN.mdx
new file mode 100644
index 0000000000..462be088a7
--- /dev/null
+++ b/docs/usage/agent/artifacts.zh-CN.mdx
@@ -0,0 +1,177 @@
+---
+title: Artifacts
+description: 创建并与动态的 AI 生成内容互动——React 应用、SVG 图形、HTML 页面、Mermaid 图表等——在专属预览面板中实时渲染。
+tags:
+ - LobeHub
+ - Artifacts
+ - 代码生成
+ - React
+ - SVG
+ - 可视化
+---
+
+# Artifacts
+
+LobeHub 支持 Claude 风格的 Artifacts:当 AI 生成内容较为完整且自包含时,会自动在屏幕右侧打开专属预览面板。你无需从聊天气泡中复制代码,可以直接在面板中交互、迭代并导出结果。
+
+## 什么是 Artifacts?
+
+Artifacts 是 AI 生成的、值得拥有独立展示空间的内容。它们在分屏面板中显示,你可以:
+
+- 查看生成内容的实时预览
+- 与应用程序和可视化内容实时交互
+- 通过对话方式迭代优化输出
+- 导出或复制最终结果
+
+**符合 Artifacts 条件的内容:**
+
+- 内容量较多(超过几行代码或文本)
+- 自包含且功能完整
+- 你希望反复迭代或复用的内容
+- 适合实时预览的内容
+
+**不需要 Artifacts 的内容:**
+
+- 简短的代码片段或示例
+- 简单的文字回答
+- 解释性文本
+
+## 支持的 Artifacts 类型
+
+### SVG 图形
+
+创建可缩放的矢量图形和图表:数据图表、流程图、图标、信息图以及数据可视化内容。
+
+示例提示:
+
+- "创建一个展示软件开发生命周期的 SVG 图表"
+- "生成一个显示市场份额分布的饼图"
+
+导出选项:下载 SVG、下载 PNG、复制为图片。
+
+### React 组件
+
+构建可在浏览器中直接运行的交互式 React 应用:计算器、数据仪表盘、小型 Web 应用、UI 原型。
+
+示例提示:
+
+- "用 React 创建一个房贷计算器"
+- "构建一个交互式待办事项应用"
+- "做一个打字速度测试游戏"
+
+功能:完整的 React Hooks 支持、实时状态管理、响应式布局。
+
+### HTML 页面
+
+生成完整的、带样式的 HTML 页面:落地页、邮件模板、简单网页、格式化报告。
+
+示例提示:
+
+- "为健身应用创建一个产品落地页"
+- "设计一个 HTML 邮件通讯模板"
+
+### Mermaid 图表
+
+创建专业图表:流程图、时序图、类图、状态图、甘特图、ER 图、Git 图。
+
+示例提示:
+
+- "创建用户认证流程的时序图"
+- "绘制订单处理工作流的流程图"
+
+### 代码文件
+
+生成独立的代码文件:Python、JavaScript/TypeScript、Shell 脚本、配置文件(JSON、YAML)等。
+
+示例提示:
+
+- "编写一个分析 CSV 数据的 Python 脚本"
+- "生成一个 GitHub Actions 工作流配置文件"
+
+功能:语法高亮、一键复制、代码与预览并排显示。
+
+## 使用 Artifacts
+
+### 触发 Artifacts 创建
+
+只需要求 AI 创建较完整的独立内容:
+
+```
+"创建一个 React 计算器应用"
+"生成一个展示季度销售额的 SVG 图表"
+"构建一个关键事件的交互式时间轴"
+"为一家咖啡馆设计一个落地页"
+```
+
+当 AI 判断输出内容较为完整且自包含时,会自动生成 Artifacts。
+
+### 查看与交互
+
+Artifacts 创建后,预览面板自动在右侧弹出:
+
+1. **预览模式** — 显示渲染后的输出。交互式应用实时运行,SVG 图形以完整质量显示,HTML 页面完整渲染。
+2. **代码模式** — 显示带语法高亮的源代码。适合复制代码到项目中或了解实现细节。
+
+使用面板顶部的切换按钮在两种模式之间切换。
+
+### 对话式迭代
+
+继续聊天即可完善任何 Artifacts:
+
+```
+"添加一个深色模式切换"
+"使图表在移动端自适应"
+"将配色方案改为蓝绿色"
+"为表单添加错误处理"
+```
+
+每次更新都会实时应用 —— 你可以在预览面板中立即看到变化。
+
+### 导出
+
+根据 Artifacts 类型,可以:
+
+- **复制代码** — 将完整源代码复制到剪贴板
+- **下载 SVG** — 保存为 `.svg` 文件
+- **下载 PNG** — 导出为图片
+- **复制为图片** — 将渲染输出复制到剪贴板
+- **保存 HTML** — 下载完整网页
+
+## 使用场景
+
+**快速原型验证** — 无需编写代码即可构建和测试想法:UI 模型、计算器、转换工具、表单验证演示。实时迭代,然后导出到项目中。
+
+**数据可视化** — 将原始数据转化为图表和仪表盘。分享数据或描述数据,请求图表,自定义后导出用于演示或报告。
+
+**学习与教育** — 创建交互式算法可视化、分步演示和练习题。非常适合教师制作教学材料。
+
+**设计创意** — 生成 Logo 概念、图标集、图表和装饰元素。下载 SVG 在设计工具中进一步编辑。
+
+## 使用技巧
+
+**具体描述需求** — 详细的提示词会产出更好的 Artifacts。提前指定颜色、布局、功能和特性,而不是要求笼统的输出。
+
+**分步迭代** — 每次只做一个改动,保持 Artifacts 的稳定性。同时做大量改动可能引入 Bug。
+
+**测试交互性** — 对于交互式 Artifacts(React 应用、表单),在导出前测试所有功能,并针对特定边界情况请求修复。
+
+**善用两种模式** — 在预览模式和代码模式之间切换,同时了解视觉效果和实现细节。
+
+**保存满意的结果** — 复制或下载你想保留的 Artifacts。它们会保存在对话历史中,但单独保存会更便于访问。
+
+
+ Artifacts 在沙盒环境中运行以保障安全。需要外部 API 调用或敏感浏览器权限的功能可能在预览面板中无法正常工作。
+
+
+
+ 并非所有模型都支持 Artifacts。Claude 系列模型是 Artifacts 生成的主要来源。复杂的 Artifacts
+ 可能需要片刻时间完整渲染。
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/chain-of-thought.mdx b/docs/usage/agent/chain-of-thought.mdx
new file mode 100644
index 0000000000..fb023d3192
--- /dev/null
+++ b/docs/usage/agent/chain-of-thought.mdx
@@ -0,0 +1,108 @@
+---
+title: Chain of Thought
+description: >-
+ Visualize AI reasoning step-by-step with transparent thinking processes. Watch
+ how models break down complex problems before giving a final answer.
+tags:
+ - LobeHub
+ - Chain of Thought
+ - AI Reasoning
+ - Transparency
+---
+
+# Chain of Thought
+
+LobeHub's Chain of Thought (CoT) visualization provides transparency into how AI models reason through complex problems, letting you watch the thinking process unfold in real time before the final answer arrives.
+
+## What is Chain of Thought?
+
+Chain of Thought is a reasoning technique where AI models break down complex problems into clear, logical steps before producing a final answer. LobeHub makes this internal reasoning visible so you can:
+
+- **See the thinking process** — Watch how the AI approaches problems
+- **Understand decision-making** — Follow the logical progression from question to answer
+- **Validate reasoning** — Verify that conclusions are based on sound logic
+- **Debug responses** — Identify where reasoning may have gone wrong
+- **Learn problem-solving** — Observe expert-level reasoning patterns
+
+## How It Works
+
+When a model uses Chain of Thought reasoning:
+
+1. **Problem analysis** — The model first analyzes what's being asked
+2. **Step-by-step thinking** — Breaks down the approach into logical steps
+3. **Intermediate reasoning** — Works through each step with visible thought
+4. **Final answer** — Synthesizes insights into a clear response
+
+All of this happens in real time, displayed in an expandable section above the final answer.
+
+## Viewing the Reasoning
+
+### Thinking Indicator
+
+When a model is reasoning, you'll see:
+
+- A **"Thinking…"** animated indicator showing active reasoning
+- A **duration counter** showing how long the model spent reasoning
+- An **expandable section** — click to see the full thought process
+- **Step-by-step breakdown** of each reasoning step
+
+### Display Modes
+
+**Collapsed view** — Shows only the "Thinking..." indicator and duration. Best for quick responses where you trust the reasoning, or when you want to keep the interface clean.
+
+**Expanded view** — Click to reveal complete step-by-step reasoning, intermediate conclusions, logical connections, and the full thought process from start to finish. Best for validating complex reasoning or learning how problems are approached.
+
+## When Chain of Thought Activates
+
+CoT reasoning is most beneficial — and most commonly used by models — for:
+
+**Mathematical problems** — Multi-step calculations where the model sets up equations, performs intermediate calculations, and shows work at each step. Example: "Calculate the compound interest on $10,000 at 5% annual rate for 3 years, compounded quarterly."
+
+**Logical reasoning** — Deductive and inductive problems where the model identifies premises, applies logical rules, draws intermediate conclusions, and builds to a final inference.
+
+**Code debugging** — Systematic error analysis where the model examines code structure, identifies potential issues, tests hypotheses, and proposes solutions.
+
+**Complex problem solving** — Multi-faceted analysis where the model breaks down the problem, considers multiple angles, weighs trade-offs, and synthesizes solutions.
+
+**Strategic planning** — Structured decision-making where the model defines objectives, analyzes constraints, evaluates options, and recommends approaches.
+
+## Use Cases
+
+**Education and learning** — Chain of Thought is invaluable for students. See how to approach complex problems, learn step-by-step methodologies, and understand where mistakes occur. Ask the AI to "show its work" or "explain step-by-step" for the clearest reasoning display.
+
+**Software development** — Use CoT to understand technical decisions: code review logic, architecture choices, debugging complex issues, algorithm optimization. Follow the AI's analysis to discover considerations you may have missed.
+
+**Data analysis** — See how conclusions are drawn from data. Watch statistical reasoning, hypothesis testing, and pattern recognition unfold, then verify the analytical approach before acting on insights.
+
+**Research and writing** — Observe how arguments and narratives are constructed: how points are organized, how logical flow develops, and how supporting evidence is selected.
+
+## Interpreting the Reasoning
+
+When reviewing Chain of Thought output, look for:
+
+**Logical progression** — Do steps build on each other? Are there clear connections between ideas? Does the reasoning flow naturally?
+
+**Completeness** — Are all aspects of the question addressed? Were edge cases considered? Is anything overlooked?
+
+**Validity** — Are assumptions reasonable? Is the logic sound? Do conclusions follow from the premises?
+
+If a reasoning step seems incorrect or incomplete, continue the conversation: "That step seems wrong because..." or "Can you reconsider step 3?" The model can revise its reasoning based on your feedback.
+
+## Tips
+
+- **Ask explicitly for reasoning** — Prompts like "show your reasoning step by step" or "think through this carefully" encourage detailed CoT responses
+- **Review for critical decisions** — Always expand and read the reasoning for important choices or high-stakes problems
+- **Question unexpected reasoning** — If a step seems off, ask for clarification or an alternative approach
+- **Learn from patterns** — Studying how the AI approaches different problem types can improve your own problem-solving
+
+
+ Not all models use Chain of Thought reasoning, and not all responses trigger it even on models
+ that support it. CoT is most common with complex problems that benefit from step-by-step analysis.
+ Supported models include o1, o3, Claude 3.7 Sonnet, Gemini 2.0 Flash Thinking, and others.
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/chain-of-thought.zh-CN.mdx b/docs/usage/agent/chain-of-thought.zh-CN.mdx
new file mode 100644
index 0000000000..1d63aee60c
--- /dev/null
+++ b/docs/usage/agent/chain-of-thought.zh-CN.mdx
@@ -0,0 +1,105 @@
+---
+title: 思维链
+description: 逐步可视化 AI 推理过程,透明呈现思考链路。观察模型在给出最终答案前如何分解复杂问题。
+tags:
+ - LobeHub
+ - 思维链
+ - AI 推理
+ - 透明度
+---
+
+# 思维链
+
+LobeHub 的思维链(Chain of Thought,CoT)可视化功能为你提供了洞察 AI 模型推理过程的窗口,让你在最终答案出现之前,实时观察思考过程的展开。
+
+## 什么是思维链?
+
+思维链是一种推理技术 ——AI 模型在给出最终答案之前,先将复杂问题分解为清晰、有逻辑的步骤。LobeHub 将这一内部推理过程可视化,让你能够:
+
+- **看到思考过程** — 观察 AI 如何分析问题
+- **理解决策路径** — 追踪从问题到答案的逻辑推进
+- **验证推理合理性** — 确认结论是否基于严谨的逻辑
+- **调试异常回复** — 发现推理过程中出现偏差的地方
+- **学习解题方法** — 观察专家级的问题解决模式
+
+## 工作原理
+
+当模型使用思维链推理时:
+
+1. **问题分析** — 模型首先理解所提问题
+2. **分步思考** — 将解题方法分解为逻辑步骤
+3. **中间推理** — 逐步推进,展示可见的思考内容
+4. **最终答案** — 将所有洞见综合为清晰的回复
+
+这一过程实时发生,显示在最终答案上方的可折叠区域中。
+
+## 查看推理过程
+
+### 思考指示器
+
+当模型正在推理时,你会看到:
+
+- 一个动态的 **"思考中…"** 指示器,表示正在推理
+- 一个**时长计数器**,显示模型思考耗时
+- 一个**可展开区域** — 点击即可查看完整思考过程
+- **逐步呈现**的每个推理步骤
+
+### 显示模式
+
+**折叠视图** — 仅显示 "思考中..." 指示器和时长。适合你信任推理结果的快速回复,或希望保持界面简洁时使用。
+
+**展开视图** — 点击即可查看完整的分步推理、中间结论、逻辑连接,以及从头到尾的完整思考过程。适合验证复杂推理或学习问题解决方法时使用。
+
+## 思维链的激活时机
+
+CoT 推理最有价值的场景(也是模型最常使用它的场景):
+
+**数学问题** — 多步骤计算场景,模型会建立方程式、执行中间步骤并逐步展示过程。例如:"计算 10,000 美元以 5% 年利率按季度复利投资 3 年的收益。"
+
+**逻辑推理** — 演绎和归纳推理问题,模型识别前提、应用逻辑规则、得出中间结论并建立最终推断。
+
+**代码调试** — 系统性的错误分析,模型逐一检查代码结构、识别潜在问题、验证假设并提出解决方案。
+
+**复杂问题解决** — 多维度分析场景,模型分解问题、从多个角度考量、权衡利弊并综合解决方案。
+
+**战略规划** — 结构化决策过程,模型定义目标、分析约束、评估选项并给出推荐路径。
+
+## 使用场景
+
+**学习与教育** — 思维链对学习者极具价值。观察如何处理复杂问题,学习分步解题方法,了解错误出现的原因。尝试要求 AI "展示解题过程" 或 "逐步说明",获得最清晰的推理展示。
+
+**软件开发** — 用 CoT 理解技术决策:代码审查逻辑、架构选型、复杂问题调试、算法优化。跟随 AI 的分析,发现你可能遗漏的考量点。
+
+**数据分析** — 观察结论如何从数据中得出:统计推理、假设检验、模式识别过程一览无余,在采取行动前验证分析方法的合理性。
+
+**研究与写作** — 观察论点和叙述结构的形成过程:观点如何组织、逻辑流如何发展、论据如何筛选。
+
+## 解读推理过程
+
+查看思维链输出时,重点关注:
+
+**逻辑推进** — 各步骤是否环环相扣?思想之间是否有清晰的关联?推理是否自然流畅?
+
+**完整性** — 问题的所有方面是否都被涵盖?是否考虑了边界情况?有没有遗漏的内容?
+
+**合理性** — 假设是否合理?逻辑是否严谨?结论是否从前提中自然推导出来?
+
+如果某个推理步骤看起来有误或不完整,可以继续对话:"这一步好像有问题,因为……" 或 "能重新考虑第 3 步吗?" 模型可以根据你的反馈修正推理过程。
+
+## 使用技巧
+
+- **明确要求推理过程** — "请逐步展示你的推理" 或 "仔细思考这个问题" 等提示词能鼓励模型展示详细的 CoT 过程
+- **重要决策务必查看** — 对于关键选择或高风险问题,始终展开并阅读推理过程
+- **质疑异常步骤** — 如果某一步骤不对,请求澄清或提供替代思路
+- **从模式中学习** — 观察 AI 处理不同类型问题的方式,有助于提升你自己的解题能力
+
+
+ 并非所有模型都使用思维链推理,即使支持 CoT 的模型也不是在所有回复中都会触发。CoT 最常见于需要分步分析的复杂问题。支持该功能的模型包括
+ o1、o3、Claude 3.7 Sonnet、Gemini 2.0 Flash Thinking 等。
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/gtd.mdx b/docs/usage/agent/gtd.mdx
index 05e84f9a1b..faca7da85b 100644
--- a/docs/usage/agent/gtd.mdx
+++ b/docs/usage/agent/gtd.mdx
@@ -1,35 +1,81 @@
---
title: GTD Tools
description: >-
- Learn how to use scheduled tasks, including creating, editing, and deleting
- them.
+ Manage tasks through conversation — GTD methodology built in. Capture ideas,
+ track progress, focus on what matters.
tags:
- - Scheduled Tasks
- - Create
- - Edit
- - Delete
+ - LobeHub
+ - GTD
+ - Task Management
+ - Getting Things Done
---
# GTD Tools
-GTD Tools is a built-in plugin in LobeHub that deeply integrates the classic GTD (Getting Things Done) time management methodology into your conversational experience. Once enabled, your assistant transforms into a professional task management expert, helping you offload mental clutter and focus on what truly matters—your creativity and deep thinking. With GTD Tools, you can manage your schedule directly through natural language in conversations. Whether it's a sudden burst of inspiration, household chores, or serious work plans, your assistant can accurately record and track your progress.
+GTD Tools is a built-in Skill that brings the classic GTD (Getting Things Done) methodology into your conversations. Once enabled, your Agent becomes a task management partner — helping you capture ideas, track progress, and focus on what matters. Manage your schedule directly through natural language: sudden inspiration, household chores, or serious work plans — your Agent records and tracks it all.
## Enabling GTD Tools
-GTD Tools is a built-in plugin in LobeHub and must be enabled for your assistant before use.
+GTD Tools is a built-in Skill. Enable it for your Agent before use.
-### Enable via Assistant Profile
+**From Agent Profile** — Go to the Agent Profile page, click **+ Add Skill**, and check **GTD Tools**.
-Go to the assistant profile page, click on "+ Integrate Plugin," and check the "GTD Tools" plugin to activate it.
+**In a conversation** — Click the Skill icon below the chat input and check **GTD Tools**.
-### Enable in Conversation
+## Creating Tasks
-In the conversation window, click the plugin icon below the chat box and check the "GTD Tools" plugin to enable it.
+Send your plans in the conversation — your Agent automatically recognizes and confirms the task. No forms, no extra steps.
-### Creating Tasks
+**Examples:**
-You can simply send your plans in the conversation, and the assistant will automatically recognize and confirm the task.
+- "Add 'Review Q1 report' to my tasks for tomorrow"
+- "I need to call the dentist this week"
+- "Remind me to submit the proposal by Friday"
+- "Put 'Finish the design mockup' on my list for next Monday"
+- "I have a meeting with the client at 3pm — add it to my calendar"
-### Completing Tasks
+## Completing and Updating Tasks
-You can update tasks through conversational commands, and the assistant will handle the updates automatically.
+Update tasks through conversational commands. Your Agent handles the updates automatically.
+
+**Examples:**
+
+- "Mark 'Review Q1 report' as done"
+- "What's on my task list for today?"
+- "Reschedule the dentist call to next Monday"
+- "Show me all my pending tasks"
+- "Remove the proposal task — I already submitted it"
+
+## Use Cases
+
+**Capture on the fly** — An idea strikes during a meeting? Tell your Agent in one sentence. No need to switch apps or open a task manager.
+
+**Weekly planning** — Start a conversation: "Here's what I need to do this week…" Your Agent structures it into a manageable list.
+
+**Context switching** — Moving from one project to another? Ask "What did I leave unfinished on the marketing project?" and pick up where you left off.
+
+**Collaboration prep** — Before a team sync, ask "What are my action items from last week?" and show up prepared.
+
+## GTD Tools vs. Other Features
+
+| Feature | Best For |
+| --------------------------------------------------- | ----------------------------------------------------------------------- |
+| **GTD Tools** | Task lists, deadlines, progress tracking — managed through conversation |
+| [Notebook](/docs/usage/agent/notebook) | Saving notes, reports, research — documents linked to a Topic |
+| [Scheduled Tasks](/docs/usage/agent/scheduled-task) | Automated workflows — Agents run on a schedule without you |
+
+Use GTD for personal task management; use Scheduled Tasks when you want the Agent to execute something automatically at a set time.
+
+## Tips
+
+- **Be specific about timing** — "Tomorrow at 9am" or "by end of week" helps the Agent prioritize and remind you at the right moment.
+- **Review regularly** — Ask "What's due this week?" at the start of each week to stay on top of commitments.
+- **Combine with Notebook** — Save meeting notes to the Notebook, then ask your Agent to extract action items into GTD tasks.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/gtd.zh-CN.mdx b/docs/usage/agent/gtd.zh-CN.mdx
index e04eefe3b2..ed4cbbce2e 100644
--- a/docs/usage/agent/gtd.zh-CN.mdx
+++ b/docs/usage/agent/gtd.zh-CN.mdx
@@ -1,33 +1,79 @@
---
title: GTD 工具
-description: 了解如何使用定时任务,包括创建、编辑、删除等。
+description: 在对话中管理任务——内置 GTD 方法论。捕捉想法、追踪进度、专注重要事项。
tags:
- - 定时任务
- - 创建
- - 编辑
- - 删除
+ - LobeHub
+ - GTD
+ - 任务管理
+ - Getting Things Done
---
# GTD 工具
-GTD Tools 是 LobeHub 内置的插件,将经典的 GTD(Getting Things Done)时间管理方法论深度集成到你的对话体验中。开启该插件后,你的助理将化身为专业的任务管理专家,帮助你将大脑从琐碎的杂事中解放出来,专注于当下的创作与思考。通过 GTD Tools,你可以直接在会话中以自然语言管理日程。无论是突如其来的灵感、待办的家务,还是严肃的工作计划,助理都能为你精准记录并追踪进度。
+GTD Tools 是内置技能,将经典的 GTD(Getting Things Done)时间管理方法论融入你的对话。启用后,助理成为你的任务管理伙伴 —— 帮你捕捉想法、追踪进度、专注重要事项。直接用自然语言管理日程:突如其来的灵感、待办的家务、严肃的工作计划 —— 助理都能精准记录并追踪。
## 启用 GTD Tools
-GTD Tools 是 LobeHub 的内置插件,需要为助理启用后才能使用。
+GTD Tools 是内置技能。使用前需为助理启用。
-### 在助理档案中启用
+**从助理档案** — 进入助理档案页面,点击 **+ 添加技能 **,勾选**GTD Tools**。
-进入助理档案页面,点击「+ 集成插件」,勾选「GTD Tools」插件即可开启。
+**在会话中** — 点击对话框下方的技能图标,勾选**GTD Tools**。
-### 在会话中启用
+## 创建任务
-进入会话页面,点击对话框下方插件图标,勾选「GTD Tools」插件即可。
+在会话中直接发送你的计划 —— 助理会自动识别并确认记录。无需填表,无需额外步骤。
-### 创建任务
+**示例:**
-你可以在会话中直接发送你的计划,助理会自动识别并确认记录。
+- 「把「审阅 Q1 报告」加入我明天的待办」
+- 「这周需要给牙医打个电话」
+- 「提醒我周五前提交方案」
+- 「把「完成设计稿」加到下周一的任务里」
+- 「下午 3 点和客户开会,帮我记一下」
-### 消除任务
+## 完成和更新任务
-你可以在会话中通过对话指令让助理自动更新。
+通过对话指令更新任务。助理会自动处理更新。
+
+**示例:**
+
+- 「把「审阅 Q1 报告」标为已完成」
+- 「今天我的待办有哪些?」
+- 「把牙医电话改到下周一」
+- 「给我看看所有未完成的任务」
+- 「删掉方案那个任务,我已经交了」
+
+## 使用场景
+
+**随时捕捉** — 会议中突然想到一件事?用一句话告诉助理,无需切换应用或打开任务管理器。
+
+**周计划** — 开始一段对话:「这周我需要做这些……」助理会帮你整理成可执行的列表。
+
+**切换上下文** — 从一个项目转到另一个?问「营销项目上我还有什么没做完?」就能接着上次的进度继续。
+
+**协作准备** — 团队同步前,问「上周我有哪些待办事项?」带着准备去开会。
+
+## GTD 工具与其他功能
+
+| 功能 | 最适合 |
+| ------------------------------------------- | ------------------------ |
+| **GTD 工具** | 任务列表、截止日期、进度追踪 —— 通过对话管理 |
+| [笔记本](/zh/docs/usage/agent/notebook) | 保存笔记、报告、研究资料 —— 与话题关联的文档 |
+| [定时任务](/zh/docs/usage/agent/scheduled-task) | 自动化工作流 —— 助理按计划自动执行 |
+
+个人任务管理用 GTD;需要助理在固定时间自动执行时用定时任务。
+
+## 使用技巧
+
+- **明确时间** — 「明天上午 9 点」或「本周内」有助于助理在合适时机提醒你。
+- **定期回顾** — 每周初问「这周有什么要交的?」保持对承诺的掌控。
+- **与笔记本配合** — 把会议纪要保存到笔记本,再让助理从中提取待办事项到 GTD 任务。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/notebook.mdx b/docs/usage/agent/notebook.mdx
index a16958ec42..3ce888425b 100644
--- a/docs/usage/agent/notebook.mdx
+++ b/docs/usage/agent/notebook.mdx
@@ -1,65 +1,97 @@
---
title: Notebook
description: >-
- Learn how to use scheduled tasks, including how to create, edit, and delete
- them.
+ Save and manage documents within your conversations — notes, reports,
+ research. Topic-level storage, always accessible.
tags:
- - Scheduled Tasks
- - Create
- - Edit
- - Delete
+ - LobeHub
+ - Notebook
+ - Document Management
+ - Notes
+ - Topic
---
# Notebook
-LobeHub offers a powerful Notebook feature that allows you to save and manage documents directly within your conversations. No more worrying about losing important information—your assistant can help you take notes, save reports, and organize research materials. Everything stays within the current topic and is always accessible. The Notebook breaks the limitations of fleeting conversations by turning valuable insights into structured, manageable documents. From meeting minutes to study notes, research reports to to-do lists, the Notebook helps you build knowledge in a more systematic and lasting way.
+Notebook lets you save and manage documents directly within your conversations. No more losing important information — your Agent can take notes, save reports, and organize research materials. Everything stays in the current Topic and is always accessible. Notebook turns fleeting conversation insights into structured, manageable documents — from meeting minutes to study notes, research reports to to-do lists.
-The Notebook serves as a topic-level document storage space. When valuable content arises during a conversation, your assistant can save it to the Notebook, creating a structured document library. These documents are linked to the current topic, making it easy to reference and revisit them in future discussions.
+Notebook is topic-level document storage. When valuable content arises in a conversation, your Agent saves it to the Notebook, building a structured document library linked to that Topic. Reference and revisit these documents in future discussions.
-## What You Can Do with the Notebook
+## What You Can Do with Notebook
### Save Notes and Reminders
-Your assistant can quickly jot down ideas, to-dos, and flashes of inspiration. Just say "Take a note for me," and the content will be saved to your Notebook.
+Your Agent quickly records ideas, to-dos, and flashes of inspiration. Say "Take a note for me" and the content is saved to your Notebook.
### Organize Research Materials
-When your assistant helps you search for information or analyze data, you can save the valuable findings. The next time you continue your research, everything will be right where you left it.
+When your Agent helps you search or analyze data, save the valuable findings. Next time you continue your research, everything is right where you left it.
### Generate Reports and Articles
-Your assistant can help you draft structured reports, analytical documents, or long-form articles, and save them directly to the Notebook. You can view, edit, and expand on them anytime.
+Your Agent drafts structured reports, analytical documents, or long-form articles and saves them directly to the Notebook. View, edit, and expand them anytime.
### Manage Document Versions
-You can ask your assistant to update existing documents by adding new content or modifying what's already there. Documents in the Notebook evolve over time, always staying up to date.
+Ask your Agent to update existing documents — add new content or modify what's there. Documents in the Notebook evolve over time, staying up to date.
-### Enable the Notebook Plugin
+## Enabling Notebook
-Notebook is a built-in plugin. You’ll need to enable it for your assistant to use document management features.
+Notebook is a built-in Skill. Enable it for your Agent to use document management features.
-### Enable in Assistant Profile
+**From Agent Profile** — Go to the Agent Profile page, click **+ Add Skill**, and check **Notebook**.
-- Go to the assistant profile page, click "+ Integrate Skills," and check "Notebook" to enable it.
+**In a conversation** — Click the Skill icon below the chat input and check **Notebook**.
-### Enable in a Conversation
+## Using Notebook
-- In a conversation, click the skill icon below the chat box and check "Notebook" to activate it.
-
-### Using the Notebook
-
-You can ask your assistant to read document content:
+Ask your Agent to read document content:
- "Show me the notes we saved earlier"
- "What did that report say?"
+- "Summarize the key points from the research document"
-To delete a document when it's no longer needed, you can either instruct your assistant to remove it or open the Notebook panel and delete it manually.
+To delete a document when it's no longer needed, instruct your Agent to remove it or open the Notebook panel and delete it manually.
-### View and Manage Documents
+## View and Manage Documents
-All saved documents appear in the Notebook panel on the right side of the topic. Click the document icon in the top-right corner to open the panel. You can:
+All saved documents appear in the Notebook panel on the right side of the Topic. Click the document icon in the top-right corner to open the panel. You can:
- Browse the document list to view titles and summaries
- Click a document to view its full content
-- Edit documents directly within the panel
-- Click "Edit in Drafts" to sync the document with the "Drafts" section in the conversation
+- Edit documents directly in the panel
+- Click **Edit in Drafts** to sync the document with the Drafts section in the conversation
+
+## Use Cases
+
+**Meeting follow-up** — During a call, ask your Agent to take notes. After the meeting, the notes are in the Notebook — ready to share, expand, or turn into action items.
+
+**Research projects** — Save key findings, quotes, and summaries as you go. Build a reference library that grows with each conversation.
+
+**Learning and study** — Have your Agent explain a concept, then save the explanation to the Notebook. Review it later or ask for clarifications in a follow-up.
+
+**Project documentation** — Keep decisions, specs, and progress notes in one place. Each Topic can hold the docs for a specific project or phase.
+
+## Notebook vs. Other Features
+
+| Feature | Best For |
+| -------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
+| **Notebook** | Documents tied to a Topic — notes, reports, research within a conversation thread |
+| [Pages](/docs/usage/getting-started/page) | Standalone long-form documents — co-written with Agents, not bound to a single Topic |
+| [Resource Library](/docs/usage/getting-started/resource) | Knowledge base — upload files for Agents to search and reference across all conversations |
+
+Use Notebook when the document belongs to a specific conversation. Use Pages when you're building a document that stands on its own.
+
+## Tips
+
+- **Name documents when saving** — "Save this as 'Q1 Planning Notes'" helps you find it later.
+- **Combine with GTD** — Save meeting notes to the Notebook, then ask your Agent to extract action items into GTD tasks.
+- **Edit in Drafts for long edits** — For substantial changes, use "Edit in Drafts" to work in the full Pages editor, then sync back.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/notebook.zh-CN.mdx b/docs/usage/agent/notebook.zh-CN.mdx
index 6c03ca3677..cc9dc5b03f 100644
--- a/docs/usage/agent/notebook.zh-CN.mdx
+++ b/docs/usage/agent/notebook.zh-CN.mdx
@@ -1,24 +1,25 @@
---
title: 笔记本
-description: 了解如何使用定时任务,包括创建、编辑、删除等。
+description: 在对话中保存和管理文档——笔记、报告、研究资料。话题级存储,随时可查。
tags:
- - 定时任务
- - 创建
- - 编辑
- - 删除
+ - LobeHub
+ - 笔记本
+ - 文档管理
+ - 笔记
+ - 话题
---
# 笔记本
-LobeHub 支持笔记本功能(Notebook),让你在对话中随时保存和管理文档。不再担心重要内容被遗忘,助理可以帮你记录笔记、保存报告、整理研究资料 —— 所有内容都留存在当前话题中,随时查阅。Notebook 突破了对话内容转瞬即逝的限制,将有价值的信息沉淀为可管理的文档。从会议纪要到学习笔记,从研究报告到待办清单,Notebook 让知识积累更系统、更持久。
+笔记本让你在对话中随时保存和管理文档。不再担心重要内容被遗忘 —— 助理可以帮你记录笔记、保存报告、整理研究资料。所有内容都留存在当前话题中,随时查阅。笔记本将有价值的信息沉淀为可管理的文档 —— 从会议纪要到学习笔记,从研究报告到待办清单。
-Notebook 是话题级别的文档存储空间。当对话中产生了值得保留的内容,助理可以将其保存到 Notebook 中,形成结构化的文档库。这些文档与当前话题关联,方便你在后续对话中查阅和引用。
+笔记本是话题级别的文档存储空间。当对话中产生了值得保留的内容,助理会将其保存到笔记本中,形成结构化的文档库。这些文档与当前话题关联,方便你在后续对话中查阅和引用。
-## Notebook 能做什么
+## 笔记本能做什么
### 保存笔记和备忘
-助理可以帮你快速记录想法、待办事项、灵感片段。你只需说 "帮我记一下",内容就会保存到 Notebook 中。
+助理可以帮你快速记录想法、待办事项、灵感片段。只需说「帮我记一下」,内容就会保存到笔记本中。
### 整理研究资料
@@ -26,31 +27,69 @@ Notebook 是话题级别的文档存储空间。当对话中产生了值得保
### 生成报告和文章
-助理可以帮你撰写结构化的报告、分析文档、长篇文章,并直接保存到 Notebook。你能随时查看、编辑、补充内容。
+助理可以帮你撰写结构化的报告、分析文档、长篇文章,并直接保存到笔记本。你能随时查看、编辑、补充内容。
### 管理文档版本
-你可以让助理更新已有文档,追加新内容或修改现有内容。文档在 Notebook 中持续演进,保持最新状态。
+你可以让助理更新已有文档,追加新内容或修改现有内容。文档在笔记本中持续演进,保持最新状态。
-### 启用 Notebook 插件
+## 启用笔记本
-Notebook 是内置插件,需要为助理启用后才能使用文档管理功能。
+笔记本是内置技能。使用文档管理功能前需为助理启用。
-### 在助理档案中启用
+**从助理档案** — 进入助理档案页面,点击 **+ 添加技能 **,勾选**笔记本**。
-- 进入助理档案页面,点击「+ 集成技能」,勾选「Notebook」即可开启。
+**在会话中** — 点击对话框下方的技能图标,勾选**笔记本**。
-### 在会话中启用
-
-- 进入会话页面,点击对话框下方技能图标,勾选「Notebook」即可。
-
-### 使用 Notebook
+## 使用笔记本
你可以让助理读取文档内容:
-- "看一下之前保存的笔记"
-- "那份报告写了什么" 删除文档当文档不再需要时,可以给助理发送指令删除或展开 Notebook 面板手动删除。查看和管理文档所有保存的文档都会显示在话题右侧 Notebook 面板中。右上角点击文稿图标即可呼出面板。你可以:
+- 「看一下之前保存的笔记」
+- 「那份报告写了什么」
+- 「把研究文档的要点总结一下」
+
+当文档不再需要时,可以给助理发送指令删除,或展开笔记本面板手动删除。
+
+## 查看和管理文档
+
+所有保存的文档都会显示在话题右侧的笔记本面板中。点击右上角文稿图标即可呼出面板。你可以:
+
- 浏览文档列表,查看标题和摘要
- 点击文档查看完整内容
- 直接在面板中编辑文档
-- 点击「在文稿中编辑」,将会话内文稿同步到「文稿」板块
+- 点击**在文稿中编辑**,将会话内文稿同步到「文稿」板块
+
+## 使用场景
+
+**会议跟进** — 开会时让助理记笔记。会议结束后,笔记已在笔记本中 —— 可直接分享、补充或提炼为待办事项。
+
+**研究项目** — 边研究边保存关键发现、引用和摘要。随着每次对话,逐步积累成参考资料库。
+
+**学习与复习** — 让助理解释一个概念,然后把解释保存到笔记本。之后复习或追问细节时,随时可查。
+
+**项目文档** — 把决策、规格、进度记录集中在一处。每个话题可以承载一个具体项目或阶段的文档。
+
+## 笔记本与其他功能
+
+| 功能 | 最适合 |
+| ---------------------------------------------- | ---------------------------- |
+| **笔记本** | 与话题绑定的文档 —— 某次对话中的笔记、报告、研究资料 |
+| [文稿](/zh/docs/usage/getting-started/page) | 独立的长文档 —— 与助理协作撰写,不绑定单一话题 |
+| [资源库](/zh/docs/usage/getting-started/resource) | 知识库 —— 上传文件供助理在所有对话中搜索和引用 |
+
+文档属于某次具体对话时用笔记本;在写独立成篇的文档时用文稿。
+
+## 使用技巧
+
+- **保存时命名** — 「把这个保存为「Q1 规划笔记」」方便之后查找。
+- **与 GTD 配合** — 把会议纪要保存到笔记本,再让助理从中提取待办事项到 GTD 任务。
+- **长文档用文稿编辑** — 需要大改时,用「在文稿中编辑」在完整编辑器中修改,再同步回来。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/sandbox.mdx b/docs/usage/agent/sandbox.mdx
index 36d0b20fb9..030d40f761 100644
--- a/docs/usage/agent/sandbox.mdx
+++ b/docs/usage/agent/sandbox.mdx
@@ -1,79 +1,107 @@
---
title: Cloud Sandbox
description: >-
- Learn how to use scheduled tasks, including creating, editing, and deleting
- them.
+ Agents execute code and process files in a secure cloud environment — run
+ Python/JS, generate docs, create charts. Real execution, not just snippets.
tags:
- - Scheduled Tasks
- - Create
- - Edit
- - Delete
+ - LobeHub
+ - Cloud Sandbox
+ - Code Execution
+ - File Generation
+ - Data Processing
---
# Cloud Sandbox
-LobeHub supports the Cloud Sandbox feature, enabling AI assistants to execute code and process files in a securely isolated cloud environment. Instead of merely providing code snippets, the assistant can directly run code, generate documents, and create charts — delivering downloadable results that you can iterate on in real time. Cloud Sandbox breaks the boundaries of traditional conversations, extending AI output from suggestions to actual execution. From data analysis to document generation, from code debugging to file conversion, Cloud Sandbox transforms AI into a true execution assistant.
+Cloud Sandbox lets Agents run code and process files in a secure, isolated cloud environment. Instead of only suggesting code, your Agent executes it — and returns real output, downloadable documents, and charts you can iterate on in real time. From data analysis to report generation, code debugging to file conversion, Cloud Sandbox turns your Agent into a true execution partner.
-## Understanding Cloud Sandbox
+## What Is Cloud Sandbox?
-Cloud Sandbox is a securely isolated cloud-based execution environment. When you need more than just code snippets and want actual execution results, the assistant will run the code in the Cloud Sandbox and return the output.
+A securely isolated cloud execution environment. When you need actual results — not just code snippets — the Agent runs the code in the sandbox and returns the output. Your local machine stays untouched; all execution happens in the cloud.
-## What Can Cloud Sandbox Do?
+## What Cloud Sandbox Can Do
### Execute Code
-The assistant can run Python, JavaScript, and TypeScript code within the sandbox and return the results. You’ll see real execution output, not just code text.
+The Agent runs Python, JavaScript, and TypeScript in the sandbox and returns real execution output — not just code text. Common libraries (e.g., pandas, matplotlib for Python; lodash for JavaScript) are available. The Agent can install additional packages as needed.
### Generate Files
-The assistant can create various types of files — PDF documents, Excel spreadsheets, Word documents, images, charts, and more — and provide download links. You can download and use them directly.
+The Agent creates PDFs, Excel spreadsheets, Word documents, images, charts, and more — with download links. Download and use them directly in your workflow.
### Process Data
-The assistant can read, analyze, and transform data files. Upload CSV, JSON, or other data formats, and the assistant can help clean, summarize, and visualize the data.
+The Agent reads, analyzes, and transforms data files. Upload CSV, JSON, or other formats — the Agent can clean, summarize, visualize, and export the results.
### Run Commands
-The assistant can execute shell commands to install dependencies, manipulate files, and perform complex operations.
+The Agent executes shell commands to install dependencies, manipulate files, and perform complex operations. Useful for multi-step workflows that combine scripts and system tools.
-### Enabling Cloud Sandbox
+## Enabling Cloud Sandbox
-Cloud Sandbox is a built-in plugin that must be enabled for the assistant to use its features. You can enable the Cloud Sandbox plugin from the "Assistant Profile" page under the plugin section, or directly within a conversation by checking the plugin option in the chat interface.
+Cloud Sandbox is a built-in Skill. Enable it for your Agent before use.
-### Using Cloud Sandbox
+**From Agent Profile** — Go to the Agent Profile page, click **+ Add Skill**, and check **Cloud Sandbox**.
-#### Ask the Assistant to Execute Code
+**In a conversation** — Click the Skill icon below the chat input and check **Cloud Sandbox**.
-Simply describe the task you want to accomplish, and the assistant will write and run the code in the Cloud Sandbox:
+## Using Cloud Sandbox
-- “Write a Python script to calculate the average and standard deviation of this dataset.”
-- “Implement a quicksort algorithm in JavaScript and run a test.”
-- “Run this code for me and show the output.”
+### Ask the Agent to Execute Code
-#### Ask the Assistant to Generate Documents
+Describe the task; the Agent writes and runs the code:
-Describe the content you need, and the assistant will generate the document and provide a download link:
+- "Write a Python script to calculate the average and standard deviation of this dataset."
+- "Implement a quicksort algorithm in JavaScript and run a test."
+- "Run this code and show me the output."
+- "Use pandas to analyze this CSV and show the top 5 rows by revenue."
-- “Generate a PDF report with the analysis of this data.”
-- “Convert this content into a Word document.”
-- “Create an Excel spreadsheet to organize this information.”
+### Ask the Agent to Generate Documents
-#### Ask the Assistant to Process Data
+Describe the content; the Agent generates the document and provides a download link:
-Provide data or files, and the assistant will process and return the results:
+- "Generate a PDF report with the analysis of this data."
+- "Convert this content into a Word document."
+- "Create an Excel spreadsheet to organize this information."
+- "Make a bar chart from this sales data and export it as PNG."
-- “Analyze this sales data and create a trend chart.”
-- “Convert this JSON file to CSV format.”
-- “Clean this dataset by removing duplicates.”
+### Ask the Agent to Process Data
-### Understanding the Cloud Sandbox Environment
+Provide data or files; the Agent processes and returns results:
-The Cloud Sandbox runs in a securely isolated cloud server, completely separate from your local machine. All operations performed by the assistant in the sandbox will not affect your local file system.
+- "Analyze this sales data and create a trend chart."
+- "Convert this JSON file to CSV format."
+- "Clean this dataset by removing duplicates."
+- "Merge these two CSV files on the 'id' column."
-### Session-Based File Storage
+## Use Cases
-Files in the Cloud Sandbox are temporary and tied to the current conversation session. If the session ends or remains inactive for a long time, the sandbox files may be cleared. If you need to keep the files, be sure to download them using the export links provided by the assistant.
+**Data analysis** — Upload a dataset, ask for summary statistics, visualizations, or trend analysis. Get charts and tables you can share in reports or presentations.
-### Automatic Export of Results
+**Report automation** — Generate weekly reports, invoices, or summaries from structured data. The Agent produces PDFs or Excel files ready to send.
-When the assistant generates files in the Cloud Sandbox, they are automatically exported with download links. No extra steps are needed — you’ll receive documents, charts, data files, and other outputs directly from the code execution.
+**Code prototyping** — Test algorithms, validate logic, or debug snippets without leaving the conversation. See real output instead of guessing.
+
+**File conversion** — Convert between formats (JSON ↔ CSV, Markdown → PDF) or batch-process files. No need to write one-off scripts yourself.
+
+## Understanding the Environment
+
+**Isolated execution** — The sandbox runs on a secure cloud server, completely separate from your local machine. Nothing the Agent does in the sandbox affects your local file system.
+
+**Session-based storage** — Files in the sandbox are temporary and tied to the current conversation. If the session ends or stays inactive for a long time, sandbox files may be cleared. Download files you need using the links the Agent provides.
+
+**Automatic export** — When the Agent generates files, they're automatically exported with download links. No extra steps — you get documents, charts, and data files directly from the execution.
+
+## Tips
+
+- **Be specific about format** — "Export as CSV" or "Save as PDF" helps the Agent choose the right output format.
+- **Iterate in the same conversation** — "Make the chart blue" or "Add a title to the report" — the Agent has context and can refine the output.
+- **Download important files promptly** — Session-based storage means files may not persist indefinitely. Grab what you need while the conversation is active.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/sandbox.zh-CN.mdx b/docs/usage/agent/sandbox.zh-CN.mdx
index 878bd4806f..1828106734 100644
--- a/docs/usage/agent/sandbox.zh-CN.mdx
+++ b/docs/usage/agent/sandbox.zh-CN.mdx
@@ -1,52 +1,58 @@
---
title: 云沙箱
-description: 了解如何使用定时任务,包括创建、编辑、删除等。
+description: 助理在安全云端环境中执行代码、处理文件——运行 Python/JS、生成文档、创建图表。真实执行,不只是代码片段。
tags:
- - 定时任务
- - 创建
- - 编辑
- - 删除
+ - LobeHub
+ - 云沙箱
+ - 代码执行
+ - 文件生成
+ - 数据处理
---
# 云沙箱
-LobeHub 支持 Cloud Sandbox ,让 AI 助理能在安全隔离的云端环境中执行代码、处理文件。不只是给出代码片段,助理可以直接运行代码、生成文档、创建图表 —— 你能立即获得可下载的成果,实时迭代调整。云沙箱突破了传统对话的限制,将 AI 的输出从建议扩展到执行。从数据分析到文档生成,从代码调试到文件转换,云沙箱让 AI 真正成为你的执行助手。
+云沙箱让助理在安全隔离的云端环境中运行代码、处理文件。不只是给出代码建议,助理会直接执行 —— 返回真实输出、可下载的文档和图表,供你实时迭代。从数据分析到报告生成,从代码调试到文件转换,云沙箱让助理成为真正的执行伙伴。
-## 理解 Cloud Sandbox
+## 什么是云沙箱?
-Cloud Sandbox 是一个安全隔离的云端执行环境。当你需要的不只是代码片段,而是实际运行结果时,助理会在 Cloud Sandbox 中执行代码并返回输出。
+一个安全隔离的云端执行环境。当你需要实际运行结果 —— 而不只是代码片段 —— 助理会在云沙箱中执行代码并返回输出。你的本地电脑不受影响,所有执行都在云端完成。
-## Cloud Sandbox 能做什么
+## 云沙箱能做什么
### 执行代码
-助理可以运行 Python、JavaScript、TypeScript 代码,在沙盒中执行并返回结果。你能看到真实的运行输出,而不只是代码文本。
+助理在沙盒中运行 Python、JavaScript、TypeScript,返回真实的运行输出 —— 而不只是代码文本。常用库(如 Python 的 pandas、matplotlib,JavaScript 的 lodash)已预置。助理可按需安装其他依赖包。
### 生成文件
-助理可以创建各种文件 ——PDF 文档、Excel 表格、Word 文档、图片、图表等,并提供下载链接。你能直接下载使用。
+助理可以创建 PDF、Excel、Word、图片、图表等各类文件,并提供下载链接。直接下载,即可用于你的工作流。
### 数据处理
-助理可以读取、分析、转换数据文件。上传 CSV、JSON 等数据,助理能帮你清洗、统计、可视化。
+助理可以读取、分析、转换数据文件。上传 CSV、JSON 等格式,助理能帮你清洗、统计、可视化并导出结果。
### 运行命令
-助理可以执行 Shell 命令,安装依赖包、处理文件、执行复杂操作。
+助理可以执行 Shell 命令,安装依赖、处理文件、执行复杂操作。适合需要结合脚本和系统工具的多步骤工作流。
-### 启用 Cloud Sandbox
+## 启用云沙箱
-Cloud Sandbox 是内置插件,需要为助理启用后才能使用云沙箱功能。你可以在「助理档案」页面添加插件处启用 Cloud Sandbox 插件,也可以进入会话,在对话框勾选插件处启用 Cloud Sandbox 插件。
+云沙箱是内置技能。使用前需为助理启用。
-### 使用 Cloud Sandbox
+**从助理档案** — 进入助理档案页面,点击 **+ 添加技能 **,勾选**云沙箱**。
+
+**在会话中** — 点击对话框下方的技能图标,勾选**云沙箱**。
+
+## 使用云沙箱
### 让助理执行代码
-直接描述你想完成的任务,助理会编写代码并在云沙箱中运行:
+描述任务,助理会编写代码并在云沙箱中运行:
- 「帮我写个 Python 脚本,计算这组数据的平均值和标准差」
-- 「用 JavaScript 实现一个快速排序算法,运行测试一下」
+- 「用 JavaScript 实现快速排序算法,运行测试一下」
- 「帮我跑一下这段代码,看看输出是什么」
+- 「用 pandas 分析这个 CSV,按收入排序显示前 5 行」
### 让助理生成文档
@@ -55,6 +61,7 @@ Cloud Sandbox 是内置插件,需要为助理启用后才能使用云沙箱功
- 「帮我生成一份 PDF 报告,包含这些数据的分析结果」
- 「把这段内容做成 Word 文档」
- 「创建一个 Excel 表格,整理这些信息」
+- 「用这份销售数据做个柱状图,导出成 PNG」
### 让助理处理数据
@@ -63,11 +70,36 @@ Cloud Sandbox 是内置插件,需要为助理启用后才能使用云沙箱功
- 「分析这份销售数据,画个趋势图」
- 「把这个 JSON 转换成 CSV 格式」
- 「帮我清洗这份数据,去除重复项」
+- 「把这两个 CSV 按 id 列合并」
-### 了解云沙箱环境
+## 使用场景
-隔离的云端环境云沙箱运行在安全隔离的云端服务器上,与你的本地电脑完全分离。助理在云沙箱中的所有操作都不会影响你的本地文件系统。
+**数据分析** — 上传数据集,要求汇总统计、可视化或趋势分析。获得可直接用于报告或演示的图表和表格。
-### 会话级文件存储
+**报告自动化** — 从结构化数据生成周报、发票或摘要。助理产出可直接发送的 PDF 或 Excel 文件。
-云沙箱中的文件是临时的,与当前对话会话绑定。会话结束或长时间不活动后,沙箱中的文件可能会被清理。如果你需要保留文件,请及时下载助理提供的导出链接。自动导出成果当助理在云沙箱中生成文件时,会自动导出并提供下载链接。你无需额外操作,即可获得代码运行产生的文档、图表、数据文件等成果。
+**代码原型** — 在对话中测试算法、验证逻辑或调试代码片段。看到真实输出,而不是猜测。
+
+**文件转换** — 在格式间转换(JSON ↔ CSV、Markdown → PDF)或批量处理文件。无需自己写一次性脚本。
+
+## 了解云沙箱环境
+
+**隔离执行** — 云沙箱运行在安全隔离的云端服务器上,与你的本地电脑完全分离。助理在沙箱中的所有操作都不会影响你的本地文件系统。
+
+**会话级存储** — 云沙箱中的文件是临时的,与当前对话会话绑定。会话结束或长时间不活动后,沙箱中的文件可能会被清理。如需保留文件,请及时通过助理提供的下载链接保存。
+
+**自动导出** — 助理在云沙箱中生成文件时,会自动导出并提供下载链接。无需额外操作,即可获得代码运行产生的文档、图表、数据文件等成果。
+
+## 使用技巧
+
+- **明确格式** — 「导出为 CSV」或「保存为 PDF」有助于助理选择正确的输出格式。
+- **在同一对话中迭代** — 「把图表改成蓝色」或「给报告加个标题」—— 助理有上下文,可以精调输出。
+- **及时下载重要文件** — 会话级存储意味着文件可能不会永久保留。在对话活跃时保存你需要的文件。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/scheduled-task.mdx b/docs/usage/agent/scheduled-task.mdx
index ebd4f1dfff..9685695e0c 100644
--- a/docs/usage/agent/scheduled-task.mdx
+++ b/docs/usage/agent/scheduled-task.mdx
@@ -14,42 +14,127 @@ tags:
# Scheduled Tasks
-Scheduled tasks are jobs that run periodically in the cloud.
-
-In simple terms, you can configure an Agent to execute tasks based on your prompt at regular intervals—for example, checking social media content and sending notifications on a schedule.
+Scheduled tasks are jobs that run periodically in the cloud. In simple terms, you can configure an Agent to execute tasks based on your prompt at regular intervals — for example, checking social media content and sending notifications on a schedule. Instead of manually triggering the same workflow repeatedly, schedule it once and let it run automatically — daily, weekly, or hourly.
## Creating a Task
Find Scheduled Tasks in the left panel of the Agent conversation page, and click `Add Scheduled Task` to start creating a task.
-On the creation page, you can fill in the task name, set the task frequency and specific execution time, set the maximum number of times the task can be executed, and configure the task content.
-

-In the Task Content area, you can enter the Prompt or instructions to provide to the Agent. For example, the task content to be completed, whether to call plugins, etc. Each scheduled trigger will fully execute the content defined here. After creation, you can modify the scheduled task configuration at any time.
+### Configuration Fields
-## Pausing a Task
+**Task Name** — Give your task a descriptive name so you can identify it at a glance:
-If you temporarily don't need a scheduled task, you can disable it. After disabling, the task will no longer execute automatically, but the task's execution plan and Prompt configuration will be preserved. The task will resume execution after re-enabling.
+- ✅ "Daily Market Summary - 9am EST"
+- ✅ "Weekly Competitor Analysis"
+- ❌ "Task 1"
+
+**Task Content** — Enter the prompt or instructions for the Agent to execute each time the task runs. Be specific and complete — this exact prompt runs every scheduled execution. For example:
+
+```
+Analyze today's top tech news and summarize:
+1. Major product launches
+2. Funding announcements
+3. Industry trends
+Format as a brief executive summary.
+```
+
+**Frequency** — Choose how often the task runs:
+
+- **Daily** — Every day at a specified time
+- **Weekly** — Specific days of the week at a specified time (you can select multiple days)
+- **Hourly** — Every 1, 2, 6, 12, or 24 hours
+
+**Time and Timezone** — Specify the exact time of day and your timezone so the task runs at the correct local time. Times are in 24-hour format. Timezone selection is especially important for teams across multiple regions.
+
+**Max Executions** — Optionally limit how many times the task runs total. Leave unlimited for ongoing tasks. Set a number (e.g., 30) for time-limited campaigns — the task disables automatically after reaching the limit.
+
+After creation, you can modify the scheduled task configuration at any time.
+
+## Schedule Configuration Examples
+
+**Daily morning report:**
+
+- Frequency: Daily at 08:00 in your timezone
+- Prompt: "Generate a summary of yesterday's key metrics and action items for today."
+
+**Weekly planning session:**
+
+- Frequency: Weekly on Mondays at 09:00
+- Prompt: "Review last week's progress and create this week's priority list."
+
+**Hourly monitoring:**
+
+- Frequency: Every 2 hours
+- Prompt: "Check for any critical alerts or anomalies and summarize findings."
+
+**End-of-month review:**
+
+- Frequency: Monthly — set Max Executions to 1 per month, or use day-of-month scheduling
+- Prompt: "Analyze this month's performance data and generate an executive report."
+
+## Managing Tasks
+
+### Viewing Run History
+
+Each scheduled run creates a conversation in the agent's conversation history, labeled with the task name and timestamp. Review outputs, check for errors, and track results over time.
+
+### Editing a Schedule
+
+Click on a scheduled task to modify it — update the prompt, change the frequency or time, or adjust the timezone. Changes take effect on the next scheduled execution.
+
+### Pausing a Task
+
+If you temporarily don't need a scheduled task, you can disable it. After disabling, the task will no longer execute automatically, but the task's execution plan and prompt configuration will be preserved. The task resumes after re-enabling.

-## Deleting a Task
+### Deleting a Task
-If you no longer need a scheduled task, you can delete it. After deletion, the task's execution plan and Prompt configuration will be removed, and the system will no longer trigger any subsequent executions.
+If you no longer need a scheduled task, you can delete it. After deletion, the task's execution plan and prompt configuration are removed, and the system will no longer trigger any subsequent executions. Past conversation history is preserved.
+
+## Best Practices
+
+**Write clear, self-contained prompts** — The task prompt runs without any prior conversation context. Every detail the Agent needs must be in the prompt itself:
+
+- ✅ "Search for news about electric vehicles published in the last 24 hours and summarize the top 3 developments."
+- ❌ "Check the news like we discussed." (Agent has no conversation context when scheduled)
+
+**Choose appropriate frequency** — Match the schedule to the actual cadence of the information you're monitoring. Hourly monitoring for daily news is unnecessary overhead; weekly reports for real-time metrics miss the point.
+
+**Use descriptive task names** — Include the purpose and schedule in the name: "Weekly Competitor Analysis - Monday 9am" is far more useful than "Task 2".
+
+**Set max executions for experiments** — When testing a new scheduled task, set a max execution count of 5–10 so it doesn't run indefinitely if the prompt doesn't work as expected.
+
+**Timezone awareness** — Always set the correct timezone. A task scheduled for "9:00 AM" defaults to the server timezone, which may differ from your local time. Misconfigured timezones are a common source of unexpected run times.
## Use Cases
-Scheduled tasks are suitable for all work scenarios that have a fixed rhythm, require continuous follow-up, or need periodic delivery of results. Here are some common and frequently used approaches.
-
### Periodic Social Media Monitoring with Notifications
-You can set up scheduled tasks to periodically check social media content related to specified platforms or keywords. The task will automatically fetch the latest updates, filter information that meets the criteria, and generate summaries or trigger notifications when important updates are detected. This scenario is suitable for brand reputation monitoring, competitor tracking, creator content update alerts, and more. You only need to view the results without repeatedly searching manually.
+Set up scheduled tasks to periodically check social media content related to specified platforms or keywords. The task automatically fetches the latest updates, filters information that meets the criteria, and generates summaries when important updates are detected. Suitable for brand reputation monitoring, competitor tracking, and creator content update alerts.
### Periodic Summary and Report Generation
-For work that requires regular review, such as data analysis, project progress tracking, or content performance evaluation, you can use scheduled tasks to automatically complete aggregation and analysis. The task will collect relevant information at specified times and output structured conclusions, helping you continuously track trend changes without having to organize from scratch each time.
+For work that requires regular review — data analysis, project progress tracking, or content performance evaluation — use scheduled tasks to automatically complete aggregation and analysis. The task collects relevant information at specified times and outputs structured conclusions, helping you continuously track trend changes.
### Scheduled Reminder Notifications
-You can set up reminders in advance for items that need attention, such as work to be handled, important milestones, periodic check tasks, etc., and let LobeHub automatically generate reminder messages and notify you via email or other methods without manual triggering. This approach is suitable for personal to-do reminders, important event notifications, periodic task prompts, and other scenarios, helping you receive clear action prompts at the right time and leaving the things you need to remember to the system.
+Set up reminders in advance for important milestones, periodic check tasks, or items needing attention. LobeHub automatically generates reminder messages and notifies you via email or other methods without manual triggering.
+
+## Troubleshooting
+
+**Task didn't run at expected time** — Check the timezone setting. The scheduled time is relative to your configured timezone, not necessarily your local timezone. Also verify the task is in "enabled" status.
+
+**Unexpected run times** — Verify you haven't confused AM/PM in 24-hour format (e.g., 17:00 = 5:00 PM, not 5:00 AM).
+
+**Poor quality outputs** — The scheduled prompt runs without conversational context. Rewrite the prompt to be fully self-contained, including all necessary context, data sources, and formatting instructions.
+
+**Too many runs** — Set a `Max Executions` limit when experimenting with new tasks. Delete and recreate a task if it has exceeded expectations.
+
+
+
+
+
+
diff --git a/docs/usage/agent/scheduled-task.zh-CN.mdx b/docs/usage/agent/scheduled-task.zh-CN.mdx
index 222472c385..aeefa6c8b8 100644
--- a/docs/usage/agent/scheduled-task.zh-CN.mdx
+++ b/docs/usage/agent/scheduled-task.zh-CN.mdx
@@ -3,7 +3,7 @@ title: 定时任务
description: 了解如何使用定时任务,包括创建、编辑、删除等。
tags:
- LobeHub
- - CornJob
+ - CronJob
- 定时任务
- 创建
- 编辑
@@ -12,42 +12,127 @@ tags:
# 定时任务
-定时任务是定期在云端执行的任务。
-
-简单来说,你可以让 Agent 定期根据你的 Prompt 去执行任务,例如定期检查社交媒体内容并发送通知。
+定时任务是定期在云端执行的任务。简单来说,你可以让 Agent 定期根据你的 Prompt 去执行任务 —— 例如定期检查社交媒体内容并发送通知。无需反复手动触发同一工作流,设置一次即可按计划自动运行 —— 每天、每周或每小时均可。
## 创建任务
在 Agent 会话页面左侧面板找到定时任务,点击 `添加定时任务` 开始创建任务。
-在创建页面,你可以填写任务名称,设置任务频率和具体的执行时间,设定任务最多执行的次数,配置任务内容。
-

-在 Task Content 区域,你可以输入提供给 Agent 的 Prompt 或指令。例如需要完成的任务内容、是否调用插件等。每一次定时触发,都会完整执行这里定义的内容。创建完成后,你可以随时修改定时任务的配置。
+### 配置字段说明
-## 暂停任务
+**任务名称** — 为任务起一个描述性的名称,方便一眼识别:
-如果暂时不需要某个定时任务,可以关闭启用状态。关闭启用状态后,任务不再自动执行,该任务的执行计划、Prompt 配置都会保留。恢复启用状态后该任务会继续执行。
+- ✅ "每日市场摘要 - 上午 9 点"
+- ✅ "每周竞品分析"
+- ❌ "任务 1"
+
+**任务内容** — 填写每次触发时 Agent 需要执行的 Prompt 或指令。内容要具体完整 —— 这段提示词会在每次计划执行时原样运行。例如:
+
+```
+分析今日科技新闻热点并总结:
+1. 主要产品发布
+2. 融资公告
+3. 行业趋势
+以简明执行摘要的形式输出。
+```
+
+**执行频率** — 选择任务的运行频率:
+
+- **每天** — 每天在指定时间执行
+- **每周** — 每周指定星期的指定时间(可选多天)
+- **每小时** — 每隔 1、2、6、12 或 24 小时执行
+
+**时间与时区** — 指定具体执行时间和时区,确保任务在正确的本地时间运行。时间采用 24 小时制。对于跨地区团队,时区设置尤为重要。
+
+**最大执行次数** — 可选设置任务的总执行次数上限。长期任务无需限制;对于限时活动(如 30 天),可设置为 30,任务在达到上限后自动停用。
+
+创建完成后,你可以随时修改定时任务的配置。
+
+## 计划配置示例
+
+**每日晨报:**
+
+- 频率:每天 08:00(你的时区)
+- Prompt:"总结昨日的关键指标,并列出今日优先事项。"
+
+**每周计划会议:**
+
+- 频率:每周一 09:00
+- Prompt:"回顾上周进展,制定本周优先级列表。"
+
+**每小时监控:**
+
+- 频率:每 2 小时
+- Prompt:"检查是否有关键告警或异常,并汇总发现。"
+
+**月度复盘:**
+
+- 频率:按月,可将最大执行次数设为每月 1 次,或配合特定日期使用
+- Prompt:"分析本月绩效数据,生成执行报告。"
+
+## 管理任务
+
+### 查看执行历史
+
+每次定时执行都会在该 Agent 的对话历史中创建一条记录,并标注任务名称和时间戳。你可以查看输出内容、核查错误并追踪历史结果。
+
+### 编辑计划
+
+点击定时任务即可修改 —— 更新 Prompt、调整频率或时间、修改时区。更改在下次计划执行时生效。
+
+### 暂停任务
+
+如果暂时不需要某个定时任务,可以关闭启用状态。关闭后,任务不再自动执行,执行计划和 Prompt 配置会保留。恢复启用后,该任务将继续执行。

-## 删除任务
+### 删除任务
-如果不再需要某个定时任务,可以将其删除。删除任务后,该任务的执行计划、Prompt 配置都会一并移除,系统将不再触发任何后续执行。
+如果不再需要某个定时任务,可以将其删除。删除后,执行计划和 Prompt 配置一并移除,系统将不再触发后续执行。历史对话记录会保留。
+
+## 最佳实践
+
+**编写清晰、自包含的 Prompt** — 定时任务的 Prompt 运行时没有任何历史对话上下文,Agent 所需的所有信息都必须包含在 Prompt 中:
+
+- ✅ "搜索过去 24 小时内发布的新能源汽车相关新闻,总结前 3 条重要进展。"
+- ❌ "按我们讨论的那样检查新闻。"(计划运行时 Agent 无法访问历史对话)
+
+**选择合适的频率** — 频率应与所监控信息的实际节奏匹配。对每日新闻进行每小时监控是多余的开销;对实时指标进行每周报告会漏掉重要信息。
+
+**使用描述性任务名称** — 在名称中体现用途和计划:"每周竞品分析 - 周一上午 9 点" 远比 "任务 2" 更实用。
+
+**实验时设置最大执行次数** — 测试新定时任务时,将最大执行次数设为 5–10,避免提示词效果不符合预期时无限运行。
+
+**时区意识** — 务必设置正确的时区。"09:00" 默认相对于服务器时区,可能与你的本地时间不同。时区配置错误是导致执行时间意外的常见原因。
## 使用场景
-定时任务适用于所有具备固定节奏、需要持续跟进或定期交付结果的工作场景。以下是一些常见且高频的使用方式。
-
### 定期检查社交媒体内容并发送通知
-你可以设置定时任务,周期性检查指定平台或关键词相关的社交媒体内容。任务会自动抓取最新动态,筛选符合条件的信息,并在检测到重要更新时生成摘要或触发通知。这一场景适合用于品牌舆情监测、竞品动态跟踪、创作者内容更新提醒等。你只需查看结果,无需反复手动搜索。
+设置定时任务,周期性检查指定平台或关键词相关的社交媒体内容。任务会自动抓取最新动态,筛选符合条件的信息,并在检测到重要更新时生成摘要。适合品牌舆情监测、竞品动态跟踪、创作者内容更新提醒等场景。
### 周期性生成总结与报告
-对于需要定期复盘的工作,例如数据分析、项目进展跟踪或内容表现评估,可以通过定时任务自动完成汇总和分析。任务会在指定时间收集相关信息,输出结构化结论,帮助你持续掌握趋势变化,而不必每次从零整理。
+对于需要定期复盘的工作 —— 数据分析、项目进展跟踪或内容表现评估 —— 可以通过定时任务自动完成汇总和分析。任务在指定时间收集相关信息,输出结构化结论,帮助你持续掌握趋势变化。
### 定时提醒通知
-你可以提前设定需要提醒的事项,例如需要处理的工作、重要节点、周期性检查任务等,让 LobeHub 自动生成提醒信息并通过邮件等方式提醒,无需你手动触发。这一方式适合用于个人待办提醒、重要事项通知、周期性任务提示等场景,帮助你在正确的时间收到明确的行动提示,把需要记住的事情交给系统处理。
+提前设定需要提醒的事项 —— 重要节点、周期性检查任务或待处理工作等 —— 让 LobeHub 自动生成提醒信息并通过邮件等方式通知,无需手动触发。
+
+## 故障排查
+
+**任务未在预期时间执行** — 检查时区设置。计划时间相对于已配置的时区,而非你当前的本地时区。同时确认任务处于 "已启用" 状态。
+
+**执行时间出现意外** — 核查是否在 24 小时制中混淆了上下午(如 17:00 = 下午 5 点,而非上午 5 点)。
+
+**输出质量不佳** — 定时任务的 Prompt 在无对话上下文的情况下运行。请将 Prompt 改写为完全自包含的形式,包含所有必要的背景信息、数据来源和格式要求。
+
+**执行次数过多** — 实验新任务时设置 "最大执行次数" 上限。如果任务已超出预期次数,可删除后重新创建。
+
+
+
+
+
+
diff --git a/docs/usage/agent/share.mdx b/docs/usage/agent/share.mdx
index c5bdbf2963..937ed84d67 100644
--- a/docs/usage/agent/share.mdx
+++ b/docs/usage/agent/share.mdx
@@ -1,92 +1,114 @@
---
title: Share Conversations
description: >-
- Learn how to share conversation records using LobeHub's sharing features,
- including screenshot sharing and ShareGPT links. Easily share your dialogues
- with others.
+ Export and share your conversations — screenshot, text, PDF, or JSON. One
+ click to copy or download.
tags:
- LobeHub
- - Share Conversation Records
- - Screenshot Sharing
- - Conversation Sharing
+ - Share
+ - Export
+ - Screenshot
+ - PDF
+ - JSON
+ - Link
---
-# Share Conversation Records
+# Share Conversations
-You can share your current conversation with others by clicking the Share button in the top-right corner of the chat window. LobeHub supports two sharing methods: Screenshot Sharing and Shareable Link Generation.
-
-LobeHub allows you to export and share your conversations in various formats, including screenshots, plain text, PDF, or JSON, making it easy to save and share your dialogues.
+Click the **Share** button in the top-right corner of the chat window to export and share your current conversation. LobeHub supports multiple formats — choose the one that fits how you want to use it.
## Screenshot Sharing
-Export your conversation as an image. Available display modes:
+Export your conversation as an image. Great for social media or messaging apps — visually intuitive and easy to read.
-- Wide Screen Mode: Optimized for desktop viewing
-- Narrow Screen Mode: Optimized for mobile viewing
+**Display modes:**
-Optional content settings:
+- **Wide screen** — Optimized for desktop viewing
+- **Narrow screen** — Optimized for mobile viewing
-- Include Assistant Role Settings: Display system prompts and configuration for the assistant
-- Include Footer: Show information at the bottom of the page
-- Image Format Options: JPG / PNG / SVG / WEBP
-- Sharing Options:
- - Copy Image: Copy to clipboard for direct pasting into other apps
- - Download Screenshot: Save the image file locally
+**Optional content:**
+
+- Include Agent role settings (system prompt and configuration)
+- Include footer (page bottom information)
+
+**Format:** JPG / PNG / SVG / WEBP
+
+**Actions:** Copy to clipboard for pasting into other apps, or download the image file.
## Text Sharing
-Export your conversation as plain text. Optional content settings:
+Export as plain text. Ideal for editing or quoting — small file size.
-- Include Assistant Role Settings: Include system prompts and assistant configuration
-- Include Message Roles: Show the sender of each message
-- Include User Info: Include user-related information
-- Include Plugin Info: Include details of plugin calls
-- Sharing Options:
- - Copy Text: Copy to clipboard
- - Download File: Save as a text file
+**Optional content:**
-
+- Include Agent role settings
+- Include message roles (who sent each message)
+- Include user info
+- Include Skill/plugin call details
+
+**Actions:** Copy to clipboard, or download as a text file.
+
+
## PDF Sharing
-Export your conversation as a PDF document. Optional content settings:
+Export as a PDF document. Suitable for formal use — work reports, study notes, archival.
-- Include Assistant Role Settings: Include system prompts and assistant configuration
-- Include Message Roles: Show the sender of each message
-- Include User Info: Include user-related information
-- Include Plugin Info: Include details of plugin calls
+**Optional content:**
-Generation Method: After selecting your options, click the Generate button to create and download the PDF file.
+- Include Agent role settings
+- Include message roles
+- Include user info
+- Include Skill/plugin call details
+
+**Actions:** Click **Generate** to create and download the PDF.
## JSON Sharing
-Export your conversation in JSON format, ideal for developers or integration with other systems.
+Export in JSON format — ideal for developers or integration with other systems.
-Available export modes:
+**Export modes:**
-- Default: LobeHub's standard JSON format
-- OpenAI Compatible: JSON format compatible with the OpenAI API
+- **Default** — LobeHub's standard JSON format
+- **OpenAI Compatible** — JSON format compatible with the OpenAI API
-Optional content settings:
+**Optional content:**
-- Include Role Settings: Include assistant role configuration
+- Include Agent role configuration
-Sharing Options:
-
-- Copy: Copy JSON content to clipboard
-- Download File: Save as a JSON file
+**Actions:** Copy JSON to clipboard, or download as a file.
## Use Cases
-- Screenshot Sharing: Great for sharing conversations on social media or messaging apps—visually intuitive and easy to read.
-- Text Sharing: Ideal for editing or quoting conversations; small file size.
-- PDF Sharing: Suitable for formal use cases like work reports, study notes, or archival.
-- JSON Sharing: Best for developers—can be imported into other systems or used for data analysis.
+| Format | Best For |
+| -------------- | ----------------------------------------------------- |
+| **Screenshot** | Social media, messaging apps — visually intuitive |
+| **Text** | Editing, quoting — small file size |
+| **PDF** | Work reports, study notes, archival |
+| **JSON** | Developers — import into other systems, data analysis |
## Shareable Link
-Coming soon...
+Generate a link to share your conversation publicly. Click the **Share** button in the top-right corner — if link sharing is available in your workspace, a popover appears instead of the modal directly.
+
+**Visibility options:**
+
+- **Private** — Only you can access the link. The conversation is not visible to others even if they have the URL.
+- **Anyone with the link** — Anyone who has the link can view the full conversation. A privacy notice appears the first time you switch to this mode.
+
+**Actions:**
+
+- **Copy Link** — Copies the share URL to your clipboard. Share it via any channel.
+- **More share options** — Opens the full share modal for screenshot, text, PDF, or JSON export.
+
+When someone opens the link, they see the full conversation in a clean read-only view. A bottom bar shows the Agent name and avatar, with quick links to explore the Agent Market or try the same agent themselves.
+
+
+
+
+
+
diff --git a/docs/usage/agent/share.zh-CN.mdx b/docs/usage/agent/share.zh-CN.mdx
index 2d229847c8..53ce91145f 100644
--- a/docs/usage/agent/share.zh-CN.mdx
+++ b/docs/usage/agent/share.zh-CN.mdx
@@ -1,60 +1,112 @@
---
title: 分享会话
-description: 了解如何通过 LobeHub 的分享功能分享会话记录,包括截图分享和 ShareGPT 分享方式。通过分享功能,轻松与他人分享您的对话。
+description: 导出并分享你的会话——截图、文本、PDF 或 JSON。一键复制或下载。
tags:
- LobeHub
- - 分享会话记录
- - 截图分享
- - 对话分享
+ - 分享
+ - 导出
+ - 截图
+ - PDF
+ - JSON
+ - 链接
---
-# 分享会话记录
+# 分享会话
-通过会话窗口右上角的`分享`按钮,您可以将当前会话记录分享给其他人。LobeHub 支持两种分享方式:`截图分享`和 `生成分享链接`。
-
-LobeHub 支持将会话内容分享给他人。你可以将对话导出为截图、文本、PDF 或 JSON 格式,方便保存、分享。
+点击会话窗口右上角的**分享**按钮,即可导出并分享当前会话。LobeHub 支持多种格式 —— 选择最适合你使用场景的方式。
## 截图分享
-将会话导出为图片格式。可选显示模式:
+将会话导出为图片。适合在社交媒体、聊天工具中分享 —— 直观易读。
-- 宽屏模式:适合电脑屏幕查看
-- 窄屏模式:适合手机屏幕查看
+**显示模式:**
-可选内容选项:
+- **宽屏模式** — 适合电脑屏幕查看
+- **窄屏模式** — 适合手机屏幕查看
-- 是否包含助手角色设定:显示助手的系统提示词等设定信息
-- 是否包含页脚:显示页面底部信息
-- 可选图片格式:JPG/PNG/SVG/WEBP
-- 可选分享方式:复制图片:复制到剪贴板,可以直接粘贴到其他应用下载截图:保存图片文件到本地
+**可选内容:**
+
+- 是否包含助理角色设定(系统提示词等设定信息)
+- 是否包含页脚(页面底部信息)
+
+**图片格式:** JPG / PNG / SVG / WEBP
+
+**操作:** 复制到剪贴板直接粘贴到其他应用,或下载图片文件到本地。
## 文本分享
-将会话导出为纯文本格式。可选内容选项:
+将会话导出为纯文本。适合需要编辑或引用对话内容的场景,文件体积小。
-- 是否包含助手角色设定:包含助手的系统提示词等设定是否包含消息角色
-- 显示每条消息的发送者
-- 是否包含用户信息:包含用户相关信息
-- 是否包含插件信息:包含插件调用的相关信息
-- 可选分享方式:复制文本:复制到剪贴板下载文件:保存为文本文件
+**可选内容:**
-
+- 是否包含助理角色设定
+- 是否包含消息角色(每条消息的发送者)
+- 是否包含用户信息
+- 是否包含技能 / 插件调用信息
+
+**操作:** 复制到剪贴板,或下载为文本文件。
+
+
## PDF 分享
-将会话导出为 PDF 文档。可选内容选项:
+将会话导出为 PDF 文档。适合正式场合 —— 工作报告、学习笔记、存档记录。
-- 是否包含助手角色设定:包含助手的系统提示词等设定
-- 是否包含消息角色:显示每条消息的发送者
-- 是否包含用户信息:包含用户相关信息
-- 是否包含插件信息:包含插件调用的相关信息生成方式:选择完选项后,点击生成按钮,直接生成 PDF 文件并下载。
+**可选内容:**
+
+- 是否包含助理角色设定
+- 是否包含消息角色
+- 是否包含用户信息
+- 是否包含技能 / 插件调用信息
+
+**操作:** 选择完选项后,点击**生成**按钮,直接生成 PDF 文件并下载。
## JSON 分享
-将会话导出为 JSON 格式,适合开发者或需要在其他系统中使用。可选导出模式:默认:LobeHub 的标准 JSON 格式 OpenAI 兼容:兼容 OpenAI API 格式的 JSON 可选内容选项:是否包含角色设定:包含助手的角色设定信息可选分享方式:复制:复制 JSON 内容到剪贴板下载文件:保存为 JSON 文件 \[Image] 使用场景截图分享:适合在社交媒体、聊天工具中分享对话内容,直观易读。文本分享:适合需要编辑或引用对话内容的场景,文件体积小。PDF 分享:适合正式场合,如工作报告、学习笔记、存档记录。JSON 分享:适合开发者,可以导入到其他系统或进行数据分析。
+将会话导出为 JSON 格式。适合开发者或需要在其他系统中使用。
+
+**导出模式:**
+
+- **默认** — LobeHub 的标准 JSON 格式
+- **OpenAI 兼容** — 兼容 OpenAI API 格式的 JSON
+
+**可选内容:**
+
+- 是否包含助理角色设定
+
+**操作:** 复制 JSON 内容到剪贴板,或下载为 JSON 文件。
+
+## 使用场景
+
+| 格式 | 最适合 |
+| -------- | ------------------- |
+| **截图** | 社交媒体、聊天工具 —— 直观易读 |
+| **文本** | 编辑、引用 —— 文件体积小 |
+| **PDF** | 工作报告、学习笔记、存档记录 |
+| **JSON** | 开发者 —— 导入到其他系统、数据分析 |
## 分享链接
+
+生成链接,将当前会话公开分享给他人。点击右上角的**分享**按钮 —— 如果你的工作区支持链接分享功能,会先弹出一个快捷面板,而不是直接打开分享弹窗。
+
+**可见性设置:**
+
+- **私密** — 仅你本人可以访问,即使他人获得链接也无法查看内容。
+- **任何拥有链接的人** — 任何人通过链接即可查看完整会话内容。首次切换到此模式时,会显示隐私提示确认。
+
+**操作:**
+
+- **复制链接** — 将分享链接复制到剪贴板,通过任意渠道发送给他人。
+- **更多分享选项** — 打开完整分享弹窗,可导出截图、文本、PDF 或 JSON 格式。
+
+他人打开链接后,将看到完整的只读会话页面。页面底部会显示助理名称和头像,并提供快捷入口,跳转到 Agent 市场探索更多助理,或直接体验同款助理。
+
+
+
+
+
+
diff --git a/docs/usage/agent/topic.mdx b/docs/usage/agent/topic.mdx
index f11ab63902..924e5edd5c 100644
--- a/docs/usage/agent/topic.mdx
+++ b/docs/usage/agent/topic.mdx
@@ -1,59 +1,76 @@
---
title: Topics
description: >-
- Learn how to interact with large language models, including model selection,
- file/image uploads, temperature settings, conversation history, and more.
+ Organize, search, and manage your conversations with Topics — favorite what
+ matters, find anything fast.
tags:
- LobeHub
- - Large Language Model
- - LLM
- - Model Selection
- - File Upload
- - Temperature Setting
- - History Settings
- - Voice Input
- - Plugin Settings
- - Token Usage
- - New Topic
- - Send Button
+ - Topics
+ - Conversation Management
+ - Search
+ - Favorites
---
# Topics
-In LobeHub, each conversation with the assistant is organized into a topic. You can search, rename, favorite, or delete topics to better manage and retrieve your past conversations.
+In LobeHub, each conversation with an Agent is organized as a Topic. Topics give you a structured way to manage your conversation history — search across them, rename for clarity, favorite what you return to often, and clean up what you no longer need.
## Search Topics
-On the conversation page, you can search for previous topics you've discussed with the assistant. Enter the conversation view, click "More" in the topic list, and use the search function to quickly locate the desired conversation.
+On the conversation page, click **More** in the topic list to open the search. Type a keyword to quickly find the conversation you're looking for — no need to scroll through everything.
-
+
## Rename Topics
-You can give topics more meaningful names to make them easier to identify.
+Give Topics meaningful names so they're easy to identify at a glance.
-- Manual Rename: Locate the topic you want to rename, click "Rename", enter a new name, and save it.
-- Smart Rename: Click "Smart Rename" on the topic you want to rename, and the system will automatically generate a suitable name based on the conversation content.
+- **Manual rename** — Find the Topic, click **Rename**, type a new name, and save.
+- **Smart rename** — Click **Smart Rename** on the Topic and the system generates a name based on the conversation content automatically.
## Duplicate Topics
-You can create a duplicate of any topic to preserve the original conversation while branching off into a new direction. Find the topic you want to copy and click "Duplicate". The system will create an identical copy of the topic. This is useful for exploring different discussion paths based on the same starting point.
+Create a copy of any Topic to preserve the original conversation while branching off in a new direction. Find the Topic, click **Duplicate** — an identical copy is created. Useful for exploring different discussion paths from the same starting point.
+
+**When to duplicate:** You want to try a different approach without losing the original thread. For example, "What if we used a different architecture?" — duplicate the Topic, ask the new question, and compare the two branches later.
## Favorite Topics
-For important or frequently used topics, you can mark them as favorites. Click the favorite icon on the topic you want to save. Favorited topics will appear in the "Favorites" section of the topic list for quick access.
+Mark important or frequently used Topics as favorites. Click the favorite icon on the Topic. Favorited Topics appear in the **Favorites** section of the topic list for quick access.
-
+
## Delete Topics
-You can delete topics you no longer need. Locate the topic, click "Delete", and confirm the action. The topic will be removed from your list.
+Find the Topic you want to remove, click **Delete**, and confirm. The Topic is removed from your list. Deletion is permanent — the conversation and any Notebook documents in that Topic are removed.
## Topic List
-Topics are organized by time to help you easily find conversations from different periods.
+Topics are organized by time to help you find conversations from any period.
-- Favorites: Displays all your favorited topics.
-- Time-Based List: Other topics are automatically grouped by their creation time. Expand a time group to view all topics from that period.
+- **Favorites** — All your favorited Topics, always at the top.
+- **Time-Based Groups** — Other Topics are automatically grouped by creation time. Expand a group to see all Topics from that period.
-If you prefer not to use time-based grouping, you can switch to "Ungrouped" view.
+If you'd rather see everything in a flat list, switch to **Ungrouped** view.
+
+## Use Cases
+
+**Project-based organization** — Create a Topic per project or client. All discussions, notes, and outputs for that project stay in one place.
+
+**Experiment with ideas** — Duplicate a Topic before trying a risky or divergent approach. Keep the original intact while exploring alternatives.
+
+**Quick access to frequent work** — Favorite Topics you return to daily (e.g., "Daily standup notes", "Code review assistant"). They stay at the top of the list.
+
+**Cleanup and focus** — Delete completed or abandoned Topics to keep your list manageable. Search and favorites make it easy to find what matters.
+
+## Tips
+
+- **Use Smart Rename for long conversations** — Let the system suggest a name based on content; you can always edit it later.
+- **Favorite before you need it** — If you know you'll come back to a Topic, favorite it now. Saves time when you're in a hurry.
+- **Duplicate instead of starting over** — When a conversation branches, duplicate rather than copying content into a new Topic. You keep the full context.
+
+
+
+
+
+
diff --git a/docs/usage/agent/topic.zh-CN.mdx b/docs/usage/agent/topic.zh-CN.mdx
index 70284981aa..8d7bc8eabb 100644
--- a/docs/usage/agent/topic.zh-CN.mdx
+++ b/docs/usage/agent/topic.zh-CN.mdx
@@ -1,57 +1,74 @@
---
title: 话题
-description: 了解如何使用大型语言模型进行基本交互,包括模型选择、文件/图片上传、温度设置、历史记录设置等。
+description: 用话题组织、搜索和管理你的对话——收藏重要内容,随时快速找到任何历史对话。
tags:
- LobeHub
- - 大型语言模型
- - LLM
- - 模型选择
- - 文件上传
- - 温度设置
- - 历史记录设置
- - 语音输入
- - 插件设置
- - Token 用量
- - 新建话题
- - 发送按钮
+ - 话题
+ - 对话管理
+ - 搜索
+ - 收藏
---
# 话题
-在 LobeHub 中,每次与助手的对话会形成一个话题。你可以搜索、重命名、收藏、删除话题,方便管理和查找历史对话。
+在 LobeHub 中,每次与助理的对话以话题的形式组织管理。话题让你的对话历史有序可查 —— 搜索任意内容、重命名方便识别、收藏常用话题、清理不再需要的记录。
## 搜索话题
-在会话页面,你可以搜索与助手聊过的话题。进入会话,点击话题列表的「更多」,通过搜索话题快速找到需要的历史对话。
+进入会话页面,点击话题列表的**更多**展开搜索。输入关键词,快速定位你想找的历史对话,无需逐条翻阅。
-
+
## 重命名话题
-你可以为话题设置更有意义的名称,方便识别。
+为话题设置有意义的名称,一眼就能认出来。
-- 手动重命名:找到要重命名的话题后点击「重命名」,输入新的话题名称并即可保存。
-- 智能重命名:找到要重命名的话题后点击「智能重命名」,系统会根据对话内容自动生成合适的名称。
+- **手动重命名** — 找到要重命名的话题,点击**重命名**,输入新名称保存即可。
+- **智能重命名** — 点击**智能重命名**,系统根据对话内容自动生成合适的名称。
## 创建话题副本
-你可以创建某个话题的副本,保留原对话的同时创建新的分支。找到要复制的话题后点击「创建副本」,系统会创建一个完全相同的话题副本。适合在原对话基础上尝试不同的讨论方向。
+保留原对话的同时开辟新方向 —— 找到要复制的话题,点击**创建副本**,系统生成一个完全相同的副本。适合在同一起点上尝试不同的讨论路径。
+
+**何时复制:** 想尝试另一种思路,又不想丢掉原对话。例如「如果换一种架构会怎样?」—— 复制话题、提出新问题,之后可以对比两条分支。
## 收藏话题
-对于重要或常用的话题,可以点击收藏按钮进行收藏。找到要收藏的话题后点击收藏按钮,话题会被标记为收藏。收藏的话题会显示在话题列表的「收藏」列表里,方便快速访问。\[Image]
+对于重要或常用的话题,点击收藏图标进行标记。收藏的话题会显示在话题列表的**收藏**区域,方便快速访问。
-
+
## 删除话题
-不需要的话题可以删除。找到要删除的话题后点击「删除」,确认删除后话题将被移除。话题列表话题列表按时间组织,方便查找不同时期的对话。收藏列表:显示所有收藏的话题。时间列表:其他话题默认根据创建时间自动分组,展开对应时间的列表,可以查看该时间段的所有话题。如果不想使用时间分组,可以选择「不分组」。
+找到要删除的话题,点击**删除**并确认。话题将从列表中移除。删除为永久操作 —— 该话题下的对话和笔记本文档会一并移除。
## 话题列表
-话题列表按时间组织,方便查找不同时期的对话。
+话题按时间组织,方便查找不同时期的对话。
-- 收藏列表:显示所有收藏的话题。
-- 时间列表:其他话题默认根据创建时间自动分组,展开对应时间的列表,可以查看该时间段的所有话题。
+- **收藏列表** — 所有收藏的话题,始终置顶显示。
+- **时间分组** — 其他话题按创建时间自动分组。展开对应时间段,查看该时期的所有话题。
-如果不想使用时间分组,可以选择「不分组」。
+如果你更喜欢看到所有话题的平铺列表,可以切换为**不分组**视图。
+
+## 使用场景
+
+**按项目组织** — 每个项目或客户建一个话题。该项目的所有讨论、笔记和产出都集中在一处。
+
+**尝试不同思路** — 在尝试有风险或偏离原方向的想法前,先复制话题。保留原对话,同时探索其他可能。
+
+**快速访问常用工作** — 收藏你每天都会回到的话题(如「每日站会笔记」「代码审查助理」)。它们会始终排在列表顶部。
+
+**清理与聚焦** — 删除已完成或不再使用的话题,让列表更清爽。搜索和收藏让你能快速找到重要内容。
+
+## 使用技巧
+
+- **长对话用智能重命名** — 让系统根据内容生成名称,之后可随时手动修改。
+- **提前收藏** — 知道会再回来时,现在就收藏。赶时间时能省不少事。
+- **复制而非重开** — 对话出现分支时,复制话题而不是把内容拷到新话题。这样能保留完整上下文。
+
+
+
+
+
+
diff --git a/docs/usage/agent/translate.mdx b/docs/usage/agent/translate.mdx
index 48ba039363..d3e055c313 100644
--- a/docs/usage/agent/translate.mdx
+++ b/docs/usage/agent/translate.mdx
@@ -1,32 +1,56 @@
---
title: Conversation Translation
description: >-
- LobeHub allows users to instantly translate conversation content into a
- selected language, displaying the results in real time. Learn how to configure
- your translation model for an optimized experience.
+ Translate conversation content into any language with one click — real-time
+ display, configurable model. Break language barriers in your workflow.
tags:
- LobeHub
- - Conversation Translation
+ - Translation
- Real-Time Translation
- - Translation Model Configuration
+ - Multilingual
---
# Translate Conversation History
+LobeHub lets you translate conversation content into a target language with a single click. Select a language, and the pre-configured AI model performs the translation and displays the results in real time within the chat window. No need to copy-paste into external tools — translation happens right where you're working.
+
## Translate Content Within Conversations
-LobeHub enables users to translate conversation content into a target language with a single click. Once a language is selected, LobeHub will use the pre-configured AI model to perform the translation and display the results in real time within the chat window.
+Click the translate option on any message to convert it to your chosen language. The translation appears inline, so you can read the original and translated text side by side. Useful for:
+
+- **Understanding responses** — When the Agent replies in a language you're less fluent in, translate to your preferred language.
+- **Sharing with others** — Translate a conversation before sharing so recipients can read it in their language.
+- **Learning** — Compare original and translated text to improve your language skills.
+- **Cross-language collaboration** — Team members can work in their preferred language; translate as needed to stay aligned.
## Configure Translation Model
-You can specify which model you'd like to use as your translation assistant in the settings.
+You can specify which model to use for translation. A capable model produces more accurate and natural translations, especially for technical or nuanced content.
-- Open the `Settings` panel
-- Navigate to the `System Assistant` section and find the `Translation Settings` option
-- Assign a model to serve as your `Translation Assistant`
+- Open the **Settings** panel
+- Navigate to **System Assistant** and find **Translation Settings**
+- Assign a model to serve as your **Translation Assistant**
+
+**Tips:** Use a model with strong multilingual capability (e.g., GPT-4o, Claude, Gemini) for best results. Smaller or older models may produce rougher translations.
+
+## Use Cases
+
+**International teams** — Communicate in your language; translate key messages for colleagues who prefer another.
+
+**Research and learning** — Read papers, articles, or documentation in the original language, then translate sections you need to understand deeply.
+
+**Customer support** — Respond in the customer's language, or translate their message to understand the issue before replying.
+
+**Content creation** — Draft in one language, translate to another for localization or multi-language publishing.
+
+
+
+
+
+
diff --git a/docs/usage/agent/translate.zh-CN.mdx b/docs/usage/agent/translate.zh-CN.mdx
index f093774ff3..87f6a9f61e 100644
--- a/docs/usage/agent/translate.zh-CN.mdx
+++ b/docs/usage/agent/translate.zh-CN.mdx
@@ -1,29 +1,54 @@
---
title: 会话翻译
-description: LobeHub 支持用户一键将对话内容翻译成指定语言,实时显示翻译结果。了解如何设置翻译模型以优化翻译体验。
+description: 一键将对话内容翻译成任意语言——实时显示,可配置模型。打破工作流中的语言障碍。
tags:
- LobeHub
- - 会话翻译
+ - 翻译
- 实时翻译
- - 翻译模型设置
+ - 多语言
---
# 翻译会话记录
+LobeHub 支持一键将对话内容翻译成目标语言。选择语言后,预先配置的 AI 模型会执行翻译,并将结果实时显示在聊天窗口中。无需复制到外部工具 —— 翻译就在你工作的地方完成。
+
## 翻译对话中的内容
-LobeHub 支持用户一键将对话内容翻译成指定语言。选择目标语言后,LobeHub 将调用预先设置的 AI 模型进行翻译,并将翻译结果实时显示在聊天窗口中。
+点击任意消息的翻译选项,即可将其转换为所选语言。翻译会内联显示,你可以同时查看原文和译文。适用于:
+
+- **理解回复** — 当助理用你不熟悉的语言回复时,翻译成你偏好的语言。
+- **分享给他人** — 分享前翻译对话,让接收方能用自己熟悉的语言阅读。
+- **学习** — 对比原文和译文,提升语言能力。
+- **跨语言协作** — 团队成员可用各自偏好的语言工作,需要时翻译以保持对齐。
-## 翻译模型设置
+## 配置翻译模型
-你可以在设置中指定您希望使用的模型作为翻译助手。
+你可以指定用于翻译的模型。能力更强的模型能产出更准确、自然的翻译,尤其对技术或含义细腻的内容。
-- 打开`设置`面板
-- 在`系统助手`中找到`翻译设置`选项
-- 为你的`翻译助手`指定一个模型
+- 打开**设置**面板
+- 进入**系统助理**,找到**翻译设置**
+- 为**翻译助理**指定一个模型
+
+**提示:** 使用多语言能力强的模型(如 GPT-4o、Claude、Gemini)可获得更好效果。较小或较旧的模型可能产出较粗糙的翻译。
+
+## 使用场景
+
+**跨国团队** — 用你的语言沟通;为偏好其他语言的同事翻译关键信息。
+
+**研究与学习** — 阅读原文的论文、文章或文档,再翻译需要深入理解的部分。
+
+**客户支持** — 用客户的语言回复,或先翻译客户的消息以理解问题再回复。
+
+**内容创作** — 用一种语言起草,翻译成另一种用于本地化或多语言发布。
+
+
+
+
+
+
diff --git a/docs/usage/agent/tts-stt.mdx b/docs/usage/agent/tts-stt.mdx
index d355842d64..e2d77d0f2d 100644
--- a/docs/usage/agent/tts-stt.mdx
+++ b/docs/usage/agent/tts-stt.mdx
@@ -1,33 +1,62 @@
---
title: Text-to-Speech & Speech-to-Text
description: >-
- Learn how to use the text-to-speech (TTS) and speech-to-text (STT) features in
- LobeHub, including how to configure your preferred voice model.
+ Listen to Agent responses hands-free, speak instead of typing — TTS and STT
+ for natural voice conversations.
tags:
- LobeHub
- - Text-to-Speech
- TTS
- STT
- - Voice Model
+ - Voice
+ - Hands-Free
---
-# Guide to Text-to-Speech & Speech-to-Text
+# Text-to-Speech & Speech-to-Text
-LobeHub supports text and voice conversion features, allowing users to input content via speech and have AI responses read aloud using voice synthesis.
+LobeHub supports voice capabilities — listen to Agent responses hands-free, speak your messages instead of typing, and hold natural back-and-forth voice conversations. TTS converts text to speech; STT converts your voice to text.
## Text-to-Speech (TTS)
+TTS converts AI text responses into spoken audio, allowing you to listen instead of read.
+
To have AI read text aloud, simply highlight any content in the chat window and select `Text-to-Speech`. The AI will use a TTS model to convert the selected text into speech.
-## Speech-to-Text (STT)
+You can also configure an Agent to automatically read all responses as soon as each message completes — useful for hands-free workflows.
-To input text using your voice, click the voice input option in the message box. LobeHub will convert your speech into text and insert it into the input field. Once you're done, you can send it directly to the AI.
+### Voice Providers and Options
-
+LobeHub supports two voice providers:
-## Configuring Voice Conversion Settings
+**OpenAI Voices** — Premium neural voices with natural prosody and intonation:
+
+| Voice | Character |
+| ------- | ------------------- |
+| Alloy | Neutral, balanced |
+| Echo | Clear, professional |
+| Fable | Warm, friendly |
+| Onyx | Deep, authoritative |
+| Nova | Energetic, engaging |
+| Shimmer | Soft, gentle |
+
+Best for long-form content listening, professional use cases, and content requiring natural flow.
+
+**Microsoft Edge Speech (Azure Neural Voices)** — An extensive library with 100+ voices across languages, regional accents (US, UK, AU, and more), and male/female options. Best for specific accent requirements, multi-language content, and variety.
+
+### Playback Controls
+
+When audio is playing:
+
+- **Play/Pause** — Control playback
+- **Progress bar** — See and seek through audio
+- **Speed control** — Adjust playback speed (0.5× to 2×)
+- **Volume** — Adjust audio level
+- **Download** — Save audio file for offline use
+
+TTS audio is automatically cached — the first playback generates audio in real time, and subsequent playbacks are instant from cache.
+
+### Configuring Voice Settings
You can customize the voice conversion experience by selecting your preferred models in the settings.
@@ -36,3 +65,66 @@ You can customize the voice conversion experience by selecting your preferred mo
- Open the `Settings` panel
- Navigate to the `Text-to-Speech` section
- Choose your desired voice service and AI model
+
+Each Agent can have its own voice. To configure per-Agent: open Agent settings → TTS section → select voice provider → choose a voice → test with sample text → save.
+
+## Speech-to-Text (STT)
+
+STT converts your spoken words into text, enabling voice input for messages.
+
+To input text using your voice, click the voice input option in the message box. LobeHub will convert your speech into text and insert it into the input field. Once you're done, you can send it directly to the AI.
+
+
+
+### Supported Languages
+
+STT supports a wide range of languages including English (US, UK, AU, CA, IN), Spanish, French, German, Italian, Portuguese, Chinese (Mandarin), Japanese, Korean, and many more. Language is typically auto-detected or set based on your interface language.
+
+### Tips for Best Results
+
+- Speak clearly at a normal pace
+- Use good microphone positioning
+- Minimize background noise
+- Speak in complete sentences
+- Pause briefly between thoughts
+
+After voice input, review the transcribed text, edit any mistakes, and send when ready. This hybrid approach combines the speed of voice with the precision of text editing.
+
+## Voice Conversations (Hands-Free Mode)
+
+Combine TTS and STT for natural, continuous voice conversations:
+
+1. Configure your agent to use automatic TTS playback
+2. Click the microphone and speak your message
+3. Review the transcription and send
+4. The AI response plays automatically via TTS
+5. Speak your next message when ready
+
+Hands-free mode is ideal for:
+
+- **Accessibility** — Screen reader users, users with mobility limitations, or anyone who prefers audio interaction
+- **Language learning** — Practice speaking in a target language and hear correct pronunciation via TTS
+- **Multitasking** — Get AI assistance while cooking, commuting, or exercising
+- **Content consumption** — Listen to long articles, research papers, or learning materials at your own pace
+
+## Privacy Note
+
+
+ Voice input is processed by AI services for transcription. Avoid speaking sensitive information
+ unless you are using a private or local deployment.
+
+
+Voice data handling:
+
+- STT audio is sent to the provider for transcription
+- TTS audio is cached locally for performance
+- Audio is not stored permanently by providers
+- Transcriptions become part of conversation data
+
+Best practices: review transcriptions before sending, don't speak passwords or sensitive data, and clear the local audio cache periodically if you are concerned about storage.
+
+
+
+
+
+
diff --git a/docs/usage/agent/tts-stt.zh-CN.mdx b/docs/usage/agent/tts-stt.zh-CN.mdx
index f666065848..ed734def0e 100644
--- a/docs/usage/agent/tts-stt.zh-CN.mdx
+++ b/docs/usage/agent/tts-stt.zh-CN.mdx
@@ -1,36 +1,127 @@
---
-title: 文字语音转换
-description: 了解如何在 LobeHub 中使用文字语音转换功能,包括文字转语音(TTS)和语音转文字(STT),以及设置您喜欢的语音模型。
+title: 文字转语音与语音转文字
+description: 免提收听助理回复、用说话代替打字——TTS 与 STT 实现自然的语音对话。
tags:
- LobeHub
- - 文字语音转换
- TTS
- STT
- - 语音模型
+ - 语音
+ - 免提
---
-# 文字语音转换使用指南
+# 文字转语音与语音转文字
-LobeHub 支持文字语音转换功能,允许用户通过语音输入内容,以及将 AI 输出的内容通过语音播报。
+LobeHub 支持语音功能 —— 免提收听助理回复、用说话代替打字,进行自然的来回语音对话。TTS 将文字转为语音;STT 将你的语音转为文字。
## 文字转语音(TTS)
+TTS 将 AI 的文字回复转换为语音,让你可以收听而无需阅读。
+
在对话窗口中选中任意内容,选择`文字转语音`,AI 将通过 TTS 模型对文本内容进行语音播报。
-## 语音转文字(STT)
+你还可以配置助理在每条消息完成后自动朗读所有回复,适合免提工作流程。
-在输入窗口中选择语音输入功能,LobeHub 将您的语音转换为文字并输入到文本框中,完成输入后可以直接发送给 AI。
+### 语音提供商与可选音色
-
+LobeHub 支持两种语音提供商:
-## 文字语音转换设置
+**OpenAI 语音** — 高质量神经语音,具有自然的语调和韵律:
-你可以在设置中为文字语音转换功能指定您希望使用的模型。
+| 音色 | 特点 |
+| ------- | -------- |
+| Alloy | 中性、均衡 |
+| Echo | 清晰、专业 |
+| Fable | 温暖、友好 |
+| Onyx | 低沉、权威 |
+| Nova | 充满活力、吸引人 |
+| Shimmer | 柔和、轻缓 |
+
+适合长篇内容收听、专业使用场景和需要自然流畅感的内容。
+
+**Microsoft Edge Speech(Azure 神经语音)** — 拥有 100+ 跨语言音色的庞大音色库,支持区域口音(美式、英式、澳式等)以及男女声选项。适合有特定口音要求、多语言内容和多样化定制需求的场景。
+
+### 播放控制
+
+音频播放时可用以下控制:
+
+- **播放 / 暂停** — 控制播放状态
+- **进度条** — 查看和定位音频进度
+- **速度调节** — 调整播放速度(0.5× 至 2×)
+- **音量** — 调节音量大小
+- **下载** — 保存音频文件供离线使用
+
+TTS 音频会自动缓存 —— 首次播放时实时生成,后续播放可从缓存中即时读取。
+
+### 配置语音转换设置
+
+你可以在设置中为文字语音转换功能指定你希望使用的模型。
- 打开`设置`面板
- 找到`文字转语音`设置
- 选择您所需的语音服务和 AI 模型
+
+每个助理可以拥有自己的音色。按助理配置:打开助理设置 → TTS 部分 → 选择语音提供商 → 选择音色 → 用示例文字测试 → 保存。
+
+## 语音转文字(STT)
+
+STT 将你说的话转换为文字,实现语音输入消息。
+
+在输入窗口中选择语音输入功能,LobeHub 将你的语音转换为文字并输入到文本框中,完成输入后可以直接发送给 AI。
+
+
+
+### 支持的语言
+
+STT 支持多种语言,包括英语(美式、英式、澳式、加拿大、印度)、西班牙语、法语、德语、意大利语、葡萄牙语、中文(普通话)、日语、韩语等。语言通常会根据你的界面语言自动检测或设置。
+
+### 获得最佳效果的技巧
+
+- 以正常语速清晰地说话
+- 保持麦克风位置适当
+- 减少背景噪音
+- 说完整的句子
+- 在思路之间稍作停顿
+
+语音输入完成后,检查转录文字,修改任何错误,确认无误后发送。这种混合方式结合了语音的速度和文字编辑的精准度。
+
+## 语音对话(免提模式)
+
+结合 TTS 和 STT,享受自然流畅的连续语音对话:
+
+1. 配置 Agent 自动播放 TTS 回复
+2. 点击麦克风图标并说出你的消息
+3. 检查转录内容后发送
+4. AI 回复通过 TTS 自动播放
+5. 准备好后继续语音输入下一条消息
+
+免提模式非常适合:
+
+- **无障碍访问** — 屏幕阅读器用户、有行动不便的用户,或偏好音频交互的用户
+- **语言学习** — 用目标语言练习口语,并通过 TTS 收听正确发音
+- **多任务处理** — 烹饪、通勤或运动时获取 AI 帮助
+- **内容消费** — 以自己的节奏收听长篇文章、研究论文或学习材料
+
+## 隐私说明
+
+
+ 语音输入会被 AI 服务处理以进行转录。除非使用私有或本地部署,否则请避免说出敏感信息。
+
+
+语音数据处理方式:
+
+- STT 音频发送至提供商进行转录
+- TTS 音频在本地缓存以提升性能
+- 提供商不会永久存储音频
+- 转录内容将成为对话数据的一部分
+
+最佳实践:发送前检查转录内容,不要说出密码或敏感数据,如担心本地存储,可定期清除音频缓存。
+
+
+
+
+
+
diff --git a/docs/usage/agent/web-search.mdx b/docs/usage/agent/web-search.mdx
new file mode 100644
index 0000000000..c78fb688fa
--- /dev/null
+++ b/docs/usage/agent/web-search.mdx
@@ -0,0 +1,154 @@
+---
+title: Web Search
+description: >-
+ Agents search the internet for real-time information — with source citations
+ and grounding.
+tags:
+ - LobeHub
+ - Web Search
+ - Real-time Information
+ - Citations
+ - Grounding
+---
+
+# Web Search
+
+LobeHub's web search integration lets Agents access current information from the internet — real-time news, prices, documentation, and facts beyond their training cutoff. When web search is active, the Agent retrieves up-to-date answers and cites the sources it used.
+
+## What Web Search Enables
+
+With web search enabled, Agents can:
+
+- Access real-time information — current news, prices, and events
+- Verify information against the latest sources
+- Cite the web pages they consulted
+- Research topics from multiple sources simultaneously
+- Answer questions about recent events outside their training data
+
+## How It Works
+
+When you ask a question that requires current information:
+
+1. The AI generates optimized search queries from your question
+2. Searches are performed across the internet
+3. Relevant sources are retrieved and analyzed
+4. The AI synthesizes findings into a response
+5. The response includes source citations
+
+This happens automatically when the AI determines web search would be helpful, or on-demand when you explicitly request it.
+
+## Search Grounding Display
+
+When web search is used, a **search grounding** section appears above the AI's response as a collapsible card showing:
+
+- **Source count** — How many web sources were consulted
+- **Favicon preview** — Icons from source websites
+- **Expandable search queries** — The exact queries the AI used (click to expand)
+- **Citations** — Source titles, domains, and URLs you can click to visit
+
+Expand the grounding card to see exactly where the information came from and evaluate source credibility.
+
+## Enabling Web Search
+
+Web search is not active by default — it requires plugin or MCP configuration.
+
+**Via Skills** — Install a web search Skill from the marketplace (Settings → Skills). Options include general web search, news search, and academic search. Some may require an API key from the search provider.
+
+**Via MCP servers** — Connect a search MCP server (Brave Search, Google Search, DuckDuckGo, etc.) in your MCP settings. This gives more control and supports custom search implementations.
+
+**Per-Agent configuration** — In Agent Settings → Skills, enable web search for that specific Agent and choose the search provider.
+
+## Using Web Search
+
+### Automatic Search
+
+Web search activates automatically for questions that clearly require current data:
+
+```
+"What's the current price of Bitcoin?"
+"Who won the World Cup in 2024?"
+"What are the latest developments in AI?"
+```
+
+### Explicit Search Requests
+
+You can also explicitly request a web search:
+
+```
+"Search the web for recent reviews of the iPhone 15"
+"Look up the latest research on climate change"
+"Find current mortgage rates in California"
+```
+
+### Follow-Up Searches
+
+Each search builds on the conversation context. Chain searches to go deeper:
+
+```
+"What are the top programming languages in 2024?"
+→ "Search for job market trends for Python developers"
+→ "Find salary data for senior Python engineers in Europe"
+```
+
+## Use Cases
+
+**Research and news** — Get current information on news, markets, finance, and academic topics. "Latest news on \[subject]", "Recent papers on \[topic]", "Current stock price of X".
+
+**Technical information** — Access up-to-date docs, API changes, package releases, and bug fix discussions. Especially useful for fast-moving frameworks where training data may be outdated. "What's new in React 19?", "Find solutions to \[specific error]".
+
+**Product research** — Compare current prices, find recent reviews, and identify alternatives. "Compare the latest MacBook models", "Reviews for noise-cancelling headphones under $200".
+
+**Planning** — Get real-world current data for travel, events, and local recommendations. "Best restaurants in Austin right now", "Current museum exhibits in Paris", "Tech conferences in 2025".
+
+## Understanding Citations
+
+Every web search response includes citations. Check them:
+
+- **Source title** — The page or article name
+- **Domain** — The website hosting the information
+- **URL** — Click to visit the original source
+- **Relevance snippet** — Preview of the relevant content used
+
+**Always verify critical information** by clicking through to sources. Check publication dates for time-sensitive topics and consider whether sources are authoritative (news outlet, official docs, academic paper) vs. informal (blog, forum post).
+
+## Tips for Better Results
+
+**Be specific** — "What are the latest LLM releases in November 2024?" gets far better results than "Tell me about AI".
+
+**Include time context** — Add "recent", "latest", "current", or specific dates to get timely results.
+
+**Ask for comparisons** — "Compare X and Y" or "What are the pros and cons of Z" triggers useful multi-source searches.
+
+**Review the citations** — Always expand the grounding card to see what sources were consulted and judge their quality.
+
+**Use follow-ups** — Chain questions to go from broad overview to specific details.
+
+## Privacy
+
+
+ Web searches may be logged by the search provider you've configured. Avoid searching for
+ sensitive or personally identifying information.
+
+
+Search queries are sent to your configured search provider. Source websites may also track visits when you click through to citations. Review the privacy policy of your chosen search provider for details.
+
+## Limitations
+
+- **Paywalled content** — Cannot access subscription-only content (e.g., academic journals, news sites with paywalls)
+- **Very recent events** — Slight indexing delay means very recent information (hours old) may not appear
+- **Geo-restricted content** — Some sources may be regionally limited
+- **Added latency** — Web search adds a few seconds to response time
+- **Creative and personal tasks** — Web search isn't helpful for purely creative writing or personal advice — it's designed for factual questions
+
+
+ Web search requires either a search plugin or MCP server to be configured. Some search providers
+ require their own API key or subscription.
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/agent/web-search.zh-CN.mdx b/docs/usage/agent/web-search.zh-CN.mdx
new file mode 100644
index 0000000000..0f02e66265
--- /dev/null
+++ b/docs/usage/agent/web-search.zh-CN.mdx
@@ -0,0 +1,150 @@
+---
+title: 网络搜索
+description: 助理搜索互联网获取实时信息——附带来源引用和搜索依据。
+tags:
+ - LobeHub
+ - 网络搜索
+ - 实时信息
+ - 引用来源
+ - 搜索依据
+---
+
+# 网络搜索
+
+LobeHub 的网络搜索集成让助理能够访问互联网上的实时信息 —— 新闻、价格、文档和事实,突破训练数据截止日期的限制。开启网络搜索后,助理会获取最新回答并引用所使用的来源。
+
+## 网络搜索能做什么
+
+开启网络搜索后,助理可以:
+
+- 访问实时信息 —— 当前新闻、价格和时事
+- 对照最新来源核实信息
+- 引用参考的网页来源
+- 同时从多个来源研究某个主题
+- 回答训练数据之外的近期事件问题
+
+## 工作原理
+
+当你提出需要实时信息的问题时:
+
+1. AI 将你的问题转化为优化后的搜索词
+2. 在互联网上执行搜索
+3. 检索并分析相关来源
+4. 将发现综合为回答
+5. 在回答中附上来源引用
+
+当 AI 判断网络搜索有帮助时会自动触发,你也可以明确要求搜索。
+
+## 搜索依据显示
+
+使用网络搜索时,AI 回复上方会出现一个可折叠的**搜索依据**卡片,显示:
+
+- **来源数量** — 参考了多少个网页来源
+- **网站图标预览** — 来源网站的图标
+- **可展开的搜索词** — AI 实际使用的搜索词(点击展开查看)
+- **引用来源** — 来源标题、域名和可点击的 URL
+
+展开依据卡片,可以查看信息的确切来源,并自行评估来源的可信度。
+
+## 启用网络搜索
+
+网络搜索默认未开启,需要配置插件或 MCP 才能使用。
+
+**通过技能** — 从市场安装网络搜索技能(设置 → 技能)。可选包括通用网络搜索、新闻搜索和学术搜索等。部分需要搜索提供商的 API Key。
+
+**通过 MCP 服务器** — 在 MCP 设置中连接搜索类 MCP 服务器(Brave Search、Google Search、DuckDuckGo 等)。控制更灵活,支持自定义搜索实现。
+
+**按助理配置** — 在助理设置 → 技能 中为该助理单独启用网络搜索,并选择搜索提供商。
+
+## 使用网络搜索
+
+### 自动搜索
+
+对于明显需要实时数据的问题,网络搜索会自动触发:
+
+```
+"比特币现在的价格是多少?"
+"2024 年世界杯谁赢了?"
+"AI 领域最新进展是什么?"
+```
+
+### 明确搜索请求
+
+你也可以主动要求网络搜索:
+
+```
+"搜索 iPhone 15 的最新评测"
+"查一下气候变化的最新研究"
+"查找加州当前的房贷利率"
+```
+
+### 追问深挖
+
+每次搜索都建立在对话上下文之上。通过链式提问不断深入:
+
+```
+"2024 年最流行的编程语言有哪些?"
+→ "搜索 Python 开发者的就业市场趋势"
+→ "查找欧洲高级 Python 工程师的薪资数据"
+```
+
+## 使用场景
+
+**研究与资讯** — 获取新闻、市场、金融和学术领域的最新信息。"\[主题] 最新进展"、"\[话题] 近期论文"、"X 的当前股价"。
+
+**技术信息** — 访问最新文档、API 变更、包发布和 Bug 修复讨论。对于迭代快速的框架尤其有用,因为训练数据可能已经过时。"React 19 有什么新特性?"、"查找 \[具体错误] 的解决方案"。
+
+**产品研究** — 比较当前价格、查找最新评测、发现替代方案。"比较最新 MacBook 型号"、"200 美元以内降噪耳机评测"。
+
+**出行规划** — 获取旅游、活动和本地推荐的实时数据。"现在奥斯汀最好的餐厅"、"巴黎当前的博物馆展览"、"2025 年科技大会"。
+
+## 理解引用来源
+
+每次网络搜索的回复都会包含引用信息,建议查看:
+
+- **来源标题** — 页面或文章名称
+- **域名** — 托管信息的网站
+- **URL** — 点击访问原始来源
+- **相关摘要** — 所用内容的预览
+
+**重要信息务必核实**:点击来源链接确认可信度。对时效性强的内容,检查发布日期;判断来源类型(新闻媒体、官方文档、学术论文 vs 博客、论坛帖子)。
+
+## 获得更好搜索结果的技巧
+
+**具体表述** — "2024 年 11 月有哪些最新 LLM 发布?" 比 "告诉我关于 AI 的事" 效果好得多。
+
+**加入时间上下文** — 添加 "最近"、"最新"、"当前" 或具体日期,以获取及时的结果。
+
+**要求比较** — "比较 X 和 Y" 或 "Z 的优缺点是什么" 往往能触发有价值的多源搜索。
+
+**查看引用来源** — 始终展开搜索依据卡片,查看参考了哪些来源并判断其质量。
+
+**追问深挖** — 通过链式提问从宏观概述到具体细节逐步深入。
+
+## 隐私提示
+
+
+ 网络搜索可能会被你配置的搜索提供商记录日志。请避免搜索敏感信息或涉及个人隐私的内容。
+
+
+搜索词会发送给你配置的搜索提供商。当你点击引用来源时,目标网站也可能追踪你的访问。具体隐私处理方式请参阅所选搜索提供商的隐私政策。
+
+## 功能限制
+
+- **付费墙内容** — 无法访问订阅制内容(如部分学术期刊、付费新闻网站)
+- **极近期事件** — 非常新的信息(数小时内)可能尚未被索引
+- **地区限制内容** — 部分来源可能受地区访问限制
+- **响应延迟增加** — 网络搜索会为响应增加几秒钟的延迟
+- **创意与个人任务** — 纯创意写作或个人建议类问题不适合网络搜索 —— 它适用于有事实依据的问题
+
+
+ 网络搜索需要配置搜索插件或 MCP 服务器才能使用。部分搜索提供商需要自行申请 API Key 或订阅。
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/community/agent-market.mdx b/docs/usage/community/agent-market.mdx
index 09783f5b8c..38d0b2be29 100644
--- a/docs/usage/community/agent-market.mdx
+++ b/docs/usage/community/agent-market.mdx
@@ -1,44 +1,81 @@
---
-title: Assistant Marketplace
+title: Agent Marketplace
description: >-
- LobeHub's Assistant Marketplace is a vibrant and innovative community that
- brings together a wide range of thoughtfully designed assistants to enhance
- productivity in work and learning environments. You're welcome to submit your
- own assistant creations and help build a collection of useful, creative, and
- cutting-edge tools.
+ Discover, install, and publish AI Agents built by the LobeHub community —
+ ready for work in one click.
tags:
- LobeHub
- - LobeHub
- - Assistant Marketplace
- - Innovation Community
- - Collaborative Space
- - Assistant Creations
- - Automated Internationalization
- - Multilingual Versions
+ - Agent Marketplace
+ - Community
+ - Agent Discovery
+ - Publish Agent
+ - Fork Agent
---
-# Assistant Marketplace
+# Agent Marketplace
-The LobeHub Assistant Marketplace features high-quality AI assistants created by developers and enthusiasts from around the world. Whether you're looking for a coding assistant, writing advisor, language tutor, or a consultant in a specialized field, you'll find the right tool here. These assistants are carefully crafted by community members and tested in real-world scenarios, making them ready for immediate use in both work and study settings.
+The LobeHub Agent Marketplace brings together high-quality Agents built by creators around the world. Whether you need a coding Agent, a writing advisor, a language tutor, or a specialist in a niche domain — you'll find a ready-to-use option here. Each Agent is crafted by community members and verified through real-world use.
-The marketplace is more than just a resource hub—it's an open platform for creativity. You can publish your own custom assistants and share your ideas and expertise with users across the globe.
+The Marketplace is also an open platform. Publish your own Agents, share your expertise, and contribute to a growing library that gets better with every creator who joins.
-## Explore the Assistant Marketplace
+## Explore the Marketplace
-To access the Assistant Marketplace, click on "Community" → "Assistants" in the left sidebar.
+Click **Community → Agents** in the left sidebar to open the Agent Marketplace.

-Assistants are organized by category, making it easy to quickly find the type of assistant you need.
+Agents are organized by category, so you can find exactly what you need without scrolling through everything.
-## Installing and Using Assistants
+## Agent Categories
-View and install assistants
+| Category | Examples | Use Cases |
+| ---------------- | ------------------------------------ | ---------------------------------- |
+| **Development** | Code reviewers, debuggers | Software engineering, code quality |
+| **Writing** | Copywriters, editors, proofreaders | Content creation, polishing |
+| **Analysis** | Data analysts, researchers | Research, insights, reports |
+| **Education** | Tutors, explainers | Learning new topics, teaching |
+| **Creative** | Artists, brainstormers, storytellers | Design, ideation, fiction |
+| **Business** | Consultants, strategists | Business operations, planning |
+| **Productivity** | Task managers, summarizers | Workflow optimization |
+| **Language** | Translators, language tutors | Communication, language learning |
-Click on any assistant card to open its detail page. Here you'll find an overview, settings, capabilities, and version history. Once you've confirmed the assistant meets your needs, click "Add Assistant & Start Chatting" to begin.
+## Install and Use an Agent
-
+Click any Agent card to open its detail page. Review the overview, capabilities, model configuration, and version history. When you're ready, click **Add Agent & Chat** to add it and start immediately.
-### Using Assistants
+
-After selecting "Add Assistant & Start Chatting," you can immediately begin interacting with the assistant to test its features and performance. You can customize system prompts, choose different models, configure plugins, and more. You also have the option to create a copy of any marketplace assistant, allowing you to personalize it while retaining its original capabilities.
+Before adding, check:
+
+- **Description and capabilities** — What the Agent specializes in
+- **Model and Skills** — Which AI model and plugins it uses
+- **Install count** — How many users have already added it
+- **Version history** — How the Agent has evolved
+
+### Customize After Installing
+
+Once added, the Agent is yours to adjust. Modify the system prompt, swap the model, add or remove Skills, and configure anything to fit your workflow. Changes apply only to your copy — the original stays unchanged.
+
+You can also **fork** any Marketplace Agent to create your own customized version from scratch. The fork retains attribution to the original creator.
+
+## Publish Your Own Agents
+
+Built an Agent you're proud of? Share it with the community.
+
+Before publishing, make sure your Agent has:
+
+- A clear, descriptive title
+- A concise description (2–3 sentences) stating what it does, its expertise, and who it's for
+- An appropriate avatar and 3–5 relevant tags
+- A thoroughly tested system prompt
+- An opening message to guide first-time users (optional but recommended)
+
+From your Agent's profile page, click **Publish to Marketplace**, review the details, add version notes, and submit.
+
+See [Publish an Agent](/docs/usage/community/publish-agent) for the full workflow.
+
+
+
+
+
+
diff --git a/docs/usage/community/agent-market.zh-CN.mdx b/docs/usage/community/agent-market.zh-CN.mdx
index 0e854b8e48..6d82b7410c 100644
--- a/docs/usage/community/agent-market.zh-CN.mdx
+++ b/docs/usage/community/agent-market.zh-CN.mdx
@@ -1,41 +1,79 @@
---
-title: 助手市场
-description: >-
- LobeHub
- 助手市场是一个充满活力和创新的社区,汇聚了众多精心设计的助手,为工作场景和学习提供便利。欢迎提交你的助手作品,共同创造更多有趣、实用且具有创新性的助手。
+title: 助理市场
+description: 发现、安装并发布社区助理——一键即用,随时可以分享你自己的创作。
tags:
- LobeHub
- - LobeHub
- - 助手市场
- - 创新社区
- - 协作空间
- - 助手作品
- - 自动化国际化
- - 多语言版本
+ - 助理市场
+ - 社区
+ - 助理发现
+ - 发布助理
+ - Fork 助理
---
-# 助手市场
+# 助理市场
-LobeHub 的助理市场汇聚了来自全球创作者的优质 AI 助理。无论你需要编程助理、写作顾问、语言教师,还是专业领域的咨询专家,都能在这里找到合适的助理。这些助理由社区成员精心打造,经过实际使用验证,能直接投入工作和学习场景。
+LobeHub 助理市场汇聚了来自全球创作者的优质助理。无论你需要编程助理、写作顾问、语言教师,还是某个细分领域的专业顾问 —— 这里都能找到经过验证、开箱即用的选择。每个助理由社区成员精心打造,并经过真实场景的使用验证。
-助理市场不只是获取资源的地方,更是一个开放的创作平台。你可以发布自己定制的助理,与全球用户分享你的创意和专业知识。
+助理市场同时也是一个开放的创作平台。发布你自己的助理,分享专业知识,共同壮大这个随每位创作者加入而持续成长的生态。
## 浏览助理市场
-点击左侧边栏的「社区」→「助理」,进入助理市场主页。
+点击左侧边栏的**社区 → 助理**,进入助理市场。
-
+
-助理市场按类别组织,方便你快速找到所需的助理类型。
+助理按类别组织,你可以精准找到所需类型,无需翻阅全部内容。
+
+## 助理分类
+
+| 分类 | 示例 | 使用场景 |
+| ------ | ------------- | ---------- |
+| **开发** | 代码审查员、调试助理 | 软件工程、代码质量 |
+| **写作** | 文案策划、编辑、校对 | 内容创作、文字润色 |
+| **分析** | 数据分析师、研究员 | 研究调研、洞见报告 |
+| **教育** | 导师、知识解说员 | 学习新领域、教学辅助 |
+| **创意** | 艺术家、头脑风暴、故事创作 | 设计、创意发散、写作 |
+| **商业** | 顾问、战略分析师 | 商业运营、规划决策 |
+| **效率** | 任务管理、摘要整理 | 工作流优化 |
+| **语言** | 翻译、语言教师 | 沟通协作、语言学习 |
## 安装和使用助理
-查看和安装助理
-
-点击任意助理卡片,进入详情页面。这里展示了助理的概览、设定、能力和版本历史等信息。确认助理符合你的需求时,可以在此页面「添加助理并会话」。
+点击任意助理卡片,进入详情页面。查看概览、能力说明、模型配置和版本历史。确认符合需求后,点击**添加助理并会话**,立即开始。

-### 使用助理
+添加前可以查看的信息:
-选择「添加助理并会话」后,你可以立即开始与助理对话,测试助理的功能和效果。根据需要调整助理的系统提示词、模型选择、插件配置等。你也可以基于市场助理创建副本,在保留原有能力的基础上进行个性化修改。
+- **描述和能力** — 该助理的专业领域
+- **模型和技能** — 使用的 AI 模型和插件配置
+- **安装数量** — 来自其他用户的使用量参考
+- **版本历史** — 助理的演进过程
+
+### 安装后自定义
+
+添加助理后,你可以按需调整。修改系统提示词、切换模型、添加或移除技能 —— 所有改动只影响你自己的副本,原版保持不变。
+
+你也可以 **Fork** 任意社区助理,从经过验证的基础出发创建自己的定制版本。Fork 版本会保留对原创者的归因说明。
+
+## 发布你自己的助理
+
+打造了一个满意的助理?把它分享给社区。
+
+发布前,请确保你的助理具备:
+
+- 清晰的标题
+- 简明描述(2–3 句话),说明功能、专长和目标用户
+- 合适的头像以及 3–5 个相关标签
+- 经过充分测试的系统提示词
+- 引导用户的开场白(可选,但推荐添加)
+
+在助理档案页面点击**发布到市场**,确认信息、填写版本说明后提交即可。
+
+完整流程请参见[发布助理](/zh/docs/usage/community/publish-agent)。
+
+
+
+
+
+
diff --git a/docs/usage/community/become-a-creator.mdx b/docs/usage/community/become-a-creator.mdx
index c67dfb9e80..24c11100c4 100644
--- a/docs/usage/community/become-a-creator.mdx
+++ b/docs/usage/community/become-a-creator.mdx
@@ -1,10 +1,8 @@
---
title: Community Creators
description: >-
- The LobeHub Community is a vibrant and innovative space that brings together a
- wide range of thoughtfully designed assistants to enhance productivity in work
- and learning scenarios. You're welcome to submit your own assistant creations
- and collaborate to build more interesting, practical, and creative tools.
+ Join the LobeHub Community as a creator — publish Agents, share workflows, and
+ build tools that help thousands of users work smarter.
tags:
- LobeHub
- Community Creators
@@ -12,16 +10,40 @@ tags:
- Collaborative Space
---
-# LobeHub Community Creators
+# Community Creators
-The LobeHub Community is a vibrant and innovative space that brings together a wide range of thoughtfully designed assistants to enhance productivity in work and learning scenarios. You're welcome to submit your own assistant creations and collaborate to build more interesting, practical, and creative tools.
+The LobeHub Community brings together creators who design, share, and refine Agents for real-world use. Whether it's a productivity tool, a teaching assistant, or a creative collaborator, your work can reach thousands of users.
-## Join the Community
+## Why Become a Creator
-Click on the sidebar: **Community** → **Assistants** → then click **Become a Creator** in the top right corner.
+| | |
+| ------------- | ------------------------------------------------------------------------ |
+| **Reach** | Your Agent is discoverable in the Agent Marketplace by all LobeHub users |
+| **Profile** | Get a public creator page showcasing everything you've published |
+| **Feedback** | Collect ratings and usage data to improve your work |
+| **Community** | Connect with other builders, exchange ideas, and collaborate |
+
+## How to Join
+
+1. Open the sidebar and navigate to **Community** → **Agents**
+2. Click **Become a Creator** in the top-right corner
+3. Fill in your creator profile — name, avatar, and a short bio

-## Personal Profile
+Once submitted, your creator profile is live. You can start publishing immediately.
-Your personal profile will showcase your creator information and all the content you’ve published.
+## What You Can Publish
+
+- **Agents** — Custom assistants with specific prompts, skills, and knowledge bases
+- **MCP/Skills** — Reusable skill integrations for the community to install
+
+## Your Creator Profile
+
+Your profile page displays your creator information and all published content. Users can browse your work, view ratings, and install your Agents directly.
+
+
+
+
+
+
diff --git a/docs/usage/community/become-a-creator.zh-CN.mdx b/docs/usage/community/become-a-creator.zh-CN.mdx
index 40abc9f5ec..a2625dce7c 100644
--- a/docs/usage/community/become-a-creator.zh-CN.mdx
+++ b/docs/usage/community/become-a-creator.zh-CN.mdx
@@ -1,8 +1,7 @@
---
title: 社区创作者
description: >-
- LobeHub
- 社区是一个充满活力和创新的社区,汇聚了众多精心设计的助手,为工作场景和学习提供便利。欢迎提交你的助手作品,共同创造更多有趣、实用且具有创新性的助手
+ 加入 LobeHub 社区成为创作者——发布助理、分享工作流,打造帮助千万用户提效的工具。
tags:
- LobeHub
- 社区创作者
@@ -10,16 +9,40 @@ tags:
- 协作空间
---
-# LobeHub 社区创作者
+# 社区创作者
-LobeHub 社区是一个充满活力和创新的社区,汇聚了众多精心设计的助手,为工作场景和学习提供便利。欢迎提交你的助手作品,共同创造更多有趣、实用且具有创新性的助手。
+LobeHub 社区汇聚了一批设计、分享和打磨助理的创作者。无论是效率工具、教学助手还是创意搭档,你的作品都能触达千万用户。
-## 加入
+## 为什么要成为创作者
-点击左侧边栏的「社区」→「助理」→右上角「成为创作者」。
+| | |
+| ------ | -------------------------- |
+| **曝光** | 你的助理可在助理市场被所有 LobeHub 用户发现 |
+| **主页** | 拥有公开的创作者页面,展示你发布的全部内容 |
+| **反馈** | 获取评分和使用数据,持续改进作品 |
+| **社区** | 结识其他创作者,交流想法,展开协作 |
+
+## 如何加入
+
+1. 打开侧边栏,进入「社区」→「助理」
+2. 点击右上角的「成为创作者」
+3. 填写创作者资料 —— 昵称、头像和简短介绍

-## 个人主页
+提交后,创作者资料即刻生效,可以立即开始发布。
-你的个人主页会展示你的创作者信息和已发布的内容。
+## 你可以发布什么
+
+- **助理** — 包含特定提示词、技能和知识库的自定义助手
+- **MCP / 技能** — 可复用的技能集成,供社区用户安装使用
+
+## 你的创作者主页
+
+创作者主页展示你的个人信息及所有已发布内容。用户可以浏览你的作品、查看评分,并直接安装你的助理。
+
+
+
+
+
+
diff --git a/docs/usage/community/custom-mcp.mdx b/docs/usage/community/custom-mcp.mdx
new file mode 100644
index 0000000000..05d91d66ec
--- /dev/null
+++ b/docs/usage/community/custom-mcp.mdx
@@ -0,0 +1,144 @@
+---
+title: Custom MCP
+description: >-
+ Connect your own MCP servers to LobeHub — add private APIs, internal tools,
+ and custom integrations beyond what the MCP Marketplace offers.
+tags:
+ - Custom MCP
+ - LobeHub
+ - MCP
+ - Model Context Protocol
+ - Skills
+ - Custom Integration
+---
+
+# Custom MCP
+
+The MCP Marketplace offers thousands of ready-to-use integrations, but sometimes you need to connect a private API, an internal company tool, or a custom MCP server you've built yourself. **Custom MCP** lets you add any MCP-compatible server directly to LobeHub without going through the marketplace.
+
+## Where to Add a Custom MCP
+
+You can open the "Add custom skill" dialog from several places:
+
+- **Settings → Skills** — click **Skill Store**, then switch to the **Custom** tab and click **Add custom skill**
+- **Agent settings** — open any agent's settings, go to **Skills**, and click **Add custom skill**
+- **Chat input** — click the **Tools** button above the input area, then **Add custom skill**
+
+All three paths open the same configuration dialog.
+
+## Quick Import from JSON
+
+The fastest way to add a custom MCP is to paste a JSON config from the MCP server's documentation.
+
+
+ ### Open the import panel
+
+ In the "Add custom skill" dialog, click **Import JSON config** at the top of the form. A text area will appear.
+
+ ### Paste your config
+
+ Paste either a full `mcpServers` block or a single-server config:
+
+ ```json
+ {
+ "mcpServers": {
+ "my-server": {
+ "command": "npx",
+ "args": ["-y", "my-mcp-package"],
+ "type": "stdio"
+ }
+ }
+ }
+ ```
+
+ Or for an HTTP server:
+
+ ```json
+ {
+ "mcpServers": {
+ "my-api": {
+ "url": "https://mcp.example.com/sse",
+ "type": "http"
+ }
+ }
+ }
+ ```
+
+ ### Click Import
+
+ LobeHub automatically fills in the identifier, connection type, URL or command, and any other detected parameters. Review the auto-filled fields, adjust if needed, then proceed to test the connection.
+
+
+Most MCP server documentation provides a ready-to-copy JSON config in this format. Quick Import is the recommended starting point.
+
+## Manual Configuration
+
+If you prefer to enter settings by hand, choose a connection type and fill in the fields directly.
+
+### Streamable HTTP
+
+Use this for remote MCP servers — cloud-hosted APIs, SaaS tools, or any server accessible via HTTPS. Available on both web and desktop.
+
+| Field | Description |
+| ---------------- | ------------------------------------------------------------------------- |
+| **MCP name** | A unique identifier for this skill (letters, numbers, hyphens only) |
+| **Endpoint URL** | The full HTTPS URL of the MCP server (e.g. `https://mcp.example.com/sse`) |
+| **Auth type** | None, or API Key (sent as a Bearer token) |
+| **API Key** | Required when Auth type is set to API Key |
+| **HTTP Headers** | Optional additional headers (expand Advanced section) |
+| **Description** | Optional note about what this MCP does |
+
+### STDIO
+
+Use this for local MCP servers that run as a process on your machine — command-line tools, scripts, or locally installed packages. **Available on the LobeHub desktop app only; not supported on the web.**
+
+| Field | Description |
+| ------------------------- | ------------------------------------------------------------------------------- |
+| **MCP name** | A unique identifier for this skill |
+| **Command** | The executable to run (e.g. `npx`, `python`, `uv`) |
+| **Arguments** | Arguments passed to the command (e.g. `-y @modelcontextprotocol/server-github`) |
+| **Environment variables** | Key-value pairs injected into the process environment (API keys, paths, etc.) |
+| **Description** | Optional note about what this MCP does |
+
+## Testing the Connection
+
+Before saving, click **Test connection** to verify that LobeHub can reach your MCP server and fetch its tool list. If the test succeeds, you'll see the available tools listed in the preview panel on the right.
+
+If the test fails:
+
+- **HTTP**: Check that the URL is correct and reachable, and that your API key or headers are set correctly.
+- **STDIO**: Confirm the command is installed and available in your system PATH. Run `which npx` (or the relevant command) in a terminal to check.
+
+## Saving and Managing
+
+Click **Install** to add the custom MCP as a skill. It will appear under **Custom MCPs** in **Settings → Skills**.
+
+To edit a custom MCP later:
+
+1. Go to **Settings → Skills**
+2. Find the custom skill under **Custom MCPs**
+3. Click **Configure** to reopen the full configuration dialog
+4. Make your changes, test the connection, and click **Update**
+
+To remove it, open the skill's menu and select **Uninstall**.
+
+## Enabling Custom MCP for an Agent
+
+Installing a custom MCP makes it available in your workspace, but each agent needs to be configured to use it:
+
+1. Open the agent's settings
+2. Go to **Skills**
+3. Find the custom MCP and toggle it on
+4. The agent will now have access to all tools provided by that MCP server
+
+Skills are per-agent — enabling a skill for one agent doesn't automatically enable it for others.
+
+Only install MCP servers from sources you trust. A malicious MCP server could perform unintended actions on your behalf.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/community/custom-mcp.zh-CN.mdx b/docs/usage/community/custom-mcp.zh-CN.mdx
new file mode 100644
index 0000000000..b338ea034f
--- /dev/null
+++ b/docs/usage/community/custom-mcp.zh-CN.mdx
@@ -0,0 +1,142 @@
+---
+title: 自定义 MCP
+description: 将你自己的 MCP 服务器接入 LobeHub——添加私有 API、内部工具和自定义集成,超越 MCP 市场的现有选项。
+tags:
+ - 自定义 MCP
+ - LobeHub
+ - MCP
+ - 模型上下文协议
+ - 技能
+ - 自定义集成
+---
+
+# 自定义 MCP
+
+MCP 市场提供了数以千计的现成集成,但有时你需要接入私有 API、公司内部工具,或者自己搭建的 MCP 服务器。**自定义 MCP** 让你无需经过市场,直接将任何兼容 MCP 协议的服务器添加到 LobeHub。
+
+## 在哪里添加自定义 MCP
+
+你可以从以下几个入口打开「添加自定义技能」对话框:
+
+- **设置 → 技能** — 点击**技能商店**,切换到**自定义**标签页,点击**添加自定义技能**
+- **助理设置** — 打开任意助理的设置,进入**技能**,点击**添加自定义技能**
+- **对话输入框** — 点击输入框上方的**工具**按钮,选择**添加自定义技能**
+
+三个入口都会打开同一个配置对话框。
+
+## 快速导入 JSON 配置
+
+添加自定义 MCP 最快的方式是直接粘贴 MCP 服务器文档中提供的 JSON 配置。
+
+
+ ### 打开导入面板
+
+ 在「添加自定义技能」对话框中,点击表单顶部的**导入 JSON 配置**,此时会出现一个文本输入框。
+
+ ### 粘贴配置
+
+ 粘贴完整的 `mcpServers` 配置块或单个服务器配置:
+
+ ```json
+ {
+ "mcpServers": {
+ "my-server": {
+ "command": "npx",
+ "args": ["-y", "my-mcp-package"],
+ "type": "stdio"
+ }
+ }
+ }
+ ```
+
+ 或者 HTTP 服务器配置:
+
+ ```json
+ {
+ "mcpServers": {
+ "my-api": {
+ "url": "https://mcp.example.com/sse",
+ "type": "http"
+ }
+ }
+ }
+ ```
+
+ ### 点击导入
+
+ LobeHub 会自动填入标识符、连接类型、URL 或命令等参数。确认自动填入的内容无误后,即可进行连接测试。
+
+
+大多数 MCP 服务器的文档都会提供这种格式的 JSON 配置,可以直接复制使用。推荐优先使用快速导入功能。
+
+## 手动配置
+
+如果你更倾向于手动填写,可以选择连接类型后逐项填入参数。
+
+### Streamable HTTP
+
+适用于远程 MCP 服务器 —— 云端托管的 API、SaaS 工具,或任何可通过 HTTPS 访问的服务。Web 端和桌面端均可使用。
+
+| 字段 | 说明 |
+| ---------------- | ----------------------------------------------------- |
+| **MCP 名称** | 该技能的唯一标识符(仅限字母、数字、连字符) |
+| **Endpoint URL** | MCP 服务器的完整 HTTPS 地址(例如 `https://mcp.example.com/sse`) |
+| **认证类型** | 无认证,或 API Key(以 Bearer Token 方式传递) |
+| **API Key** | 选择 API Key 认证时必填 |
+| **HTTP 请求头** | 可选的额外请求头(展开「高级」选项设置) |
+| **描述** | 可选,备注该 MCP 的用途 |
+
+### STDIO
+
+适用于在本地作为进程运行的 MCP 服务器 —— 命令行工具、脚本或本地安装的包。**仅支持 LobeHub 桌面客户端,网页版不支持此连接类型。**
+
+| 字段 | 说明 |
+| ---------- | ----------------------------------------------------- |
+| **MCP 名称** | 该技能的唯一标识符 |
+| **命令** | 要运行的可执行程序(例如 `npx`、`python`、`uv`) |
+| **参数** | 传递给命令的参数(例如 `-y @modelcontextprotocol/server-github`) |
+| **环境变量** | 注入到进程环境中的键值对(API Key、路径等) |
+| **描述** | 可选,备注该 MCP 的用途 |
+
+## 测试连接
+
+保存前,点击**测试连接**以验证 LobeHub 能否正常连接到你的 MCP 服务器并获取工具列表。测试成功后,右侧预览面板将显示可用的工具列表。
+
+如果测试失败:
+
+- **HTTP 类型**:检查 URL 是否正确且可访问,以及 API Key 或请求头是否配置正确。
+- **STDIO 类型**:确认命令已安装并存在于系统 PATH 中,可在终端运行 `which npx`(或相应命令)进行验证。
+
+## 保存与管理
+
+点击**安装**将自定义 MCP 作为技能添加到工作区,它将出现在**设置 → 技能**的**自定义 MCP** 列表中。
+
+如需后续编辑:
+
+1. 进入**设置 → 技能**
+2. 在**自定义 MCP** 下找到该技能
+3. 点击**配置**重新打开完整配置对话框
+4. 修改参数,测试连接,点击**更新**
+
+如需删除,打开该技能的菜单并选择**卸载**。
+
+## 为助理启用自定义 MCP
+
+安装自定义 MCP 后,它在整个工作区内可用,但每个助理需要单独配置才能使用:
+
+1. 打开助理设置
+2. 进入**技能**
+3. 找到该自定义 MCP 并开启
+4. 该助理即可使用 MCP 服务器提供的所有工具
+
+技能的启用是按助理维度的 —— 为某个助理开启技能,不会自动为其他助理开启。
+
+请仅安装来源可信的 MCP 服务器。恶意的 MCP 服务器可能会以你的身份执行意外操作。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/community/custom-plugin.mdx b/docs/usage/community/custom-plugin.mdx
deleted file mode 100644
index 08f0377362..0000000000
--- a/docs/usage/community/custom-plugin.mdx
+++ /dev/null
@@ -1,37 +0,0 @@
----
-title: Custom Plugins
-description: >-
- Learn how to install custom plugins and develop LobeHub plugins to extend the
- capabilities of your AI assistant.
-tags:
- - Custom Plugins
- - LobeHub
- - Plugin Installation
- - Plugin Development
- - AI Assistant
----
-
-# Custom Plugins
-
-## Installing Custom Plugins
-
-If you'd like to install a plugin that isn't available in the LobeHub Plugin Store—such as one you've developed yourself—you can do so by clicking on "Custom Plugin":
-
-
-
-LobeHub's plugin system is also compatible with ChatGPT plugins, allowing you to install them with a single click.
-
-To try installing a custom plugin manually, you can use the following links:
-
-- `Custom Lobe Plugin` Mock Credit Card: [https://lobe-plugin-mock-credit-card.vercel.app/manifest.json](https://lobe-plugin-mock-credit-card.vercel.app/manifest.json)
-- `ChatGPT Plugin` Access Links: [https://www.accesslinks.ai/.well-known/ai-plugin.json](https://www.accesslinks.ai/.well-known/ai-plugin.json)
-
-
-
-
-
-
-
-## Developing Custom Plugins
-
-If you're interested in developing your own LobeHub plugin, check out the [Plugin Development Guide](/en/docs/usage/plugins/development) to push the boundaries of what's possible with your AI assistant!
diff --git a/docs/usage/community/custom-plugin.zh-CN.mdx b/docs/usage/community/custom-plugin.zh-CN.mdx
deleted file mode 100644
index 6ca41bdbed..0000000000
--- a/docs/usage/community/custom-plugin.zh-CN.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: 自定义插件
-description: 学习如何安装自定义插件和开发 LobeHub 插件,扩展你的 AI 智能助手的功能。
-tags:
- - 自定义插件
- - LobeHub
- - 插件安装
- - 插件开发
- - AI 智能助手
----
-
-# 自定义插件
-
-## 安装自定义插件
-
-如果你希望安装一个不在 LobeHub 插件商店中的插件,例如自己开发的 LobeHub,你可以点击「自定义插件」进行安装:
-
-
-
-此外,LobeHub 的插件机制兼容了 ChatGPT 的插件,因此你可以一键安装相应的 ChatGPT 插件。
-
-如果你希望尝试自行安装自定义插件,你可以使用以下链接来尝试:
-
-- `自定义 Lobe 插件` Mock Credit Card:[https://lobe-plugin-mock-credit-card.vercel.app/manifest.json](https://lobe-plugin-mock-credit-card.vercel.app/manifest.json)
-- `ChatGPT 插件` Access Links:[https://www.accesslinks.ai/.well-known/ai-plugin.json](https://www.accesslinks.ai/.well-known/ai-plugin.json)
-
-
-
-
-
-
-
-## 开发自定义插件
-
-如果你希望自行开发一个 LobeHub 的插件,欢迎查阅 [插件开发指南](/zh/docs/usage/plugins/development) 以扩展你的 AI 智能助手的可能性边界!
diff --git a/docs/usage/community/mcp-market.mdx b/docs/usage/community/mcp-market.mdx
index a1b4f07fcd..b0193b75bc 100644
--- a/docs/usage/community/mcp-market.mdx
+++ b/docs/usage/community/mcp-market.mdx
@@ -1,23 +1,34 @@
---
title: MCP Marketplace
description: >-
- The MCP Marketplace is LobeHub's official hub, featuring a wide range of
- meticulously crafted MCPs designed to enhance productivity in both work and
- learning environments. You're welcome to submit your own MCP creations and
- help build a more innovative, practical, and engaging ecosystem.
+ Connect Agents to 10,000+ tools — databases, APIs, file systems, and more. One
+ protocol, endless integrations.
tags:
- LobeHub
- - MCP Marketplace
- - Innovation Community
- - Collaborative Space
- - MCP Creations
- - Automated Internationalization
- - Multilingual Support
+ - MCP
+ - Model Context Protocol
+ - Skills
+ - Integrations
---
# MCP Marketplace
-The MCP Marketplace by LobeHub brings together high-quality MCPs from creators around the world.
+The **Model Context Protocol (MCP)** is an open standard that connects Agents to external tools, data sources, and services. Think of it as a universal adapter — your Agents can interact with databases, APIs, file systems, development tools, business applications, and virtually any external service.
+
+The LobeHub MCP Marketplace brings together high-quality MCPs from creators worldwide, with 10,000+ tools ready to extend your Agents.
+
+## What is MCP?
+
+Traditional Agents are limited — they can only chat, and they can't interact with your tools or access real-time data. MCP breaks down these barriers:
+
+| Before MCP | With MCP |
+| ---------------------------------- | -------------------------------------- |
+| Isolated chatbots | Connected teammates |
+| Static knowledge only | Real-time data access |
+| Manual copy/paste between tools | Direct action on external systems |
+| Each tool needs custom integration | One protocol for thousands of services |
+
+MCP transforms Agents from isolated chatbots into connected teammates that can actually do work.
## Explore the MCP Marketplace
@@ -25,8 +36,193 @@ Click on "Community" → "MCP" in the left sidebar to access the MCP Marketplace

-The assistant marketplace is organized by category, making it easy to quickly find the type of assistant you need.
+The marketplace is organized by category, making it easy to quickly find the type of MCP you need:
+
+- **Development** — GitHub, GitLab, Linear, Jira, VS Code
+- **Productivity** — Google Drive, Notion, Slack, Trello, Asana
+- **Data & Analytics** — PostgreSQL, MongoDB, Redis, Elasticsearch
+- **Cloud Services** — AWS, Google Cloud, Azure, Cloudflare
+- **File Systems** — Local files, Dropbox, OneDrive, S3
+- **Communication** — Email, SMS, Discord, Telegram
+- **Search & Knowledge** — Web search, Wikipedia, documentation sites
## Installing an MCP
Please exercise caution when using MCPs from unknown sources. LobeHub cannot guarantee the safety of all MCPs.
+
+### One-Click Installation (Desktop App)
+
+The LobeHub Desktop application provides the easiest way to install MCP plugins:
+
+1. Open the **MCP Marketplace** from the sidebar
+2. Browse or search for the plugin you need
+3. Click **Install** on your desired plugin
+4. Configure any required settings (API keys, permissions)
+5. The plugin is immediately available to all agents
+
+### Manual Installation (Self-Hosted)
+
+For self-hosted deployments, install MCP servers by configuring your connection settings.
+
+**Example: STDIO server (local process)**
+
+```json
+{
+ "mcpServers": {
+ "filesystem": {
+ "command": "npx",
+ "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/workspace"],
+ "type": "stdio"
+ }
+ }
+}
+```
+
+**Example: HTTP server (remote service)**
+
+```json
+{
+ "mcpServers": {
+ "github": {
+ "url": "https://mcp-server-github.example.com",
+ "type": "http",
+ "headers": {
+ "Authorization": "Bearer YOUR_GITHUB_TOKEN"
+ }
+ }
+ }
+}
+```
+
+## Connection Types
+
+MCP supports two connection methods:
+
+**STDIO (Standard Input/Output)** — The MCP server runs as a local process, communicating via stdin/stdout. Best for local tools, scripts, file system access, and desktop applications.
+
+**HTTP/HTTPS** — The MCP server runs as a web service over HTTP. Best for cloud services, remote APIs, multi-user tools, and web applications.
+
+## Popular MCP Plugins
+
+### File System Access
+
+Read, write, search, and manage files in specified directories.
+
+```bash
+npm install -g @modelcontextprotocol/server-filesystem
+```
+
+Use cases: code review, documentation search, log analysis, project file management.
+
+### GitHub Integration
+
+Interact with repositories, issues, pull requests, and GitHub workflows. Requires a GitHub personal access token.
+
+Use cases: project management, code review automation, issue triage, release management.
+
+### Database Access
+
+Query PostgreSQL, MySQL, and other databases. Analyze schemas, generate reports, explain query plans.
+
+Use cases: data analysis, schema exploration, report generation.
+
+### Web Search
+
+Real-time web search, news, and fact verification via Brave Search, Google Search, and others.
+
+Use cases: up-to-date information, research, news monitoring, competitive analysis.
+
+### Slack Integration
+
+Send messages, read conversation history, search messages, and manage notifications.
+
+Use cases: team notifications, automated reporting, incident management.
+
+## Using MCP with Agents
+
+Once installed, MCP plugins automatically expose their tools to your agents. Agents select and invoke tools as needed during conversation:
+
+```
+You: Search my project files for the authentication code
+
+Agent: I'll search your files now.
+ [Uses filesystem MCP — executes search tool]
+
+Agent: I found authentication-related code in src/auth/login.ts and
+ src/middleware/auth.ts. Here's what I found...
+```
+
+You can enable **Chain of Thought** to see exactly which MCP tools are being called and what parameters are used.
+
+### Enabling MCP for an Agent
+
+1. Open **Agent Settings**
+2. Navigate to **Skills**
+3. Select which MCP servers this Agent can access
+4. Save configuration
+
+## Security & Permissions
+
+MCP plugins operate with controlled permissions:
+
+- **Explicit approval** — Users approve tool access per agent
+- **Scoped access** — Plugins only access specified resources (e.g., a specific directory)
+- **Audit logging** — Track all tool invocations
+- **Revocable** — Disable plugins at any time
+
+Security best practices:
+
+- Only install MCP plugins from trusted sources
+- Review what access each MCP server requests before approving
+- Start with read-only access and upgrade only if needed
+- Regularly rotate API keys and tokens
+- Test new MCP servers with non-production data first
+
+## Troubleshooting
+
+**Plugin not appearing after installation**
+
+- Verify the MCP server is running (for STDIO type, check if the command is available via `which npx` or `which python`)
+- Check configuration file syntax
+- Review server logs for startup errors
+- Ensure all required dependencies are installed, then restart LobeHub
+
+**Tools not showing up in conversation**
+
+- Reconnect to the MCP server in Settings
+- Confirm the agent has the plugin enabled in its Tools & Plugins settings
+- Verify the server implements the MCP protocol correctly
+
+**Authentication / connection errors**
+
+- Verify your API key or token is correct and hasn't expired
+- Check that the authentication type matches what the server requires
+- For HTTP servers, confirm the URL is reachable and CORS is configured
+- Enable debug logging: `DEBUG_MCP=1` to see detailed MCP communication in self-hosted deployments
+
+## Environment Configuration
+
+For self-hosted deployments, configure MCP behavior with environment variables:
+
+```bash
+# Plugin timeout (milliseconds)
+MCP_TOOL_TIMEOUT=30000
+
+# Enable MCP debug logging
+DEBUG_MCP=1
+
+# MCP configuration file path
+MCP_CONFIG=/path/to/mcp-config.json
+```
+
+## Developing Custom MCP Plugins
+
+You can add any MCP-compatible server directly to LobeHub without going through the marketplace. See the [Custom MCP](/docs/usage/community/custom-mcp) guide for a step-by-step walkthrough, or the [Skill Management](/docs/usage/community/skill-management) guide for an overview of all skill types and how to manage them.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/community/mcp-market.zh-CN.mdx b/docs/usage/community/mcp-market.zh-CN.mdx
index 335d6bcf59..bb33c7c46f 100644
--- a/docs/usage/community/mcp-market.zh-CN.mdx
+++ b/docs/usage/community/mcp-market.zh-CN.mdx
@@ -1,21 +1,32 @@
---
title: MCP 市场
-description: >-
- MCP 市场是 LobeHub 的官方市场,汇聚了众多精心设计的 MCP,为工作场景和学习提供便利。欢迎提交你的 MCP
- 作品,共同创造更多有趣、实用且具有创新性的 MCP。
+description: '为助理接入 10,000+ 工具——数据库、API、文件系统等。一个协议,无限集成。'
tags:
- LobeHub
- - MCP 市场
- - 创新社区
- - 协作空间
- - MCP 作品
- - 自动化国际化
- - 多语言版本
+ - MCP
+ - 模型上下文协议
+ - 技能
+ - 连接器
---
# MCP 市场
-LobeHub 的 MCP 市场汇聚了来自全球创作者的优质 MCP。
+**模型上下文协议(Model Context Protocol,MCP)** 是一种开放标准,让助理与外部工具、数据源和服务建立无缝、安全的连接。你可以将其理解为一个通用适配器 —— 助理能够与数据库、API、文件系统、开发工具、业务应用等几乎任何外部服务交互。
+
+LobeHub 的 MCP 市场汇聚了来自全球创作者的优质 MCP,提供超过 10,000 个现成工具,随时为你的助理注入能力。
+
+## 什么是 MCP?
+
+传统助理功能有限 —— 只能聊天,无法与外部工具交互或获取实时数据。MCP 打破了这一壁垒:
+
+| 没有 MCP | 有了 MCP |
+| ----------- | ----------- |
+| 孤立的聊天机器人 | 互联的协作伙伴 |
+| 仅限静态知识 | 实时获取外部数据 |
+| 需要手动复制粘贴 | 直接操作外部系统 |
+| 每个工具都需要单独集成 | 一个协议连接数千个服务 |
+
+MCP 将 Agent 从孤立的聊天机器人转变为真正能完成工作的互联队友。
## 浏览 MCP 市场
@@ -23,8 +34,193 @@ LobeHub 的 MCP 市场汇聚了来自全球创作者的优质 MCP。

-助理市场按类别组织,方便你快速找到所需的助理类型。
+MCP 市场按类别分类,方便你快速找到所需类型:
+
+- **开发工具** — GitHub、GitLab、Linear、Jira、VS Code
+- **生产力** — Google Drive、Notion、Slack、Trello、Asana
+- **数据分析** — PostgreSQL、MongoDB、Redis、Elasticsearch
+- **云服务** — AWS、Google Cloud、Azure、Cloudflare
+- **文件系统** — 本地文件、Dropbox、OneDrive、S3
+- **通讯** — 邮件、短信、Discord、Telegram
+- **搜索与知识** — 网络搜索、Wikipedia、文档站点
## 安装 MCP
请谨慎使用来路不明的 MCP,LobeHub 无法确保所有 MCP 的安全性。
+
+### 一键安装(桌面端)
+
+LobeHub 桌面应用提供最便捷的 MCP 插件安装方式:
+
+1. 点击侧边栏打开 **MCP 市场**
+2. 浏览或搜索你需要的插件
+3. 点击 **安装**
+4. 配置所需设置(API Key、权限等)
+5. 插件立即对所有 Agent 可用
+
+### 手动安装(自托管)
+
+对于自托管部署,可通过配置连接设置来安装 MCP 服务器。
+
+**示例:STDIO 服务器(本地进程)**
+
+```json
+{
+ "mcpServers": {
+ "filesystem": {
+ "command": "npx",
+ "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/workspace"],
+ "type": "stdio"
+ }
+ }
+}
+```
+
+**示例:HTTP 服务器(远程服务)**
+
+```json
+{
+ "mcpServers": {
+ "github": {
+ "url": "https://mcp-server-github.example.com",
+ "type": "http",
+ "headers": {
+ "Authorization": "Bearer YOUR_GITHUB_TOKEN"
+ }
+ }
+ }
+}
+```
+
+## 连接类型
+
+MCP 支持两种连接方式:
+
+**STDIO(标准输入 / 输出)** — MCP 服务器作为本地进程运行,通过 stdin/stdout 通信。适合本地工具、脚本、文件系统访问和桌面应用。
+
+**HTTP/HTTPS** — MCP 服务器以 Web 服务方式运行,通过 HTTP 通信。适合云服务、远程 API、多用户工具和 Web 应用。
+
+## 热门 MCP 插件
+
+### 文件系统访问
+
+在指定目录中读写、搜索和管理文件。
+
+```bash
+npm install -g @modelcontextprotocol/server-filesystem
+```
+
+使用场景:代码审查、文档搜索、日志分析、项目文件管理。
+
+### GitHub 集成
+
+与仓库、Issue、Pull Request 和 GitHub 工作流交互。需要 GitHub 个人访问令牌。
+
+使用场景:项目管理、代码审查自动化、Issue 分类、发版管理。
+
+### 数据库访问
+
+查询 PostgreSQL、MySQL 等数据库,分析 schema、生成报告、解释查询计划。
+
+使用场景:数据分析、schema 探索、报告生成。
+
+### 网络搜索
+
+通过 Brave Search、Google Search 等实现实时网络搜索和事实核查。
+
+使用场景:获取最新信息、研究、新闻监控、竞品分析。
+
+### Slack 集成
+
+发送消息、读取对话历史、搜索消息并管理通知。
+
+使用场景:团队通知、自动化报告、事件管理。
+
+## 在 Agent 中使用 MCP
+
+安装后,MCP 插件会自动将工具暴露给你的 Agent。Agent 在对话中按需选择并调用工具:
+
+```
+你:在我的项目文件中搜索认证相关代码
+
+Agent:我来帮你搜索。
+ [使用 filesystem MCP — 执行搜索工具]
+
+Agent:我在 src/auth/login.ts 和 src/middleware/auth.ts
+ 中找到了认证相关代码,以下是详细内容...
+```
+
+你可以开启**思维链(Chain of Thought)**,查看具体调用了哪些 MCP 工具以及使用的参数。
+
+### 为助理启用 MCP
+
+1. 打开**助理设置**
+2. 进入**技能**
+3. 选择该助理可以访问的 MCP 服务器
+4. 保存配置
+
+## 安全与权限
+
+MCP 插件在受控权限下运行:
+
+- **显式授权** — 用户按 Agent 粒度审批工具访问权限
+- **作用域访问** — 插件只能访问指定资源(如特定目录)
+- **审计日志** — 追踪所有工具调用记录
+- **随时撤销** — 可随时禁用插件
+
+安全最佳实践:
+
+- 只从可信来源安装 MCP 插件
+- 在批准前仔细审查每个 MCP 服务器的访问权限请求
+- 从只读访问开始,必要时再升级权限
+- 定期轮换 API Key 和令牌
+- 先用非生产数据测试新 MCP 服务器
+
+## 故障排查
+
+**安装后插件未显示**
+
+- 确认 MCP 服务器正在运行(对于 STDIO 类型,检查命令是否可用:`which npx` 或 `which python`)
+- 检查配置文件语法是否正确
+- 查看服务器日志中的启动错误
+- 确保所有依赖已安装,然后重启 LobeHub
+
+**工具在对话中未出现**
+
+- 在「设置」中重新连接 MCP 服务器
+- 确认该 Agent 在「工具与插件」设置中已启用该插件
+- 验证服务器是否正确实现了 MCP 协议
+
+**认证 / 连接错误**
+
+- 检查 API Key 或令牌是否正确且未过期
+- 确认认证类型与服务器要求匹配
+- 对于 HTTP 服务器,确认 URL 可访问且 CORS 已正确配置
+- 在自托管部署中启用调试日志:`DEBUG_MCP=1`,查看详细 MCP 通信信息
+
+## 环境变量配置
+
+自托管部署可通过环境变量配置 MCP 行为:
+
+```bash
+# 插件超时时间(毫秒)
+MCP_TOOL_TIMEOUT=30000
+
+# 启用 MCP 调试日志
+DEBUG_MCP=1
+
+# MCP 配置文件路径
+MCP_CONFIG=/path/to/mcp-config.json
+```
+
+## 开发自定义 MCP 插件
+
+你可以将任何 MCP 兼容的服务器直接添加到 LobeHub,无需经过市场。详细操作步骤请参见[自定义 MCP](/zh/docs/usage/community/custom-mcp) 指南,或查看[技能管理](/zh/docs/usage/community/skill-management) 指南了解所有技能类型及管理方式。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/community/publish-agent.mdx b/docs/usage/community/publish-agent.mdx
index b9cea33fd4..45b8af6338 100644
--- a/docs/usage/community/publish-agent.mdx
+++ b/docs/usage/community/publish-agent.mdx
@@ -1,30 +1,81 @@
---
-title: Publish Your Agent on the Marketplace
+title: Publish Your Agent
description: >-
- The LobeHub Assistant Marketplace is a vibrant and innovative community that
- brings together a wide range of thoughtfully designed assistants to enhance
- productivity and learning. You're welcome to submit your own assistant and
- contribute to a growing collection of creative, practical, and cutting-edge
- tools.
+ Submit your Agent to the marketplace — share with users worldwide. Checklist,
+ process, and quality guidelines.
tags:
- LobeHub
- - LobeHub
- - Assistant Marketplace
- - Innovation Community
- - Collaborative Space
- - Assistant Creations
- - Automated Internationalization
- - Multilingual Support
+ - Publish Agent
+ - Agent Marketplace
+ - Community
+ - Creator
---
-# Submit Your Agent
+# Publish Your Agent
-If you've created a high-quality Agent, you can submit it to the marketplace and share it with users around the world.
+Built a high-quality Agent? Submit it to the marketplace and share it with users around the world.
-If this is your first time submitting an Agent, you'll need to [create a community profile](/docs/usage/community/become-a-creator) first. This allows you to manage your submissions and published content within the community.
+## Prerequisites
-Once you're a registered creator, go to the Agent you want to publish, open its "Agent Profile," and click "Share Assistant to Community."
+If this is your first time submitting an Agent, you'll need to [create a community profile](/docs/usage/community/become-a-creator) first. This lets you manage your submissions and published content within the community.
+
+## Pre-Publication Checklist
+
+Before submitting, make sure your Agent has:
+
+- [ ] **Clear, descriptive title** — Users should immediately understand what the Agent does
+- [ ] **Concise description** — 2–3 sentences: what it does, its expertise, and who it's for
+- [ ] **Appropriate avatar** — An emoji or image that represents the Agent's purpose
+- [ ] **Relevant tags** — 3–5 tags to help users discover your Agent in search
+- [ ] **Well-tested system prompt** — Test with diverse inputs to ensure consistent behavior
+- [ ] **Correct model configuration** — Use a model appropriate for the Agent's purpose
+- [ ] **Opening message** (recommended) — A welcome message guiding users on how to start
+- [ ] **Opening questions** (recommended) — 2–3 example prompts to help users get started
+
+## Publishing Process
+
+Once you're a registered creator, go to the Agent you want to publish, open its **Agent Profile**, and click **Share Agent to Community**.

-After your submission is reviewed and approved, your Agent will appear in the marketplace, available to users worldwide. LobeHub welcomes all users to join this ever-growing ecosystem and take part in the continuous improvement and evolution of assistants. Together, we can build a diverse, practical, and innovative collection of tools that enrich the assistant experience for everyone.
+After submission, your Agent enters review. Once approved, it appears in the marketplace, available to users worldwide.
+
+## Writing Quality Guidelines
+
+**Title** — Be specific and use keywords users might search for. "Python Code Reviewer" is better than "My Coding Helper".
+
+**Description** — Follow this structure: (1) what the Agent does, (2) its key expertise or specialty, (3) who it's designed for. Example: "Expert Python code reviewer that checks for bugs, PEP 8 compliance, and best practices. Specialized in Django and FastAPI projects. Best for Python developers seeking thorough, actionable code feedback."
+
+**System prompt quality** — Define the role clearly, specify expertise and scope, set communication guidelines (tone, format, detail level), and handle edge cases. Avoid vague instructions like "be helpful" — be specific about the domain and behavior.
+
+**Tags** — Include the primary category (development, writing, education, etc.), specific skills or domains, and terms users are likely to search. Avoid redundant tags like "AI" or "assistant".
+
+## After Publishing
+
+Once your Agent is live in the marketplace:
+
+- Users can discover it through search and category browsing
+- You can see installation counts and usage metrics in your creator dashboard
+- Users may leave ratings and feedback
+
+**Updating your Agent** — You can update the system prompt, model configuration, and metadata at any time from the Agent Profile page. Changes apply to the marketplace listing after a brief review.
+
+**Responding to feedback** — Monitor user feedback and iterate on your Agent's system prompt and configuration based on real-world usage.
+
+## Community Guidelines
+
+Your Agent must:
+
+- Have a clearly defined, specific purpose
+- Produce consistent, helpful responses across typical inputs
+- Not generate harmful, misleading, or inappropriate content
+- Not impersonate real people or organizations
+- Not violate any applicable laws or third-party rights
+
+Agents that don't meet these standards may be rejected or removed from the marketplace.
+
+
+
+
+
+
diff --git a/docs/usage/community/publish-agent.zh-CN.mdx b/docs/usage/community/publish-agent.zh-CN.mdx
index 5584dfe832..a140dc0beb 100644
--- a/docs/usage/community/publish-agent.zh-CN.mdx
+++ b/docs/usage/community/publish-agent.zh-CN.mdx
@@ -1,27 +1,79 @@
---
-title: 在市场发布 Agent
-description: >-
- LobeHub
- 助手市场是一个充满活力和创新的社区,汇聚了众多精心设计的助手,为工作场景和学习提供便利。欢迎提交你的助手作品,共同创造更多有趣、实用且具有创新性的助手。
+title: 发布你的助理
+description: 将助理提交到市场——与全球用户分享。检查清单、发布流程与内容质量指南。
tags:
- LobeHub
- - LobeHub
- - 助手市场
- - 创新社区
- - 协作空间
- - 助手作品
- - 自动化国际化
- - 多语言版本
+ - 发布助理
+ - 助理市场
+ - 社区
+ - 创作者
---
-# 提交你的 Agent
+# 发布你的助理
-如果你创建了优质的 Agent,可以提交到市场与全球用户分享。
+打造了优质的助理?提交到市场,与全球用户分享。
-如果你是首次提交 Agent,需要先[创建社区个人档案](/docs/usage/community/become-a-creator),以便在社区上提交和管理上架信息。
+## 前置条件
-当你已成为创作者,选择需要发布的 Agent 进入「Agent 档案」,点击「分享助理到社区」即可。
+如果你是首次提交助理,需要先[创建社区个人档案](/zh/docs/usage/community/become-a-creator),以便在社区上提交和管理上架信息。
+
+## 发布前检查清单
+
+提交前,请确保你的助理具备:
+
+- [ ] **清晰的标题** — 用户应该立刻能理解该助理的用途
+- [ ] **简洁的描述** — 2–3 句话:它能做什么、有哪些专长、适合哪类用户
+- [ ] **合适的头像** — 用能体现助理功能的 emoji 或图片
+- [ ] **相关标签** — 3–5 个标签,帮助用户在搜索中发现你的助理
+- [ ] **充分测试的系统提示词** — 用多种输入测试,确保行为一致
+- [ ] **正确的模型配置** — 使用与助理用途相匹配的模型
+- [ ] **开场白**(推荐)— 引导用户如何开始使用的欢迎语
+- [ ] **开场问题**(推荐)— 2–3 个示例提示词,帮助用户快速上手
+
+## 发布流程
+
+当你已成为创作者,选择需要发布的助理,进入**助理档案**,点击**分享助理到社区**即可。

-通过审核后,你的 Agent 会出现在市场中,供全球用户使用。LobeHub 欢迎所有用户加入这个不断成长的生态系统,共同参与到助理的迭代与优化中来。共同创造出更多有趣、实用且具有创新性的助理,进一步丰富助理的多样性和实用性。
+提交后,你的助理将进入审核流程。通过审核后,它会出现在市场中,供全球用户使用。
+
+## 内容质量指南
+
+**标题** — 要具体,使用用户可能搜索的关键词。"Python 代码审查员" 优于 "我的编程助手"。
+
+**描述** — 按以下结构撰写:(1) 该助理能做什么,(2) 核心专长或特色,(3) 适合哪类用户。示例:"专业的 Python 代码审查员,检查 Bug、PEP 8 规范和最佳实践,专注于 Django 和 FastAPI 项目,适合寻求详尽可操作反馈的 Python 开发者。"
+
+**系统提示词质量** — 明确定义角色,指定专业领域和范围,设置沟通规范(语气、格式、详细程度),并处理边界情况。避免模糊指令如 "要有帮助",要具体说明领域和行为规范。
+
+**标签** — 包括主要类别(开发、写作、教育等),具体技能或领域,以及用户可能搜索的词汇。避免冗余标签如 "AI" 或 "助手"。
+
+## 发布后
+
+助理在市场上线后:
+
+- 用户可通过搜索和分类浏览发现你的助理
+- 你可以在创作者仪表盘中查看安装量和使用数据
+- 用户可能留下评分和反馈
+
+**更新助理** — 你可以随时在助理档案页面更新系统提示词、模型配置和元数据。更改在简短审核后更新至市场列表。
+
+**回应反馈** — 关注用户反馈,根据实际使用情况持续迭代优化助理的提示词和配置。
+
+## 社区规范
+
+你的助理必须:
+
+- 具有明确定义的具体用途
+- 在典型输入下产生一致、有帮助的回复
+- 不生成有害、误导性或不当内容
+- 不冒充真实人物或组织
+- 不违反任何适用法律或第三方权益
+
+不符合标准的助理可能被拒绝或从市场下架。
+
+
+
+
+
+
diff --git a/docs/usage/community/pulgin-development.mdx b/docs/usage/community/pulgin-development.mdx
deleted file mode 100644
index 273b910804..0000000000
--- a/docs/usage/community/pulgin-development.mdx
+++ /dev/null
@@ -1,281 +0,0 @@
----
-title: Plugin Development
-description: >-
- Learn how to add and use custom plugins in LobeHub, including creating a
- plugin project, adding local plugins in role settings, testing plugin
- functionality, and understanding the development and deployment process.
-tags:
- - LobeHub
- - LobeHub
- - Plugin Development
- - Custom Plugins
- - Plugin Deployment
- - Plugin Publishing
- - Plugin UI
- - Plugin SDK
----
-
-# Plugin Development
-
-## Plugin Structure
-
-A LobeHub plugin consists of the following components:
-
-1. **Plugin Index**: Displays basic plugin information, including name, description, author, version, and a link to the plugin manifest. The official plugin index is hosted at [lobe-chat-plugins](https://github.com/lobehub/lobe-chat-plugins). To publish your plugin to the official marketplace, you need to [submit a PR](https://github.com/lobehub/lobe-chat-plugins/pulls) to this repository.
-2. **Plugin Manifest**: Describes the plugin's functionality, including backend services, frontend UI, version, and more. For a detailed explanation, see \[manifest]\[manifest-docs-url].
-3. **Plugin Services**: Implements the backend and optional frontend modules described in the manifest:
- - **Backend**: Implements the `api` section defined in the manifest.
- - **Frontend UI** (optional): Implements the `ui` section, allowing for richer message displays beyond plain text.
-
-## Custom Plugin Workflow
-
-This section walks you through how to add and use a custom plugin in LobeHub.
-
-
- ### Create and Start a Plugin Project
-
- First, create a local plugin project using our template: \[lobe-chat-plugin-template]\[lobe-chat-plugin-template-url]
-
- ```bash
- $ git clone https://github.com/lobehub/chat-plugin-template.git
- $ cd chat-plugin-template
- $ npm i
- $ npm run dev
- ```
-
- Once you see `ready started server on 0.0.0.0:3400, url: http://localhost:3400`, your plugin service is running locally.
-
-
-
- ### Add Local Plugin in LobeHub Role Settings
-
- Next, go to LobeHub, create a new assistant, and open its session settings:
-
-
-
- Click the Add button on the right side of the plugin list to open the custom plugin dialog:
-
-
-
- Enter `http://localhost:3400/manifest-dev.json` in the **Plugin Manifest URL** field. This is the local address of your plugin manifest.
-
- You should now see the plugin identifier auto-filled as `chat-plugin-template`. Fill in the remaining fields (only the title is required), then click Save to complete the setup.
-
-
-
- Once added, the plugin will appear in the list. To edit its configuration, click the Settings button on the far right.
-
-
-
- ### Test Plugin Functionality in Chat
-
- Now let’s test if the plugin works as expected.
-
- Click Back to return to the chat area, and send a message like: “What should I wear?” The assistant will ask for your gender and current mood.
-
-
-
- After you respond, the assistant will call the plugin, fetch clothing recommendations based on your gender and mood, and present the results along with a summary.
-
-
-
- After completing these steps, you now understand the basic process of adding and using a custom plugin in LobeHub.
-
-
-## Local Plugin Development
-
-Now that you know how to add and use a plugin, let’s dive into the development process.
-
-### Manifest
-
-The `manifest` defines how the plugin works. The key fields are `api` and `ui`, which describe the backend API and frontend UI respectively.
-
-Here’s an example from the template:
-
-```json
-{
- "api": [
- {
- "url": "http://localhost:3400/api/clothes",
- "name": "recommendClothes",
- "description": "Recommend clothes based on the user's mood",
- "parameters": {
- "properties": {
- "mood": {
- "description": "User's current mood. Options: happy, sad, anger, fear, surprise, disgust",
- "enums": ["happy", "sad", "anger", "fear", "surprise", "disgust"],
- "type": "string"
- },
- "gender": {
- "type": "string",
- "enum": ["man", "woman"],
- "description": "User's gender, must be asked before calling the API"
- }
- },
- "required": ["mood", "gender"],
- "type": "object"
- }
- }
- ],
- "gateway": "http://localhost:3400/api/gateway",
- "identifier": "chat-plugin-template",
- "ui": {
- "url": "http://localhost:3400",
- "height": 200
- },
- "version": "1"
-}
-```
-
-Key fields:
-
-1. `identifier`: Unique plugin ID. Must be globally unique.
-2. `api`: Array of API definitions. Each includes `url`, `name`, `description`, and `parameters`. The `description` and `parameters` are used in GPT’s [Function Call](https://sspai.com/post/81986) and must follow [JSON Schema](https://json-schema.org/).
-3. `ui`: Defines the plugin’s frontend interface, loaded via iframe. You can specify height and width.
-4. `gateway`: Specifies the API gateway. LobeHub’s default is a cloud service, but for local plugins, this should point to your local server.
-5. `version`: Plugin version (currently unused).
-
-For a full breakdown of manifest fields, see: \[manifest]\[manifest-docs-url].
-
-### Project Structure
-
-The \[lobe-chat-plugin-template]\[lobe-chat-plugin-template-url] uses Next.js. Its structure:
-
-```
-➜ chat-plugin-template
-├── public
-│ └── manifest-dev.json # Manifest file
-├── src
-│ └── pages
-│ │ ├── api # Next.js API routes
-│ │ │ ├── clothes.ts # recommendClothes API
-│ │ │ └── gateway.ts # Local plugin gateway
-│ │ └── index.tsx # Frontend UI
-```
-
-You can use any framework or language, as long as it implements the manifest functionality.
-
-We also welcome contributions of templates in other frameworks and languages.
-
-### Backend
-
-The backend implements the APIs defined in the manifest. The template uses Vercel’s [Edge Runtime](https://nextjs.org/docs/pages/api-reference/edge) for serverless deployment.
-
-#### API Implementation
-
-We provide a `createErrorResponse` method in `@lobehub/chat-plugin-sdk` for handling errors. See \[PluginErrorType]\[plugin-error-type-url] for available types.
-
-Example implementation of the clothes API:
-
-```ts
-export default async (req: Request) => {
- if (req.method !== 'POST') return createErrorResponse(PluginErrorType.MethodNotAllowed);
-
- const { gender, mood } = (await req.json()) as RequestData;
-
- const clothes = gender === 'man' ? manClothes : womanClothes;
-
- const result: ResponseData = {
- clothes: clothes[mood] || [],
- mood,
- today: Date.now(),
- };
-
- return new Response(JSON.stringify(result));
-};
-```
-
-`manClothes` and `womanClothes` are mock data. Replace with real data sources as needed.
-
-#### Plugin Gateway
-
-LobeHub’s default plugin gateway is `/api/plugins`, which sends requests to the `api.url` in the manifest.
-
-For local plugins, set the `gateway` to a local address (e.g., `http://localhost:3400/api/gateway`). Then implement the gateway:
-
-```ts
-import { createLobeHubPluginGateway } from '@lobehub/chat-plugins-gateway';
-
-export const config = {
- runtime: 'edge',
-};
-
-export default createLobeHubPluginGateway();
-```
-
-[`@lobehub/chat-plugins-gateway`](https://github.com/lobehub/chat-plugins-gateway) provides the gateway implementation used in LobeHub. Use it to route requests to your local plugin service.
-
-### Plugin UI
-
-The UI is optional. For example, the official plugin [🧩 / 🕸 Web Content Extractor](https://github.com/lobehub/chat-plugin-web-crawler) has no UI.
-
-
-
-If you want to display rich content or interactive elements, you can build a custom UI. For example, the [Search Engine](https://github.com/lobehub/chat-plugin-search-engine) plugin:
-
-
-
-#### Implementing the UI
-
-LobeHub loads plugin UIs via `iframe` and uses `postMessage` for communication. You can use any frontend framework or language.
-
-
-
-The template uses React + Next.js + [antd](https://ant.design/). See [`src/pages/index.tsx`](https://github.com/lobehub/chat-plugin-template/blob/main/src/pages/index.tsx) for the UI implementation.
-
-To simplify communication, use `fetchPluginMessage` from [`@lobehub/chat-plugin-sdk`](https://github.com/lobehub/chat-plugin-sdk). It fetches the current plugin message from LobeHub. See \[fetchPluginMessage]\[fetch-plugin-message-url] for details.
-
-```tsx
-import { fetchPluginMessage } from '@lobehub/chat-plugin-sdk';
-import { memo, useEffect, useState } from 'react';
-
-import { ResponseData } from '@/type';
-
-const Render = memo(() => {
- const [data, setData] = useState();
-
- useEffect(() => {
- fetchPluginMessage().then((e: ResponseData) => {
- setData(e);
- });
- }, []);
-
- return <>...>;
-});
-
-export default Render;
-```
-
-## Plugin Deployment & Publishing
-
-Once your plugin is ready, deploy it using your preferred method—Vercel, Docker, etc.
-
-To share your plugin with others, consider [submitting it](https://github.com/lobehub/lobe-chat-plugins) to the official plugin marketplace.
-
-\[!\[]\[submit-plugin-shield]]\[submit-plugin-url]
-
-### Plugin Shield
-
-[](https://github.com/lobehub/lobe-chat-plugins)
-
-```markdown
-[](https://github.com/lobehub/lobe-chat-plugins)
-```
-
-## Links
-
-- **📘 Plugin SDK Docs**: [https://chat-plugin-sdk.lobehub.com](https://chat-plugin-sdk.lobehub.com)
-- **🚀 chat-plugin-template**: [https://github.com/lobehub/chat-plugin-template](https://github.com/lobehub/chat-plugin-template)
-- **🧩 chat-plugin-sdk**: [https://github.com/lobehub/chat-plugin-sdk](https://github.com/lobehub/chat-plugin-sdk)
-- **🚪 chat-plugin-gateway**: [https://github.com/lobehub/chat-plugins-gateway](https://github.com/lobehub/chat-plugins-gateway)
-- **🏪 lobe-chat-plugins**: [https://github.com/lobehub/lobe-chat-plugins](https://github.com/lobehub/lobe-chat-plugins)
-
-```
-
-[fetch-plugin-message-url]: https://github.com/lobehub/chat-plugin-template
-[lobe-chat-plugin-template-url]: https://github.com/lobehub/chat-plugin-template
-[manifest-docs-url]: https://chat-plugin-sdk.lobehub.com/guides/plugin-manifest
-[plugin-error-type-url]: https://github.com/lobehub/chat-plugin-template
-[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
-[submit-plugin-url]: https://github.com/lobehub/lobe-chat-plugins
-```
diff --git a/docs/usage/community/pulgin-development.zh-CN.mdx b/docs/usage/community/pulgin-development.zh-CN.mdx
deleted file mode 100644
index 2c7b99e265..0000000000
--- a/docs/usage/community/pulgin-development.zh-CN.mdx
+++ /dev/null
@@ -1,276 +0,0 @@
----
-title: 插件开发
-description: 学习如何在 LobeHub 中添加和使用自定义插件,包括创建插件项目、在角色设置中添加本地插件、测试插件功能以及插件开发流程和部署。
-tags:
- - LobeHub
- - LobeHub
- - 插件开发
- - 自定义插件
- - 插件部署
- - 插件发布
- - 插件UI
- - 插件SDK
----
-
-# 插件开发
-
-## 插件构成
-
-一个 LobeHub 的插件由以下几个部分组成:
-
-1. **插件索引**:用于展示插件的基本信息,包括插件名称、描述、作者、版本、插件描述清单的链接,官方的插件索引地址:[lobe-chat-plugins](https://github.com/lobehub/lobe-chat-plugins)。若想上架插件到官方插件市场,需要 [提交 PR](https://github.com/lobehub/lobe-chat-plugins/pulls) 到该仓库;
-2. **插件描述清单 (manifest)**:用于描述插件的功能实现,包含了插件的服务端描述、前端展示信息、版本号等。关于 manifest 的详细介绍,详见 [manifest][manifest-docs-url];
-3. **插件服务**:用于实现插件描述清单中所描述的服务端和前端模块,分别如下:
- - **服务端**:需要实现 manifest 中描述的 `api` 部分的接口能力;
- - **前端 UI**(可选):需要实现 manifest 中描述的 `ui` 部分的界面,该界面将会在插件消息中透出,进而实现比文本更加丰富的信息展示方式。
-
-## 自定义插件流程
-
-本节将会介绍如何在 LobeHub 中添加和使用一个自定义插件。
-
-
- ### 创建并启动插件项目
-
- 你需要先在本地创建一个插件项目,可以使用我们准备好的模板 [lobe-chat-plugin-template][lobe-chat-plugin-template-url]
-
- ```bash
- $ git clone https://github.com/lobehub/chat-plugin-template.git
- $ cd chat-plugin-template
- $ npm i
- $ npm run dev
- ```
-
- 当出现`ready started server on 0.0.0.0:3400, url: http://localhost:3400` 时,说明插件服务已经在本地启动成功。
-
-
-
- ### 在 LobeHub 角色设置中添加本地插件
-
- 接下来进入到 LobeHub 中,创建一个新的助手,并进入它的会话设置页:
-
-
-
- 点击插件列表右侧的 添加 按钮,打开自定义插件添加弹窗:
-
-
-
- 在 **插件描述文件 Url** 地址 中填入 `http://localhost:3400/manifest-dev.json` ,这是我们本地启动的插件描述清单地址。
-
- 此时,你应该可以看到看到插件的标识符一栏已经被自动识别为 `chat-plugin-template`。接下来你需要填写剩下的表单字段(只有标题必填),然后点击 保存 按钮,即可完成自定义插件添加。
-
-
-
- 完成添加后,在插件列表中就能看到刚刚添加的插件,如果需要修改插件的配置,可以点击最右侧的 设置 按钮进行修改。
-
-
-
- ### 会话测试插件功能
-
- 接来下我们需要测试这个插件的功能是否正常。
-
- 点击 返回 按钮回到会话区,然后向助手发送消息:「我应该穿什么? 」此时助手将会尝试向你询问,了解你的性别与当前的心情。
-
-
-
- 当回答完毕后,助手将会发起插件的调用,根据你的性别、心情,从服务端获取推荐的衣服数据,并推送给你。最后基于这些信息做一轮文本总结。
-
-
-
- 当完成这些操作后,你已经了解了添加自定义插件,并在 LobeHub 中使用的基础流程。
-
-
-## 本地插件开发
-
-在上述流程中,我们已经了解插件的添加和使用的方式,接下来重点介绍自定义插件开发的过程。
-
-### manifest
-
-`manifest` 聚合了插件功能如何实现的信息。核心字段为 `api` 与 `ui`,分别描述了插件的服务端接口能力与前端渲染的界面地址。
-
-以我们提供的模板中的 `manifest` 为例:
-
-```json
-{
- "api": [
- {
- "url": "http://localhost:3400/api/clothes",
- "name": "recommendClothes",
- "description": "根据用户的心情,给用户推荐他有的衣服",
- "parameters": {
- "properties": {
- "mood": {
- "description": "用户当前的心情,可选值有:开心(happy), 难过(sad),生气 (anger),害怕(fear),惊喜( surprise),厌恶 (disgust)",
- "enums": ["happy", "sad", "anger", "fear", "surprise", "disgust"],
- "type": "string"
- },
- "gender": {
- "type": "string",
- "enum": ["man", "woman"],
- "description": "对话用户的性别,需要询问用户后才知道这个信息"
- }
- },
- "required": ["mood", "gender"],
- "type": "object"
- }
- }
- ],
- "gateway": "http://localhost:3400/api/gateway",
- "identifier": "chat-plugin-template",
- "ui": {
- "url": "http://localhost:3400",
- "height": 200
- },
- "version": "1"
-}
-```
-
-在这份 manifest 中,主要包含了以下几个部分:
-
-1. `identifier`:这是插件的唯一标识符,用来区分不同的插件,这个字段需要全局唯一。
-2. `api`:这是一个数组,包含了插件的所有 API 接口信息。每个接口都包含了 url、name、description 和 parameters 字段,均为必填项。其中 `description` 和 `parameters` 两个字段,将会作为 [Function Call](https://sspai.com/post/81986) 的 `functions` 参数发送给 gpt, parameters 需要符合 [JSON Schema](https://json-schema.org/) 规范。 在这个例子中,api 接口名为 `recommendClothes` ,这个接口的功能是根据用户的心情和性别来推荐衣服。接口的参数包括用户的心情和性别,这两个参数都是必填项。
-3. `ui`:这个字段包含了插件的用户界面信息,指明了 LobeHub 从哪个地址加载插件的前端界面。由于 LobeHub 插件界面加载是基于 iframe 实现的,因此可以按需指定插件界面的高度、宽度。
-4. `gateway`:这个字段指定了 LobeHub 查询 api 接口的网关。LobeHub 默认的插件网关是云端服务,而自定义插件的请求需要发给本地启动的服务,远端调用本地地址,一般调用不通。gateway 字段解决了该问题。通过在 manifest 中指定 gateway,LobeHub 将会向该地址发送插件请求,本地的网关地址将会调度请求到本地的插件服务。发布到线上的插件可以不用指定该字段。
-5. `version`:这是插件的版本号,现阶段暂时没有作用;
-
-在实际开发中,你可以根据自己的需求,修改插件的描述清单,声明想要实现的功能。 关于 manifest 各个字段的完整介绍,参见:[manifest][manifest-docs-url]。
-
-### 项目结构
-
-[lobe-chat-plugin-template][lobe-chat-plugin-template-url] 这个模板项目使用了 Next.js 作为开发框架,它的核心目录结构如下:
-
-```
-➜ chat-plugin-template
-├── public
-│ └── manifest-dev.json # 描述清单文件
-├── src
-│ └── pages
-│ │ ├── api # nextjs 服务端文件夹
-│ │ │ ├── clothes.ts # recommendClothes 接口实现
-│ │ │ └── gateway.ts # 本地插件代理网关
-│ │ └── index.tsx # 前端展示界面
-```
-
-本模板使用 Next.js 作为开发框架。你可以使用任何你熟悉的开发框架与开发语言,只要能够实现 manifest 中描述的功能即可。
-
-同时也欢迎大家贡献更多框架与语言的插件模板。
-
-### 服务端
-
-服务端需要实现 manifest 中描述的 api 接口。在模板中,我们使用了 vercel 的 [Edge Runtime](https://nextjs.org/docs/pages/api-reference/edge),免去运维。
-
-#### API 实现
-
-针对 Edge Runtime ,我们在 `@lobehub/chat-plugin-sdk` 提供了 `createErrorResponse` 方法,用于快速返回错误响应。目前提供的错误类型详见:[PluginErrorType][plugin-error-type-url]。
-
-模板中的 clothes 接口实现如下:
-
-```ts
-export default async (req: Request) => {
- if (req.method !== 'POST') return createErrorResponse(PluginErrorType.MethodNotAllowed);
-
- const { gender, mood } = (await req.json()) as RequestData;
-
- const clothes = gender === 'man' ? manClothes : womanClothes;
-
- const result: ResponseData = {
- clothes: clothes[mood] || [],
- mood,
- today: Date.now(),
- };
-
- return new Response(JSON.stringify(result));
-};
-```
-
-其中 `maniClothes` 和 `womanClothes` 是 mock 数据,在实际场景中,可以替换为数据库查询等。
-
-#### Plugin Gateway
-
-由于 LobeHub 默认的插件网关是云端服务 `/api/plugins`,云端服务通过 manifest 上的 `api.url` 地址发送请求,以解决跨域问题。
-
-针对自定义插件,插件请求需要发送给本地服务, 因此通过在 manifest 中指定网关 ([http://localhost:3400/api/gateway),LobeHub](http://localhost:3400/api/gateway\),LobeHub) 将会直接请求该地址,然后只需要在该地址下创建对应的网关即可。
-
-```ts
-import { createLobeHubPluginGateway } from '@lobehub/chat-plugins-gateway';
-
-export const config = {
- runtime: 'edge',
-};
-
-export default createLobeHubPluginGateway();
-```
-
-[`@lobehub/chat-plugins-gateway`](https://github.com/lobehub/chat-plugins-gateway) 包含了 LobeHub 中插件网关的[实现](https://github.com/lobehub/lobe-chat/blob/main/src/pages/api/plugins.api.ts),你可以直接使用该包创建网关,进而让 LobeHub 访问到本地的插件服务。
-
-### 插件 UI 界面
-
-自定义插件的 UI 界面是一个可选项。例如 官方插件 [「🧩 / 🕸 网页内容提取」](https://github.com/lobehub/chat-plugin-web-crawler),没有实现相应的用户界面。
-
-
-
-如果你希望在插件消息中展示更加丰富的信息,或者包含一些富交互操作,你可以为插件定制一个用户界面。例如下图则为[「搜索引擎」](https://github.com/lobehub/chat-plugin-search-engine)插件的用户界面。
-
-
-
-#### 插件 UI 界面实现
-
-LobeHub 通过 `iframe` 实现插件 ui 的加载,使用 `postMessage` 实现主体与插件的通信。因此, 插件 UI 的实现方式与普通的网页开发一致,你可以使用任何你熟悉的前端框架与开发语言。
-
-
-
-在我们提供的模板中使用了 React + Next.js + [antd](https://ant.design/) 作为前端界面框架,你可以在 [`src/pages/index.tsx`](https://github.com/lobehub/chat-plugin-template/blob/main/src/pages/index.tsx) 中找到用户界面的实现。
-
-其中关于插件通信,我们在 [`@lobehub/chat-plugin-sdk`](https://github.com/lobehub/chat-plugin-sdk) 提供了相关方法,用于简化插件与 LobeHub 的通信。你可以通过 `fetchPluginMessage` 方法主动向 LobeHub 获取当前消息的数据。关于该方法的详细介绍,参见:[fetchPluginMessage][fetch-plugin-message-url]。
-
-```tsx
-import { fetchPluginMessage } from '@lobehub/chat-plugin-sdk';
-import { memo, useEffect, useState } from 'react';
-
-import { ResponseData } from '@/type';
-
-const Render = memo(() => {
- const [data, setData] = useState();
-
- useEffect(() => {
- // 从 LobeHub 获取当前插件的消息
- fetchPluginMessage().then((e: ResponseData) => {
- setData(e);
- });
- }, []);
-
- return <>...>;
-});
-
-export default Render;
-```
-
-## 插件部署与发布
-
-当你完成插件的开发后,你可以使用你习惯的方式进行插件的部署。例如使用 vercel ,或者打包成 docker 发布等等。
-
-如果你希望插件被更多人使用,欢迎将你的插件 [提交上架](https://github.com/lobehub/lobe-chat-plugins) 到插件市场。
-
-[![][submit-plugin-shield]][submit-plugin-url]
-
-### 插件 Shield
-
-[](https://github.com/lobehub/lobe-chat-plugins)
-
-```markdown
-[](https://github.com/lobehub/lobe-chat-plugins)
-```
-
-## 链接
-
-- **📘 Pluging SDK 文档**: [https://chat-plugin-sdk.lobehub.com](https://chat-plugin-sdk.lobehub.com)
-- **🚀 chat-plugin-template**: [https://github.com/lobehub/chat-plugin-template](https://github.com/lobehub/chat-plugin-template)
-- **🧩 chat-plugin-sdk**: [https://github.com/lobehub/chat-plugin-sdk](https://github.com/lobehub/chat-plugin-sdk)
-- **🚪 chat-plugin-gateway**: [https://github.com/lobehub/chat-plugins-gateway](https://github.com/lobehub/chat-plugins-gateway)
-- **🏪 lobe-chat-plugins**: [https://github.com/lobehub/lobe-chat-plugins](https://github.com/lobehub/lobe-chat-plugins)
-
-[fetch-plugin-message-url]: https://github.com/lobehub/chat-plugin-template
-[lobe-chat-plugin-template-url]: https://github.com/lobehub/chat-plugin-template
-[manifest-docs-url]: https://chat-plugin-sdk.lobehub.com/guides/plugin-manifest
-[plugin-error-type-url]: https://github.com/lobehub/chat-plugin-template
-[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
-[submit-plugin-url]: https://github.com/lobehub/lobe-chat-plugins
diff --git a/docs/usage/community/skill-management.mdx b/docs/usage/community/skill-management.mdx
new file mode 100644
index 0000000000..b415ddfce3
--- /dev/null
+++ b/docs/usage/community/skill-management.mdx
@@ -0,0 +1,146 @@
+---
+title: Skill Management
+description: >-
+ Discover, install, configure, and organize Skills — the tools and integrations
+ that extend what your Agents can do.
+tags:
+ - Skills
+ - LobeHub
+ - MCP
+ - Integrations
+ - Skill Management
+ - Plugins
+---
+
+# Skill Management
+
+**Skills** are the capabilities you attach to Agents — web search, code execution, database access, external API integrations, and more. Each skill gives an Agent access to a set of tools it can call during a conversation to complete tasks it couldn't do on its own.
+
+This guide covers how to discover, install, configure, and enable skills across your workspace.
+
+## What Are Skills?
+
+Skills extend Agents beyond conversation. When an Agent has a skill enabled, it can actively use tools — search the web, query a database, read files, send a Slack message — rather than just discussing how to do those things.
+
+Every skill exposes one or more **tools**. The Agent decides when to call a tool based on what you ask. You can enable **Chain of Thought** in a conversation to see exactly which tools are being called and with what parameters.
+
+## Types of Skills
+
+| Type | Description | Examples |
+| ------------------------ | ------------------------------------ | ----------------------------------------- |
+| **Built-in tools** | Capabilities built into LobeHub | Artifacts, Sandbox, GTD, Notebook, Memory |
+| **LobeHub Integrations** | OAuth-connected third-party services | Linear, Microsoft, Twitter |
+| **Klavis** | Klavis-powered integrations | Gmail, Notion, Slack, and more |
+| **Community MCP** | MCP servers from the MCP Marketplace | GitHub, PostgreSQL, Brave Search |
+| **Custom MCP** | MCP servers you add manually | Your own APIs, private tools |
+
+## The Skill Store
+
+The Skill Store is where you discover and install skills. Open it from:
+
+- **Settings → Skills** — click **Skill Store** in the top right
+- **Agent settings → Skills** — click **Add skill**
+- **Chat input** — click the **Tools** button, then **Skill Store**
+
+The Skill Store has three tabs:
+
+- **LobeHub** — Built-in tools and LobeHub-native integrations (Linear, Microsoft, Twitter, Klavis services)
+- **Community** — MCPs from the [MCP Marketplace](/docs/usage/community/mcp-market), covering thousands of services
+- **Custom** — MCP servers you've added manually, plus an **Add custom skill** button
+
+Use the search bar to filter across all tabs by keyword.
+
+## Installing Skills
+
+### Built-in tools and Integrations
+
+Built-in tools (Artifacts, Sandbox, GTD, Notebook) are pre-installed — you can enable them for any Agent immediately. LobeHub Integrations and Klavis services require an OAuth connection:
+
+1. In the Skill Store, go to the **LobeHub** tab
+2. Find the integration you want (e.g. Linear, Gmail)
+3. Click **Connect** and complete the OAuth flow
+4. The integration becomes available as a skill for any Agent
+
+### Community MCP
+
+1. In the Skill Store, go to the **Community** tab (or browse the MCP Marketplace from the sidebar)
+2. Find the MCP you want and click **Install**
+3. If the MCP requires configuration (API keys, URLs), a setup dialog will appear
+4. Once installed, the MCP appears in **Settings → Skills** under **Community MCPs**
+
+See the [MCP Marketplace](/docs/usage/community/mcp-market) guide for more detail on connection types and configuration.
+
+### Custom MCP
+
+Add any MCP-compatible server that isn't in the marketplace:
+
+1. In the Skill Store, go to the **Custom** tab
+2. Click **Add custom skill**
+3. Configure the connection (HTTP endpoint or STDIO command)
+4. Test the connection and click **Install**
+
+See the [Custom MCP](/docs/usage/community/custom-mcp) guide for a full walkthrough.
+
+## Skill Settings Page
+
+**Settings → Skills** is your central view of everything installed in your workspace.
+
+Skills are grouped into three categories:
+
+**Integrations** — Built-in tools, LobeHub-connected services, and Klavis integrations. Each shows its connection status. Click **Connect** or **Disconnect** to manage the OAuth link.
+
+**Community MCPs** — MCP servers installed from the marketplace. Each shows its connection type (HTTP or STDIO). Click **Configure** to edit the connection URL or authentication, or to view the tools it provides.
+
+**Custom MCPs** — MCP servers you've added manually. Click **Configure** to open the full editing dialog where you can change the connection type, URL, command, arguments, environment variables, and other settings.
+
+To uninstall any skill, open its menu and select **Uninstall**.
+
+## Enabling Skills for Agents
+
+Installing a skill adds it to your workspace, but you choose which agents get access to each skill. Skills are **per-agent** — enabling a skill for one agent does not affect others.
+
+### From Agent Settings
+
+1. Open the agent and go to its settings
+2. Navigate to **Skills**
+3. Toggle on the skills this agent should be able to use
+4. Changes take effect in the next conversation
+
+### From the Chat Input
+
+1. Click the **Tools** button above the chat input
+2. Toggle individual skills on or off for the current agent
+3. A link at the bottom opens **Skill Management** for workspace-wide changes
+
+## Configuring MCP Connection Settings
+
+After installation, you may need to update an MCP's connection details — for example, if an API key rotates or a server URL changes.
+
+### Editing an HTTP MCP
+
+1. Go to **Settings → Skills**
+2. Find the MCP and click **Configure**
+3. Click the **Edit** button next to the connection details
+4. Update the endpoint URL, authentication type, or API key
+5. Click **Save**
+
+### Editing a STDIO MCP
+
+1. Go to **Settings → Skills**
+2. Find the MCP and click **Configure**
+3. Edit the command, arguments, or environment variables
+4. Click **Save**
+
+For STDIO MCPs, environment variables are the standard way to pass API keys and secrets without exposing them in the command line.
+
+## Web Search
+
+Web search is a special built-in capability. Unlike other skills, it is controlled by the **Search Mode** setting in agent configuration rather than the Skills toggle. See the [Web Search](/docs/usage/agent/web-search) guide for details.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/community/skill-management.zh-CN.mdx b/docs/usage/community/skill-management.zh-CN.mdx
new file mode 100644
index 0000000000..262a495c6f
--- /dev/null
+++ b/docs/usage/community/skill-management.zh-CN.mdx
@@ -0,0 +1,144 @@
+---
+title: 技能管理
+description: 发现、安装、配置并管理技能——这些工具和集成扩展了你的助理的能力边界。
+tags:
+ - 技能
+ - LobeHub
+ - MCP
+ - 集成
+ - 技能管理
+ - 插件
+---
+
+# 技能管理
+
+**技能**是你为助理配备的能力 —— 网络搜索、代码执行、数据库查询、外部 API 集成等。每项技能都让助理在对话中能够主动调用工具,完成单靠对话无法实现的任务。
+
+本指南介绍如何在工作区中发现、安装、配置和启用技能。
+
+## 什么是技能?
+
+技能让助理超越对话本身。当助理启用了某项技能,它就能主动使用工具 —— 搜索网络、查询数据库、读取文件、发送 Slack 消息 —— 而不只是和你聊如何做这些事。
+
+每项技能提供一个或多个**工具**,助理根据你的需求决定何时调用工具。你可以在对话中开启**思维链**,查看具体调用了哪些工具以及使用的参数。
+
+## 技能类型
+
+| 类型 | 说明 | 示例 |
+| -------------- | ------------------ | -------------------------- |
+| **内置工具** | LobeHub 内置的能力 | Artifacts、沙盒、GTD、笔记本、记忆 |
+| **LobeHub 集成** | 通过 OAuth 连接的第三方服务 | Linear、Microsoft、Twitter |
+| **Klavis** | Klavis 提供的集成 | Gmail、Notion、Slack 等 |
+| **社区 MCP** | 来自 MCP 市场的 MCP 服务器 | GitHub、PostgreSQL、Brave 搜索 |
+| **自定义 MCP** | 你手动添加的 MCP 服务器 | 私有 API、内部工具 |
+
+## 技能商店
+
+技能商店是发现和安装技能的地方。可以从以下入口打开:
+
+- **设置 → 技能** — 点击右上角的**技能商店**
+- **助理设置 → 技能** — 点击**添加技能**
+- **对话输入框** — 点击**工具**按钮,选择**技能商店**
+
+技能商店有三个标签页:
+
+- **LobeHub** — 内置工具和 LobeHub 原生集成(Linear、Microsoft、Twitter、Klavis 服务等)
+- **社区** — 来自 [MCP 市场](/zh/docs/usage/community/mcp-market)的 MCP,涵盖数千种服务
+- **自定义** — 你手动添加的 MCP 服务器,以及**添加自定义技能**按钮
+
+可使用搜索框按关键词跨标签筛选。
+
+## 安装技能
+
+### 内置工具与集成
+
+内置工具(Artifacts、沙盒、GTD、笔记本)已预装,可直接为任意助理启用。LobeHub 集成和 Klavis 服务需要先完成 OAuth 授权:
+
+1. 在技能商店中,进入 **LobeHub** 标签页
+2. 找到需要的集成(如 Linear、Gmail)
+3. 点击**连接**,完成 OAuth 授权流程
+4. 授权完成后,该集成即可作为技能用于任意助理
+
+### 社区 MCP
+
+1. 在技能商店中,进入**社区**标签页(或从侧边栏进入 MCP 市场浏览)
+2. 找到所需 MCP,点击**安装**
+3. 如果该 MCP 需要配置(API Key、URL 等),会弹出配置对话框
+4. 安装完成后,该 MCP 会出现在**设置 → 技能**的**社区 MCP** 列表中
+
+连接类型和配置详情请参阅 [MCP 市场](/zh/docs/usage/community/mcp-market)指南。
+
+### 自定义 MCP
+
+添加不在市场中的任何 MCP 兼容服务器:
+
+1. 在技能商店中,进入**自定义**标签页
+2. 点击**添加自定义技能**
+3. 配置连接方式(HTTP 端点或 STDIO 命令)
+4. 测试连接,点击**安装**
+
+完整操作步骤请参阅[自定义 MCP](/zh/docs/usage/community/custom-mcp) 指南。
+
+## 技能管理页面
+
+**设置 → 技能**是工作区中所有已安装技能的统一管理界面。
+
+技能按以下三个分类展示:
+
+**集成** — 内置工具、LobeHub 连接的服务和 Klavis 集成,每项显示连接状态。点击**连接**或**断开连接**管理 OAuth 授权。
+
+**社区 MCP** — 从市场安装的 MCP 服务器,每项显示连接类型(HTTP 或 STDIO)。点击**配置**可编辑连接 URL 或认证信息,或查看提供的工具列表。
+
+**自定义 MCP** — 你手动添加的 MCP 服务器。点击**配置**打开完整编辑对话框,可修改连接类型、URL、命令、参数、环境变量等设置。
+
+如需卸载某项技能,打开其菜单并选择**卸载**。
+
+## 为助理启用技能
+
+安装技能后,技能在工作区内可用,但需要为每个助理单独配置。技能是**按助理维度**启用的 —— 为某个助理启用技能不会影响其他助理。
+
+### 通过助理设置
+
+1. 打开助理,进入其设置页面
+2. 导航至**技能**
+3. 开启该助理需要使用的技能
+4. 下次对话即刻生效
+
+### 通过对话输入框
+
+1. 点击对话输入框上方的**工具**按钮
+2. 为当前助理开启或关闭各项技能
+3. 底部链接可跳转至**技能管理**,进行工作区级别的统一管理
+
+## 配置 MCP 连接设置
+
+安装后,你可能需要更新 MCP 的连接信息 —— 例如 API Key 轮换或服务器 URL 变更。
+
+### 编辑 HTTP 类型 MCP
+
+1. 进入**设置 → 技能**
+2. 找到该 MCP,点击**配置**
+3. 点击连接信息旁的**编辑**按钮
+4. 更新端点 URL、认证类型或 API Key
+5. 点击**保存**
+
+### 编辑 STDIO 类型 MCP
+
+1. 进入**设置 → 技能**
+2. 找到该 MCP,点击**配置**
+3. 编辑命令、参数或环境变量
+4. 点击**保存**
+
+对于 STDIO 类型的 MCP,使用环境变量传递 API Key 和密钥是标准做法,避免在命令行中直接暴露敏感信息。
+
+## 网络搜索
+
+网络搜索是一项特殊的内置能力。与其他技能不同,它通过助理配置中的**搜索模式**设置来控制,而不是通过技能开关。详情请参阅[网络搜索](/zh/docs/usage/agent/web-search)指南。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/agent.mdx b/docs/usage/getting-started/agent.mdx
index 0e3de83a07..8df1602a39 100644
--- a/docs/usage/getting-started/agent.mdx
+++ b/docs/usage/getting-started/agent.mdx
@@ -1,105 +1,180 @@
---
title: Agent
description: >-
- Simple centralized configuration for prompts, model selection, knowledge
- bases, plugins, and more.
+ Build a personalized AI Agent — configure its role, model, Skills, knowledge
+ base, and Memory in one place.
tags:
- LobeHub
- - LobeHub
- - AI Assistant
- - Assistant Organization
- - Group Settings
- - Assistant Search
- - Assistant Pinning
+ - Agent
+ - Agent Configuration
+ - System Prompt
+ - Knowledge Base
+ - Memory
+ - Skills
---
# Agent
-At LobeHub, you have the freedom to create and customize your own AI assistants—whether it's a translation assistant that remembers your terminology preferences, a coding assistant familiar with your programming style, or a writing assistant that understands your tone and voice. By configuring prompts, selecting models, adding plugins, and linking knowledge bases, you can build a truly personalized assistant tailored to your needs.
+Every Agent in LobeHub is a persistent teammate — not a one-off conversation. Build a translation Agent that remembers your terminology, a coding Agent tuned to your stack, or a writing Agent that matches your voice. Configure the role, model, Skills, and knowledge base once; let it get smarter from there.
-This guide will walk you through how to create and configure your AI assistant.
+This guide walks you through creating and configuring your first Agent.
-## Create a New AI Assistant
+## What Makes an Agent
-There are three ways to create a new assistant: use the Agent Builder for smart creation, build one from scratch, or quickly add one from the community. No matter which method you choose, your assistant can be fine-tuned to match your workflow.
+Every Agent is built from six components:
+
+| Component | Purpose |
+| ------------------ | ------------------------------------------------------------------ |
+| **System Role** | The Agent's personality, expertise, and behavioral guidelines |
+| **AI Model** | The LLM powering the Agent — GPT-4o, Claude, Gemini, and more |
+| **Skills** | Capabilities like web search, code execution, and image generation |
+| **Integrations** | MCP connections and integrations with external services |
+| **Knowledge Base** | Documents and data the Agent can search and reference |
+| **Memory** | Personal context the Agent learns and retains across sessions |
+
+Start simple — a System Role and a model is all you need. Layer in Skills, Integrations, and a Knowledge Base as your work demands.
+
+## Types of Agents
+
+- **Built-in Agents** — Agent Builder (helps you create Agents), Pages Agent (writing), Memory Agent (manages your personal Memory)
+- **Custom Agents** — Agents you create and configure for your specific workflows
+- **Community Agents** — Ready-to-use Agents shared by the LobeHub community — one click to add
+
+## Create a New Agent
+
+Three paths to your first Agent: smart creation with Agent Builder, building one from scratch, or adding one from the Community. All three let you fine-tune every detail afterward.
### Smart Creation with Agent Builder
-Agent Builder is LobeHub’s built-in assistant that helps you create AI assistants. Simply chat with Agent Builder and describe your needs—it will understand and automatically generate a complete assistant configuration, including role settings, system prompts, and plugin setup.
+Agent Builder is LobeHub's built-in Agent that helps you create other Agents. Describe what you need in plain language — Agent Builder generates the role settings, system prompt, and Skill configuration automatically.
-- Click the "Create Agent" button in the left sidebar on the homepage, or use the "Create Agent" option below the chat box.
-- On the assistant profile page, chat with Agent Builder on the right side to describe your needs and complete the smart creation process.
-- After the assistant is generated, you can still manually fine-tune the settings.
+- Click **Create Agent** in the left sidebar, or use the **Create Agent** option below the chat input.
+- On the Agent Profile page, chat with Agent Builder on the right panel and describe your goal.
+- Review the generated configuration and adjust anything that doesn't fit.
-
+
-### Create a Custom Assistant
+### Build a Custom Agent
-Custom assistants offer the highest level of personalization. You can set the assistant’s avatar, name, prompts, preferred AI model, and plugins to create a truly unique AI assistant. All customization can be done manually on the assistant profile page.
+For full control: set the avatar, name, system prompt, model, and Integrations yourself on the Agent Profile page. Start with the system prompt — everything else follows.
### Add from the Community
-If you want a ready-to-use assistant with a complete configuration, you can add one directly from the community. The community offers a wide variety of high-quality assistants—design experts, coding helpers, copywriters, academic mentors, and more—ready to use with a single click.
+The Community has thousands of ready-to-use Agents — design experts, coding helpers, copywriters, academic tutors, and more.
-- Go to "Community" → "Assistants" in the left sidebar, or scroll down the main interface to find "Community Assistants."
-- Choose an assistant, click to view its details, and then click "Add Assistant and Start Chat" to add it.
+- Go to **Community → Agents** in the left sidebar, or scroll down the main screen to **Community Agents**.
+- Open an Agent's detail page, then click **Add Agent & Chat** to start immediately.
-
+
-### Configure Your AI Assistant
+### Connect Skills and Integrations
-Once your assistant is created, you can enhance its capabilities by adding plugins and linking external workflows. Plugins provide extended functionality, while external workflows allow the assistant to access and interact with your favorite tools. These enhancements can significantly improve your productivity.
+After creating an Agent, expand its capabilities by adding Skills and linking external services.
-### Edit Assistant Information
+Go to **Agent Profile → + Add Skill** in the left sidebar.
-You can edit any assistant information at any time to keep it aligned with your evolving needs. Enter a chat with the assistant, then click "Assistant Profile" in the left sidebar to make changes.
+
-### Add Plugins and Link Tools
+### Edit Agent Information
-Adding plugins and linking tools makes collaboration with your assistant more efficient.
+Your Agent should evolve as your work does. Open a conversation, click **Agent Profile** in the left sidebar, and update anything — name, role, model, or Skills — at any time.
-Enter a chat with the assistant, then go to "Assistant Profile" → "+ Integrate Plugin" in the left sidebar.
+### Link a Knowledge Base
-
+Attach a knowledge base so your Agent answers from your own data — docs, specs, or research — not just from general training.
-### Link Knowledge Bases
+In the chat interface, use the Knowledge Base button to select and attach a knowledge base.
-By linking a knowledge base during a conversation, your assistant can provide more accurate and personalized responses based on your data.
-
-In the chat interface, use the appropriate button to select and link a knowledge base.
-
-
+
- For more on using knowledge bases, see [Knowledge Base](./docs/usage/getting-started/resource).
+ For more on knowledge bases, see [Resource Library](/docs/usage/getting-started/resource).
+## Writing Effective System Prompts
+
+The system prompt is the most important part of your Agent. It defines the Agent's expertise, behavior, and communication style. A well-written system prompt produces consistent, high-quality results.
+
+**Example structure:**
+
+```
+You are an expert [ROLE] specializing in [DOMAIN].
+
+Your expertise includes:
+- [Specific area 1]
+- [Specific area 2]
+- [Specific area 3]
+
+When responding:
+- [Communication guideline 1]
+- [Communication guideline 2]
+- [Format preference]
+```
+
+**Tips for writing good prompts:**
+
+- **Be specific about expertise** — "You are a senior TypeScript engineer specializing in React and performance optimization" is far more useful than "You are a coding assistant."
+- **Define the communication style** — Specify tone (professional, casual), response length (concise/detailed), and format (markdown, bullet points, prose).
+- **Include domain-specific guidelines** — For a legal writing Agent: "Cite relevant statutes when applicable. Flag when advice requires licensed legal counsel."
+- **Start simple, iterate** — Begin with a basic prompt and refine based on the Agent's actual responses.
+
+## Choosing the Right Model
+
+Different models have different strengths:
+
+| Model | Best For |
+| ------------------------- | --------------------------------------------- |
+| GPT-4o, Claude Sonnet | Balanced performance, coding, analysis |
+| Claude Opus, GPT-o1 | Complex reasoning, nuanced tasks |
+| Gemini | Multi-modal tasks, long context |
+| GPT-4o-mini, Claude Haiku | Fast responses, simple tasks, cost efficiency |
+| Ollama (local) | Privacy-sensitive tasks, offline use |
+
+Match the model to the task complexity and your budget. For Agents that handle routine tasks, a smaller model is often sufficient and faster.
+
+## Best Practices
+
+- **Test your prompts** — After creating an Agent, run a few sample conversations to verify it behaves as expected. Refine the system prompt based on what doesn't work.
+- **One responsibility per Agent** — Specialized Agents outperform generalists. Create separate Agents for coding, writing, and research rather than one Agent for everything.
+- **Update Agents as needs evolve** — Agents aren't set-and-forget. Revisit the system prompt when your workflows or requirements change.
+- **Use Agent Builder for complex setups** — For Agents requiring multiple Skills and a sophisticated system prompt, let Agent Builder do the initial setup, then refine manually.
+
## Manage Agents
-When you have many assistants and group chats, organizing them into groups is the most intuitive way to manage them. It keeps your assistant list clean and makes switching between them easier.
+When you have many Agents and Group Chats, organizing them into Groups keeps the sidebar clean and makes switching easier.
### Create a Group
-On the LobeHub homepage, open the assistant list menu and select "Add New Group" to create a new group.
+On the LobeHub homepage, open the Agent list menu and select **Add New Group**.
-
+
### Move to a Group
-Select an existing assistant or group chat, then click "Move to Group" to organize it. You can also create new assistants or group chats directly within a group.
+Select an existing Agent or Group Chat, then click **Move to Group**. You can also create new Agents or Group Chats directly inside a Group.
### Manage Groups
-If you have multiple groups, go to the assistant list or group menu and select "Manage Groups" to easily rename or reorder them.
+Go to the Agent list or Group menu and select **Manage Groups** to rename or reorder them.
-### Pin Frequently Used Assistants
+### Pin Frequently Used Agents
-You can pin frequently used assistants to the top of the list for quicker access. Select the assistant and choose "Pin" from the menu. Pinned assistants will stay at the top of the list for easy access.
+Pin an Agent to the top of the list for quicker access. Select the Agent and choose **Pin** from the menu. Pinned Agents stay at the top.
## Create a Copy
-You can duplicate an assistant to create a copy. Select the assistant and choose "Create Copy" from the menu. The system will generate an identical assistant, which is useful for creating variants with different configurations.
+Duplicate an Agent to explore different configurations without modifying the original. Select the Agent and choose **Create Copy** from the menu.
-## Delete an Assistant
+## Delete an Agent
-If you no longer need an assistant, you can delete it. Select the assistant, choose "Delete" from the menu, and confirm the deletion to remove it.
+Select the Agent, choose **Delete** from the menu, and confirm. The Agent will be removed.
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/agent.zh-CN.mdx b/docs/usage/getting-started/agent.zh-CN.mdx
index 94c036fa64..0e8e1a9126 100644
--- a/docs/usage/getting-started/agent.zh-CN.mdx
+++ b/docs/usage/getting-started/agent.zh-CN.mdx
@@ -1,103 +1,178 @@
---
-title: Agent
-description: 简单的集中配置,例如提示词,选择模型,知识库,插件等。
+title: 助理
+description: 打造专属 AI 助理——在同一处配置系统角色、模型、技能、资源库和记忆。
tags:
- LobeHub
- - LobeHub
- - AI 助手
- - 助手组织
- - 分组设置
- - 助手搜索
- - 助手固定
+ - 助理
+ - 助理配置
+ - 系统提示词
+ - 资源库
+ - 记忆
+ - 技能
---
-# Agent
+# 助理
-在 LobeHub,你可以自由创建和定制 AI 助理 —— 翻译助理记得你的术语偏好,编程助理熟悉你的代码风格,写作助理了解你的表达习惯。通过配置提示词、选择模型、添加插件和关联资源库,你能打造真正符合需求的专属助理。
+LobeHub 中的每个助理都是持久存在的工作伙伴,而非一次性对话。打造记住你术语偏好的翻译助理,熟悉你技术栈的编程助理,或者契合你表达习惯的写作助理。系统角色、模型、技能和资源库,配置一次,持续变得更懂你。
-本篇指南将详细介绍如何创建和配置你的 AI 助理。
+本篇指南将带你完成第一个助理的创建与配置。
-## 新建 AI 助理
+## 助理由什么构成
-新建助理有三种方式:使用 Agent Builder 智能创建、从零开始打造专属助理,或从社区快速添加。无论哪种方式,都能让助理精准匹配你的工作需求。
+每个助理由六个组件搭建:
-### 使用 Agent builder 智能创建
+| 组件 | 用途 |
+| --------- | ----------------------------------- |
+| **系统角色** | 助理的个性、专业领域和行为准则 |
+| **AI 模型** | 驱动助理的大语言模型 ——GPT-4o、Claude、Gemini 等 |
+| **技能** | 网络搜索、代码执行、图像生成等能力 |
+| **连接器** | MCP 连接及与外部服务的集成 |
+| **资源库** | 助理可搜索和引用的文档与数据 |
+| **记忆** | 助理跨会话学习和保留的个人上下文 |
-Agent Builder 是 LobeHub 的内置助理,可以帮助你完成 AI 助理的创建。只需与 Agent Builder 对话,描述你的需求,它就能理解并自动生成完整的助理配置 —— 包括角色设定、系统提示词、插件配置。
+从简单开始 —— 系统角色 + 模型就足以上手。然后按需叠加技能、连接器和资源库。
-- 在首页左侧边栏找到创建助理按键,或选择对话框下方 「创建 Agent」 开始创建。
-- 在助理档案页面右侧,你可以和 Agent builder 对话,描述需求,完成智能创建。
-- 完成智能创建后,你也可以手动进行调整。
+## 助理类型
-
+- **内置助理** — Agent Builder(帮你创建助理)、文稿助理(写作)、记忆助理(管理个人记忆)
+- **自定义助理** — 你为特定工作流创建和配置的助理
+- **社区助理** — LobeHub 社区分享的现成助理,添加即用
+
+## 新建助理
+
+三条路径通向你的第一个助理:用 Agent Builder 智能创建、从零开始打造,或从社区直接添加。三种方式都支持后续随时调整每一项设置。
+
+### 使用 Agent Builder 智能创建
+
+Agent Builder 是 LobeHub 的内置助理,专门帮你创建其他助理。用日常语言描述你的需求 ——Agent Builder 自动生成系统角色、提示词和技能配置。
+
+- 点击左侧边栏的**创建助理**,或选择对话框下方的**创建助理**选项。
+- 在助理档案页面的右侧面板与 Agent Builder 对话,描述你的目标。
+- 确认生成的配置,根据需要调整任何不合适的地方。
+
+
### 创建自定义助理
-自定义助理能最大程度地贴合你的习惯。你可以自行定制助理的头像、名称、提示词,设置想使用的 AI 模型、插件,从而打造个人专属 AI 助理。在助理档案页面手动完成定制即可。
+想要完全掌控?在助理档案页面自行设置头像、名称、系统提示词、模型和连接器。从系统提示词出发 —— 其他一切由此展开。
### 从社区添加
-如果想快速获取配置完整的助理,可以选择从社区直接添加 AI 助理。社区有大量种类丰富的优质助理 —— 设计专家、代码助理、文案策划师、学术导师…… 添加即用。
+社区有数千个现成助理 —— 设计专家、代码助理、文案策划、学术导师……
-- 首页左侧边栏找到 「社区」→「助理」,或直接下滑主界面,找到「社区助理」。
-- 选择想添加的助理,点击进入详情界面了解具体信息,点击 「添加助理并会话」 即可完成添加。
+- 在左侧边栏选择**社区 → 助理**,或直接下滑主界面找到**社区助理**。
+- 打开助理详情页了解其能力,点击**添加助理并会话**,立即开始。
-
+
-### 配置 AI 助理
+### 接入技能与连接器
-助理创建完成后,你可以通过添加插件和链接外部工作流来增强它的能力。插件让助理获得各种扩展功能,链接外部工作流让助理能直接读取或操作你的更多常用工具。强化 AI 助理能够极大程度优化你的工作流程。
+助理创建完成后,通过添加技能和链接外部服务来扩展它的能力。
+
+进入**助理档案 → + 添加技能**。
+
+
### 编辑助理信息
-你可以随时编辑助理的任何信息,让它持续跟随你的脚步。选择助理进入会话,选择左侧边栏「助理档案」即可编辑。
-
-### 添加插件和链接工具
-
-为助理添加插件,链接其他工具,能够让你们的配合更加高效。
-
-选择助理进入会话,选择左侧边栏「助理档案」→「+ 集成插件」。
-
-
+助理应当随你的工作同步演进。选择助理进入会话,点击左侧边栏的**助理档案**,随时更新名称、角色、模型或技能。
### 关联资源库
-在会话中为助理关联资源库后,助手能基于你的资源库提供更精准、更个性化的回答。
+为助理关联资源库,让它基于你自己的文档、规范或研究资料来回答 —— 而不只依赖通用训练数据。
-进入会话页面,找到相应按键即可选择资源库进行关联。
+进入会话页面,点击资源库按键选择并关联即可。
-
+
- 关于资源库的使用,请参阅[资源库](./docs/usage/getting-started/resource)。
+ 关于资源库的使用,请参阅[资源库](/zh/docs/usage/getting-started/resource)。
-## 管理 Agent
+## 编写高效的系统提示词
-助手和群聊数量过多时,分组是最直观的管理方式,能够让助手列表更加简洁清晰,切换助手更加轻松。
+系统提示词是助理最重要的部分,它定义了助理的专业领域、行为方式和沟通风格。写好提示词,才能持续产出高质量的结果。
+
+**示例结构:**
+
+```
+你是一位专精于 [领域] 的 [角色] 专家。
+
+你的专业能力包括:
+- [具体方向 1]
+- [具体方向 2]
+- [具体方向 3]
+
+回复时请遵循:
+- [沟通准则 1]
+- [沟通准则 2]
+- [格式偏好]
+```
+
+**写好提示词的技巧:**
+
+- **具体描述专业领域** — "你是一位专精于 React 性能优化的高级 TypeScript 工程师" 远比 "你是一个编程助手" 更有效。
+- **定义沟通风格** — 明确语气(专业 / 轻松)、回复长度(简洁 / 详细)以及格式(Markdown、要点、段落)。
+- **加入领域专属准则** — 例如法律写作助理:"引用相关法规时需注明出处,并在需要专业法律建议时予以说明。"
+- **从简单开始,持续迭代** — 先写基础提示词,根据助理的实际表现逐步完善。
+
+## 选择合适的模型
+
+不同模型各有所长:
+
+| 模型 | 最适合 |
+| ------------------------ | -------------- |
+| GPT-4o、Claude Sonnet | 综合性能、代码、分析 |
+| Claude Opus、GPT-o1 | 复杂推理、精细任务 |
+| Gemini | 多模态任务、长上下文 |
+| GPT-4o-mini、Claude Haiku | 快速响应、简单任务、成本优化 |
+| Ollama(本地) | 隐私敏感任务、离线使用 |
+
+根据任务复杂度和预算选择合适的模型。处理日常任务的助理,较小的模型往往已足够且响应更快。
+
+## 最佳实践
+
+- **测试你的提示词** — 创建助理后,通过几次对话验证其表现。根据不足之处完善系统提示词。
+- **每个助理专注一项职责** — 专业化的助理优于全能型。为代码、写作、调研分别创建独立的助理,而不是用一个助理包揽一切。
+- **随需求演进更新助理** — 助理不是一次性配置。当工作流或需求变化时,及时回顾并更新系统提示词。
+- **复杂助理交给 Agent Builder** — 需要多个技能和复杂提示词的助理,先让 Agent Builder 完成初始配置,再手动精调。
+
+## 管理助理
+
+助理和群聊数量过多时,分组是最直观的管理方式 —— 列表更整洁,切换更轻松。
### 创建分组
-在 LobeHub 首页助手列表菜单选择「添加新分组」以创建新的分组。
+在首页助理列表菜单选择**添加新分组**。
-
+
### 移入分组
-选择已有助手和群聊菜单,点击「移动到分组」进行移入。也可以直接在分组内创建助手和群聊。\[Image]
+选中助理或群聊,点击**移动到分组**。也可以直接在分组内创建新的助理或群聊。
### 管理分组
-存在多个分组时,在助手列表或分组菜单选择「分组管理」,可以便捷修改分组显示顺序、分组命名。\[Image]
+在助理列表或分组菜单选择**分组管理**,便捷修改显示顺序和分组命名。
-### 置顶常用助手
+### 置顶常用助理
-你可以把频繁使用的助手置顶在列表最上方,以节省查找和滚动的时间。选中助手,在菜单中选择「置顶」即可。置顶的助手会固定在列表顶部,方便快速访问。\[Image]
+把频繁使用的助理置顶在列表最上方。选中助理,在菜单中选择**置顶**即可。
## 创建副本
-你可以复制一个助手,创建副本。选中助手,在菜单中选择「创建副本」,系统会创建一个完全相同的助手副本。适合在原助手基础上创建不同配置的变体。
+复制一个助理,在保留原有能力的基础上探索不同配置。选中助理,在菜单中选择**创建副本**。
-## 删除助手
+## 删除助理
-不需要的助手可以删除。选中助手,在菜单中选择「删除」,确认删除后助手将被移除。
+选中助理,在菜单中选择**删除**,确认后助理将被移除。
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/get-lobehub.mdx b/docs/usage/getting-started/get-lobehub.mdx
index 15a94dc994..d280d192d6 100644
--- a/docs/usage/getting-started/get-lobehub.mdx
+++ b/docs/usage/getting-started/get-lobehub.mdx
@@ -1,41 +1,62 @@
---
title: Getting LobeHub
description: >-
- Learn how to get started with LobeHub, including downloading and installing
- the app, signing up and logging in, and creating your assistant.
+ Access LobeHub on any device — browser, desktop (macOS/Windows), or mobile
+ (iOS/Android). One account, everywhere.
tags:
- LobeHub
- - LobeHub
- - Getting LobeHub
- - Download and Install
- - Sign Up and Log In
- - Create Assistant
+ - Download
+ - Install
+ - Browser
+ - Desktop
+ - Mobile
---
# Getting LobeHub
-## Use LobeHub in Your Browser
+LobeHub runs wherever you work — browser, desktop, or phone. Sign in once and your Agents, Pages, and Memory stay in sync across every device.
-You can access LobeHub directly in your browser by visiting [app.lobehub.com](https://app.lobehub.com).
+## Platform Overview
-## Install the macOS App
+| Platform | Availability | Get it |
+| ----------- | ------------------ | ------------------------------------------------------------------------------------------------------------------ |
+| **Web** | Any modern browser | [app.lobehub.com](https://app.lobehub.com) |
+| **macOS** | Native app | [Download](https://lobehub.com/download) |
+| **Windows** | Native app | [Download](https://lobehub.com/download) |
+| **iOS** | App Store | [App Store](https://apps.apple.com/app/id6471212236) |
+| **Android** | Google Play / APK | [Google Play](https://play.google.com/store/apps/details?id=com.lobehub.app) · [APK](https://lobehub.com/download) |
-Visit the [Download Page](https://lobehub.com/download) to get the macOS app.
+## Web
-Currently, the app is not available on the Mac App Store.
+No installation required. Open [app.lobehub.com](https://app.lobehub.com) in any modern browser and start immediately. Data syncs to the cloud — switch devices anytime.
-## Install the Windows App
+**Best for:** Quick access, trying LobeHub before installing, or using it on shared / restricted machines.
-Visit the [Download Page](https://lobehub.com/download) to get the Windows app.
+## Desktop
-Currently, the app is not available on the Microsoft Store.
+Download the native app from the [Download Page](https://lobehub.com/download). Available for **macOS** and **Windows** (not yet on the Mac App Store or Microsoft Store).
-## Install the Android App
+**Best for:** Offline access, system-level integration, and a dedicated window for focused work.
-Download the Android app from [Google Play](https://play.google.com/store/apps/details?id=com.lobehub.app).
+## Mobile
-Alternatively, you can download the APK file from the [Download Page](https://lobehub.com/download) and install it manually.
+| | iOS | Android |
+| ---------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------- |
+| **Store** | [App Store](https://apps.apple.com/app/id6471212236) | [Google Play](https://play.google.com/store/apps/details?id=com.lobehub.app) |
+| **Alt download** | — | [APK from Download Page](https://lobehub.com/download) |
-## Install the iOS App
+Sign in with your LobeHub account to access Agents and conversations on the go.
-Download the iOS app from the [App Store](https://apps.apple.com/app/id6471212236).
+**Best for:** Voice conversations, quick check-ins, and reviewing outputs away from your desk.
+
+## Next Steps
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/get-lobehub.zh-CN.mdx b/docs/usage/getting-started/get-lobehub.zh-CN.mdx
index 45e45d3bba..3dd0fb88df 100644
--- a/docs/usage/getting-started/get-lobehub.zh-CN.mdx
+++ b/docs/usage/getting-started/get-lobehub.zh-CN.mdx
@@ -1,39 +1,60 @@
---
title: 获取 LobeHub
-description: 了解如何获取 LobeHub,包括下载安装、注册登录、创建助理等。
+description: 在任意设备上使用 LobeHub——浏览器、桌面端(macOS/Windows)或移动端(iOS/Android)。一个账号,处处同步。
tags:
- LobeHub
- - LobeHub
- - 获取 LobeHub
- - 下载安装
- - 注册登录
- - 创建助理
+ - 下载
+ - 安装
+ - 浏览器
+ - 桌面端
+ - 移动端
---
# 获取 LobeHub
-## 在浏览器中使用 LobeHub
+LobeHub 随你所在 —— 浏览器、桌面或手机均可使用。登录同一账号,助理、文稿和记忆在所有设备间保持同步。
-你可以访问 [app.lobehub.com](https://app.lobehub.com) 在浏览器中使用 LobeHub。
+## 平台一览
-## 安装 macOS App
+| 平台 | 可用形式 | 获取方式 |
+| ----------- | ----------------- | ------------------------------------------------------------------------------------------------------------------ |
+| **网页** | 任意现代浏览器 | [app.lobehub.com](https://app.lobehub.com) |
+| **macOS** | 原生应用 | [下载](https://lobehub.com/download) |
+| **Windows** | 原生应用 | [下载](https://lobehub.com/download) |
+| **iOS** | App Store | [App Store](https://apps.apple.com/app/id6471212236) |
+| **Android** | Google Play / APK | [Google Play](https://play.google.com/store/apps/details?id=com.lobehub.app) · [APK](https://lobehub.com/download) |
-前往[下载页](https://lobehub.com/download)即可下载 macOS App。
+## 网页端
-目前不支持在 App Store 下载。
+无需安装。在任意现代浏览器中打开 [app.lobehub.com](https://app.lobehub.com),即可开始使用。数据同步至云端,随时切换设备。
-## 安装 Windows App
+**适合:** 快速访问、安装前试用,或在共享 / 受限设备上使用。
-前往[下载页](https://lobehub.com/download)即可下载 Windows App。
+## 桌面端
-目前不支持在 Windows Store 下载。
+前往[下载页](https://lobehub.com/download)获取原生应用,支持 **macOS** 和 **Windows**(暂未上架 Mac App Store 和 Microsoft Store)。
-## 安装 Android App
+**适合:** 离线使用、系统级集成、独立窗口专注工作。
-前往[Google Play](https://play.google.com/store/apps/details?id=com.lobehub.app)即可下载 Android App。
+## 移动端
-或者,前往[下载页](https://lobehub.com/download)下载 APK 文件,然后手动安装。
+| | iOS | Android |
+| -------- | ---------------------------------------------------- | ---------------------------------------------------------------------------- |
+| **商店** | [App Store](https://apps.apple.com/app/id6471212236) | [Google Play](https://play.google.com/store/apps/details?id=com.lobehub.app) |
+| **其他下载** | — | [从下载页获取 APK](https://lobehub.com/download) |
-## 安装 iOS App
+使用 LobeHub 账号登录,即可在手机上访问助理和对话。
-前往[App Store](https://apps.apple.com/app/id6471212236)即可下载 iOS App。
+**适合:** 语音对话、快速查看、外出时回顾内容。
+
+## 下一步
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/image-generation.mdx b/docs/usage/getting-started/image-generation.mdx
index f5049d3331..26d47efd91 100644
--- a/docs/usage/getting-started/image-generation.mdx
+++ b/docs/usage/getting-started/image-generation.mdx
@@ -1,54 +1,117 @@
---
title: Image Generation
description: >-
- A simple centralized configuration for prompts, model selection, knowledge
- base, plugins, and more.
+ Create high-quality images from text descriptions using AI models like DALL-E
+ 3, Flux, and more. Learn how to write effective prompts and choose the right
+ model.
tags:
- LobeHub
- - LobeHub
- - AI Assistant
- - Assistant Organization
- - Group Settings
- - Assistant Search
- - Assistant Pinning
+ - Image Generation
+ - AI Drawing
+ - DALL-E
+ - Text to Image
+ - Prompt Writing
---
# Image Generation
-LobeHub offers an AI-powered image generation feature that allows you to create visuals from text descriptions. Whether you're working on product prototypes, design inspiration, illustrations, or creative exploration, AI image generation helps bring your ideas to life quickly and effortlessly. Simply enter a description, choose a model and parameters, and receive high-quality images within seconds. All generated images are automatically saved to your LobeHub asset library for easy access, download, and reuse. From concept to creation, the entire process is streamlined and efficient.
+Describe what you want — LobeHub turns text into images. Product prototypes, design inspiration, illustrations, or creative exploration: choose a model, set your parameters, and get high-quality images in seconds. All generated images are automatically saved to your Resource Library.
-## Get Started with Drawing
+## Get Started
-Click on the "Drawing" section on the LobeHub main interface to access the AI image generation page.
+Click **Drawing** on the LobeHub main interface to open the image generation page.
## Enter a Prompt
-Describe the image you want in the input box. The more detailed your description, the more accurate the generated image will be.
+Describe the image you want in the input box. The more specific your description, the more accurate the result.
+
+**Effective prompt structure:**
+
+```
+[Subject] [Style/Medium] [Setting/Background] [Lighting] [Mood] [Technical details]
+```
+
+Examples:
+
+```
+"A futuristic city skyline at sunset, digital art, cyberpunk style, neon lights reflecting on wet streets, cinematic lighting, 4K detail"
+
+"A cozy coffee shop interior, watercolor illustration, warm golden light streaming through windows, potted plants on windowsills, soft and inviting atmosphere"
+
+"A product photo of a minimalist leather wallet on a clean white background, studio lighting, sharp focus, commercial photography style"
+```
+
+**Prompt tips:**
+
+- **Be specific about style** — "oil painting", "watercolor", "digital art", "photorealistic", "anime", "vector illustration"
+- **Describe lighting** — "dramatic shadows", "soft diffused light", "golden hour", "studio lighting"
+- **Specify composition** — "portrait view", "wide angle", "close-up", "bird's eye view"
+- **Add quality modifiers** — "high detail", "4K", "sharp focus", "professional quality"
+- **Avoid vagueness** — "beautiful", "nice", "good" add little — describe what you actually want
## Choose an AI Model
-LobeHub offers multiple AI image generation models. Select the one that best fits your needs.
+LobeHub offers multiple AI image generation models. Different models have different strengths:

-## Select Reference Images
+| Model | Best For |
+| -------------------- | ------------------------------------------------------------- |
+| **DALL-E 3** | Realistic photos, illustrations, following prompts accurately |
+| **Flux** | Artistic styles, creative images, fast generation |
+| **Stable Diffusion** | Highly customizable, community styles and fine-tuned models |
+| **fal.ai models** | Various specialized styles and fast generation |
-If you have reference images, you can upload them to guide the generation process. Click the upload button or drag and drop your reference images directly. You can upload multiple reference images.
+Try different models with the same prompt to see which gives the best results for your use case.
-
+## Select Reference Images (Optional)
+
+If you have reference images, upload them to guide the generation process. Click the upload button or drag and drop your reference images directly. You can upload multiple reference images.
+
+
+
+Reference images help the model understand your desired style, composition, or color palette.
## Choose Image Aspect Ratio
-Select an appropriate aspect ratio based on your intended use case.
+Select an aspect ratio based on your intended use:
-## Set Number of Images to Generate
+- **1:1** — Social media posts, profile pictures
+- **16:9** — Widescreen, presentations, banners
+- **9:16** — Mobile screens, stories, reels
+- **4:3** — General use, older display formats
+- **3:2** — Photography standard, prints
-You can choose how many images to generate in one go.
+## Set Number of Images
-## View and Manage Images
+Choose how many images to generate in one go. Generating multiple images at once gives you variations to choose from. Start with 2–4 to find the best result.
-Once the images are generated, they will appear on the drawing page. You can preview them, click to view in full size, select your favorites, and download them.
+## View and Download Images
-All generated images are automatically saved to your LobeHub asset library.
+Once generated, images appear on the drawing page. You can:
-
+- Preview any image at full size by clicking it
+- Select favorites and download them
+- Share directly from the image viewer
+
+All generated images are automatically saved to your Resource Library.
+
+
+
+## Tips for Better Results
+
+**Iterate on prompts** — If the first result isn't quite right, adjust one element at a time rather than rewriting the whole prompt. Add more detail, change the style descriptor, or specify what you don't want.
+
+**Use a reference image** — Uploading a reference image with your prompt helps the model match your intended style, color palette, or composition.
+
+**Try multiple variations** — Generate 4+ images at once and pick the best one. AI image generation has inherent randomness — some variations will be significantly better than others.
+
+**Match model to task** — Use photorealistic models (DALL-E 3, Flux) for product photos and realistic scenes; use style-focused models for artistic illustrations.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/image-generation.zh-CN.mdx b/docs/usage/getting-started/image-generation.zh-CN.mdx
index de9591a35e..911797e43f 100644
--- a/docs/usage/getting-started/image-generation.zh-CN.mdx
+++ b/docs/usage/getting-started/image-generation.zh-CN.mdx
@@ -1,52 +1,114 @@
---
title: 图像生成
-description: 简单的集中配置,例如提示词,选择模型,知识库,插件等。
+description: 使用 DALL-E 3、Flux 等 AI 模型,通过文字描述生成高质量图像。学习如何编写有效的提示词并选择合适的模型。
tags:
- LobeHub
- - LobeHub
- - AI 助手
- - 助手组织
- - 分组设置
- - 助手搜索
- - 助手固定
+ - 图像生成
+ - AI 画图
+ - DALL-E
+ - 文字生成图像
+ - 提示词写作
---
# 图像生成
-LobeHub 提供 AI 画图功能,让你通过文字描述生成图像。无论是产品原型、设计灵感、插图配图,还是创意探索,AI 画图都能快速将你的想法可视化。输入描述,选择模型和参数,几秒钟内就能获得高质量的图像。生成的图片会自动保存到你的 LobeHub 资源库,方便随时查看、下载和使用。从创意构思到图像生成,整个过程简单高效。
+用文字描述你想要的内容 ——LobeHub 帮你把想法变成图像。产品原型、设计灵感、插图配图、创意探索:选择模型、设置参数,几秒钟内获得高质量图像。生成的图片会自动保存到你的资源库。
## 开始画图
-在 LobeHub 主界面点击「绘画」板块,进入 AI 画图页面。
+在 LobeHub 主界面点击**绘画**板块,进入画图页面。
## 输入提示词
-在输入框中描述你想要的图像。描述越详细,生成的图像越符合预期。
+在输入框中描述你想要的图像。描述越具体,结果越符合预期。
+
+**有效的提示词结构:**
+
+```
+[主体] [风格/媒介] [场景/背景] [光线] [氛围] [技术细节]
+```
+
+示例:
+
+```
+"赛博朋克风格的未来城市天际线,日落时分,霓虹灯在湿润街道上的倒影,数字艺术,电影级光线,4K 细节"
+
+"温馨咖啡馆室内,水彩插画风格,阳光透过窗户洒入,窗台上摆放绿植,柔和温暖的氛围"
+
+"极简皮革钱包产品照,白色干净背景,棚拍灯光,对焦清晰,商业摄影风格"
+```
+
+**提示词技巧:**
+
+- **明确指定风格** — "油画"、"水彩"、"数字艺术"、"照片写实"、"动漫"、"矢量插画"
+- **描述光线** — "戏剧性阴影"、"柔和漫射光"、"黄金时段"、"棚拍灯光"
+- **指定构图** — "竖拍人像"、"广角"、"特写"、"俯拍鸟瞰"
+- **加入质量词** — "高细节"、"4K"、"对焦清晰"、"专业品质"
+- **避免模糊描述** — "漂亮"、"好看"、"不错" 对结果帮助有限 —— 要具体描述你真正想要的内容
## 选择 AI 模型
-LobeHub 提供多个 AI 画图模型,选择最符合需求的模型即可。
+LobeHub 提供多个 AI 画图模型,不同模型各有所长:

-## 选择参考图片
+| 模型 | 最适合 |
+| -------------------- | ----------------- |
+| **DALL-E 3** | 写实照片、插画、精准遵循提示词 |
+| **Flux** | 艺术风格、创意图像、快速生成 |
+| **Stable Diffusion** | 高度可定制,支持社区风格和微调模型 |
+| **fal.ai 系列模型** | 多种专业风格,生成速度快 |
-选择参考图片如果你有参考图片,可以上传作为生成的参考。点击上传参考图片按钮或直接把参考图片拖入即可。参考图片可以上传多张。
+用同一个提示词尝试不同模型,找到最适合你使用场景的。
-
+## 选择参考图片(可选)
+
+如果你有参考图片,可以上传作为生成的参考。点击上传按钮或直接拖入参考图片即可。可以上传多张参考图片。
+
+
+
+参考图片有助于模型理解你期望的风格、构图或配色方案。
## 选择图片比例
-选择图片比例你可以根据使用场景选择合适的图片比例。
+根据使用场景选择合适的比例:
-## 设置生成图片数量
+- **1:1** — 社交媒体发帖、头像
+- **16:9** — 宽屏、演示文稿、横幅
+- **9:16** — 手机屏幕、动态、竖屏视频
+- **4:3** — 通用用途、旧显示格式
+- **3:2** — 摄影标准、打印
-你可以选择一次生成多少张图片。
+## 设置生成数量
-## 查看和管理图片
+选择一次生成多少张图片。一次生成多张可以获得不同变体供你选择。建议从 2–4 张开始,从中挑选最佳结果。
-图像生成完成后,会显示在画图页面。你可以查看生成的图像、点击图像查看大图、选择满意的图像并下载。
+## 查看和下载图片
-生成的图片会自动保存到你的 LobeHub 资源库。
+图像生成完成后,会显示在画图页面。你可以:
-
+- 点击任意图片查看全尺寸预览
+- 选择满意的图片并下载
+- 在图片查看器中直接分享
+
+生成的图片会自动保存到你的资源库。
+
+
+
+## 获得更好结果的技巧
+
+**迭代优化提示词** — 如果第一次的结果不够理想,每次只调整一个要素,而不是重写整个提示词。可以增加细节、改变风格词,或指定你不想要的内容。
+
+**使用参考图片** — 上传参考图配合提示词,帮助模型匹配你期望的风格、配色或构图。
+
+**多变体对比** — 一次生成 4 张以上,从中挑选最佳。AI 图像生成本身具有随机性 —— 不同变体的质量可能差异明显。
+
+**根据任务选模型** — 产品照和写实场景选写实系模型(DALL-E 3、Flux);艺术插画选风格化模型。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/lobe-ai.mdx b/docs/usage/getting-started/lobe-ai.mdx
index 8c022deb7d..bbf79e1d00 100644
--- a/docs/usage/getting-started/lobe-ai.mdx
+++ b/docs/usage/getting-started/lobe-ai.mdx
@@ -1,35 +1,75 @@
---
title: Lobe AI
description: >-
- Use Lobe AI to handle your daily tasks, including checking the weather, setting reminders, reading news, managing emails, and more.
-
-
+ Lobe AI is LobeHub's built-in assistant — no setup required. Chat, code,
+ research, write, and more, right out of the box.
tags:
- LobeHub
- Lobe AI
- - Daily Tasks
+ - Built-in Agent
---
# Lobe AI
-Lobe AI is the official assistant from LobeHub, designed to help you accomplish a wide range of tasks efficiently.
+No API keys. No configuration. No "getting started" friction. Open LobeHub and Lobe AI is already there, a full-featured Agent ready to work with you from the first second.
-## Use Cases
+Think of it as the teammate who's always online. Drop in a question at 2 AM, paste a 500-line error log, ask it to outline a presentation you've been dreading. No setup needed. It just works.
-Lobe AI can assist you with various everyday tasks, such as:
+## What You Can Do
-- Software Development: View code snippets, generate code, debug programs, and more.
-- Learning Support: Answer questions, provide study materials, generate practice exercises, etc.
-- Personal Assistant: Check the weather, set reminders, read the news, manage emails, and more.
-- Creative Writing: Generate story ideas, polish your writing, offer writing suggestions, etc.
-- Data Analysis: Create data reports, visualize data, provide analytical insights, and more.
+**Code**
-If you have specific needs, you can create a [custom assistant](/docs/usage/getting-started/agent) tailored to your personal requirements.
+It's 11 PM, a deploy just broke, and the stack trace points to a module you've never touched. Paste the error in. Lobe AI reads the code, explains what went wrong, and walks you through the fix, faster than searching Stack Overflow.
-## Built-in Tools
+**Research**
-Lobe AI comes with a variety of built-in tools to help you complete tasks more efficiently:
+You need to compare three cloud providers for a migration decision by tomorrow. Ask once. Lobe AI searches the web in real time, compiles a comparison with pricing, limits, and trade-offs, and cites every source so you can verify, not just trust.
-- [GTD](/docs/usage/agent/gtd)
-- [Plan](/docs/usage/agent/plan)
-- [Notebook](/docs/usage/agent/notebook)
+**Write**
+
+A client email that needs the right tone. A blog post outline that won't write itself. A cover letter you've been putting off for a week. Describe the goal and the audience. Lobe AI drafts it, and you refine from there.
+
+**Analyze**
+
+You have a spreadsheet of survey results but no time to build charts. Lobe AI processes the data, surfaces patterns, and renders visualizations as Artifacts right in the conversation. Ready to export or screenshot.
+
+**Create**
+
+Need a hero image for a landing page, a diagram for documentation, or a quick audio clip for a demo? Lobe AI generates images, audio, and rich visual Artifacts without switching tools.
+
+## Built-in Skills
+
+Lobe AI shares the same Skill ecosystem as every custom Agent you build. Toggle any Skill on mid-conversation to unlock new capabilities. No restart, no re-prompting:
+
+| Skill | What it does |
+| ------------------------------------------ | ---------------------------------------------------------------------------- |
+| [Web Search](/docs/usage/agent/web-search) | Pull in real-time information from across the internet |
+| [Artifacts](/docs/usage/agent/artifacts) | Render code, charts, diagrams, and interactive content inline |
+| [Notebook](/docs/usage/agent/notebook) | Capture key takeaways and organize notes as you go |
+| [GTD](/docs/usage/agent/gtd) | Turn conversations into structured tasks with the Getting Things Done method |
+| [Sandbox](/docs/usage/agent/sandbox) | Write, run, and test code in an isolated environment |
+
+## When to Create a Custom Agent
+
+Lobe AI is the fastest way to get value from LobeHub. But at some point you'll notice a pattern: you keep explaining your coding style, re-pasting your brand guidelines, or re-enabling the same Skills every session.
+
+That's the signal to [create a custom Agent](/docs/usage/getting-started/agent). A custom Agent locks in your system prompt, your knowledge base, your preferred Skills, and your Memory, so every conversation picks up right where the last one left off.
+
+| | Lobe AI | Custom Agent |
+| ------------------ | --------------------- | ----------------------------------------- |
+| **Setup** | None, ready instantly | You define the profile |
+| **System prompt** | General-purpose | Tailored to a role, tone, or domain |
+| **Knowledge base** | Shared | Dedicated per Agent |
+| **Memory** | Shared | Per-Agent, persistent |
+| **Skills** | Toggle on demand | Pre-configured, always on |
+| **Sharing** | — | Shareable with your team or the Community |
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/lobe-ai.zh-CN.mdx b/docs/usage/getting-started/lobe-ai.zh-CN.mdx
index a45fe15053..8787feb15e 100644
--- a/docs/usage/getting-started/lobe-ai.zh-CN.mdx
+++ b/docs/usage/getting-started/lobe-ai.zh-CN.mdx
@@ -1,32 +1,73 @@
---
title: Lobe AI
-description: 使用 Lobe AI 完成每日任务,包括查看天气、设置提醒、查看新闻、查看邮件等。
+description: Lobe AI 是 LobeHub 的内置助理,无需配置,开箱即用。随时聊天、写代码、做研究、写文章。
tags:
- LobeHub
- Lobe AI
- - 每日任务
+ - 内置助理
---
# Lobe AI
-Lobe AI 是 LobeHub 的官方助手,可以帮助你完成各种任务。
+不用填 API Key,不用做任何配置,没有 "入门" 的摩擦。打开 LobeHub,Lobe AI 就已经在那里,一个功能完整的助理,从第一秒起就准备好和你一起工作。
-## 场景
+把它当成那个永远在线的队友。凌晨两点丢过去一个问题,粘贴一段 500 行的错误日志,让它帮你列一份你一直拖着不想写的演示大纲。不需要你做任何设置,它就能直接上手。
-Lobe AI 可以帮助你完成多种日常任务,例如:
+## 能做什么
-- 软件开发:查看代码片段、生成代码、调试代码等。
-- 学习辅助:解答问题、提供学习资料、生成练习题等。
-- 生活助手:查看天气、设置提醒、查看新闻、查看邮件等。
-- 创意写作:生成故事情节、润色文章、提供写作建议等。
-- 数据分析:生成数据报告、可视化数据、提供分析建议等。
+**编程**
-如果你有特殊的需求,可以创建[自定义助手](/docs/usage/getting-started/agent),满足你的个性化需求。
+晚上 11 点,部署挂了,堆栈追踪指向一个你从没碰过的模块。把错误粘贴进来。Lobe AI 阅读代码,解释出了什么问题,带你一步步修复,比翻 Stack Overflow 快得多。
-## 内置工具
+**研究**
-Lobe AI 集成了多种内置工具,帮助你更高效地完成任务:
+明天之前要完成三家云服务商的迁移对比评估。问一次就够了。Lobe AI 实时联网搜索,整理出包含定价、限制和取舍的对比分析,每条信息都标注来源,让你去验证,而不是盲信。
-- [GTD](/docs/usage/agent/gtd)
-- [Plan](/docs/usage/agent/plan)
-- [Notebook](/docs/usage/agent/notebook)
+**写作**
+
+一封需要拿捏语气的客户邮件。一篇迟迟不动笔的博客大纲。一份拖了一周的求职信。说清目标和受众,Lobe AI 帮你起草,你在上面打磨就好。
+
+**分析**
+
+手头有一份调查问卷结果的表格,但没时间做图表。Lobe AI 处理数据、发现规律,直接在对话中以 Artifact 的形式渲染可视化,可以导出,也可以直接截图。
+
+**创作**
+
+需要一张落地页的主视觉、一张文档里的流程图,或者一段演示用的音频?Lobe AI 直接生成图片、音频和富视觉 Artifact,不用切换工具。
+
+## 内置技能
+
+Lobe AI 和你构建的每一个自定义助理共享同一个技能生态。对话中随时开启任何技能,即刻解锁新能力,不用重启,不用重新描述上下文:
+
+| 技能 | 功能 |
+| ------------------------------------------- | ---------------------- |
+| [网络搜索](/zh/docs/usage/agent/web-search) | 从互联网实时获取最新信息 |
+| [Artifacts](/zh/docs/usage/agent/artifacts) | 在对话中直接渲染代码、图表、流程图和交互内容 |
+| [Notebook](/zh/docs/usage/agent/notebook) | 随时记录关键结论,整理对话中的笔记 |
+| [GTD](/zh/docs/usage/agent/gtd) | 用 GTD 方法把对话转化为结构化任务 |
+| [沙盒](/zh/docs/usage/agent/sandbox) | 在隔离环境中编写、运行和测试代码 |
+
+## 什么时候该创建自定义助理
+
+Lobe AI 是从 LobeHub 获取价值最快的方式。但用一段时间后你会发现一个规律:你反复解释自己的编码风格,反复粘贴品牌指南,每次都重新开启同样的技能。
+
+这就是[创建自定义助理](/zh/docs/usage/getting-started/agent)的信号。自定义助理会固定你的系统提示词、知识库、常用技能和记忆,让每次对话都从上次结束的地方接着来。
+
+| | Lobe AI | 自定义助理 |
+| --------- | --------- | -------------- |
+| **配置** | 无需配置,即刻可用 | 由你定义助理档案 |
+| **系统提示词** | 通用 | 针对特定角色、语气或领域定制 |
+| **知识库** | 共享 | 每个助理独立配置 |
+| **记忆** | 共享 | 按助理独立,持久保存 |
+| **技能** | 按需开启 | 预配置,始终启用 |
+| **分享** | — | 可分享给团队或社区 |
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/memory.mdx b/docs/usage/getting-started/memory.mdx
index 2b7a213984..f45f6d9749 100644
--- a/docs/usage/getting-started/memory.mdx
+++ b/docs/usage/getting-started/memory.mdx
@@ -1,72 +1,182 @@
---
title: Memory
description: >-
- Learn about LobeHub's memory feature, including types of memory, memory
- sources, memory search, and more.
+ Agents that remember who you are and how you work — transparent, structured,
+ and fully under your control.
tags:
- - LobeHub
- LobeHub
- Memory
- - Types of Memory
- - Memory Sources
- - Memory Search
+ - Personalization
+ - Memory Agent
+ - Privacy
+ - Context
---
# Memory
-Traditional AI treats every conversation like the first time—you have to repeat the same information over and over. With the Agent Memory feature, your assistant truly gets to know you. It automatically identifies and remembers key information from your conversations, making each interaction more efficient and personalized.
+Most AI tools treat every conversation like the first one — you repeat the same context, preferences, and background every time. With Memory, your Agents actually learn who you are. Key information is automatically extracted from your conversations, stored in a structured format, and applied in future interactions — making every session more useful than the last.
-This isn’t just a simple chat history—it’s intelligent knowledge extraction and organization. The assistant recognizes your identity, work context, personal preferences, and practical experience, and stores them in a structured format. In future conversations, it can proactively recall this memory to provide responses tailored to your needs—just like a colleague who really understands you.
+This isn't a chat log. It's intelligent knowledge extraction: your role, work context, preferences, and habits — organized and ready to use.
+
+## Why Memory Matters
+
+Without Memory, every conversation starts from zero:
+
+- You repeat context constantly
+- Agents forget your preferences between sessions
+- Responses stay generic, unable to adapt to your situation
+
+With Memory, Agents build a clear, evolving picture of who you are and how you work. The more you use LobeHub, the better your Agents become.
+
+## How Memory Works
+
+Memory follows a four-step cycle:
+
+1. **Conversation analysis** — As you interact, the Memory Agent identifies insights: explicit preferences, implicit patterns, project context, communication style.
+2. **Memory extraction** — Key insights are extracted, categorized by type (preference, fact, context), and tagged with relevance and confidence.
+3. **Storage and indexing** — Memories are stored in a structured, searchable format. When new information conflicts with existing Memory, it updates automatically.
+4. **Contextual recall** — When relevant, Agents retrieve and apply the right memories — so responses fit your situation without you needing to re-explain.
+
+### White-Box Transparency
+
+LobeHub Memory is fully transparent. Unlike black-box AI memory, you can view every memory, edit any entry, delete what you don't want, and add memories manually at any time. Agents can't remember anything you haven't approved.
+
+## Types of Memory
+
+**Personal preferences** — How you like to work and communicate: response length, technical depth, tone, format preferences, working hours.
+
+**Personal context** — Who you are and what you're doing: role, organization, team, current projects, key stakeholders.
+
+**Skills and knowledge** — What you know and what you're learning. Helps Agents calibrate their explanations to your level.
+
+**Patterns and habits** — Recurring behaviors and workflows: weekly meetings, common requests, decision-making criteria, typical project workflows.
+
+**Historical context** — Past projects and decisions: lessons learned, reasoning behind past choices, key collaborators.
## Understanding Agent Memory
-Agent Memory is a built-in plugin in LobeHub. It automatically identifies and extracts key information from your conversations with the assistant, forming a structured memory base. These memories are proactively used in future interactions, making communication more personalized and efficient. Instead of merely recording dialogue, the assistant understands and extracts actionable memory instructions. In later conversations, it references relevant memories to provide more personalized responses, avoid asking for known information again, and tailor its output based on your preferences.
+Agent Memory is a built-in plugin in LobeHub. It automatically identifies and extracts key information from your conversations, building a structured memory base. These memories are applied in future interactions, making communication more personalized and efficient. Instead of logging dialogue verbatim, it distills actionable insights — behavioral rules the Agent follows going forward.
-
+
-## Enabling Agent Memory
+## Enabling Memory
-Memory is a built-in plugin in LobeHub and must be enabled for each assistant. You can enable the memory plugin from the "Assistant Profile" page under the "Add Plugin" section, or directly within a conversation by selecting the plugin in the chat interface.
+Memory is a built-in plugin and must be enabled for each Agent separately. You can enable it from the Agent Profile page or directly within a conversation.
-### Enable from Assistant Profile
+### Enable from Agent Profile
-Go to the Assistant Profile page, click "+ Add Plugin", and check the "Memory" plugin to enable it.
+Go to the Agent Profile page, click **+ Add Plugin**, and check **Memory** to enable it.
-
+
### Enable in a Conversation
-Open a conversation, click the plugin icon below the chat box, and check the "Memory" plugin to activate it.
+Open a conversation, click the plugin icon below the chat input, and check **Memory** to activate it.
-
+
## Managing Memory
-### Viewing Memory
+### View Memory
-Click the "Memory" icon at the bottom of the left sidebar on the LobeHub homepage to open the memory management panel. This panel displays all memories extracted from your conversations. Memories are organized by type for easy browsing and management. Each memory includes the following details:
+Click the **Memory** icon at the bottom of the left sidebar to open the Memory panel. It displays all memories extracted from your conversations, organized by type. Each memory shows:
-- Memory Title: A concise summary of the memory’s core content, such as "Dislikes coffee".
-- Preference Weight: Indicates the importance of the memory. The higher the weight, the more the assistant prioritizes it in conversations.
-- Created Time: Shows when the memory was extracted from a conversation.
-- Memory Instruction: The behavioral rule derived from the conversation, which the assistant follows in future interactions. For example: "Avoid recommending coffee or coffee-based drinks unless the user explicitly asks for them; suggest non-coffee alternatives instead."
-- Possible Assistant Actions: Describes how the assistant might apply this memory, such as: "Offer tea, hot chocolate, juice, smoothies, or decaf/non-coffee options depending on context."
-- Tags: Tags related to the memory for easier categorization and search.
+- **Title** — A concise summary, e.g. "Dislikes coffee"
+- **Preference Weight** — How strongly the Agent prioritizes this memory. Higher weight = more influence in conversations.
+- **Created Time** — When the memory was extracted
+- **Memory Instruction** — The behavioral rule derived from the conversation, e.g. "Avoid recommending coffee unless the user explicitly requests it; suggest non-coffee alternatives."
+- **Possible Actions** — How the Agent might apply this memory, e.g. "Offer tea, hot chocolate, juice, or decaf options depending on context."
+- **Tags** — For categorization and search
-
+
-### Searching Memory
+### Search Memory
-When you have many memories, use the search function to quickly locate specific ones. You can also open the command menu at any time to search for memories.
+Use the search function to quickly find specific memories. You can also open the command menu at any time and search for memories there.
-### Editing Memory
+### Edit Memory
-You can modify the memory instructions generated from conversations to better reflect your actual needs and preferences.
+Modify any memory instruction to better reflect your actual needs and preferences.
-
+
-### Deleting Memory
+### Delete Memory
-Select the memory you want to delete and click the delete button.
+Select a memory and click the delete button to remove it.
-
+
+
+## The Memory Agent
+
+The **Memory Agent** is a built-in Agent dedicated to managing your personal Memory:
+
+- **Extraction** — Analyzes conversations to identify valuable insights worth keeping
+- **Organization** — Categorizes and structures memories for easy retrieval
+- **Maintenance** — Identifies outdated or conflicting memories and suggests updates
+- **Application** — Determines when to inject relevant memories into an Agent's context
+
+Talk directly to the Memory Agent to add, update, or review memories:
+
+- "Remember that I prefer morning meetings over afternoon ones."
+- "What do you know about my current projects?"
+- "Update my role: I'm now VP of Product, not Senior PM."
+- "What do you remember about my communication preferences?"
+
+## Using Memory Effectively
+
+### Getting Started
+
+When you first use LobeHub, help Agents learn about you quickly:
+
+- Share your role, team, and current priorities
+- State preferences explicitly ("I prefer bullet points over paragraphs")
+- Add manual memories for important facts Agents should always know
+
+### Natural Conversation with Memory
+
+Once context is established, just work. Here's the difference Memory makes:
+
+**Without Memory:**
+
+- Agent asks: "What format would you like?" / "Who are the stakeholders?" / "What sections should I include?"
+
+**With Memory:**
+
+- Agent uses your preferred template automatically
+- Includes sections you always want (e.g., user research)
+- Lists your stakeholders without asking
+
+### Refining Over Time
+
+Memory improves as you work:
+
+- When an Agent gets something wrong, correct it: "Actually, I prefer X instead of Y." The Memory Agent updates immediately.
+- As your situation changes, tell Agents: "I'm now leading the mobile team in addition to web."
+- Review your Memory panel monthly — remove outdated entries, add new information.
+
+## Privacy and Control
+
+All memories belong to you:
+
+- Stored in your Workspace only
+- Never shared with other users
+- Not used to train models
+- Fully exportable (JSON, CSV, or Markdown)
+
+You can disable Memory extraction for specific conversations, mark sensitive topics as "don't remember", and set automatic expiration by time or project. Memory and conversation history are stored separately — deleting conversations doesn't affect Memory, and vice versa.
+
+## Best Practices
+
+- **Start with key context** — Have a conversation with the Memory Agent when you first start: "Let me tell you about myself and how I work." Cover your role, priorities, communication preferences, and common workflows.
+- **Be explicit about preferences** — "I always want PRDs to include a competitive analysis section" is memorable. "Add competitive analysis" is too vague.
+- **Correct mistakes immediately** — When an Agent misremembers, say: "That's not right. I prefer X instead of Y." The Memory Agent updates right away.
+- **Review monthly** — Remove outdated context, update changed preferences, add new important information.
+- **Don't store sensitive data** — Avoid passwords, financial details, or highly personal information. Memory works best for work preferences, professional context, and general patterns.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/memory.zh-CN.mdx b/docs/usage/getting-started/memory.zh-CN.mdx
index d7aa2662a8..75b6644f42 100644
--- a/docs/usage/getting-started/memory.zh-CN.mdx
+++ b/docs/usage/getting-started/memory.zh-CN.mdx
@@ -1,68 +1,180 @@
---
title: 记忆
-description: 了解 LobeHub 的记忆功能,包括记忆的类型、记忆的来源、记忆的搜索等。
+description: 记住你是谁、你怎么工作的助理——透明、结构化,且完全由你掌控。
tags:
- - LobeHub
- LobeHub
- 记忆
- - 记忆的类型
- - 记忆的来源
- - 记忆的搜索
+ - 个性化
+ - 记忆助理
+ - 隐私
+ - 上下文
---
# 记忆
-传统的 AI 每次对话都像第一次见面,你需要反复说明相同的信息。Agent 记忆功能让助手真正了解你,从对话中自动识别和记住关键信息,让每次交流都更高效、更个性化。
+大多数 AI 工具对每次对话都一无所知 —— 你要一遍遍重复同样的背景、偏好和信息。有了记忆,你的助理才真正开始了解你。它从对话中自动提取关键信息,以结构化的方式存储,并在之后的交互中主动应用 —— 让每次会话都比上一次更顺畅。
-这不是简单的对话历史记录,而是智能的知识提取和组织。助手会识别你的身份信息、工作情景、个人偏好、实践经验,并将它们结构化存储。下次对话时,助手能主动调用这些记忆,提供更贴合你需求的回答,就像一个真正了解你的工作伙伴。
+这不是简单的聊天记录,而是智能的知识提取:你的身份、工作背景、偏好和习惯,被整理归纳,随时可用。
-## 理解 Agent 记忆
+## 为什么记忆很重要
-Agent 记忆是 LobeHub 的内置插件。它能从你与助手的对话中自动识别和提取关键信息,形成结构化的记忆库。这些记忆会在后续对话中被助手主动调用,让交流更加个性化和高效。助理不会简单记录对话内容,而是理解并提取关键信息,形成可执行的记忆指令。在后续对话中,助理会根据问题调用相关记忆,提供更个性化的回答,避免重复询问已知信息,基于你的偏好调整输出。
+没有记忆,每次对话都从零开始:
-
+- 你不断重复上下文
+- 助理在不同会话间忘记你的偏好
+- 回复千篇一律,无法适应你的实际情况
-## 启用 Agent 记忆
+有了记忆,助理持续积累对你工作方式的清晰认知。你使用 LobeHub 越多,助理帮助你的能力就越强。
-记忆是 LobeHub 的内置插件,需要为助理启用后才能使用。你可以在「助手档案」页面添加插件处启用记忆插件,也可以进入会话,在对话框勾选插件处启用记忆插件。在助理档案中启用
+## 记忆的工作原理
-进入助理档案页面,点击「+ 集成插件」,勾选「记忆」插件即可开启。
+记忆遵循四步循环:
-
+1. **对话分析** — 在你与助理交互时,记忆助理识别有价值的洞见:明确的偏好、隐含的规律、项目背景以及沟通风格。
+2. **记忆提取** — 关键洞见被提取并结构化,按类型分类(偏好、事实、背景),并标注相关性和置信度。
+3. **存储与索引** — 记忆以可搜索的结构化格式存储,新信息与旧记忆冲突时自动更新。
+4. **上下文召回** — 在相关时机,助理自动检索并应用记忆,让回复贴合你的处境,无需你重复背景。
-### 在会话中启用
+### 白盒透明度
-进入会话页面,点击对话框下方插件图标,勾选「记忆」插件即可。
+LobeHub 记忆完全透明。与 "黑盒"AI 记忆不同,你可以查看所有记忆、编辑任意条目、删除不想保留的内容,甚至无需等待自动提取即可手动添加。助理无法记住任何你未批准的内容。
-
+## 记忆类型
+
+**个人偏好** — 你的工作和沟通习惯:回复长度、技术深度、语气、格式偏好以及工作时间。
+
+**个人背景** — 你的身份和当前状态:职位、所在组织、团队、进行中的项目以及关键干系人。
+
+**技能与知识** — 你已掌握的内容和正在学习的领域。有助于助理根据你的水平调整解释方式。
+
+**规律与习惯** — 反复出现的行为和工作流程:每周例会、常见请求、决策标准以及典型项目流程。
+
+**历史背景** — 过去的项目和决策:经验教训、以往选择的理由以及关键合作者信息。
+
+## 理解助理记忆
+
+助理记忆是 LobeHub 的内置插件。它自动从你与助理的对话中识别并提取关键信息,形成结构化的记忆库。这些记忆在未来的交互中主动被调用,让沟通更个性化、更高效。它不是简单地记录对话内容,而是提炼出可执行的行为规则 —— 助理在之后的交互中会遵循这些规则。
+
+
+
+## 启用记忆
+
+记忆是内置插件,需要为每个助理单独启用。你可以从助理档案页面启用,也可以在对话中直接开启。
+
+### 从助理档案启用
+
+进入助理档案页面,点击 **+ 添加插件 **,勾选**记忆**插件即可启用。
+
+
+
+### 在对话中启用
+
+打开一个对话,点击输入框下方的插件图标,勾选**记忆**插件即可激活。
+
+
## 管理记忆
### 查看记忆
-在 LobeHub 首页左侧边栏下方点击「记忆」图标,进入记忆管理面板。这里展示了助手从对话中提取的所有记忆。记忆面板按类型组织,方便查看和管理。每条记忆包含以下信息:
+点击左侧边栏底部的**记忆**图标,打开记忆管理面板。该面板展示从对话中提取的所有记忆,按类型分类。每条记忆包含:
-- 记忆标题标题简洁概括了记忆的核心内容,如 "Dislikes coffee"。
-- 偏好权重显示该记忆的重要程度,权重越高,助理在对话中越会优先考虑这条记忆。
-- 创建时间显示记忆是何时从对话中提取的。
-- 记忆指令助理基于对话内容形成的行为指令,这是助理在后续对话中实际遵循的规则。例如:"Avoid recommending coffee or coffee-based drinks unless the user explicitly asks for them; suggest non-coffee alternatives instead."
-- 助理可能采取的行动展示助理如何应用这条记忆,例如:"Offer tea, hot chocolate, juice, smoothies, or decaf/non-coffee options depending on context.
-- 标签记忆相关的标签,方便分类和搜索。
+- **标题** — 对记忆核心内容的简洁概括,例如 "不喜欢咖啡"
+- **偏好权重** — 表示该记忆的重要程度。权重越高,助理在对话中越会优先考虑它
+- **创建时间** — 该记忆从哪次对话中提取
+- **记忆指令** — 从对话中得出的行为规则,例如:"除非用户主动要求,否则避免推荐咖啡;建议无咖啡因替代选项"
+- **助理可能的行动** — 助理如何应用该记忆,例如:"根据场景提供茶、热巧克力、果汁或无咖啡因选项"
+- **标签** — 便于分类和搜索
-
+
### 搜索记忆
-当记忆数量较多时,可以使用搜索功能快速定位。你也可以随时呼出命令菜单来查找记忆。
+记忆条目较多时,使用搜索功能快速定位。你也可以随时打开命令菜单搜索记忆。
### 编辑记忆
-你可以调整助手基于对话形成的记忆指令,让记忆更准确地反映你的真实需求。
+修改从对话中生成的记忆指令,使其更准确地反映你的实际需求和偏好。
-
+
### 删除记忆
-选中想删除的记忆,点击删除即可。
+选中要删除的记忆,点击删除按钮即可。
-
+
+
+## 记忆助理
+
+**记忆助理**是专门管理个人记忆的内置助理:
+
+- **记忆提取** — 分析对话,识别值得记忆的有价值洞见
+- **记忆整理** — 对记忆进行分类和结构化,便于检索
+- **记忆维护** — 识别过时或冲突的记忆,并提议更新
+- **记忆应用** — 判断何时将相关记忆注入助理上下文
+
+你可以直接与记忆助理对话,添加、更新或查阅记忆:
+
+- "记住我更喜欢上午开会,而不是下午。"
+- "你记住了我当前项目的哪些内容?"
+- "更新我的职位:我现在是产品副总裁,不再是高级产品经理了。"
+- "你记住了我在沟通风格方面的哪些偏好?"
+
+## 高效使用记忆
+
+### 快速入门
+
+首次使用 LobeHub 时,主动帮助助理了解你:
+
+- 分享你的职位、团队和当前优先事项
+- 明确表达偏好("我更喜欢用项目符号而非段落")
+- 手动添加助理应该始终知道的重要事实
+
+### 有了记忆的自然对话
+
+建立初始背景后,只需自然地工作。以下是记忆带来的改变:
+
+**没有记忆时:**
+
+- 助理询问:"你想要什么格式?" / "干系人有哪些?" / "应该包含哪些章节?"
+
+**有了记忆后:**
+
+- 助理自动使用你偏好的模版
+- 自动包含你始终需要的章节(如用户研究)
+- 无需询问即可列出你的干系人
+
+### 持续完善记忆
+
+记忆会随着你的使用不断改善:
+
+- 当助理理解有误时,纠正它:"其实,我更喜欢 X 而不是 Y。" 记忆助理会立即更新。
+- 当情况发生变化时,告知助理:"我现在除了 Web 端,还接管了移动端团队。"
+- 每月检查一次记忆面板 —— 删除过时条目,添加新信息。
+
+## 隐私与控制
+
+所有记忆都属于你:
+
+- 仅存储在你的工作空间中
+- 不与其他用户共享
+- 不用于训练模型
+- 可完整导出(JSON、CSV 或 Markdown 格式)
+
+你可以针对特定对话禁用记忆提取,将敏感话题标记为 "不记忆",并设置自动过期时间(按时间或按项目)。记忆与对话历史分开存储 —— 删除对话不影响记忆,反之亦然。
+
+## 最佳实践
+
+- **从关键背景开始** — 首次使用时与记忆助理对话:"让我介绍一下我自己和我的工作方式。" 涵盖职位、当前优先事项、沟通偏好和常见工作流程。
+- **明确表达偏好** — "我的 PRD 必须包含竞品分析章节" 是可记忆的;"加上竞品分析" 则过于模糊。
+- **立即纠正错误** — 当助理记错时,说:"不对,我更喜欢 X 而不是 Y。" 记忆助理会立即更新。
+- **每月回顾记忆** — 删除过时背景,更新已变更的偏好,添加新的重要信息。
+- **不要存储敏感数据** — 避免存储密码、财务信息或高度私密的个人内容。记忆适合用于工作偏好、职业背景和一般规律。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/page.mdx b/docs/usage/getting-started/page.mdx
index b4c79781bc..380751bffa 100644
--- a/docs/usage/getting-started/page.mdx
+++ b/docs/usage/getting-started/page.mdx
@@ -1,62 +1,135 @@
---
-title: Create and Configure Your AI Assistant
+title: Pages
description: >-
- A simple centralized configuration for prompts, model selection, knowledge
- base, plugins, and more.
+ Co-write long-form documents with Agents — Markdown, real-time preview, and
+ persistent editing in one place.
tags:
- LobeHub
- - LobeHub
- - AI Assistant
- - Assistant Organization
- - Group Settings
- - Assistant Search
- - Assistant Pinning
+ - Pages
+ - Document Writing
+ - Markdown
+ - Agent Collaboration
+ - Real-time Editing
---
-# Docs
+# Pages
-LobeHub offers a professional writing space designed to help you focus on long-form content creation. Whether you're working on technical documentation, study notes, project proposals, or blog posts, the Docs feature has you covered. It supports Markdown formatting, provides real-time preview, and automatically saves every edit.
+Pages give you a dedicated space for long-form writing — technical docs, study notes, project proposals, or blog posts. Markdown support, real-time preview, and auto-save keep you focused on content. Summon an Agent at any time to help — it doesn't just suggest; it edits directly in your document, refines structure, adds paragraphs, and polishes your writing.
-You can summon the AI assistant at any time to help with writing. The assistant does more than just offer suggestions—it can directly edit your content, polish your writing, add paragraphs, improve structure, and insert examples.
+## Why Use Pages?
-## Understanding the Docs Feature
+Traditional AI chat forces you to copy-paste content between conversations, losing context each time. Pages fix that:
-Docs is LobeHub’s built-in writing environment, tailored for long-form writing and editing. Unlike the chat feature, Docs provides:
+- **Persistent workspace** — Each document exists independently, saved permanently, ready to continue anytime
+- **Shared context** — All Agents work on the same document with full page context
+- **Structured content** — Full Markdown support: headings, lists, code blocks, quotes, and more
+- **Flexible management** — Create, import, rename, duplicate — organize all your documents in one place
-- A persistent writing space: Each document exists independently, allowing you to return and continue editing at any time. Your content is saved permanently.
-- Structured content organization: Full Markdown support lets you organize your content with headings, lists, code blocks, quotes, and more—perfect for creating professional documents.
-- Flexible file management: Create, import, rename, duplicate—comprehensive file management tools help you efficiently organize all your documents.
+## Creating and Importing Pages
-### Creating and Importing Docs
+### Create a New Page
-## Create a New Document
-
-From the LobeHub main interface, go to “Docs” and click “New Document,” or use the dropdown menu from the new file icon on the homepage to quickly create one. Once created, you can start writing immediately. Your work is auto-saved, so you can close it anytime and pick up where you left off later.
+From the LobeHub main interface, go to **Pages** and click **New Page**, or use the dropdown from the new file icon. Start writing immediately — your work auto-saves, so you can close anytime and pick up later.
### Import a Markdown File
-If you already have a Markdown document, you can import it directly. In the Docs section, click “Upload Markdown File,” select your file, and it will be loaded into a new document for immediate editing.
+Already have a Markdown document? Import it directly. In the Pages section, click **Upload Markdown File**, select your file, and it loads into a new page for immediate editing.
-### Editing Documents
+### Editing Pages
-Docs are edited using Markdown. Markdown is a lightweight markup language that uses simple symbols to format text, allowing you to focus on content. You can also add an icon to your document, which will appear before the title.
+Pages use Markdown — a lightweight markup language with simple symbols for formatting, so you stay focused on content. You can add an icon to your page; it appears before the title.
-
+
### Command Palette
-While editing, press the / key to open the command palette. This is a quick-access tool that lets you insert various formatting elements with ease.
+Press `/` while editing to open the command palette — a quick-access tool for inserting formatting elements.

-### Collaborate with Lobe AI
+## Collaborating with Agents
-While editing a document, click the AI assistant icon on the right side of the editor to open the assistant panel. The panel slides in from the right and displays alongside your document, allowing you to chat with the assistant while continuing to write.
+While editing, click the Agent icon on the right side of the editor to open the Agent panel. It slides in alongside your document so you can chat and write at the same time.
-By default, the “Docs Assistant” is used—an AI assistant optimized specifically for document writing. If you need help in a specific domain, you can switch to a custom assistant you’ve created via the top-left corner of the assistant panel.
+By default, the **Pages Agent** is used — optimized for document writing. Need domain-specific help? Switch to a custom Agent via the top-left corner of the panel.
-The assistant can directly edit the content within your document.
+### What the Pages Agent Can Do
-### Managing Documents
+The Agent understands your full document context and can:
-In the document list, you can rename documents, create duplicates, copy the full content, or delete them.
+- **Generate content** — Write sections, paragraphs, or entire documents from your instructions
+- **Refine writing** — Edit, rewrite, or improve style on request
+- **Research and expand** — Add facts, examples, or deeper explanations
+- **Format and structure** — Organize content with proper headings and flow
+- **Maintain consistency** — Keep voice, tone, and style aligned throughout
+
+### Using Multiple Agents
+
+Switch Agents in the panel to get different perspectives on the same document:
+
+- Ask a technical writer for clarity
+- Bring in a subject-matter expert for accuracy
+- Use a creative writer for engaging narratives
+
+### Managing Pages
+
+In the page list, you can rename, duplicate, copy full content, or delete pages.
+
+## Best Practices
+
+**Start with structure** — Outline your document with headings first, then ask the Agent to fill sections progressively:
+
+```markdown
+# Main Title
+
+## Introduction
+
+## Key Points
+
+### Point 1
+
+### Point 2
+
+## Conclusion
+```
+
+**Use clear instructions** — Be specific when working with the Agent:
+
+- ❌ "Make this better"
+- ✅ "Rewrite this section to be more concise and add a concrete example"
+
+**Iterate in sections** — Rather than generating an entire document at once, have the Agent write one section, review and refine it, then move to the next. Higher quality than bulk generation.
+
+**Leverage templates** — Duplicate successful previous documents to reuse their structure.
+
+## Keyboard Shortcuts
+
+| Shortcut | Action |
+| -------------- | -------------------- |
+| `Cmd/Ctrl + S` | Save document |
+| `Cmd/Ctrl + B` | Bold |
+| `Cmd/Ctrl + I` | Italic |
+| `Cmd/Ctrl + K` | Insert link |
+| `/` | Open command palette |
+
+## Use Cases
+
+- **Technical documentation** — API docs, guides, specs — with an Agent that understands code
+- **Research notes** — Compile and organize research with AI-assisted summaries and expansion
+- **Blog posts** — Draft, refine, and polish articles through iterative editing
+- **Project proposals** — Structure proposals and let the Agent clarify your thinking
+
+## Limitations
+
+- **Token limits** — Very long documents may require the Agent to work in sections due to context window limits
+- **Formatting consistency** — Agents may use slightly different formatting conventions; review and unify as needed
+- **Fact-checking** — Always verify AI-generated facts, especially statistics and technical claims
+- **Voice preservation** — For personal writing, guide the Agent explicitly on tone and style to maintain your voice
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/page.zh-CN.mdx b/docs/usage/getting-started/page.zh-CN.mdx
index dea954fe0a..105f2d772c 100644
--- a/docs/usage/getting-started/page.zh-CN.mdx
+++ b/docs/usage/getting-started/page.zh-CN.mdx
@@ -1,60 +1,133 @@
---
-title: 创建和配置你的 AI 助理
-description: 简单的集中配置,例如提示词,选择模型,知识库,插件等。
+title: 文稿
+description: 与助理协作撰写长文档——Markdown、实时预览、持久保存,一屏搞定。
tags:
- LobeHub
- - LobeHub
- - AI 助手
- - 助手组织
- - 分组设置
- - 助手搜索
- - 助手固定
+ - 文稿
+ - 文档写作
+ - Markdown
+ - 助理协作
+ - 实时编辑
---
# 文稿
-LobeHub 提供专业的文稿编辑空间,让你能专注于长文本创作。无论是技术文档、学习笔记、项目方案,还是博客文章,文稿功能都能满足你的需求。支持 Markdown 格式,提供实时预览,自动保存每次编辑。
+文稿为你提供专注长文本创作的空间 —— 技术文档、学习笔记、项目方案、博客文章。支持 Markdown、实时预览、自动保存,让你专注于内容本身。随时呼出助理参与编写 —— 它不只是提供建议,还能直接在文稿中编辑:润色文字、补充段落、优化结构、添加示例。
-你可以随时呼出 AI 助手参与编写。助手不只是提供建议,还能直接在文稿中编辑内容 —— 润色文字、补充段落、优化结构、添加示例。
+## 为什么使用文稿?
-## 理解文稿功能
+传统 AI 对话界面需要你在不同对话之间反复复制粘贴内容,每次都会丢失上下文和节奏。文稿改变了这一切:
-文稿是 LobeHub 的内置写作空间,专为长文本创作和编辑设计。与对话功能不同,文稿提供了:
+- **持久的创作空间** — 文稿独立存在,内容永久保存,随时可以回来继续编辑
+- **统一的工作空间** — 所有助理在同一份文稿中工作,共享整个页面的上下文
+- **结构化内容** — 支持完整 Markdown 语法,用标题、列表、代码块、引用等元素组织内容
+- **灵活的文件管理** — 创建、导入、重命名、复制 —— 完整的文件管理功能,高效组织所有文稿
-- 持久的创作空间:文稿独立存在,你可以随时回到文稿继续编辑,内容永久保存。
-- 结构化的内容组织:支持完整的 Markdown 语法,让你能用标题、列表、代码块、引用等元素组织内容,呈现专业的文档效果。
-- 灵活的文件管理:创建、导入、重命名、复制 —— 完整的文件管理功能,让你高效组织所有文稿。
+## 创建和导入文稿
-### 创建和导入文稿
+### 新建文稿
-## 新建文稿
-
-在 LobeHub 主界面进入「文稿」,点击「新建文稿」,或在主界面新建图标的下拉菜单处选择「创建文稿」快速创建。创建完成后,即可开始编写。文稿会自动保存,你可以随时关闭,下次继续编辑。
+在 LobeHub 主界面进入**文稿**,点击**新建文稿**,或在主界面新建图标的下拉菜单处选择**创建文稿**。创建完成后即可开始编写。文稿会自动保存,你可以随时关闭,下次继续编辑。
### 导入 Markdown 文件
-如果你已经有现成的 Markdown 文档,可以直接导入。在文稿板块点击「上传 Markdown 文件」,选择并上传,文件内容会自动加载到新文稿中,你可以立即开始编辑。
+如果你已经有现成的 Markdown 文档,可以直接导入。在文稿板块点击**上传 Markdown 文件**,选择并上传,文件内容会自动加载到新文稿中,你可以立即开始编辑。
### 编辑文稿
-文稿使用 Markdown 格式编辑。Markdown 是一种轻量级标记语言,用简单的符号表示格式,让你专注于内容。在文稿标题上方,可以为文稿添加 icon。icon 会显示在文稿标题前。
+文稿使用 Markdown 格式编辑。Markdown 是一种轻量级标记语言,用简单的符号表示格式,让你专注于内容。在文稿标题上方,可以为文稿添加图标,图标会显示在标题前。
-
+
### 命令面板
-在编辑时按下 / 键,会呼出命令面板。这是一个快捷工具,让你能快速插入各种格式元素。
+在编辑时按下 `/` 键,会呼出命令面板。这是一个快捷工具,让你能快速插入各种格式元素。

-### 与 Lobe AI 合作编辑
+## 与助理协作编辑
-在编辑文稿时,点击编辑器右侧的 AI 助手图标按钮,助手面板会从右侧滑出。面板与文稿并排显示,你可以一边编辑文稿,一边与助手对话。
+在编辑文稿时,点击编辑器右侧的助理图标,助理面板会从右侧滑出。面板与文稿并排显示,你可以一边编辑文稿,一边与助理对话。
-呼出助手面板后,默认使用「文稿助理」。这是专门为文稿编写优化的助手,如果需要特定领域的专业帮助,可以在助手面板左上方切换到自己创建的助手。
+呼出助理面板后,默认使用**文稿助理**—— 专门为文稿编写优化的助理。如果需要特定领域的专业帮助,可以在助理面板左上方切换到自己创建的助理。
-助手可以直接在文稿中编辑内容。
+### 助理能做什么
+
+助理了解文稿的完整上下文,能够:
+
+- **生成内容** — 根据你的指令撰写章节、段落或完整文档
+- **完善写作** — 请求编辑、改写或风格改进
+- **研究与扩展** — 补充事实、示例或更深入的解释
+- **格式与结构** — 用合理的标题和逻辑组织内容
+- **保持一致性** — 在整个文档中保持语气、风格的统一
+
+### 使用多个助理
+
+在助理面板中切换助理,为同一文档获取不同视角:
+
+- 请技术写作者提升清晰度
+- 引入领域专家确保准确性
+- 使用创意写作者增加可读性
### 管理文稿
-在文稿列表,可以重命名文稿、创建副本、复制全文、删除文稿。
+在文稿列表中,可以重命名文稿、创建副本、复制全文、删除文稿。
+
+## 最佳实践
+
+**从结构开始** — 先用标题勾勒文稿大纲,再让助理逐步填充各章节:
+
+```markdown
+# 主标题
+
+## 引言
+
+## 要点
+
+### 要点一
+
+### 要点二
+
+## 结论
+```
+
+**使用明确的指令** — 与助理合作时,指令越具体越好:
+
+- ❌ "把这个写得更好"
+- ✅ "将这一节改写得更简洁,并添加一个具体示例"
+
+**按章节迭代** — 不要一次性生成整个文档,而是让助理写一个章节、检查并完善后,再推进到下一节。这样比批量生成产出质量更高。
+
+**善用模板** — 通过复制成功的文稿,为新文档提供现成的结构起点。
+
+## 快捷键
+
+| 快捷键 | 操作 |
+| -------------- | ------ |
+| `Cmd/Ctrl + S` | 保存文稿 |
+| `Cmd/Ctrl + B` | 加粗 |
+| `Cmd/Ctrl + I` | 斜体 |
+| `Cmd/Ctrl + K` | 插入链接 |
+| `/` | 打开命令面板 |
+
+## 使用场景
+
+- **技术文档** — 撰写 API 文档、指南或规范,助理理解代码上下文
+- **研究笔记** — 借助助理辅助摘要和扩展,整理和组织研究资料
+- **博客文章** — 通过迭代编辑起草、完善和润色文章
+- **项目方案** — 搭建方案结构,让助理帮你清晰表达思路
+
+## 使用限制
+
+- **Token 限制** — 超长文稿可能因上下文窗口限制,需要助理分段处理
+- **格式一致性** — 助理可能使用略有不同的格式规范,编辑时需统一检查
+- **事实核查** — 务必核实 AI 生成的事实,尤其是统计数据和技术说明
+- **风格保留** — 对于个人化写作,需明确指导助理使用你的语气和风格
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/resource.mdx b/docs/usage/getting-started/resource.mdx
index 4439628241..9ff9adbea1 100644
--- a/docs/usage/getting-started/resource.mdx
+++ b/docs/usage/getting-started/resource.mdx
@@ -1,36 +1,36 @@
---
title: Resource Library
description: >-
- A simple centralized configuration for prompts, model selection, knowledge
- bases, plugins, and more.
+ Your personal knowledge hub — documents, AI-generated images, and drafts in
+ one place. Agents answer from your data.
tags:
- LobeHub
- - LobeHub
- - AI Assistant
- - Assistant Organization
- - Group Settings
- - Assistant Search
- - Assistant Pinning
+ - Resource Library
+ - Knowledge Base
+ - Semantic Search
+ - File Upload
+ - Notion Import
---
# Resource Library
-The Resource Library in LobeHub is your personal knowledge hub. Documents uploaded during conversations, AI-generated images, and created drafts are all collected here. It strengthens your collaboration with AI by centralizing your knowledge, making it easier to manage and access anytime.
+The Resource Library is your personal knowledge hub. Documents uploaded in conversations, AI-generated images, and drafts you create — all collected here. Centralize your knowledge so Agents can answer from your data, not just from general training. Manage and access everything in one place.
-## Sources of Resources
+## Where Resources Come From
-- Conversation Uploads: Files uploaded during chats with assistants are automatically saved to the Resource Library. For example, if you upload a PDF for summarization, the file will be stored and available for future use.
-- AI-Generated Content: Images created in the drawing module are automatically saved to the Resource Library. You can view, download, and reuse them in conversations or drafts at any time.
-- Manual Uploads: You can directly upload files or folders to the Resource Library to actively build your knowledge base. Supported formats include documents, images, videos, audio, and more.
-- Draft Creation: Drafts created in the writing module are also stored in the Resource Library for unified management alongside other resources.
-- Notion Import: You can import content from Notion into the LobeHub Resource Library, enabling seamless knowledge management across platforms.
-- Accessing the Resource Library: Click the "Resources" icon at the bottom of the left sidebar on the LobeHub main interface to enter the Resource Library.
+- **Conversation uploads** — Files uploaded during chats are automatically saved to the Resource Library. Upload a PDF for summarization, and it stays available for future use.
+- **AI-generated content** — Images created in the Drawing module are saved automatically. View, download, and reuse them in conversations or drafts anytime.
+- **Manual uploads** — Upload files or folders directly to build your knowledge base. Supported formats: documents, images, video, audio, and more.
+- **Drafts** — Pages created in the writing module are stored here for unified management.
+- **Notion import** — Import content from Notion into LobeHub for seamless knowledge management across platforms.
+
+**Access the Resource Library** — Click the **Resources** icon at the bottom of the left sidebar on the LobeHub main interface.
## Creating a Resource Library
-You can organize your Resource Library by theme, project, type, and more. Creating separate libraries helps keep your resources well-structured.
+Organize your resources by theme, project, or type. Separate libraries keep everything structured.
-Click "New Library" in the left panel of the Resource Library page, enter a name, add an optional description, and click "Create" to get started.
+Click **New Library** in the left panel of the Resource Library page, enter a name, add an optional description, and click **Create**.

@@ -40,28 +40,73 @@ Choose to upload a folder to batch upload all files within it.
### Connecting Notion
-Select and export documents from Notion, then import the Notion ZIP file via the "Connect Notion" page. Once imported, you can continue editing these documents within LobeHub.
+Export documents from Notion, then import the Notion ZIP file via the **Connect Notion** page. Once imported, you can continue editing these documents within LobeHub.

+## How Semantic Search Works
+
+When you search in the Resource Library, LobeHub uses **vector search** (semantic search) rather than simple keyword matching:
+
+1. When you upload a file, it's split into chunks and each chunk is converted into a vector embedding
+2. When you ask a question, your query is also converted into a vector
+3. The system finds chunks whose vectors are most similar in meaning to your query
+4. The Agent reads the most relevant chunks and incorporates them into its response
+
+This lets the Agent find relevant content even when the exact words don't match — e.g. searching "how to login" can find content about "authentication" or "sign in".
+
## Managing the Resource Library
-File Chunking: This process splits long documents into smaller text segments and vectorizes each one. It enables the AI assistant to better understand and retrieve relevant content.
+**File chunking** — Long documents are split into smaller text segments and vectorized. This helps the Agent understand and retrieve relevant content more accurately.
After chunking:
-- When you ask a question, the AI can quickly locate the relevant parts of a document instead of processing the entire file.
-- Vectorization allows the AI to grasp the semantic meaning of the text, not just match keywords.
-- The AI only processes relevant chunks, resulting in faster and more accurate responses.
+- When you ask a question, the Agent quickly locates the relevant parts instead of processing the entire file
+- Vectorization lets the Agent grasp semantic meaning, not just match keywords
+- The Agent processes only relevant chunks — faster and more accurate responses
### Batch Operations
-Select multiple files and open the menu in the top-right corner to perform batch operations, including moving files to a library, chunking, or deleting them in bulk.
+Select multiple files and open the menu in the top-right corner to perform batch operations: move files to a library, chunk, or delete in bulk.

+### Supported File Formats and Limits
+
+**Supported formats:**
+
+- Documents: PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx), Markdown, plain text (.txt)
+- Images: JPEG, PNG, GIF, WebP, SVG
+- Audio: MP3, WAV, M4A, FLAC
+- Video: MP4, MOV, WebM
+- Other: CSV, JSON, HTML
+
+File size limit is typically 50 MB per file. For very large documents, consider splitting them before uploading for better search performance.
+
+### Search Best Practices
+
+- **Be specific** — "What are the refund terms for international orders?" retrieves more precisely than "refund"
+- **Resolve references** — Use concrete terms instead of pronouns: "What is the cancellation policy?" rather than "What is it?"
+- **Include context** — Add relevant context: "Python function to parse JSON" rather than just "parse JSON"
+- **Search iteratively** — If the first search doesn't find what you need, try rephrasing with different terminology
+
### Cross-Feature Collaboration
-- Chat + Resource Library: Reference resources during conversations so the assistant can provide answers based on your knowledge.
-- Drafts + Resource Library: Use materials from the Resource Library while writing to enhance content creation efficiency.
-- Drawing + Resource Library: Save generated images to the Resource Library for centralized management of all visual assets.
+- **Chat + Resource Library** — Reference resources during conversations so the Agent answers from your knowledge
+- **Pages + Resource Library** — Use materials from the Resource Library while writing to enhance content creation
+- **Drawing + Resource Library** — Save generated images to the Resource Library for centralized management of visual assets
+
+## Use Cases
+
+- **Technical documentation** — Upload API docs, guides, or specs and ask questions in natural language
+- **Company knowledge** — Centralize onboarding materials, policies, and wikis for Agent-assisted retrieval
+- **Customer support** — Upload FAQs and product documentation to power accurate support responses
+- **Research** — Collect papers and articles and let the Agent synthesize findings across sources
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/resource.zh-CN.mdx b/docs/usage/getting-started/resource.zh-CN.mdx
index 638adb3024..9a6b6ff7b8 100644
--- a/docs/usage/getting-started/resource.zh-CN.mdx
+++ b/docs/usage/getting-started/resource.zh-CN.mdx
@@ -1,34 +1,34 @@
---
title: 资源库
-description: 简单的集中配置,例如提示词,选择模型,知识库,插件等。
+description: 你的个人知识中心——文档、AI 生成图片、文稿汇聚一处。助理基于你的数据回答。
tags:
- LobeHub
- - LobeHub
- - AI 助手
- - 助手组织
- - 分组设置
- - 助手搜索
- - 助手固定
+ - 资源库
+ - 知识库
+ - 语义搜索
+ - 文件上传
+ - Notion 导入
---
# 资源库
-LobeHub 的资源库是你的个人知识中心。对话中上传的文档、AI 生成的图片、创建的文稿,都会汇聚在这里。资源库让你和 AI 的协作更紧密,知识积累不再分散在各处,而是统一管理、随时可用。
+资源库是你的个人知识中心。对话中上传的文档、AI 生成的图片、创建的文稿 —— 都会汇聚在这里。知识不再分散在各处,而是统一管理、随时可用,让助理基于你的数据回答,而不只依赖通用训练。
## 资源的来源
-- 对话上传:在与助手对话时上传的文件会自动保存到资源库。例如你上传一份 PDF 让助手总结,这份文件会保留在资源库中,下次可以继续使用。
-- AI 生成:在画图板块生成的图片会自动保存到资源库。你可以随时查看、下载、在对话和文稿中使用这些图片。
-- 主动上传:你可以在资源库直接上传文件或文件夹,主动构建知识库。支持文档、图片、视频、音频等多种格式。
-- 文稿创建:在文稿板块创建的文稿也会出现在资源库中,与其他资源统一管理。
-- Notion 导入:你可以将 Notion 中的内容导入到 LobeHub 资源库,打通两个平台的知识管理。
-- 创建资源库:在 LobeHub 主界面左侧边栏下方点击「资源」图标,进入资源库页面。
+- **对话上传** — 在与助理对话时上传的文件会自动保存到资源库。例如你上传一份 PDF 让助理总结,这份文件会保留在资源库中,下次可以继续使用。
+- **AI 生成** — 在画图板块生成的图片会自动保存到资源库。你可以随时查看、下载、在对话和文稿中使用这些图片。
+- **主动上传** — 你可以在资源库直接上传文件或文件夹,主动构建知识库。支持文档、图片、视频、音频等多种格式。
+- **文稿创建** — 在文稿板块创建的文稿也会出现在资源库中,与其他资源统一管理。
+- **Notion 导入** — 你可以将 Notion 中的内容导入到 LobeHub 资源库,打通两个平台的知识管理。
+
+**进入资源库** — 在 LobeHub 主界面左侧边栏下方点击**资源**图标。
## 创建资源库
资源库可以按主题、项目、类型等方式组织。创建不同的资源库,让资源管理更有条理。
-在资源库页面左侧面板点击「新建资源库」,输入资源库名称,添加简介(可选),点击新建即可。
+在资源库页面左侧面板点击**新建资源库**,输入资源库名称,添加简介(可选),点击新建即可。

@@ -38,28 +38,73 @@ LobeHub 的资源库是你的个人知识中心。对话中上传的文档、AI
### 连接 Notion
-在 Notion 选择文档并导出,再在「连接 Notion 」页面选择导入 Notion ZIP 即可。导入后,你可以在 LobeHub 中再编辑这些文档。
+在 Notion 选择文档并导出,再在**连接 Notion**页面选择导入 Notion ZIP 即可。导入后,你可以在 LobeHub 中继续编辑这些文档。

+## 语义搜索的工作原理
+
+在资源库中搜索时,LobeHub 使用**向量搜索**(语义搜索),而非简单的关键词匹配:
+
+1. 上传文件时,文件被拆分为文本块,每个块被转换为向量嵌入
+2. 提问时,你的问题也被转换为向量
+3. 系统找到语义上与你的问题最相似的文本块
+4. 助理读取最相关的文本块,并将其融入回答中
+
+这使得即使精确词汇不匹配,助理也能找到相关内容 —— 例如搜索 "如何登录" 可以找到关于 "身份验证" 或 "登入" 的内容。
+
## 管理资源库
-文件分块:文件分块是将长文档拆分成多个较小的文本片段,并对每个片段进行向量化处理。这让 AI 助手能更精准地理解和检索文件内容。
+**文件分块** — 长文档被拆分成多个较小的文本片段,并对每个片段进行向量化处理。这让助理能更精准地理解和检索文件内容。
进行文件分块后:
-- 当你提问时,AI 能快速定位到文档中相关的部分,而不是处理整个文档。
-- 向量化让 AI 能理解文本的语义含义,而不只是关键词匹配。
-- AI 只需要处理相关的文本块,响应更快、更准确。
+- 当你提问时,助理能快速定位到文档中相关的部分,而不是处理整个文档
+- 向量化让助理能理解文本的语义含义,而不只是关键词匹配
+- 助理只需要处理相关的文本块,响应更快、更准确
### 批量操作
-勾选多个文件,展开右上角菜单可以进行批量操作,包括将多个文件批量移入资源库、批量分块和批量删除文件。
+勾选多个文件,展开右上角菜单可以进行批量操作:将多个文件批量移入资源库、批量分块和批量删除文件。
-
+
+
+### 支持的文件格式与限制
+
+**支持的格式:**
+
+- 文档:PDF、Word(.docx)、PowerPoint(.pptx)、Excel(.xlsx)、Markdown、纯文本(.txt)
+- 图片:JPEG、PNG、GIF、WebP、SVG
+- 音频:MP3、WAV、M4A、FLAC
+- 视频:MP4、MOV、WebM
+- 其他:CSV、JSON、HTML
+
+每个文件的大小限制通常为 50 MB。对于超大文档,建议上传前拆分为较小的文件,以获得更好的搜索效果。
+
+### 搜索最佳实践
+
+- **具体表述** — "国际订单的退款条款是什么?" 比 "退款" 检索结果更精准
+- **避免代词** — 使用具体名词:问 "退订政策是什么?" 而非 "它是什么?"
+- **加入上下文** — 补充相关词语:问 "Python 解析 JSON 的函数" 而非只写 "解析 JSON"
+- **迭代搜索** — 首次搜索未找到目标时,尝试用不同措辞重新检索
### 跨功能协作
-- 对话 + 资源库:在对话中引用资源库,让助手基于你的知识提供回答。
-- 文稿 + 资源库:编写文稿时使用资源库中的素材,内容创作更高效。
-- 画图 + 资源库:将生成的图片保存到资源库,统一管理所有视觉素材。
+- **对话 + 资源库** — 在对话中引用资源库,让助理基于你的知识提供回答
+- **文稿 + 资源库** — 编写文稿时使用资源库中的素材,内容创作更高效
+- **画图 + 资源库** — 将生成的图片保存到资源库,统一管理所有视觉素材
+
+## 使用场景
+
+- **技术文档** — 上传 API 文档、指南或规范,用自然语言提问
+- **企业知识库** — 集中管理入职材料、政策文档和内部 Wiki,借助助理快速检索
+- **客户支持** — 上传常见问题和产品文档,支撑准确的客服回复
+- **研究调研** — 汇集论文和文章,让助理跨资源综合发现规律
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/vision.mdx b/docs/usage/getting-started/vision.mdx
new file mode 100644
index 0000000000..9b938affd1
--- /dev/null
+++ b/docs/usage/getting-started/vision.mdx
@@ -0,0 +1,157 @@
+---
+title: Vision & Image Understanding
+description: >-
+ Upload images and have AI agents analyze, describe, extract text, and answer
+ questions about visual content.
+tags:
+ - LobeHub
+ - Vision
+ - Image Analysis
+ - OCR
+ - Multimodal
+---
+
+# Vision & Image Understanding
+
+LobeHub supports vision capabilities — Agents can see and understand images you share. This multimodal feature enables conversations that go beyond text to include rich visual context.
+
+## What AI Can Do with Images
+
+Vision-enabled models can:
+
+- **Analyze images** — Understand photos, screenshots, diagrams, and documents
+- **Read text (OCR)** — Extract text from images, screenshots, handwritten notes, and signs
+- **Describe visuals** — Provide detailed descriptions of scenes and objects
+- **Answer questions** — Respond to queries about what's in an image
+- **Compare images** — Analyze differences between multiple images
+- **Recognize patterns** — Identify layouts, design styles, and trends
+
+## Uploading Images
+
+### Upload Methods
+
+**Drag and drop** — Drag an image file from your computer into the chat input area. Works with single or multiple images at once.
+
+**Click to upload** — Click the attachment/image icon in the input area, browse your files, and select one or more images.
+
+**Paste from clipboard** — Copy any image (screenshot, copied from a web page, etc.), click in the message input, and press `Ctrl+V` (or `Cmd+V` on Mac). The image appears instantly — ideal for quick screenshot questions.
+
+### Supported Formats and Limits
+
+Supported formats: JPEG/JPG, PNG, WebP, GIF (static frames only), BMP
+
+- Maximum size: \~20 MB per image
+- Recommended: under 5 MB for best performance
+- Large images are automatically compressed
+
+
+ The image upload button only appears when you are using a vision-capable model. If you don't see
+ it, switch to a model that supports vision (see supported models below).
+
+
+
+ Vision features consume more tokens than text-only conversations, which may affect API costs for
+ self-hosted or API-key deployments.
+
+
+## Using Vision Features
+
+### Image Analysis
+
+Ask general questions about an image:
+
+```
+"What's in this image?"
+"Describe what you see in detail"
+"What are the main elements of this photo?"
+```
+
+### Text Extraction (OCR)
+
+Extract text from images, screenshots, and documents:
+
+```
+"What does the text say?"
+"Transcribe all text from this image"
+"Read the error message in this screenshot"
+```
+
+Works with screenshots, photos of signs, printed documents, and code in images. Handwriting recognition works with varying accuracy.
+
+### Multiple Images
+
+Upload several images at once and ask for comparison or combined analysis:
+
+```
+"Compare these three design variations and suggest which is most effective"
+"What are the differences between these before/after photos?"
+"Analyze the trends shown in these charts"
+```
+
+### Asking Specific Questions
+
+The more specific your question, the better the analysis:
+
+```
+"What type of plant is this?" (object identification)
+"Where was this photo likely taken?" (scene understanding)
+"What colors are used in this design?" (technical analysis)
+"What's the main message of this infographic?" (content analysis)
+```
+
+## Use Cases
+
+**Software development** — Share screenshots of error messages, UI bugs, stack traces, or whiteboard diagrams. Ask the AI to "fix this error", "review this interface design", or "convert this whiteboard diagram to code".
+
+**Education and learning** — Upload textbook problems, diagrams, scientific images, or handwritten notes. Ask for explanations, summaries, or digital transcriptions.
+
+**Content creation and design** — Get feedback on logo designs, poster layouts, color schemes, and compositions. Create captions, alt text, and writing prompts from images.
+
+**Professional use** — Extract data from invoices, analyze dashboards and charts, review presentation slides, and digitize business cards and receipts.
+
+**Daily life** — Identify plants, products, or landmarks. Translate signs and menus. Get cooking or home repair guidance from photos.
+
+## Best Practices
+
+**Use clear, well-lit images** — Blurry or dark images reduce accuracy significantly.
+
+**Add context with text** — Combine images with a specific question or description of what you want to know. "What's wrong with this code?" alongside a screenshot is far more useful than uploading the image alone.
+
+**Crop to relevant areas** — Remove unnecessary parts of images to focus the AI's attention on what matters.
+
+**Be specific in your questions** — Instead of "What's this?", ask "What type of architectural style is this building?" Specific questions get more useful answers.
+
+**Verify critical information** — Vision AI can and does make mistakes. Always independently verify important details.
+
+## Limitations
+
+
+ Vision models have limitations. Always verify critical information independently.
+
+
+- **People and faces** — Cannot identify specific individuals (privacy protection by design)
+- **Fine details** — May miss very small text or details in low-resolution images
+- **Handwriting** — Variable accuracy depending on legibility
+- **Video** — Cannot process video files; only static images are supported
+- **Medical/legal** — Not suitable for medical diagnosis or legal advice; treat as informational only
+- **Privacy** — Images are processed by the AI provider's servers; avoid uploading sensitive or confidential content without redaction
+
+## Supported Models
+
+Vision requires a vision-capable model. Look for models with a vision indicator in the model selector:
+
+| Provider | Vision Models |
+| --------- | ------------------------------------------------------------------ |
+| OpenAI | GPT-4V, GPT-4o, GPT-4o mini |
+| Anthropic | Claude 3 Haiku, Claude 3 Sonnet, Claude 3 Opus, Claude 3.5 Sonnet+ |
+| Google | Gemini 1.5 Flash, Gemini 1.5 Pro, Gemini Pro Vision |
+
+Other providers may also offer vision models — check the model's capability tags in the selector.
+
+
+
+
+
+
+
+
diff --git a/docs/usage/getting-started/vision.zh-CN.mdx b/docs/usage/getting-started/vision.zh-CN.mdx
new file mode 100644
index 0000000000..72c11377a4
--- /dev/null
+++ b/docs/usage/getting-started/vision.zh-CN.mdx
@@ -0,0 +1,153 @@
+---
+title: 视觉与图像理解
+description: 上传图片,让 AI Agent 分析、描述、提取文字,并回答关于视觉内容的问题。
+tags:
+ - LobeHub
+ - 视觉
+ - 图像分析
+ - OCR
+ - 多模态
+---
+
+# 视觉与图像理解
+
+LobeHub 支持视觉功能 —— 助理能够 "看见" 并理解你分享的图片。这一多模态能力让对话突破纯文字的边界,融入丰富的视觉信息。
+
+## AI 能用图片做什么
+
+支持视觉的模型可以:
+
+- **分析图片** — 理解照片、截图、图表和文档
+- **文字识别(OCR)** — 从图片、截图、手写笔记和标牌中提取文字
+- **描述视觉内容** — 提供场景和对象的详细描述
+- **回答问题** — 针对图片内容做出具体回答
+- **比较图片** — 分析多张图片之间的差异
+- **识别规律** — 辨别布局、设计风格和趋势
+
+## 上传图片
+
+### 上传方式
+
+**拖拽上传** — 将图片文件从电脑拖入聊天输入框。支持单张或多张图片同时上传。
+
+**点击上传** — 点击输入框中的附件 / 图片图标,浏览文件并选择一张或多张图片。
+
+**粘贴上传** — 复制任意图片(截图、从网页复制等),在消息输入框中点击,然后按 `Ctrl+V`(Mac 上按 `Cmd+V`)。图片立即出现 —— 非常适合快速提问截图中的内容。
+
+### 支持格式与限制
+
+支持格式:JPEG/JPG、PNG、WebP、GIF(仅静态帧)、BMP
+
+- 最大文件大小:约 20 MB 每张
+- 推荐大小:5 MB 以内,性能最佳
+- 过大的图片会自动压缩
+
+
+ 只有在使用支持视觉的模型时,图片上传按钮才会出现。如果看不到该按钮,请切换到支持视觉的模型(参见下方支持模型列表)。
+
+
+
+ 视觉功能消耗的 Token 多于纯文字对话,这可能影响自托管或 API Key 部署的 API 费用。
+
+
+## 使用视觉功能
+
+### 图片分析
+
+对图片提出通用问题:
+
+```
+"这张图片里有什么?"
+"请详细描述你看到的内容"
+"这张照片的主要元素有哪些?"
+```
+
+### 文字提取(OCR)
+
+从图片、截图和文档中提取文字:
+
+```
+"图片里的文字写的是什么?"
+"请转录这张图片中的所有文字"
+"读一下这个截图中的错误信息"
+```
+
+适用场景:截图、标牌照片、印刷文档、图片中的代码等。手写识别准确率因字迹而异。
+
+### 多图分析
+
+同时上传多张图片,进行比较或综合分析:
+
+```
+"比较这三个设计方案,哪个最有效?"
+"找出这两张前后对比图之间的差异"
+"分析这几张图表中显示的趋势"
+```
+
+### 提出具体问题
+
+问题越具体,分析结果越有价值:
+
+```
+"这是什么植物?"(物体识别)
+"这张照片可能是在哪里拍的?"(场景理解)
+"这个设计用了哪些颜色?"(技术分析)
+"这张信息图的核心信息是什么?"(内容分析)
+```
+
+## 使用场景
+
+**软件开发** — 分享错误信息截图、UI Bug、堆栈跟踪或白板图。让 AI "修复这个错误"、"评审这个界面设计",或 "把这个白板图转换成代码"。
+
+**学习与教育** — 上传教材题目、图表、科学图像或手写笔记,请 AI 解释、摘要或数字化转录。
+
+**内容创作与设计** — 获取对 Logo 设计、海报排版、配色方案和构图的专业反馈。为图片生成说明文字、无障碍 alt 文本或写作灵感。
+
+**专业工作** — 从发票提取数据,分析仪表盘和图表,评审演示文稿,数字化名片和收据。
+
+**日常生活** — 识别植物、产品或地标;翻译标牌和菜单;通过照片获取烹饪或家居维修建议。
+
+## 最佳实践
+
+**使用清晰、明亮的图片** — 模糊或昏暗的图片会显著降低识别准确率。
+
+**用文字补充上下文** — 图片与具体问题或描述相结合效果最佳。"这段代码有什么问题?" 配上截图远比只上传图片更有用。
+
+**裁剪到关键区域** — 去掉图片中不相关的部分,让 AI 专注于重要内容。
+
+**提出具体问题** — 与其问 "这是什么?",不如问 "这座建筑是什么建筑风格?" 越具体,答案越有用。
+
+**核实重要信息** — 视觉 AI 可能出错,重要结论请务必独立核实。
+
+## 功能限制
+
+
+ 视觉模型存在局限性,请始终对重要信息进行独立核实。
+
+
+- **人物与面孔** — 出于隐私保护,无法识别特定个人
+- **细节识别** — 对低分辨率图片中的极小文字或细节可能有遗漏
+- **手写识别** — 准确率因字迹清晰度而存在较大差异
+- **视频** — 不支持视频文件,仅支持静态图片
+- **医疗 / 法律用途** — 不适用于医疗诊断或法律建议,仅供参考
+- **隐私** — 图片会由 AI 提供商的服务器处理,请勿上传未经脱敏的敏感或机密内容
+
+## 支持的模型
+
+视觉功能需要选择支持视觉的模型。在模型选择器中查找带有视觉能力标记的模型:
+
+| 提供商 | 视觉模型 |
+| --------- | ------------------------------------------------------------------ |
+| OpenAI | GPT-4V、GPT-4o、GPT-4o mini |
+| Anthropic | Claude 3 Haiku、Claude 3 Sonnet、Claude 3 Opus、Claude 3.5 Sonnet 及以上 |
+| Google | Gemini 1.5 Flash、Gemini 1.5 Pro、Gemini Pro Vision |
+
+其他提供商也可能提供视觉模型 —— 请在选择器中查看模型的能力标签。
+
+
+
+
+
+
+
+
diff --git a/docs/usage/help.mdx b/docs/usage/help.mdx
index 3e72601c92..503221ee83 100644
--- a/docs/usage/help.mdx
+++ b/docs/usage/help.mdx
@@ -1,38 +1,50 @@
---
-title: Help & Support - LobeHub User Guide
+title: Help & Support
description: >-
- Learn about help and support options for LobeHub, including community support
- and how to contact us.
+ Get help with LobeHub — common guides, community support, issue reporting, and
+ how to reach us.
tags:
- LobeHub
- - LobeHub
- - Help & Support
- - Community Support
- - Contact Us
+ - Help
+ - Support
+ - Community
+ - FAQ
---
# Help & Support
-If you encounter any issues while using LobeHub, please refer to the following resources.
+Stuck on something? Here's where to find answers and get in touch.
-## Common Guides
+## Quick Links
-- [Migrate from v1.x Local Database to v2.x (Cloud / Self-hosted)](/docs/usage/migrate-from-local-database)
+**Getting started**
+
+- [Get LobeHub](/docs/usage/getting-started/get-lobehub) — Browser, desktop, or mobile
+- [Create Your First Agent](/docs/usage/getting-started/agent)
+- [Try Lobe AI](/docs/usage/getting-started/lobe-ai)
+
+**Common guides**
+
+- [Migrate from v1.x Local Database to v2.x](/docs/usage/migrate-from-local-database) — Move your data to cloud or self-hosted
+- [Configure Model Providers](/docs/usage/providers) — Add API keys and choose models
+- [Agent Marketplace](/docs/usage/community/agent-market) — Discover and install community Agents
## Report an Issue
-- [GitHub Issues](https://github.com/lobehub/lobe-chat/issues/new/choose)
+Found a bug or have a feature request? Open an issue on GitHub — we track everything there.
-## Community Support
+- [**GitHub Issues**](https://github.com/lobehub/lobe-chat/issues/new/choose) — Bug reports, feature requests, and discussions
-You're welcome to ask questions or help others in the following communities:
+Before submitting, search existing issues to avoid duplicates. Include steps to reproduce for bugs; describe your use case for feature requests.
-- [Discord](https://discord.com/invite/AYFPHvv2jT)
-- [Reddit](https://www.reddit.com/r/LobeHub/)
+## Get in Touch
-## Contact Us
+| Channel | Best for | Link |
+| ----------------- | ----------------------------------------- | ----------------------------------------------------------------------- |
+| **Discord** | Real-time chat, quick Q\&A, announcements | [Join](https://discord.com/invite/AYFPHvv2jT) |
+| **Reddit** | Discussions and community updates | [r/LobeHub](https://www.reddit.com/r/LobeHub/) |
+| **GitHub Issues** | Bug reports, feature requests | [Open an Issue](https://github.com/lobehub/lobe-chat/issues/new/choose) |
+| **Email** | Partnerships, enterprise inquiries | [hi@lobehub.com](mailto:hi@lobehub.com) |
+| **X (Twitter)** | Updates and announcements | [@lobehub](https://x.com/lobehub) |
-You can reach us through the following channels:
-
-- [hi@lobehub.com](mailto:hi@lobehub.com)
-- [X (formerly Twitter)](https://x.com/lobehub)
+Community members and the team typically respond within hours on Discord. For technical issues, GitHub Issues or Discord usually get the fastest responses.
diff --git a/docs/usage/help.zh-CN.mdx b/docs/usage/help.zh-CN.mdx
index 6327a3d6b0..04e62edff7 100644
--- a/docs/usage/help.zh-CN.mdx
+++ b/docs/usage/help.zh-CN.mdx
@@ -1,36 +1,48 @@
---
-title: 帮助与支持 - LobeHub 用户指南
-description: 了解 LobeHub 的帮助与支持,包括社区支持、联系我们等。
+title: 帮助与支持
+description: 获取 LobeHub 帮助——常用指南、社区支持、问题反馈及联系方式。
tags:
- LobeHub
- - LobeHub
- - 帮助与支持
- - 社区支持
- - 联系我们
+ - 帮助
+ - 支持
+ - 社区
+ - 常见问题
---
# 帮助与支持
-如果你在使用 LobeHub 的过程中遇到任何问题,请参考以下内容。
+遇到问题?这里是查找答案和获取支持的地方。
-## 常用指南
+## 快速入口
-- [从 v1.x 本地数据库迁移到 v2.x(云端 / 自部署)](/docs/usage/migrate-from-local-database)
+**入门**
+
+- [获取 LobeHub](/zh/docs/usage/getting-started/get-lobehub) — 浏览器、桌面端或移动端
+- [创建你的第一个助理](/zh/docs/usage/getting-started/agent)
+- [体验 Lobe AI](/zh/docs/usage/getting-started/lobe-ai)
+
+**常用指南**
+
+- [从 v1.x 本地数据库迁移到 v2.x](/zh/docs/usage/migrate-from-local-database) — 将数据迁移至云端或自托管
+- [配置模型服务商](/zh/docs/usage/providers) — 添加 API Key 并选择模型
+- [助理市场](/zh/docs/usage/community/agent-market) — 发现并安装社区助理
## 反馈问题
-- [GitHub Issues](https://github.com/lobehub/lobe-chat/issues/new/choose)
+发现 Bug 或有功能建议?在 GitHub 提交 Issue,我们会在此跟进。
-## 社区支持
+- [**GitHub Issues**](https://github.com/lobehub/lobe-chat/issues/new/choose) — Bug 反馈、功能建议与讨论
-欢迎你在以下社区中提出问题或帮助他人。
-
-- [Discord](https://discord.com/invite/AYFPHvv2jT)
-- [Reddit](https://www.reddit.com/r/LobeHub/)
+提交前请先搜索已有 Issue,避免重复。Bug 请附上复现步骤;功能建议请说明使用场景。
## 联系我们
-你可以通过以下方式联系我们:
+| 渠道 | 适合 | 链接 |
+| ----------------- | ------------ | ------------------------------------------------------------------ |
+| **Discord** | 实时交流、快速问答、公告 | [加入](https://discord.com/invite/AYFPHvv2jT) |
+| **Reddit** | 讨论与社区动态 | [r/LobeHub](https://www.reddit.com/r/LobeHub/) |
+| **GitHub Issues** | Bug 反馈、功能建议 | [提交 Issue](https://github.com/lobehub/lobe-chat/issues/new/choose) |
+| **邮箱** | 合作、企业咨询 | [hi@lobehub.com](mailto:hi@lobehub.com) |
+| **X (Twitter)** | 动态与公告 | [@lobehub](https://x.com/lobehub) |
-- [hi@lobehub.com](mailto:hi@lobehub.com)
-- [X (Twitter)](https://x.com/lobehub)
+社区成员和团队通常会在数小时内在 Discord 上回复。技术类问题通过 GitHub Issues 或 Discord 通常能更快得到响应。
diff --git a/docs/usage/migrate-from-local-database.mdx b/docs/usage/migrate-from-local-database.mdx
index 771c5b982a..fa2108a9cc 100644
--- a/docs/usage/migrate-from-local-database.mdx
+++ b/docs/usage/migrate-from-local-database.mdx
@@ -1,118 +1,138 @@
---
-title: Migrate from Local Database (v1.x) to Cloud (v2.x)
+title: Migrate from v1.x Local Database to v2.x
description: >-
- Export your data from the v1.x local database and import it into LobeHub v2.x
- Cloud.
+ Export your data from v1.x and import into v2.x Cloud or self-hosted.
+ Step-by-step guide with troubleshooting.
tags:
- LobeHub
- Migration
- - Cloud
- - Desktop
+ - v1.x
+ - v2.x
- Local Database
+ - Cloud
---
-# Migrate from Local Database (v1.x) to Cloud (v2.x)
+# Migrate from v1.x Local Database to v2.x
-LobeHub v1.x Desktop supported a **local database** mode, which stored your data on this device. Starting from v2.x, we have moved to a **cloud-first architecture** and removed the local database so we can iterate faster and deliver a more consistent experience across platforms.
+LobeHub v1.x Desktop offered a **local database** mode — your data lived on your device. Starting with v2.x, we moved to a **cloud-first architecture** and removed the local database. The result: a lighter client, faster iteration, and a consistent experience across browser, desktop, and mobile.
- Why the change? The v1.x local database typically consumed more system resources, and only a small
- portion of users relied on it. By simplifying the client and focusing on the cloud-first
- experience, we can improve overall performance and ship new features faster.
+ **Why the change?** The v1.x local database consumed more system resources, and only a small portion of users relied on it. By simplifying the client and focusing on cloud-first, we improve performance and ship new features faster.
-This guide explains how to **export your data from v1.x** and **import it into v2.x**.
+This guide walks you through **exporting from v1.x** and **importing into v2.x**. Your Agents, conversations, and settings can all move over — typically in a few minutes.
-## Before you start
+## Before You Start
-- Keep your **v1.x client installed** until you confirm the migration is successful.
-- Prepare a **stable network connection** (importing may take time, especially for large histories).
-- Sign in to **LobeHub v2.x** (Cloud or your self-hosted instance).
+- **Keep v1.x installed** until you've confirmed the migration worked.
+- **Use a stable network** — importing can take a while if you have a large history.
+- **Sign in to v2.x** — Cloud ([app.lobehub.com](https://app.lobehub.com)) or your self-hosted instance.
-If you prefer self-hosting, you can follow the [Self-Hosting Guide](/docs/self-hosting/start) first, then import into your self-hosted v2.x instance.
+Prefer to self-host? Deploy v2.x first using the [Self-Hosting Guide](/docs/self-hosting/start), then import your data into that instance.
-## If you already upgraded to v2.x by accident
+## If You Already Upgraded to v2.x
-You can still migrate your data:
+You can still migrate. Your local database files are **not deleted** when you upgrade — they remain on disk until you remove them.
-1. Download and install a **v1.x build** from [GitHub Releases](https://github.com/lobehub/lobe-chat/releases).
-2. Use v1.x to export your data (`Settings -> Data Storage -> Export Data`), then import it in v2.x.
+1. Download a **v1.x build** from [GitHub Releases](https://github.com/lobehub/lobe-chat/releases).
+2. Install and open v1.x, then export your data: **Settings → Data Storage → Export Data**.
+3. In v2.x, go to **Settings → Data Storage → Import Data** and upload the export file.
-Don’t worry: **upgrading to v2.x does not delete your local database files**. As long as the local database files are still there, your data is still there.
+### Where Is the Local Database?
-### Local database location
+By default, the v1.x local database is stored at:
-By default, the local database is stored at:
+- **Windows:** `%APPDATA%/lobehub-storage/lobehub-local-db`
+- **macOS:** `~/Library/Application Support/lobehub-storage/lobehub-local-db`
-- `${appData}/lobehub-storage/lobehub-local-db`
+If you need to recover data manually, these paths may be useful.
-## What will be migrated
+## What Gets Migrated
-The exact items depend on the export format and your v1.x build, but typically include:
+Depending on your v1.x build and export format, you can typically migrate:
-- Your assistants/agents
-- Conversations / topics and messages
-- Prompt templates (if used in your v1.x build)
-- Basic preferences and settings (when supported)
+| Item | Migrated |
+| -------------------------- | ------------------------------------------------- |
+| **Agents** | Yes — names, prompts, model settings |
+| **Conversations & Topics** | Yes — messages and topic structure |
+| **Prompt templates** | Yes, if your v1.x build supported them |
+| **Basic preferences** | Yes — language, theme, shortcuts (when supported) |
-## What will NOT be migrated (common cases)
+## What Does Not Migrate
-- Provider API keys and secrets (recommended to re-enter them in v2.x)
-- Local-only files or cached data
-- Some device-specific settings
+| Item | Notes |
+| ---------------------------- | ------------------------------------------------------------------------ |
+| **API keys and secrets** | Re-enter them in v2.x for security. v2.x uses a different storage model. |
+| **Local-only files / cache** | Temporary data that doesn't apply to cloud. |
+| **Device-specific settings** | Some settings are tied to the old local setup. |
- If your v1.x data contains sensitive content, keep the export file in a safe location. Do not
- share it publicly.
+ If your export contains sensitive content, store the file securely. Do not share it publicly or commit it to version control.
-## Step 1: Export data from LobeHub v1.x
+## Step 1: Export from v1.x
In the v1.x Desktop app:
1. Go to **Settings** → **Data Storage** → **Export Data**.
-2. You will get a JSON export file (for example: `2026-01-22-10-02_LobeHub-data.json`).
-3. Save the file to a location you can easily find (for example, Desktop).
+2. You'll get a JSON file (e.g. `2026-01-22-10-02_LobeHub-data.json`).
+3. Save it somewhere easy to find — Desktop or a dedicated folder.

-### Export tips
+**Tips:**
-- If you have a very large message history, consider exporting during idle time.
+- Large histories can take a few minutes to export. Run the export when your device is idle.
+- Keep the file until you've verified the import in v2.x.
-## Step 2: Import data into LobeHub v2.x
+## Step 2: Import into v2.x
-In any v2.x app (Desktop / Web / self-hosted):
+In any v2.x app (Desktop, Web, or self-hosted):
1. Sign in to your LobeHub account.
2. Go to **Settings** → **Data Storage** → **Import Data**.
-3. Upload the export JSON file from Step 1.
-4. Wait for the import to complete, then refresh the page/app if needed.
+3. Upload the JSON file from Step 1.
+4. Wait for the import to finish. Refresh the page or restart the app if the UI doesn't update.

-## Verify your migration
+**Tips:**
-After importing, check:
+- Don't close the app or navigate away during import. Let it complete.
+- If you have multiple v1.x profiles or workspaces, export each separately and import one at a time (when your v1.x build supports it).
-- Agents/assistants are present and their prompts look correct
-- Recent conversations appear as expected
-- Key settings (language, theme, shortcuts, etc.) are set the way you want
+## Verify Your Migration
-If anything is missing, keep the v1.x export file and retry the import after updating to the latest v2.x.
+After importing, spot-check:
+
+- **Agents** — All present? Prompts and model settings correct?
+- **Conversations** — Recent Topics and messages load as expected?
+- **Settings** — Language, theme, shortcuts match your preferences?
+
+If something is missing, keep the v1.x export file. Update to the latest v2.x, then try importing again. The export format may have improved in newer versions.
## Troubleshooting
-### Import fails or gets stuck
+### Import fails or hangs
-- Confirm your network is stable and try again.
-- Update to the latest v2.x and re-import.
+- **Check your network** — A stable connection is required. Try again on a different network if possible.
+- **Update v2.x** — Use the latest version; import logic is improved over time.
+- **Reduce scope** — If you have multiple exports, try importing a smaller one first to isolate the issue.
### Some data is missing after import
-- Different v1.x builds may store data slightly differently.
-- If you used multiple profiles/workspaces in v1.x, export and import them separately (when supported).
+- **Different v1.x builds** — Data structure can vary between v1.x versions. Re-export from the same build you've been using.
+- **Multiple profiles** — If you used multiple profiles or workspaces in v1.x, export each separately and import one by one.
-## Getting help
+### Export file is very large
-If you run into issues, please check [Help & Support](/docs/usage/help) or report an issue via [GitHub Issues](https://github.com/lobehub/lobe-chat/issues/new/choose).
+- Large exports are normal if you have many conversations. Import may take several minutes. Be patient and keep the tab/app open.
+
+## Getting Help
+
+If you run into issues:
+
+- [Help & Support](/docs/usage/help) — General resources and community links
+- [GitHub Issues](https://github.com/lobehub/lobe-chat/issues/new/choose) — Report bugs or request help with migration
+
+Include your v1.x version, v2.x version, and a description of what went wrong. If possible, note whether the export completed successfully and where the import failed.
diff --git a/docs/usage/migrate-from-local-database.zh-CN.mdx b/docs/usage/migrate-from-local-database.zh-CN.mdx
index d2d2d541d8..a2c34b71fa 100644
--- a/docs/usage/migrate-from-local-database.zh-CN.mdx
+++ b/docs/usage/migrate-from-local-database.zh-CN.mdx
@@ -1,115 +1,136 @@
---
-title: 从本地数据库(v1.x)迁移到云端(v2.x)
-description: 在 v1.x 客户端导出本地数据库数据,并导入到 LobeHub v2.x 云端版本。
+title: 从 v1.x 本地数据库迁移到 v2.x
+description: 从 v1.x 导出数据并导入到 v2.x 云端或自托管。分步指南与故障排查。
tags:
- LobeHub
- 迁移
- - Cloud
- - 桌面端
+ - v1.x
+ - v2.x
- 本地数据库
+ - 云端
---
-# 从本地数据库(v1.x)迁移到云端(v2.x)
+# 从 v1.x 本地数据库迁移到 v2.x
-在 LobeHub v1.x Desktop 中,我们曾提供 **本地数据库** 模式,将数据保存在当前设备上。自 v2.x 起,我们转向 **Cloud-first 架构** 并移除了本地数据库能力,以便后续更好、更快地迭代,并在不同平台上提供更一致的体验。
+LobeHub v1.x 桌面端曾提供 **本地数据库** 模式 —— 数据保存在你的设备上。自 v2.x 起,我们转向 **云端优先架构**,移除了本地数据库。带来的变化:客户端更轻量、迭代更快、在浏览器、桌面和手机间体验一致。
- 为什么要这样做?v1.x
- 的本地数据库通常会带来更高的资源占用,而实际使用它的用户占比较小。砍掉这条分支能力后,我们可以让客户端更轻量、更稳定,同时把更多精力投入到
- Cloud-first 体验与新功能交付上。
+ **为什么要改?** v1.x 的本地数据库占用更多系统资源,而实际使用的用户占比较小。简化客户端、聚焦云端优先后,我们可以提升整体性能并更快交付新功能。
-本文会引导你完成:**在 v1.x 导出数据** → **在 v2.x 导入数据**。
+本文引导你完成 **从 v1.x 导出** 和 **导入到 v2.x**。你的助理、对话和设置都可以迁移过来 —— 通常只需几分钟。
## 开始前准备
-- 建议在迁移确认完成之前,**不要卸载 v1.x**。
-- 准备 **稳定的网络连接**(如果对话记录较多,导入可能需要更久)。
-- 登录 **LobeHub v2.x**(云端或你的自部署实例)。
+- **先不要卸载 v1.x** —— 确认迁移成功后再卸载。
+- **确保网络稳定** —— 对话记录较多时,导入可能需要更长时间。
+- **登录 v2.x** —— 云端版([app.lobehub.com](https://app.lobehub.com))或你的自托管实例。
-如果你希望把 Cloud 部署在自己的服务器上,也可以先参考 [私有化部署指南](/docs/self-hosting/start) 完成部署,再把数据导入到自部署的 v2.x 实例中。
+希望自托管?先按[自托管指南](/zh/docs/self-hosting/start)部署 v2.x,再将数据导入该实例。
-## 如果你已经不小心升级到了 v2.x
+## 如果你已经升级到 v2.x
-你依然可以完成迁移:
+依然可以完成迁移。升级到 v2.x **不会删除**本地数据库文件 —— 它们会保留在磁盘上,直到你手动删除。
-1. 前往 [GitHub Releases](https://github.com/lobehub/lobe-chat/releases) 下载并安装一个 **v1.x 版本**。
-2. 使用 v1.x 按照本文的导出流程导出数据(`Settings -> Data Storage -> Export Data`),再在 v2.x 中导入。
+1. 从 [GitHub Releases](https://github.com/lobehub/lobe-chat/releases) 下载 **v1.x 版本**。
+2. 安装并打开 v1.x,导出数据:**设置 → 数据存储 → 导出数据**。
+3. 在 v2.x 中进入 **设置 → 数据存储 → 导入数据**,上传导出的文件。
-请放心:**升级到 v2.x 的过程不会删除你的本地数据库文件**。只要本地数据库文件仍然存在,你的数据就依然存在。
+### 本地数据库文件在哪里?
-### 本地数据库文件位置
+v1.x 本地数据库默认位于:
-本地数据库默认位于:
+- **Windows:** `%APPDATA%/lobehub-storage/lobehub-local-db`
+- **macOS:** `~/Library/Application Support/lobehub-storage/lobehub-local-db`
-- `${appData}/lobehub-storage/lobehub-local-db`
+如需手动恢复数据,这些路径可能有用。
-## 通常可以迁移的内容
+## 可以迁移的内容
-可迁移内容会受导出格式与 v1.x 构建版本影响,但一般包括:
+根据你的 v1.x 版本和导出格式,通常可迁移:
-- 助手 / Agents
-- 会话 / Topics 与消息记录
-- 提示词模板(如你的 v1.x 版本支持)
-- 部分基础偏好设置(如版本支持)
+| 项目 | 是否迁移 |
+| --------- | --------------------- |
+| **助理** | 是 —— 名称、提示词、模型设置 |
+| **对话与话题** | 是 —— 消息和话题结构 |
+| **提示词模板** | 是(若 v1.x 版本支持) |
+| **基础偏好** | 是 —— 语言、主题、快捷键(若版本支持) |
-## 通常不会迁移的内容(常见情况)
+## 不会迁移的内容
-- 各模型服务商的 API Key / Secret(更推荐在 v2.x 重新填写)
-- 仅存在于本地的临时文件、缓存数据
-- 一些与设备强绑定的设置项
+| 项目 | 说明 |
+| ----------------- | --------------------------------- |
+| **API Key 与密钥** | 出于安全,请在 v2.x 重新填写。v2.x 使用不同的存储方式。 |
+| **仅本地的临时文件 / 缓存** | 不适用于云端的临时数据。 |
+| **设备相关设置** | 部分设置与旧版本地环境绑定。 |
- 如果你的 v1.x 数据包含敏感内容,请妥善保管导出的迁移文件,避免在公共渠道分享。
+ 若导出文件包含敏感内容,请妥善保管,避免在公开渠道分享或提交到版本库。
-## 第一步:在 LobeHub v1.x 导出数据
+## 第一步:在 v1.x 导出数据
-在 v1.x Desktop 客户端中:
+在 v1.x 桌面端:
-1. 进入 **Settings** → **Data Storage** → **Export Data**。
-2. 你会得到一个 JSON 导出文件(例如:`2026-01-22-10-02_LobeHub-data.json`)。
-3. 将导出的文件保存到你容易找到的位置(例如桌面)。
+1. 进入 **设置 → 数据存储 → 导出数据**。
+2. 你会得到一个 JSON 文件(例如:`2026-01-22-10-02_LobeHub-data.json`)。
+3. 将文件保存到容易找到的位置 —— 桌面或专用文件夹。

-### 导出建议
+**提示:**
-- 如果你的历史记录非常多,建议在设备空闲时导出。
+- 历史记录很多时,导出可能需要几分钟。建议在设备空闲时操作。
+- 在 v2.x 中确认导入成功前,请保留该文件。
-## 第二步:在 LobeHub v2.x 导入数据
+## 第二步:在 v2.x 导入数据
-在任意 v2.x 应用中(Desktop / Web / 自部署 WebApp):
+在任意 v2.x 应用中(桌面端、网页端或自托管):
1. 登录你的 LobeHub 账号。
-2. 进入 **Settings** → **Data Storage** → **Import Data**。
-3. 上传你在第一步导出的 JSON 文件。
-4. 等待导入完成;必要时刷新页面 / 重启应用。
+2. 进入 **设置 → 数据存储 → 导入数据**。
+3. 上传第一步导出的 JSON 文件。
+4. 等待导入完成。若界面未更新,可刷新页面或重启应用。

-## 迁移完成后如何验收
+**提示:**
-导入完成后,建议你检查:
+- 导入过程中不要关闭应用或离开页面,等待完成。
+- 若 v1.x 中有多个配置或空间,可分别导出并逐个导入(若版本支持)。
-- 助手是否齐全,提示词 / 配置是否正确
-- 最近的会话是否能正常打开、消息是否完整
-- 常用设置(语言、主题、快捷键等)是否符合预期
+## 迁移后如何验收
-如发现缺失,建议先升级到最新 v2.x 后再重试导入,同时保留 v1.x 的导出文件用于排查。
+导入完成后,建议检查:
-## 常见问题排查
+- **助理** —— 是否齐全?提示词和配置是否正确?
+- **对话** —— 近期话题和消息能否正常打开、内容是否完整?
+- **设置** —— 语言、主题、快捷键是否符合预期?
+
+如有缺失,请保留 v1.x 导出文件。升级到最新 v2.x 后再试一次导入 —— 新版本的导入逻辑可能已改进。
+
+## 故障排查
### 导入失败或长时间卡住
-- 确认网络稳定后重试。
-- 升级到最新 v2.x 再导入一次。
+- **检查网络** —— 需要稳定连接。可尝试更换网络后重试。
+- **更新 v2.x** —— 使用最新版本,导入逻辑会持续优化。
+- **缩小范围** —— 若有多个导出文件,可先导入较小的一个,排查是否为数据量导致的问题。
### 导入后部分数据缺失
-- 不同 v1.x 构建版本的数据结构可能略有差异。
-- 如果你在 v1.x 使用过多个配置 / 空间(若支持),可尝试分别导出并逐个导入(如版本支持)。
+- **不同 v1.x 版本** —— 数据结构可能略有差异。建议从你一直在用的同一 v1.x 版本重新导出。
+- **多配置 / 多空间** —— 若 v1.x 中使用过多个配置或空间,可分别导出并逐个导入。
+
+### 导出文件很大
+
+- 对话很多时,导出文件较大是正常的。导入可能需要几分钟,请耐心等待并保持应用或标签页打开。
## 获取帮助
-如果你遇到迁移问题,可以查看 [帮助与支持](/docs/usage/help) 或通过 [GitHub Issues](https://github.com/lobehub/lobe-chat/issues/new/choose) 反馈。
+若遇到问题:
+
+- [帮助与支持](/zh/docs/usage/help) —— 通用资源与社区链接
+- [GitHub Issues](https://github.com/lobehub/lobe-chat/issues/new/choose) —— 反馈 Bug 或请求迁移帮助
+
+反馈时请注明 v1.x 版本、v2.x 版本以及具体问题。如有可能,说明导出是否成功完成、导入在哪个环节失败。
diff --git a/docs/usage/providers.mdx b/docs/usage/providers.mdx
index a400f372c5..dd73f9a5da 100644
--- a/docs/usage/providers.mdx
+++ b/docs/usage/providers.mdx
@@ -23,9 +23,46 @@ tags:
-As LobeHub continues to evolve, we’ve come to deeply understand the importance of supporting a diverse range of model providers to meet the needs of our community. Rather than relying on a single provider, we’ve expanded our support to include multiple AI model services, offering users a richer and more versatile chat experience.
+As LobeHub continues to evolve, we've come to deeply understand the importance of supporting a diverse range of model providers to meet the needs of our community. Rather than relying on a single provider, we've expanded our support to include multiple AI model services, offering users a richer and more versatile chat experience.
-This approach allows LobeHub to better adapt to the varying needs of users while also giving developers a broader range of options to work with.
+## Why Multi-Provider Support?
+
+LobeHub's multi-provider architecture offers several key advantages:
+
+- **Unified intelligence** — Access any model and any modality from a single interface
+- **Cost optimization** — Switch between providers to optimize for performance and budget
+- **Vendor independence** — Avoid lock-in and maintain service continuity if one provider has downtime
+- **Flexibility** — Mix and match models for different agents and use cases
+- **Local option** — Use Ollama or LM Studio for complete data privacy and no API costs
+
+## Provider Categories
+
+LobeHub integrates with 70+ AI model providers:
+
+- **Major commercial** — OpenAI (GPT-4o, o1), Anthropic (Claude), Google (Gemini), Microsoft Azure OpenAI, AWS Bedrock
+- **Inference platforms** — OpenRouter, Together AI, Groq, Fireworks AI, SambaNova
+- **Chinese providers** — Zhipu, Moonshot, DeepSeek, Baichuan, Qwen (Alibaba), Wenxin (Baidu), Spark (iFlytek)
+- **Local models** — Ollama, LM Studio (no API costs, complete privacy, offline capability)
+- **Image generation** — DALL-E 3, fal.ai, BFL, ComfyUI
+
+## Setting Up Providers
+
+Each provider is configured in **Settings → Language Model**:
+
+1. Select the provider from the list
+2. Enter your API key (from the provider's developer console)
+3. Optionally set a custom base URL if using a proxy or self-hosted endpoint
+4. Save and select a model to start chatting
+
+For environment variable configuration in self-hosted deployments, see the [model provider environment variables](/docs/self-hosting/environment-variables/model-provider) reference.
+
+## Troubleshooting
+
+**Connection error / API key invalid** — Double-check your API key for extra spaces. Ensure you're using the correct key type for the provider.
+
+**Model not available** — The model may not be included in your account tier or may have been deprecated. Check the provider's model availability page.
+
+**Rate limit errors** — You've hit the provider's request rate limit. Consider distributing requests across multiple providers, or upgrade your account tier.
## How to Use Model Providers
diff --git a/docs/usage/providers.zh-CN.mdx b/docs/usage/providers.zh-CN.mdx
index f10f2fb967..65db5cf292 100644
--- a/docs/usage/providers.zh-CN.mdx
+++ b/docs/usage/providers.zh-CN.mdx
@@ -22,7 +22,44 @@ tags:
在 LobeHub 的不断发展过程中,我们深刻理解到在提供 AI 会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
-通过这种方式,LobeHub 能够更灵活地适应不同用户的需求,同时也为开发者提供了更为广泛的选择空间。
+## 为什么支持多模型服务商?
+
+LobeHub 的多提供商架构带来了以下核心优势:
+
+- **统一智能** — 通过单一界面访问任意模型和任意模态
+- **成本优化** — 在不同提供商之间切换,兼顾性能与预算
+- **供应商独立** — 避免厂商锁定,在某家提供商出现故障时保持服务连续性
+- **灵活性** — 为不同的 Agent 和使用场景混合搭配最合适的模型
+- **本地选项** — 使用 Ollama 或 LM Studio 实现完全数据隐私,无 API 费用
+
+## 提供商分类
+
+LobeHub 集成了 70+ AI 模型提供商:
+
+- **主流商业提供商** — OpenAI(GPT-4o、o1)、Anthropic(Claude)、Google(Gemini)、Microsoft Azure OpenAI、AWS Bedrock
+- **推理平台** — OpenRouter、Together AI、Groq、Fireworks AI、SambaNova
+- **国内提供商** — 智谱、Moonshot、DeepSeek、百川、通义千问(阿里)、文心一言(百度)、讯飞星火
+- **本地模型** — Ollama、LM Studio(无 API 费用,完全隐私,支持离线)
+- **图像生成** — DALL-E 3、fal.ai、BFL、ComfyUI
+
+## 配置提供商
+
+每个提供商在 **设置 → 语言模型** 中配置:
+
+1. 从列表中选择提供商
+2. 输入你的 API Key(从提供商的开发者控制台获取)
+3. 如需使用代理或自托管端点,可选填自定义 Base URL
+4. 保存后选择模型即可开始对话
+
+自托管部署的环境变量配置,请参见[模型提供商环境变量](/docs/self-hosting/environment-variables/model-provider)参考文档。
+
+## 故障排查
+
+**连接错误 / API Key 无效** — 检查 API Key 是否包含多余的空格。确认你使用的 Key 类型与该提供商的要求匹配。
+
+**模型不可用** — 该模型可能不在你的账户套餐中,或已被弃用。请查看提供商的模型可用性说明页面。
+
+**速率限制错误** — 你已达到提供商的请求速率上限。考虑将请求分散到多个提供商,或升级账户套餐。
## 模型服务商使用教程
diff --git a/docs/usage/start.mdx b/docs/usage/start.mdx
index 2fd3157163..912e941b07 100644
--- a/docs/usage/start.mdx
+++ b/docs/usage/start.mdx
@@ -1,34 +1,211 @@
---
-title: Getting Started
-description: Getting started with LobeHub
+title: Introduction
+description: >-
+ LobeHub is the next-generation agent harness designed to democratize AI
+ power. Move beyond one-off, task-driven tools and build long-term agent
+ teammates that grow with you in the world’s largest human–agent co-evolving
+ network.
tags:
- LobeHub
- - Features
- - Visual Recognition
- - Voice Conversations
- - AI Providers
- - Assistant Marketplace
- - Local Large Language Models
- - Plugin System
+ - Getting Started
+ - Agent Workspace
+ - AI Collaboration
+ - Agent Teams
+ - Memory
+ - MCP
---
-# LobeHub User Guide
+# Introduction
-Welcome to the official LobeHub User Guide.
+LobeHub is the next-generation agent harness designed to democratize AI power. Move beyond one-off, task-driven tools and build long-term agent teammates that grow with you in the world’s largest human–agent co-evolving network.
+
+
+
+## Welcome to LobeHub
+
+Today’s agents are one-off, task-driven tools. They lack context, live in isolation, and require manual hand-offs between different windows and models. While some maintain memory, it is often global, shallow, and impersonal. In this mode, users are forced to toggle between fragmented conversations, making it difficult to form structured productivity.
+
+**LobeHub changes everything.**
+
+LobeHub is a work-and-lifestyle space to find, build, and collaborate with agent teammates that grow with you. In LobeHub, we treat **Agents as the unit of work**, providing an infrastructure where humans and agents co-evolve.
+
+---
+
+
+
+### Create: Agents as the Unit of Work
+
+Building a personalized AI team starts with the **Agent Builder**. You can describe what you need once, and the agent setup starts right away, applying auto-configurations so you can use it instantly.
+
+- **Unified Intelligence**: Seamlessly access any model and any modality—all under your control.
+- **10,000+ Skills**: Connect your agents to the skills you use every day with a library of over 10,000 tools and MCP-compatible plugins.
+
+
+
+
+
+
+
+---
+
+
+
+### Collaborate: Scale New Forms of Collaboration Networks
+
+LobeHub introduces **Agent Groups**, allowing you to work with agents like real teammates. The system assembles the right agents for the task, enabling parallel collaboration and iterative improvement.
+
+- **Pages**: Write and refine content with multiple agents in one place with a shared context.
+- **Schedule**: Schedule runs and let agents do the work at the right time, even while you are away.
+- **Project**: Organize work by project to keep everything structured and easy to track.
+- **Workspace**: A shared space for teams to collaborate with agents, ensuring clear ownership and visibility across the organization.
+
+
+
+
+
+
+
+---
+
+
+
+### Evolve: Co-evolution of Humans and Agents
+
+The best AI is one that understands you deeply. LobeHub features **Personal Memory** that builds a clear understanding of your needs.
+
+- **Continual Learning**: Your agents learn from how you work, adapting their behavior to act at the right moment.
+- **White-Box Memory**: We believe in transparency. Your agents use structured, editable memory, giving you full control over what they remember.
+
+
+
+
+
+
+
+---
+
+## Next Steps
+
+
+ ### Get started
+
+ Follow the [Quickstart](/docs/usage/getting-started/lobe-ai) to start your first conversation with Lobe AI. No setup needed.
+
+ ### Build your first Agent
+
+ [Create a custom Agent](/docs/usage/getting-started/agent) tailored to your workflow. Describe what you need, and LobeHub handles the rest.
+
+ ### Spin up a Group
+
+ [Assemble an Agent team](/docs/usage/agent/agent-team) to tackle complex tasks together, in sequence, parallel, or debate.
+
+ ### Explore the Community
+
+ [Discover Agents](/docs/usage/community/agent-market) built by others and use them instantly.
+
+
+---
+
+## Make it yours
+
+### Choose the right model for every task
+
+Not every question needs the most powerful model.
+
+A quick translation? A lightweight model handles it in milliseconds for a fraction of the cost. A nuanced legal analysis? Route it to the model with the deepest reasoning capabilities.
+
+LobeHub gives you access to **70+ providers**, including GPT-4o, Claude, Gemini, DeepSeek, Llama, and Qwen, from over a dozen providers. Switch models mid-conversation, or let your Agent pick the best one for each turn. If your data needs to stay on-device, you can run local models too.
+
+Each Agent can have its own default model. Your code reviewer uses one model while your copywriter uses another, all running automatically without you making a choice each time.
+
+
+
+
+
+
+
+### 10,000+ Skills: Connect Agents to the tools you use
+
+An Agent that can only chat is only half the story.
+
+With [Skills](/docs/usage/agent/skills), your Agent reads your GitHub issues, queries your database, sends a Slack message, generates a PDF, or books a meeting. All within the same conversation.
+
+LobeHub supports the [Model Context Protocol (MCP)](/docs/usage/community/mcp-market), an open standard that connects Agents to an ever-growing ecosystem of **10,000+ tools**. Install a Skill from the marketplace in one click, or build your own and share it with the Community.
+
+A few real-world examples:
+
+- *"Summarize the top 5 GitHub issues and post a digest to Slack"* → your Agent reads the issues, writes the summary, sends the message.
+- *"Pull this week's sales data and build a chart"* → your Agent queries the database, processes the numbers, renders a visual Artifact.
+- *"Find flights to Tokyo next month under $800"* → your Agent searches, compares, and presents options with booking links.
+
+
+
+
+
+
+
+### Resource Library: Give your Agents real knowledge
+
+Generic AI answers are fine for generic questions. But when you need an Agent that knows *your* codebase, *your* product docs, *your* company policies, the [Resource Library](/docs/usage/agent/resources) is where you start.
+
+Upload documents, images, spreadsheets, audio, or video. Your Agent references them during conversations, so its answers are grounded in your actual data, not just training-set knowledge. Build a knowledge base for each Agent, or share resources across your Workspace.
+
+Imagine a customer support Agent that knows your entire help center. A legal assistant trained on your contract templates. A product manager who has read every PRD you've ever written. That's Resource Library at work.
+
+
+
+
+
+### Create visuals without leaving the conversation
+
+Need a hero image for a blog post? A diagram for your architecture doc? A quick mockup to pitch an idea?
+
+Ask your Agent. It generates images using DALL-E 3, fal.ai, and other models, and renders them as Artifacts right in the chat. No switching to a separate design tool, no export-download-reupload cycle. The image is there, in context, next to the conversation that produced it.
+
+
+
+
+
+### Community: Shared intelligence
+
+LobeHub's philosophy starts with people. The [Community](/docs/usage/community/agent-market) is where thousands of creators publish Agents, Skills, and workflows for everyone to discover, install, and remix.
+
+Found an Agent that's 80% of what you need? Install it, tweak the prompt, swap the model, add your own knowledge base, and it becomes yours. Or build something from scratch and share it back. The best ideas compound when they're open.
+
+
+
+
+
+
+
+
+
+### Available everywhere
+
+LobeHub runs in the [browser](https://app.lobehub.com), on [macOS and Windows](/docs/usage/getting-started/get-lobehub), and on [iOS and Android](/docs/usage/getting-started/get-lobehub). One account, and your Agents, Pages, and Memory sync across all devices.
+
+Start a research session on your laptop, continue the conversation on your phone during lunch, and pick it up on your desktop when you're back. Nothing is lost.
+
+- **[Keyboard Shortcuts](/docs/usage/user-interface/shortcuts)**: Power users can navigate, switch conversations, and trigger actions without touching the mouse.
+- **[Command Menu](/docs/usage/user-interface/command-menu)**: Press a key and search everything: Agents, conversations, settings, actions. All from one place.
+
+
+
+
+
+
+
+
+
+---
- For self-hosting, please visit the [Self-Hosting Guide](/docs/self-hosting/start). For developer
- resources, check out the [Developer Guide](/docs/development/start).
+ For self-hosting, visit the [Self-Hosting Guide](/docs/self-hosting/start). For developer
+ resources, see the [Developer Guide](/docs/development/start).
-## Getting Started
+
+
-- [Try Lobe AI](/docs/usage/getting-started/lobe-ai)
-- [Create Your First Agent](/docs/usage/getting-started/agent)
-- [Create Your First Team](/docs/usage/agent/agent-team)
-- [Explore the LobeHub Community](/docs/usage/community/agent-market)
-- [Migrate from v1.x Local Database to v2.x (Cloud / Self-hosted)](/docs/usage/migrate-from-local-database)
-
-## Help & Support
-
-If you need help, please refer to our [Help & Support](/docs/usage/help) section.
+
+
diff --git a/docs/usage/start.zh-CN.mdx b/docs/usage/start.zh-CN.mdx
index d3de77c6fe..e9da126a14 100644
--- a/docs/usage/start.zh-CN.mdx
+++ b/docs/usage/start.zh-CN.mdx
@@ -1,33 +1,208 @@
---
-title: 开始
-description: 上手使用 LobeHub
+title: 简介
+description: >-
+ LobeHub 是下一代 Agent harness,旨在让 AI 能力大众化。超越一次性、以任务为驱动的工具,构建能随着您一起成长的长期
+ Agent 队友,加入全球最大的人与 Agent 共生网络。
tags:
- LobeHub
- - 功能特性
- - 视觉识别
- - 语音会话
- - AI 服务商
- - 助手市场
- - 本地大语言模型
- - 插件系统
+ - 入门指南
+ - 助理工作空间
+ - 协作助理
+ - 群组
+ - 记忆
+ - MCP
---
-# LobeHub 用户指南
+# 简介
-欢迎来到 LobeHub 官方用户指南。
+LobeHub 是下一代 Agent harness,旨在让 AI 能力大众化。超越一次性、以任务为驱动的工具,构建能随着您一起成长的长期 Agent 队友,加入全球最大的人与 Agent 共生网络。
+
+
+
+## 欢迎使用 LobeHub
+
+现有的 Agent 大多是一次性、以任务为驱动的工具。它们缺乏上下文,孤立运行,并且需要在不同窗口和模型之间手动交接。即使有记忆,也往往是全局的、浅层的且缺乏个性。在这种模式下,用户被迫在分散的对话之间来回切换,难以形成结构化的生产流程。
+
+**LobeHub 改变一切。**
+
+LobeHub 是一个工作与生活空间,用于发现、构建并与会随着您一起成长的 Agent 队友协作。在 LobeHub 中,我们将 **Agent 视为工作单元**,提供一个让人类与 Agent 共同进化的基础设施。
+
+---
+
+
+
+### 创建:以 Agent 为工作单元
+
+构建个性化 AI 团队从 **Agent Builder** 开始。您只需描述一次需求,Agent 配置即可立即启动,自动应用配置以便您立刻使用。
+
+- **统一智能**:无缝访问任何模型与任何模态 —— 全部由您掌控。
+- **1 万 + 技能**:通过超过 10,000 个工具和与 MCP 兼容的插件,将 Agent 连接到您每天使用的技能。
+
+
+
+
+
+
+
+---
+
+
+
+### 协作:扩展新型协作网络
+
+LobeHub 引入了 **Agent Groups**,让您可以像对待真实队友一样与 Agent 协同工作。系统会为任务组装合适的 Agent,支持并行协作与迭代改进。
+
+- **页面(Pages)**:在同一位置与多个 Agent 共同撰写和润色内容,共享上下文。
+- **日程(Schedule)**:安排运行,让 Agent 在合适的时间完成工作,即使您不在也能继续执行。
+- **项目(Project)**:按项目组织工作,保持一切结构化且易于跟踪。
+- **工作区(Workspace)**:供团队与 Agent 协作的共享空间,确保明确的所有权和组织内的可见性。
+
+
+
+
+
+
+
+---
+
+
+
+### 进化:人类与 Agent 的共生进化
+
+最好的 AI 是能深入理解您的那一种。LobeHub 提供了构建清晰用户理解的 **个人记忆(Personal Memory)**。
+
+- **持续学习**:您的 Agent 会从您的工作方式中学习,调整其行为以在恰当时刻采取行动。
+- **白盒记忆**:我们相信透明性。您的 Agent 使用结构化、可编辑的记忆,让您完全掌控它们记住的内容。
+
+
+
+
+
+
+
+---
+
+## 从这里开始
+
+
+ ### 快速上手
+
+ 跟随[快速开始](/zh/docs/usage/getting-started/lobe-ai),和 Lobe AI 开启第一次对话,无需任何设置。
+
+ ### 构建你的第一个助理
+
+ [创建自定义助理](/zh/docs/usage/getting-started/agent),按你的工作流量身定制。描述你的目标,LobeHub 帮你搞定。
+
+ ### 组建群组
+
+ [创建助理团队](/zh/docs/usage/agent/agent-team),以顺序、并行或辩论模式协同攻克复杂任务。
+
+ ### 探索社区
+
+ [发现其他人创建的助理](/zh/docs/usage/community/agent-market),即用即走。
+
+
+---
+
+## 让它适应你
+
+### 为每个任务选择最合适的模型
+
+不是所有问题都需要最强的模型。
+
+一段快速翻译?轻量模型几毫秒搞定,成本微乎其微。一份需要深度推理的法律分析?交给推理能力最强的模型。
+
+LobeHub 接入了 **70+ 模型**,包括 GPT-4o、Claude、Gemini、DeepSeek、Llama、Qwen 等,来自十几家服务商。你可以在对话中随时切换模型,也可以让助理自动为每个回合选择最优模型。如果你的数据需要留在本地,还可以接入本地模型。
+
+每个助理都可以设置独立的默认模型。你的代码审查员用一个模型,文案用另一个,全自动运行,无需每次手动选择。
+
+
+
+
+
+
+
+### 10,000+ 技能:把助理连接到你的工具链
+
+一个只能聊天的助理只发挥了一半的能力。
+
+通过[技能](/zh/docs/usage/agent/skills),你的助理可以读取 GitHub Issue、查询数据库、发送 Slack 消息、生成 PDF 或预订会议,全部在同一个对话中完成。
+
+LobeHub 支持[模型上下文协议(MCP)](/zh/docs/usage/community/mcp-market),这是一个开放标准,将助理连接到一个持续增长的 **10,000+ 工具**生态。从市场一键安装技能,或者自己构建并分享给社区。
+
+几个实际场景:
+
+- *「总结排名前 5 的 GitHub Issue,然后把摘要发到 Slack」* → 你的助理读取 Issue、撰写摘要、发送消息。
+- *「拉取本周的销售数据,做一张图表」* → 你的助理查询数据库、处理数字、渲染可视化 Artifact。
+- *「找下个月去东京的机票,800 美元以内」* → 你的助理搜索、比较、呈现带预订链接的选项。
+
+
+
+
+
+
+
+### 资源库:给你的助理真正的知识
+
+通用的 AI 回答能应付通用的问题。但当你需要一个了解 *你的* 代码库、*你的* 产品文档、*你的* 公司制度的助理时,[资源库](/zh/docs/usage/agent/resources)就派上用场了。
+
+上传文档、图片、表格、音频或视频。你的助理在对话中引用这些资料,让回答基于你的真实数据,而不仅仅是训练集里的知识。为每个助理建立独立的知识库,或者在空间中共享资源。
+
+想象一个读过你整个帮助中心的客服助理。一个熟悉你所有合同模板的法务助手。一个看过你写的每一份 PRD 的产品经理。这就是资源库在做的事。
+
+
+
+
+
+### 在对话中直接创作视觉内容
+
+需要一张博客文章的封面图?一张架构文档的流程图?一个用来推销创意的快速原型?
+
+直接问你的助理。它使用 DALL-E 3、fal.ai 等模型生成图片,并以 Artifact 的形式直接渲染在聊天里。不需要切换到另一个设计工具,不需要导出、下载、再上传。图片就在那里,在上下文中,紧挨着产生它的对话。
+
+
+
+
+
+### 社区:共享的智慧
+
+LobeHub 的理念以人为本。[社区](/zh/docs/usage/community/agent-market)是数千名创作者发布助理、技能和工作流的地方,所有人都可以发现、安装和二次创作。
+
+看到一个满足你 80% 需求的助理?安装它,调整提示词,换个模型,加上你自己的知识库,它就变成了你的。或者从零构建一个,分享回社区。最好的想法在开放中加速复合增长。
+
+
+
+
+
+
+
+
+
+### 随处可用
+
+LobeHub 可在[浏览器](https://app.lobehub.com)、[macOS 和 Windows](/zh/docs/usage/getting-started/get-lobehub),以及 [iOS 和 Android](/zh/docs/usage/getting-started/get-lobehub) 上使用。一个账号,你的助理、文稿和记忆在所有设备间同步。
+
+在笔记本上开始一个研究任务,午休时用手机继续对话,回到办公桌后在台式机上接着来。不会丢失任何东西。
+
+- **[快捷键](/zh/docs/usage/user-interface/shortcuts)**: 效率型用户可以不碰鼠标就完成导航、切换对话和触发操作。
+- **[命令菜单](/zh/docs/usage/user-interface/command-menu)**: 按一个键就能搜索一切:助理、对话、设置、操作,全部在一个入口。
+
+
+
+
+
+
+
+
+
+---
- 欲获取自部署帮助,请访问[私有化部署指南](/docs/self-hosting/start)。欲获取开发者指南,请访问[开发指南](/docs/development/start)
+ 自托管部署请参阅[自托管指南](/zh/docs/self-hosting/start)。开发者资源请查看[开发者指南](/zh/docs/development/start)。
-## 开始
+
+
-- [使用 Lobe AI](/docs/usage/getting-started/lobe-ai)
-- [创建你的第一个 Agent](/docs/usage/getting-started/agent)
-- [创建你的第一个 Team](/docs/usage/agent/agent-team)
-- [探索 LobeHub 社区](/docs/usage/community/agent-market)
-- [从 v1.x 本地数据库迁移到 v2.x(云端 / 自部署)](/docs/usage/migrate-from-local-database)
-
-## 帮助与支持
-
-如果你需要帮助,可以参考 [帮助与支持](/docs/usage/help)。
+
+
diff --git a/docs/usage/user-interface/appearance.mdx b/docs/usage/user-interface/appearance.mdx
index 08c6e5a82c..da74810a45 100644
--- a/docs/usage/user-interface/appearance.mdx
+++ b/docs/usage/user-interface/appearance.mdx
@@ -1,53 +1,70 @@
---
title: Interface Appearance
description: >-
- LobeHub supports various large language models with visual recognition
- capabilities. Users can upload or drag and drop images, and the assistant will
- recognize the content and initiate intelligent conversations, creating a
- smarter and more diverse chat experience.
+ Customize LobeHub's look — theme, colors, language, code highlighting, and Mermaid diagrams. Make it yours.
tags:
- LobeHub
- - LobeHub
- - Interface Appearance
- - Language
+ - Appearance
- Theme
- - Animation Mode
- - Context Menu Mode
+ - Language
+ - Customization
---
# Interface Appearance
-Click on your user avatar in the top-right corner of the homepage, then select "App Settings" from the dropdown menu. Click on "Appearance" to enter the customization page. This section gathers all visual-related configuration options. \[Image]
+Appearance settings let you customize how LobeHub looks and feels. Switch themes, pick accent colors, set the default language for Agent responses, and tune code and diagram styling. All visual-related options are grouped here.
+
+**How to access:** Click your user avatar in the top-right corner → **App Settings** → **Appearance**.
## Language
-You can switch the interface language in the settings.
+Switch the interface language. LobeHub supports multiple locales — choose the one that fits your workflow.
## Theme Mode
-LobeHub supports three theme modes:
+Three options:
-- Light Mode
-- Dark Mode
-- Follow System (default)
+| Mode | Best For |
+| ----------------- | ------------------------------------------ |
+| **Light** | Bright environments, daytime use |
+| **Dark** | Low-light environments, reduced eye strain |
+| **Follow System** | Match your OS preference (default) |
+
+**Follow System** automatically switches between light and dark based on your operating system setting. Useful if you use LobeHub across different times of day or environments.
## Theme Colors
-In addition to light and dark modes, you can also customize the theme color to create a personalized visual style. LobeHub offers a variety of preset theme and neutral colors. Simply click on a color swatch to apply it—buttons, highlights, and other interface elements will instantly update to reflect the selected theme color.
+Beyond light and dark, you can set an **accent color** — the color used for buttons, highlights, links, and other interactive elements. LobeHub offers preset theme and neutral colors. Click a swatch to apply it; the interface updates immediately.
-## Assistant Language
+**Use cases:** Match your brand, reduce visual clutter with a neutral palette, or pick a color that helps you focus.
-Set the default language for AI assistant responses. Once selected, the assistant will prioritize replying in this language unless you explicitly request another language during the conversation.
+## Agent Language
-## Animation Effects
+Set the **default language for Agent responses**. Once selected, Agents will prioritize replying in that language unless you explicitly request another in the conversation.
-When your conversation or document includes code, you can choose a syntax highlighting theme. Select a code highlight style that complements the overall theme to make your code more readable and visually appealing.
+**Example:** If you set "Chinese," the Agent will reply in Chinese by default. You can still say "Reply in English" for a specific message.
+
+## Code Highlighting
+
+When your conversation or document includes code blocks, you can choose a **syntax highlighting theme**. Choose one that complements your overall theme — light themes pair well with light code themes, dark with dark.
+
+**Use cases:** Improve readability during code reviews, match your IDE's color scheme for consistency, or reduce eye strain in long coding sessions.
## Mermaid Theme
-Mermaid is a tool for creating diagrams using text. When your conversation or document includes Mermaid diagrams, you can choose a theme style for them. Select a Mermaid theme that aligns with the overall interface theme to make flowcharts, sequence diagrams, and other visuals more attractive.
+Mermaid is a text-based diagram tool. When your conversation or document includes Mermaid diagrams (flowcharts, sequence diagrams, etc.), you can choose a **Mermaid theme** for them. Align it with your overall theme so diagrams look consistent with the rest of the interface.
## Mode Selection
-- Professional Mode
-- Simplified Mode
+| Mode | Description |
+| --------------------- | ------------------------------------------------------------------------------------ |
+| **Professional Mode** | Full interface with all panels and options — best for power users |
+| **Simplified Mode** | Streamlined interface with fewer elements — best for focused work or smaller screens |
+
+**Tip:** Use Simplified Mode when you want less visual noise and more space for the conversation. Switch to Professional Mode when you need quick access to panels, settings, or multiple views.
+
+
+
+
+
+
diff --git a/docs/usage/user-interface/appearance.zh-CN.mdx b/docs/usage/user-interface/appearance.zh-CN.mdx
index 34844c771d..dffb3dca8a 100644
--- a/docs/usage/user-interface/appearance.zh-CN.mdx
+++ b/docs/usage/user-interface/appearance.zh-CN.mdx
@@ -1,49 +1,70 @@
---
title: 界面外观
-description: LobeHub 支持多种具有视觉识别能力的大语言模型,用户可上传或拖拽图片,助手将识别内容并展开智能对话,打造更智能、多元化的聊天场景。
+description: >-
+ 自定义 LobeHub 的外观——主题、色彩、语言、代码高亮与 Mermaid 图表。打造属于你的界面。
tags:
- LobeHub
- - LobeHub
- - 界面外观
- - 语言
+ - 外观
- 主题
- - 动画模式
- - 上下文菜单模式
+ - 语言
+ - 自定义
---
# 界面外观
-在首页右上角点击用户头像,在下拉菜单中选择「应用设置」,点击「外观」,进入自定义页面。这里汇集了所有视觉相关的配置选项。\[Image]
+外观设置让你自定义 LobeHub 的视觉风格。切换主题、选择强调色、设置助理回复的默认语言,并调整代码和图表的样式。所有视觉相关选项都集中在这里。
+
+**如何进入:** 点击右上角用户头像 → **应用设置** → **外观**。
## 语言
-你可以在设置中切换语言。
+切换界面语言。LobeHub 支持多语言,选择适合你工作流的语言即可。
## 主题模式
-LobeHub 支持三种主题模式:
+三种模式:
-- 亮色模式
-- 深色模式
-- 跟随系统(默认)
+| 模式 | 最适合 |
+| -------- | ----------- |
+| **亮色** | 明亮环境、白天使用 |
+| **深色** | 弱光环境、减轻眼疲劳 |
+| **跟随系统** | 与系统偏好一致(默认) |
+
+**跟随系统** 会根据操作系统设置自动切换亮色 / 深色。适合在不同时段或环境下使用 LobeHub 时使用。
## 主题色彩
-除了明暗模式,你还可以自定义主题色彩,打造个性化的视觉风格。LobeHub 提供多种预设主题色和中性色,点击色卡即可应用,界面的按钮、高亮等元素会立即切换为选中的主题色。
+除了明暗模式,你还可以设置 **强调色** —— 用于按钮、高亮、链接等交互元素的颜色。LobeHub 提供多种预设主题色和中性色。点击色卡即可应用,界面会立即更新。
-## 助手语言
+**使用场景:** 匹配品牌色、用中性色减少视觉干扰、或选择有助于专注的颜色。
-设置 AI 助手回复的默认语言。选择后,助手会优先使用该语言回答问题,除非你在对话中明确要求使用其他语言。
+## 助理语言
-## 动画效果
+设置 **助理回复的默认语言**。选择后,助理会优先使用该语言回复,除非你在对话中明确要求使用其他语言。
-当对话或文稿中包含代码时,可以选择代码高亮的配色方案。选择与整体主题协调的代码高亮方案,让代码更易读、更美观。
+**示例:** 若设置为「中文」,助理默认用中文回复。你仍可在某条消息中说「用英文回复」。
+
+## 代码高亮
+
+当对话或文稿中包含代码块时,可以选择 **代码高亮主题**。选择与整体主题协调的方案 —— 亮色主题配亮色代码、深色配深色。
+
+**使用场景:** 提升代码审查时的可读性、与 IDE 配色保持一致、或在长代码会话中减轻眼疲劳。
## Mermaid 主题
-Mermaid 是一种用文本描述图表的工具。当对话或文稿中包含 Mermaid 图表时,可以选择图表的主题样式。选择与整体主题协调的 Mermaid 主题,让流程图、时序图等图表更美观。
+Mermaid 是一种用文本描述图表的工具。当对话或文稿中包含 Mermaid 图表(流程图、时序图等)时,可选择 **Mermaid 主题**。与整体主题协调,让图表与界面风格一致。
## 模式选择
-- 专业模式
-- 精简模式
+| 模式 | 说明 |
+| -------- | ------------------------ |
+| **专业模式** | 完整界面,包含所有面板和选项 —— 适合重度用户 |
+| **精简模式** | 精简界面,元素更少 —— 适合专注工作或小屏设备 |
+
+**提示:** 想要更少视觉干扰、更多对话空间时用精简模式。需要快速访问面板、设置或多视图时用专业模式。
+
+
+
+
+
+
diff --git a/docs/usage/user-interface/command-menu.mdx b/docs/usage/user-interface/command-menu.mdx
index eaae83f100..be29d92b6a 100644
--- a/docs/usage/user-interface/command-menu.mdx
+++ b/docs/usage/user-interface/command-menu.mdx
@@ -1,56 +1,87 @@
---
title: Command Menu
description: >-
- The Command Menu is the quick action center of LobeHub. Instantly accessible via keyboard shortcuts, it allows you to search and execute various actions without navigating through multiple interface layers. This makes navigation and operations faster and more efficient.
-
-
+ The quick action center of LobeHub — search Agents, Topics, settings, and jump anywhere with a few keystrokes.
tags:
- - Command Menu
- LobeHub
+ - Command Menu
- Quick Navigation
- - Action Center
+ - Search
- Keyboard Shortcuts
---
# Command Menu
-The Command Menu is the quick action center of LobeHub. Instantly accessible via keyboard shortcuts, it allows you to search and execute various actions without navigating through multiple interface layers. This makes navigation and operations faster and more efficient.
+The Command Menu is LobeHub's quick action center. Press `⌘ + K` (Mac) or `Ctrl + K` (Windows/Linux) and a search overlay appears. Type a few keywords to find Agents, Topics, settings, or actions — no need to click through menus or the sidebar. It's the fastest way to navigate LobeHub.
-The Command Menu supports fuzzy search, so you don’t need to type the full name—just a few keywords will do. For example, typing "programming" will bring up "Python Programming Assistant." When frequently switching between assistants, using the Command Menu is much faster than browsing through the sidebar.
+**Fuzzy search** — You don't need to type the full name. "programming" or "python" can match "Python Programming Agent." When switching between Agents frequently, the Command Menu is much faster than browsing the sidebar.
-## Open the Command Menu
+## Opening the Command Menu
-Use the following keyboard shortcuts to open the Command Menu:\
-macOS: Cmd + K\
-Windows/Linux: Ctrl + K\
-The Command Menu will appear as an overlay in the center of the screen.
+- **macOS:** `Cmd + K`
+- **Windows/Linux:** `Ctrl + K`
-
+The menu appears as an overlay in the center of the screen.
-## Search and Navigate
+
-Type keywords into the Command Menu to instantly search for matching content. You can search for assistant names to quickly switch sessions, enter topic keywords to jump to past conversations, or quickly access sections like Settings, Documents, and Library. You can also search for plugins, files, and more. The Command Menu supports command search as well, allowing you to quickly perform actions like creating a new assistant or starting a conversation with AI.
+## What You Can Search
-
+| Type | Examples |
+| ---------------- | ---------------------------------------------------------------------- |
+| **Agents** | Type an Agent name to switch sessions or start a new conversation |
+| **Topics** | Enter topic keywords to jump to past conversations |
+| **Sections** | "Settings", "Documents", "Resources" — jump directly to a section |
+| **Skills & MCP** | Search for plugins and MCP servers |
+| **Actions** | "Create Agent", "Create Agent Team" — execute without navigating menus |
-Use your keyboard to navigate quickly within the Command Menu. Use the ↑ and ↓ arrow keys to move through search results, press Enter to execute the selected action, and press Esc to close the menu.
+**Keyboard navigation:** Use `↑` and `↓` to move through results, `Enter` to execute, `Esc` to close. `Tab` switches between result categories when you're typing a message.
+
+
## Ask an Agent
-To chat with an assistant, press Cmd + K to open the Command Menu, type your message or topic, press Tab to select an assistant, and start the conversation instantly.
+To start a conversation with a specific Agent:
-To create a new assistant or assistant team, select "Create Assistant" or "Create Assistant Team" and press Enter.
+1. Press `Cmd + K` / `Ctrl + K` to open the Command Menu
+2. Type your message or topic
+3. Press `Tab` to switch to the Agent selector
+4. Select an Agent and press `Enter` — the conversation starts immediately
+
+**Create new:** Select "Create Agent" or "Create Agent Team" and press `Enter` to create without leaving the menu.
## Quick Navigation
-Select the section you want to access—such as "Documents" or "Resources"—and press Enter to jump right in.
+Select a section like "Documents" or "Resources" and press `Enter` to jump there. No sidebar scrolling, no extra clicks.
## Search Content
-Enter keywords to search through past messages, assistants, MCP plugins, and more. Results are categorized for easier and faster discovery.
+Enter keywords to search across:
+
+- **Past messages** — Find conversations by content
+- **Agents** — Switch by name or description
+- **MCP plugins** — Find and access installed tools
+
+Results are categorized so you can quickly see what you're looking at and choose the right one.
+
+## Use Cases
+
+**Switch Agents mid-task** — `Cmd + K` → type Agent name → Enter. Faster than clicking through the sidebar.
+
+**Resume a past conversation** — `Cmd + K` → type a keyword from the topic → Enter. Jump straight to that Topic.
+
+**Create a new Agent without leaving the flow** — `Cmd + K` → "Create Agent" → Enter. No need to find the create button.
+
+**Quick access to Settings** — `Cmd + K` → "Settings" → Enter. One shortcut instead of avatar → menu → Settings.
+
+## Tips
+
+- **Start typing immediately** — The menu opens ready for input. No need to click the search field.
+- **Use Tab to switch context** — When you've typed a message, Tab lets you switch to selecting an Agent or action without losing what you typed.
+- **Esc to cancel** — Press Esc anytime to close the menu without executing anything.
+
+
+
+
+
+
diff --git a/docs/usage/user-interface/command-menu.zh-CN.mdx b/docs/usage/user-interface/command-menu.zh-CN.mdx
index e1cd7252a9..34bb76e132 100644
--- a/docs/usage/user-interface/command-menu.zh-CN.mdx
+++ b/docs/usage/user-interface/command-menu.zh-CN.mdx
@@ -1,47 +1,87 @@
---
title: 命令菜单
-description: 命令菜单是 LobeHub 的快捷操作中心。通过键盘快捷键快速呼出,你可以搜索和执行各种操作,无需在界面中逐层点击。这让导航和操作更快速、更高效。
+description: >-
+ LobeHub 的快捷操作中心——搜索助理、话题、设置,用几个按键跳转到任意位置。
tags:
- - Command Menu
- LobeHub
+ - 命令菜单
- 快速导航
- - 操作中心
- - 键盘快捷键
+ - 搜索
+ - 快捷键
---
# 命令菜单
-命令菜单是 LobeHub 的快捷操作中心。通过键盘快捷键快速呼出,你可以搜索和执行各种操作,无需在界面中逐层点击。这让导航和操作更快速、更高效。
+命令菜单是 LobeHub 的快捷操作中心。按下 `⌘ + K`(Mac)或 `Ctrl + K`(Windows/Linux),搜索浮层会出现在屏幕中央。输入几个关键词即可找到助理、话题、设置或操作 —— 无需逐层点击菜单或侧边栏。这是浏览 LobeHub 最快的方式。
-命令菜单支持模糊搜索,不需要输入完整名称,输入部分关键词即可匹配。例如输入 "编程" 可以找到 "Python 编程助理"。频繁切换助理时,使用命令菜单比在侧边栏中查找更快。
+**模糊搜索** — 无需输入完整名称。「编程」或「python」都能匹配「Python 编程助理」。频繁切换助理时,命令菜单比在侧边栏中查找快得多。
## 打开命令菜单
-使用键盘快捷键打开命令菜单:macOS:Cmd + K Windows/Linux:Ctrl + K 命令菜单会以浮层形式出现在屏幕中央。
+- **macOS:** `Cmd + K`
+- **Windows/Linux:** `Ctrl + K`
+
+菜单会以浮层形式出现在屏幕中央。
-## 搜索和导航
+## 可以搜索什么
-在命令菜单中输入关键词,系统会实时搜索匹配的内容。你可以搜索助理名称快速切换会话,输入话题关键词跳转到历史对话,快捷访问设置、文稿、资源库等板块,或者搜索插件、文件等。命令菜单还支持搜索操作命令,快速执行创建助理、与 AI 对话等操作。
+| 类型 | 示例 |
+| ----------- | ------------------------- |
+| **助理** | 输入助理名称切换会话或开始新对话 |
+| **话题** | 输入话题关键词跳转到历史对话 |
+| **板块** | 「设置」「文稿」「资源」—— 直接跳转到对应板块 |
+| **技能与 MCP** | 搜索插件和 MCP 服务器 |
+| **操作** | 「创建助理」「创建群组」—— 无需进入菜单即可执行 |
-
+**键盘导航:** 用 `↑` 和 `↓` 在结果间移动,`Enter` 执行,`Esc` 关闭。输入消息时,`Tab` 可在结果类别间切换。
-在命令菜单中使用键盘快速导航。用 ↑ 和 ↓ 键在搜索结果中移动,按 Enter 执行选中的操作,按 Esc 关闭命令菜单。
+
-## 问 Agent
+## 向助理提问
-与助理对话 Cmd + K 呼出命令菜单后,输入想发送的话题,按 Tab 并选择助理,可以实现快捷对话。
+要与指定助理开始对话:
-选中「新建助理」或「新建助理团队」,按 Enter 即可创建。
+1. 按 `Cmd + K` / `Ctrl + K` 打开命令菜单
+2. 输入你的消息或话题
+3. 按 `Tab` 切换到助理选择器
+4. 选择助理并按 `Enter` —— 对话立即开始
+
+**新建:** 选择「创建助理」或「创建群组」,按 `Enter` 即可创建,无需离开菜单。
## 快捷导航
-选中想访问的板块,例如「文稿」、「资源」等,按 Enter 即可访问。
+选择「文稿」「资源」等板块,按 `Enter` 即可跳转。无需滚动侧边栏,无需额外点击。
## 搜索内容
-输入关键词,可以搜索历史消息、助理、MCP 插件等。搜索结果分类显示,便于快速查找。
+输入关键词可搜索:
+
+- **历史消息** — 按内容查找对话
+- **助理** — 按名称或描述切换
+- **MCP 插件** — 查找并访问已安装的工具
+
+结果会分类显示,方便快速识别并选择正确项。
+
+## 使用场景
+
+**任务中途切换助理** — `Cmd + K` → 输入助理名 → 回车。比在侧边栏点击更快。
+
+**恢复之前的对话** — `Cmd + K` → 输入话题中的关键词 → 回车。直接跳转到该话题。
+
+**不打断流程创建新助理** — `Cmd + K` → 「创建助理」→ 回车。无需找到创建按钮。
+
+**快速进入设置** — `Cmd + K` → 「设置」→ 回车。一个快捷键替代头像 → 菜单 → 设置。
+
+## 使用技巧
+
+- **打开后直接输入** — 菜单打开后即可输入,无需点击搜索框。
+- **用 Tab 切换上下文** — 输入消息后,Tab 可切换到选择助理或操作,已输入内容不会丢失。
+- **Esc 取消** — 随时按 Esc 关闭菜单,不执行任何操作。
+
+
+
+
+
+
diff --git a/docs/usage/user-interface/shortcuts.mdx b/docs/usage/user-interface/shortcuts.mdx
index 2d4fcf35db..1e0baa268f 100644
--- a/docs/usage/user-interface/shortcuts.mdx
+++ b/docs/usage/user-interface/shortcuts.mdx
@@ -1,53 +1,82 @@
---
title: Keyboard Shortcuts
description: >-
- LobeHub offers a wide range of keyboard shortcuts to help you perform various
- actions quickly and efficiently. Mastering these shortcuts can significantly
- reduce mouse usage and streamline your workflow.
+ Master LobeHub with keyboard shortcuts — command palette, Agent switching, focus mode, and more. Customize to fit your workflow.
tags:
- LobeHub
- Keyboard Shortcuts
- - Basic Shortcuts
- - Conversation Shortcuts
+ - Productivity
- Custom Shortcuts
---
# Keyboard Shortcuts
-LobeHub provides a comprehensive set of keyboard shortcuts that allow you to perform actions quickly and boost your productivity. By mastering these shortcuts, you can greatly reduce reliance on the mouse and make your workflow more seamless.
+LobeHub provides a comprehensive set of keyboard shortcuts so you can work without constantly reaching for the mouse. Master a few key ones and your workflow noticeably speeds up — especially when switching Agents, managing conversations, or navigating the interface.
-## Accessing Settings
+## How to Access Shortcut Settings
-Click on your user avatar in the top-right corner of the homepage, select "App Settings" from the dropdown menu, and then click on "Shortcuts" to view the available keyboard shortcuts.
+Click your user avatar in the top-right corner → **App Settings** → **Shortcuts**. You can view all shortcuts and customize most of them.
-## Basic Shortcuts
+## Essential Shortcuts
-- Open the global command palette for quick access: ⌘ + K (Mac) or Ctrl + K (Windows/Linux)
-- Focus the main search bar on the current page: ⌘ + J (Mac) or Ctrl + J (Windows/Linux)
-- Quickly switch assistants: Hold Ctrl and press a number key (0–9) to switch between assistants pinned to the sidebar: ^ + 1–9 (Mac) or Ctrl + 1–9 (Windows/Linux)
-- Switch to the default conversation: ^ + 0 (Mac) or Ctrl + 0 (Windows/Linux)
-- Show/Hide the left panel: ⌘ + \[ (Mac) or Ctrl + \[ (Windows/Linux)
-- Show/Hide the right panel: ⌘ + ] (Mac) or Ctrl + ] (Windows/Linux)
-- Open shortcut help: ^ + ⇧ + ? (Mac) or Ctrl + Shift + ? (Windows/Linux) to view all shortcut instructions.
-- Toggle Focus Mode: ⌘ + \ (Mac) or Ctrl + \ (Windows/Linux). In Focus Mode, only the current conversation is shown, and other UI elements are hidden.
-- Save document: ⌘ + S (Mac) or Ctrl + S (Windows/Linux)
+| Action | Shortcut |
+| ---------------------------------- | -------------------------------------- |
+| **Open Command Menu** | `⌘ + K` (Mac) / `Ctrl + K` (Win/Linux) |
+| **Focus search** | `⌘ + J` / `Ctrl + J` |
+| **Switch to pinned Agent** | `Ctrl + 1–9` |
+| **Switch to default conversation** | `Ctrl + 0` |
+| **Toggle left panel** | `⌘ + [` / `Ctrl + [` |
+| **Toggle right panel** | `⌘ + ]` / `Ctrl + ]` |
+| **Focus mode** | `⌘ + \` / `Ctrl + \` |
+| **Shortcut help** | `Ctrl + Shift + ?` |
+
+**Focus mode** hides all panels except the current conversation — ideal for distraction-free writing or long reads.
## Conversation Shortcuts
-- Open conversation settings: ⌘ + , (Mac) or Ctrl + , (Windows/Linux)
-- Regenerate message: ⌘ + R (Mac) or Ctrl + R (Windows/Linux)
-- Delete the last message: ⌘ + D (Mac) or Ctrl + D (Windows/Linux)
-- Delete and regenerate: ⌘ + ⇧ + R (Mac) or Ctrl + Shift + R (Windows/Linux)
-- Delete the last message and regenerate: ⌘ + ⇧ + R (Mac) or Ctrl + Shift + R (Windows/Linux)
-- Save current topic and start a new one: ⌘ + N (Mac) or Ctrl + N (Windows/Linux)
-- Add a user message: ⌘ + ↵ (Mac) or Ctrl + Enter (Windows/Linux) to add the current input as a user message without triggering a response.
-- Edit a message: ⌘ + ⌥ (Mac) or Ctrl + Alt (Windows/Linux). Hold Alt and double-click a message to enter edit mode.
-- Clear all conversation messages: ⌘ + ⇧ + ⌫ (Mac) or Ctrl + Shift + Backspace (Windows/Linux)
+| Action | Shortcut |
+| ------------------------------- | ---------------------------------------------------- |
+| **Open conversation settings** | `⌘ + ,` / `Ctrl + ,` |
+| **Regenerate message** | `⌘ + R` / `Ctrl + R` |
+| **Delete last message** | `⌘ + D` / `Ctrl + D` |
+| **Delete and regenerate** | `⌘ + Shift + R` / `Ctrl + Shift + R` |
+| **New Topic** | `⌘ + N` / `Ctrl + N` |
+| **Add message without sending** | `⌘ + Enter` / `Ctrl + Enter` |
+| **Edit message** | `Ctrl + Alt` + double-click message |
+| **Clear all messages** | `⌘ + Shift + Backspace` / `Ctrl + Shift + Backspace` |
+
+**Add message without sending** — useful when you want to add context to the conversation without triggering an immediate response. The Agent will see the new message when it next replies.
+
+## Document Shortcuts
+
+| Action | Shortcut |
+| ----------------- | -------------------- |
+| **Save document** | `⌘ + S` / `Ctrl + S` |
## Custom Shortcuts
-Most shortcuts can be customized to suit your personal workflow. Tailor the most frequently used actions to your habits for a smoother experience. In the shortcut settings panel, click on the shortcut button you want to change, then press your desired key combination to record a custom shortcut.
+Most shortcuts can be customized. In the Shortcuts settings panel, click the shortcut you want to change, then press your desired key combination. Useful when:
-
+- Your muscle memory conflicts with another app
+- You want to prioritize actions you use most
+- You're on a different keyboard layout
+
+**Tip:** Start with the Command Menu (`⌘ + K` / `Ctrl + K`) — it's the fastest way to jump to any Agent, Topic, or setting.
+
+## Use Cases
+
+**Power-user workflow** — `⌘ + K` to open Command Menu → type Agent name → Enter. Switch Agents in under a second.
+
+**Quick iteration** — `⌘ + R` to regenerate. `⌘ + Shift + R` if you want to delete the last message first, then regenerate.
+
+**Distraction-free writing** — `⌘ + \` for Focus mode. No sidebar, no panels — just the conversation.
+
+**Multi-Agent work** — Pin your top Agents to the sidebar, then use `Ctrl + 1–9` to switch between them without touching the mouse.
+
+
+
+
+
+
diff --git a/docs/usage/user-interface/shortcuts.zh-CN.mdx b/docs/usage/user-interface/shortcuts.zh-CN.mdx
index f185aac96a..6e65b6368d 100644
--- a/docs/usage/user-interface/shortcuts.zh-CN.mdx
+++ b/docs/usage/user-interface/shortcuts.zh-CN.mdx
@@ -1,50 +1,82 @@
---
title: 快捷键
-description: LobeHub 支持丰富的键盘快捷键,让你能快速执行各种操作,提升使用效率。熟练使用快捷键,可以大幅减少鼠标操作,让工作流更流畅。
+description: >-
+ 用快捷键掌控 LobeHub——命令面板、助理切换、专注模式等。按你的习惯自定义。
tags:
- LobeHub
- 快捷键
- - 基础快捷键
- - 会话快捷键
+ - 效率
- 自定义快捷键
---
# 快捷键
-LobeHub 提供丰富的键盘快捷键,让你能快速执行各种操作,提升使用效率。熟练使用快捷键,可以大幅减少鼠标操作,让工作流更流畅。
+LobeHub 提供丰富的键盘快捷键,让你少用鼠标、多用手感。掌握几个关键快捷键,工作流会明显加快 —— 尤其是在切换助理、管理对话或浏览界面时。
-## 进入设置
+## 如何进入快捷键设置
-在首页右上角点击用户头像,在下拉菜单中选择「应用设置」,点击「快捷键」即可查看已有快捷键。
+点击右上角用户头像 → **应用设置** → **快捷键**。可查看所有快捷键,并自定义大部分操作。
-## 基础快捷键
+## 常用快捷键
-- 打开全局命令面板快速访问功能:⌘ + K(Mac)或 Ctrl + K(Windows/Linux
-- 唤起当前页面主要搜索框:⌘ + J(Mac)或 Ctrl + J(Windows/Linux)
-- 快捷切换助理:通过按住 Ctrl 加数字 0-9 切换固定在侧边栏的助理:^ + 1-9(Mac)或 Ctrl + 1-9(Windows/Linux)
-- 切换至默认会话:^ + 0(Mac)或 Ctrl + 0(Windows/Linux)
-- 显示 / 隐藏左侧面板:⌘ + \[(Mac)或 Ctrl +\[(Windows/Linux)
-- 显示 / 隐藏右侧面板:⌘ + ](Mac)或 Ctrl + ](Windows/Linux)
-- 打开快捷键帮助:^ + ⇧ + ?(Mac)或 Ctrl + Shift + ?(Windows/Linux)查看所有快捷键的使用说明。
-- 切换专注模式:⌘ + \(Mac)或 Ctrl + \(Windows/Linux)专注模式下,只显示当前会话,隐藏其他 UI。
-- 保存文档:⌘ + S(Mac)或 Ctrl + S(Windows/Linux)
+| 操作 | 快捷键 |
+| --------------- | ----------------------------------- |
+| **打开命令菜单** | `⌘ + K`(Mac)/ `Ctrl + K`(Win/Linux) |
+| **聚焦搜索** | `⌘ + J` / `Ctrl + J` |
+| **切换置顶助理** | `Ctrl + 1–9` |
+| **切换默认会话** | `Ctrl + 0` |
+| **显示 / 隐藏左侧面板** | `⌘ + [` / `Ctrl + [` |
+| **显示 / 隐藏右侧面板** | `⌘ + ]` / `Ctrl + ]` |
+| **专注模式** | `⌘ + \` / `Ctrl + \` |
+| **快捷键帮助** | `Ctrl + Shift + ?` |
+
+**专注模式** 只保留当前对话,隐藏其他面板 —— 适合专注写作或长文阅读。
## 会话快捷键
-- 打开会话设置:⌘ + ,(Mac)或 Ctrl + ,(Windows/Linux
-- 重新生成消息:⌘ + R(Mac)或 Ctrl + R(Windows/Linux)
-- 删除最后一条消息:⌘ + D(Mac)或 Ctrl + D(Windows/Linux)
-- 删除并重新生成:⌘ + ⇧ + R(Mac)或 Ctrl + Shift + R(Windows/Linux)
-- 删除最后一条消息并重新生成:⌘ + ⇧ + R(Mac)或 Ctrl + Shift + R(Windows/Linux)
-- 保存当前话题并开启新话题:⌘ + N(Mac)或 Ctrl + N(Windows/Linux)
-- 添加一条用户消息:⌘ + ↵(Mac)或 Ctrl + Enter(Windows/Linux)将当前输入内容添加为用户消息,但不触发生成。
-- 编辑消息:⌘ + ⌥(Mac)或 Ctrl + Alt(Windows/Linux)通过按住 Alt 并双击消息进入编辑模式。
-- 清空会话消息:⌘ + ⇧ + ⌫(Mac)或 Ctrl + Shift + Backspace(Windows/Linux)
+| 操作 | 快捷键 |
+| ------------ | ---------------------------------------------------- |
+| **打开会话设置** | `⌘ + ,` / `Ctrl + ,` |
+| **重新生成消息** | `⌘ + R` / `Ctrl + R` |
+| **删除最后一条消息** | `⌘ + D` / `Ctrl + D` |
+| **删除并重新生成** | `⌘ + Shift + R` / `Ctrl + Shift + R` |
+| **新建话题** | `⌘ + N` / `Ctrl + N` |
+| **添加消息但不发送** | `⌘ + Enter` / `Ctrl + Enter` |
+| **编辑消息** | `Ctrl + Alt` + 双击消息 |
+| **清空所有消息** | `⌘ + Shift + Backspace` / `Ctrl + Shift + Backspace` |
+
+**添加消息但不发送** —— 想在不触发生成的情况下补充上下文时使用。助理会在下次回复时看到这条新消息。
+
+## 文档快捷键
+
+| 操作 | 快捷键 |
+| -------- | -------------------- |
+| **保存文档** | `⌘ + S` / `Ctrl + S` |
## 自定义快捷键
-大部分快捷键可以根据你的使用习惯自定义。根据自己的使用频率和习惯,自定义最常用操作的快捷键,让操作更顺手。在快捷键设置界面,找到可点击的快捷键按钮,按下按键即可录制自定义快捷键。
+大部分快捷键可自定义。在快捷键设置界面,点击要修改的快捷键,再按下你想要的组合即可。适合:
-
+- 与其他应用的快捷键冲突时
+- 想为最常用操作设置更顺手的组合时
+- 使用不同键盘布局时
+
+**提示:** 先从命令菜单(`⌘ + K` / `Ctrl + K`)开始 —— 这是跳转到任意助理、话题或设置的最快方式。
+
+## 使用场景
+
+**高效工作流** — `⌘ + K` 打开命令菜单 → 输入助理名 → 回车。一秒内切换助理。
+
+**快速迭代** — `⌘ + R` 重新生成。`⌘ + Shift + R` 先删除最后一条消息再重新生成。
+
+**专注写作** — `⌘ + \` 进入专注模式。无侧边栏、无面板 —— 只有对话。
+
+**多助理协作** — 把常用助理置顶,用 `Ctrl + 1–9` 切换,无需动鼠标。
+
+
+
+
+
+
diff --git a/docs/usage/user-interface/stats.mdx b/docs/usage/user-interface/stats.mdx
index 55e300e28d..7623da72ab 100644
--- a/docs/usage/user-interface/stats.mdx
+++ b/docs/usage/user-interface/stats.mdx
@@ -1,53 +1,68 @@
---
title: Data Analytics
description: >-
- LobeHub offers comprehensive data analytics features to help users understand
- their usage patterns and performance.
+ Track your LobeHub usage — days active, Agents, conversations, model usage. Visualize patterns and share your stats.
tags:
- LobeHub
- - LobeHub
- - Multimodal Interaction
- - Visual Recognition
- - Intelligent Conversation
- - Large Language Models
+ - Data Analytics
+ - Usage Statistics
+ - Activity
---
# Data Analytics
-LobeHub provides powerful data analytics tools to help you gain insights into your usage. You can view metrics such as total usage days, number of assistants, conversation statistics, and activity trends over the past year, including model usage.
+Data Analytics gives you a clear picture of how you use LobeHub. View usage days, Agent count, conversation volume, and model distribution — plus an activity heatmap for the past year. Understand your patterns, spot trends, and optionally share your stats with others.
-## How to Access Data Analytics
+## How to Access
-Click on your profile avatar in the top-right corner of the homepage. From the dropdown menu, select "App Settings" and then click on "Data Analytics" to view your statistics.
+Click your profile avatar in the top-right corner of the homepage → **App Settings** → **Data Analytics**.

-## What’s Included
+## What's Included
### Basic Metrics
-- Days of Use: Total number of days since you started using the app
-- Number of Assistants: Total assistants created and used
-- Number of Topics: Total conversation topics with assistants
-- Number of Messages: Total messages sent and received
-- Total Word Count: Cumulative word count across all conversations
+| Metric | Description |
+| ---------------------- | ------------------------------------------------ |
+| **Days of Use** | Total days since you first started using LobeHub |
+| **Number of Agents** | Total Agents you've created and used |
+| **Number of Topics** | Total conversation Topics with Agents |
+| **Number of Messages** | Total messages sent and received |
+| **Total Word Count** | Cumulative word count across all conversations |
### Activity Calendar
-In the middle of the page, you'll find an "activity heatmap" representing your usage over the past year. Each tile corresponds to a day, with color intensity indicating your level of activity. This calendar provides a clear visual overview of your usage habits and peak activity periods.
+A heatmap in the middle of the page shows your usage over the past year. Each tile is a day; color intensity indicates activity level. Use it to:
+
+- See when you're most active
+- Spot patterns (e.g., busy weeks vs. quiet periods)
+- Track consistency over time
### Usage Statistics
-At the bottom of the page, you'll find detailed usage breakdowns:
+At the bottom of the page, you'll find detailed breakdowns:
-- Model Usage Statistics: Shows how frequently and proportionally you use different AI models, helping you identify your most-used models.
-- Assistant Usage Statistics: Displays the frequency and proportion of usage for each assistant, so you can see which ones you rely on most.
-- Topic Content Volume: Visualizes the distribution of content across different topics, giving you insight into the scale and focus of your conversations.
+- **Model Usage** — How often each AI model is used and its share of total usage. Helps you see which models you rely on most and whether cost or capability is driving your choices.
+- **Agent Usage** — Frequency and proportion for each Agent. Identify your go-to Agents and spot ones you rarely use.
+- **Topic Content Volume** — Distribution of content across Topics. See which conversations are longest or most involved.
-## Share Your Usage Data
+## Share Your Stats
You can generate a shareable image of your data analytics.
-
+
-Click the share button in the top-right corner of the Data Analytics page. The system will generate an image containing your usage data. You can choose from several image formats: JPG, PNG, SVG, or WEBP. After selecting a format, click download to save the image and share it on other platforms.
+Click the **Share** button in the top-right corner of the Data Analytics page. Choose a format (JPG, PNG, SVG, or WEBP), then download. Share on social media, in team channels, or for personal records.
+
+**Use cases:** Year-in-review posts, team transparency, or tracking your own progress over time.
+
+## Tips
+
+- **Check model usage before upgrading** — If you're considering a paid tier, see which models you actually use. You might find a smaller set covers most of your needs.
+- **Review Agent usage** — Agents you never use can be archived or removed to keep your sidebar clean.
+- **Use the heatmap for reflection** — If you want to use LobeHub more consistently, the heatmap can help you set and track habits.
+
+
+
+
diff --git a/docs/usage/user-interface/stats.zh-CN.mdx b/docs/usage/user-interface/stats.zh-CN.mdx
index ff29810565..2ee0a462ae 100644
--- a/docs/usage/user-interface/stats.zh-CN.mdx
+++ b/docs/usage/user-interface/stats.zh-CN.mdx
@@ -1,22 +1,21 @@
---
title: 数据统计
-description: LobeHub 提供全面的数据统计功能,帮助用户了解使用情况和性能表现。
+description: >-
+ 追踪你的 LobeHub 使用情况——活跃天数、助理、对话、模型使用。可视化你的使用模式,并分享统计结果。
tags:
- LobeHub
- - LobeHub
- - 多模态交互
- - 视觉识别
- - 智能对话
- - 大语言模型
+ - 数据统计
+ - 使用统计
+ - 活跃度
---
# 数据统计
-LobeHub 提供数据统计功能,让你了解自己的使用情况。你可以查看使用天数、助手数量、对话统计,以及过去一年的活跃度和模型使用情况。
+数据统计让你清晰了解自己的 LobeHub 使用情况。查看使用天数、助理数量、对话量、模型分布,以及过去一年的活跃度热力图。了解你的使用模式、发现趋势,并可选择将统计结果分享给他人。
-## 查看数据统计
+## 如何进入
-在首页右上角点击用户头像,在下拉菜单中选择「应用设置」,点击「数据统计」即可查看。
+点击首页右上角用户头像 → **应用设置** → **数据统计**。

@@ -24,28 +23,46 @@ LobeHub 提供数据统计功能,让你了解自己的使用情况。你可以
### 基础数据
-- 使用天数:从首次使用到现在的总天数
-- 助手数:创建和使用的助手总数
-- 话题数:与助手的对话话题总数
-- 消息数:发送和接收的消息总数
-- 累计字数:所有对话的累计文字数量
+| 指标 | 说明 |
+| -------- | ------------ |
+| **使用天数** | 从首次使用到现在的总天数 |
+| **助理数** | 创建和使用的助理总数 |
+| **话题数** | 与助理的对话话题总数 |
+| **消息数** | 发送和接收的消息总数 |
+| **累计字数** | 所有对话的累计文字数量 |
### 活跃度日历
-页面中部显示过去一年的活跃度 "瓷砖墙"。每个方块代表一天,颜色深浅表示当天的活跃程度。通过活跃度日历,你可以直观地看到自己的使用习惯和活跃时段。
+页面中部的热力图展示过去一年的使用情况。每个方块代表一天,颜色深浅表示活跃程度。你可以用它:
+
+- 查看活跃时段
+- 发现规律(如忙碌周 vs 空闲期)
+- 追踪长期使用习惯
### 使用率统计
-页面下方显示详细的使用率统计:
+页面下方有详细的使用率统计:
-- 模型使用率统计:展示你使用不同 AI 模型的频率和占比,了解自己最常用的模型。
-- 助理使用率统计:展示你使用不同助手的频率和占比,了解哪些助手最常用。
-- 话题内容量统计:展示不同话题的内容量分布,了解对话的内容规模。
+- **模型使用率** — 各 AI 模型的使用频率和占比。了解你最常用的模型,以及成本或能力如何影响你的选择。
+- **助理使用率** — 各助理的使用频率和占比。找出你最常用的助理,发现很少使用的可以归档或移除。
+- **话题内容量** — 不同话题的内容分布。了解哪些对话最长、最深。
## 分享使用数据
你可以将数据统计生成可分享的图片。
-
+
-点击数据统计页面右上角的分享按钮,系统会生成一张包含你使用数据的图片。你可以选择图片格式:JPG/PNG/SVG/WEBP。选择格式后点击下载,即可保存图片并分享到其他平台。
+点击数据统计页面右上角的**分享**按钮。选择格式(JPG、PNG、SVG 或 WEBP),然后下载。可分享到社交媒体、团队频道或用于个人记录。
+
+**使用场景:** 年终总结、团队透明度、或追踪自己的使用进度。
+
+## 使用技巧
+
+- **升级前先看模型使用** — 考虑付费档位时,先了解实际使用的模型。可能发现少量模型就能覆盖大部分需求。
+- **定期回顾助理使用** — 从不使用的助理可以归档或删除,保持侧边栏简洁。
+- **用热力图做复盘** — 想更规律地使用 LobeHub 时,热力图可以帮你设定和追踪习惯。
+
+
+
+
diff --git a/docs/usage/workspace/manage-quota.mdx b/docs/usage/workspace/manage-quota.mdx
deleted file mode 100644
index 8fa8890917..0000000000
--- a/docs/usage/workspace/manage-quota.mdx
+++ /dev/null
@@ -1,30 +0,0 @@
----
-title: Discover Innovative AI Assistants in the LobeHub Assistant Marketplace
-description: >-
- The LobeHub Assistant Marketplace is a vibrant and innovative community that
- brings together a wide range of thoughtfully designed assistants to enhance
- productivity and learning. You're welcome to submit your own assistant
- creations and help build a more diverse, practical, and creative ecosystem.
-tags:
- - LobeHub
- - Assistant Marketplace
- - Innovation Community
- - Collaborative Space
- - Assistant Creations
- - Automated Internationalization
- - Multilingual Support
----
-
-# Assistant Marketplace
-
-
-
-In the LobeHub Assistant Marketplace, creators will find a vibrant and innovative community filled with a wide array of thoughtfully crafted assistants. These assistants not only play a vital role in professional settings but also greatly enhance the learning experience. Our marketplace is more than just a showcase—it's a collaborative space where everyone is encouraged to contribute their ideas and share their custom-built assistants.
-
-
- By [🤖/🏪 Submitting Your Assistant](https://github.com/lobehub/lobe-chat-agents), you can easily publish your assistant to our platform. One of the standout features of LobeHub is its robust automated internationalization (i18n) workflow, which seamlessly translates your assistant into multiple languages. This ensures that users around the world can enjoy your assistant without language barriers.
-
-
-
- We invite all users to join this ever-growing ecosystem and take part in the continuous improvement and evolution of assistants. Together, we can create more engaging, practical, and innovative assistants, enriching the diversity and utility of the marketplace.
-
diff --git a/docs/usage/workspace/manage-quota.zh-CN.mdx b/docs/usage/workspace/manage-quota.zh-CN.mdx
deleted file mode 100644
index 98c6075977..0000000000
--- a/docs/usage/workspace/manage-quota.zh-CN.mdx
+++ /dev/null
@@ -1,30 +0,0 @@
----
-title: 在 LobeHub 助手市场找到创新 AI 助手
-description: >-
- LobeHub助手市场是一个充满活力和创新的社区,汇聚了众多精心设计的助手,为工作场景和学习提供便利。欢迎提交你的助手作品,共同创造更多有趣、实用且具有创新性的助手。
-tags:
- - LobeHub
- - 助手市场
- - 创新社区
- - 协作空间
- - 助手作品
- - 自动化国际化
- - 多语言版本
----
-
-# 助手市场
-
-
-
-在 LobeHub 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
-
-
- 通过 [🤖/🏪 提交助手](https://github.com/lobehub/lobe-chat-agents)
- ,你可以轻松地将你的助手作品提交到我们的平台。我们特别强调的是,LobeHub
- 建立了一套精密的自动化国际化(i18n)工作流程,
- 它的强大之处在于能够无缝地将你的助手转化为多种语言版本。这意味着,不论你的用户使用何种语言,他们都能无障碍地体验到你的助手。
-
-
-
- 我们欢迎所有用户加入这个不断成长的生态系统,共同参与到助手的迭代与优化中来。共同创造出更多有趣、实用且具有创新性的助手,进一步丰富助手的多样性和实用性。
-
diff --git a/docs/usage/workspace/manage-team.mdx b/docs/usage/workspace/manage-team.mdx
deleted file mode 100644
index 1c4101b251..0000000000
--- a/docs/usage/workspace/manage-team.mdx
+++ /dev/null
@@ -1,31 +0,0 @@
----
-title: Discover Innovative AI Assistants in the LobeHub Assistant Marketplace
-description: >-
- The LobeHub Assistant Marketplace is a vibrant and innovative community that
- brings together a wide range of thoughtfully designed assistants to enhance
- productivity and learning. You're welcome to submit your own assistant
- creations and help build a more diverse, practical, and creative ecosystem.
-tags:
- - LobeHub
- - Assistant Marketplace
- - Innovation Community
- - Collaborative Space
- - Assistant Creations
- - Automated Internationalization
- - Multilingual Support
----
-
-# Assistant Marketplace
-
-
-
-In the LobeHub Assistant Marketplace, creators will find a vibrant and innovative community filled with a wide array of thoughtfully crafted assistants. These assistants not only play a vital role in professional settings but also greatly enhance the learning experience. Our marketplace is more than just a showcase—it's a collaborative space where everyone is encouraged to contribute their ideas and share their custom-built assistants.
-
-
- Easily submit your assistant to our platform via [🤖/🏪 Submit an Assistant](https://github.com/lobehub/lobe-chat-agents).\
- One of LobeHub’s standout features is its robust automated internationalization (i18n) workflow, which seamlessly translates your assistant into multiple languages. This ensures that users around the world can enjoy your assistant without language barriers.
-
-
-
- We invite all users to join this ever-growing ecosystem and take part in the continuous improvement and evolution of assistants. Let’s work together to create more engaging, practical, and innovative assistants that enrich the diversity and functionality of the marketplace.
-
diff --git a/docs/usage/workspace/manage-team.zh-CN.mdx b/docs/usage/workspace/manage-team.zh-CN.mdx
deleted file mode 100644
index 98c6075977..0000000000
--- a/docs/usage/workspace/manage-team.zh-CN.mdx
+++ /dev/null
@@ -1,30 +0,0 @@
----
-title: 在 LobeHub 助手市场找到创新 AI 助手
-description: >-
- LobeHub助手市场是一个充满活力和创新的社区,汇聚了众多精心设计的助手,为工作场景和学习提供便利。欢迎提交你的助手作品,共同创造更多有趣、实用且具有创新性的助手。
-tags:
- - LobeHub
- - 助手市场
- - 创新社区
- - 协作空间
- - 助手作品
- - 自动化国际化
- - 多语言版本
----
-
-# 助手市场
-
-
-
-在 LobeHub 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
-
-
- 通过 [🤖/🏪 提交助手](https://github.com/lobehub/lobe-chat-agents)
- ,你可以轻松地将你的助手作品提交到我们的平台。我们特别强调的是,LobeHub
- 建立了一套精密的自动化国际化(i18n)工作流程,
- 它的强大之处在于能够无缝地将你的助手转化为多种语言版本。这意味着,不论你的用户使用何种语言,他们都能无障碍地体验到你的助手。
-
-
-
- 我们欢迎所有用户加入这个不断成长的生态系统,共同参与到助手的迭代与优化中来。共同创造出更多有趣、实用且具有创新性的助手,进一步丰富助手的多样性和实用性。
-
diff --git a/e2e/README.md b/e2e/README.md
index 5766c609c6..9e247b242b 100644
--- a/e2e/README.md
+++ b/e2e/README.md
@@ -1,6 +1,6 @@
-# E2E Tests for LobeChat
+# E2E Tests for LobeHub
-This directory contains end-to-end (E2E) tests for LobeChat using Cucumber (BDD) and Playwright.
+This directory contains end-to-end (E2E) tests for LobeHub using Cucumber (BDD) and Playwright.
## Directory Structure
diff --git a/package.json b/package.json
index 79a698fad9..2a26d5d127 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@lobehub/lobehub",
- "version": "2.1.33",
+ "version": "2.1.34",
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
"keywords": [
"framework",
diff --git a/packages/electron-client-ipc/README.md b/packages/electron-client-ipc/README.md
index fb3492ca1b..56a401f7be 100644
--- a/packages/electron-client-ipc/README.md
+++ b/packages/electron-client-ipc/README.md
@@ -1,6 +1,6 @@
# @lobechat/electron-client-ipc
-This package is a client-side toolkit for handling IPC (Inter-Process Communication) in LobeChat's Electron environment.
+This package is a client-side toolkit for handling IPC (Inter-Process Communication) in LobeHub's Electron environment.
## Introduction
@@ -59,7 +59,7 @@ IPC communication needs vary across different use cases and platforms. We welcom
### Contribution Process
-1. Fork the [LobeChat repository](https://github.com/lobehub/lobe-chat)
+1. Fork the [LobeHub repository](https://github.com/lobehub/lobe-chat)
2. Make your changes to the IPC client package
3. Submit a Pull Request describing:
@@ -70,4 +70,4 @@ IPC communication needs vary across different use cases and platforms. We welcom
## 📌 Note
-This is an internal module of LobeHub (`"private": true`), designed specifically for LobeChat and not published as a standalone package.
+This is an internal module of LobeHub (`"private": true`), designed specifically for LobeHub and not published as a standalone package.
diff --git a/packages/electron-client-ipc/README.zh-CN.md b/packages/electron-client-ipc/README.zh-CN.md
index 582210d523..c232589637 100644
--- a/packages/electron-client-ipc/README.zh-CN.md
+++ b/packages/electron-client-ipc/README.zh-CN.md
@@ -1,6 +1,6 @@
# @lobechat/electron-client-ipc
-这个包是 LobeChat 在 Electron 环境中用于处理 IPC(进程间通信)的客户端工具包。
+这个包是 LobeHub 在 Electron 环境中用于处理 IPC(进程间通信)的客户端工具包。
## 介绍
@@ -59,7 +59,7 @@
### 贡献流程
-1. Fork [LobeChat 仓库](https://github.com/lobehub/lobe-chat)
+1. Fork [LobeHub 仓库](https://github.com/lobehub/lobe-chat)
2. 对 IPC 客户端包进行修改
3. 提交 Pull Request 并描述:
@@ -70,4 +70,4 @@
## 📌 说明
-这是 LobeHub 的内部模块(`"private": true`),专为 LobeChat 设计,不作为独立包发布。
+这是 LobeHub 的内部模块(`"private": true`),专为 LobeHub 设计,不作为独立包发布。
diff --git a/packages/electron-server-ipc/README.md b/packages/electron-server-ipc/README.md
index e3e41b6597..394c14fb64 100644
--- a/packages/electron-server-ipc/README.md
+++ b/packages/electron-server-ipc/README.md
@@ -62,7 +62,7 @@ IPC server implementations need to handle various communication scenarios and ed
### Contribution Process
-1. Fork the [LobeChat repository](https://github.com/lobehub/lobe-chat)
+1. Fork the [LobeHub repository](https://github.com/lobehub/lobe-chat)
2. Implement your improvements to the IPC server package
3. Submit a Pull Request describing:
diff --git a/packages/electron-server-ipc/README.zh-CN.md b/packages/electron-server-ipc/README.zh-CN.md
index 5cde3f5f75..db88e0545f 100644
--- a/packages/electron-server-ipc/README.zh-CN.md
+++ b/packages/electron-server-ipc/README.zh-CN.md
@@ -62,7 +62,7 @@ IPC 服务端实现需要处理各种通信场景和边缘情况。我们欢迎
### 贡献流程
-1. Fork [LobeChat 仓库](https://github.com/lobehub/lobe-chat)
+1. Fork [LobeHub 仓库](https://github.com/lobehub/lobe-chat)
2. 对 IPC 服务端包实施改进
3. 提交 Pull Request 并描述:
diff --git a/packages/file-loaders/README.md b/packages/file-loaders/README.md
index a394091b22..244d3bffbf 100644
--- a/packages/file-loaders/README.md
+++ b/packages/file-loaders/README.md
@@ -1,8 +1,8 @@
# @lobechat/file-loaders
-`@lobechat/file-loaders` is a toolkit within the LobeChat project, specifically designed for loading various types of files from local file paths and converting their content into standardized `Document` object arrays.
+`@lobechat/file-loaders` is a toolkit within the LobeHub project, specifically designed for loading various types of files from local file paths and converting their content into standardized `Document` object arrays.
-Its primary purpose is to provide a unified interface for reading different file formats, extracting their core text content, and preparing them for subsequent processing (such as file preview, content extraction, or serving as knowledge base data sources in LobeChat).
+Its primary purpose is to provide a unified interface for reading different file formats, extracting their core text content, and preparing them for subsequent processing (such as file preview, content extraction, or serving as knowledge base data sources in LobeHub).
## ✨ Features
@@ -73,7 +73,7 @@ File formats and parsing requirements are constantly evolving. We welcome commun
### Contribution Process
-1. Fork the [LobeChat repository](https://github.com/lobehub/lobe-chat)
+1. Fork the [LobeHub repository](https://github.com/lobehub/lobe-chat)
2. Add new format support or improve existing parsers
3. Submit a Pull Request describing:
@@ -84,6 +84,6 @@ File formats and parsing requirements are constantly evolving. We welcome commun
## 📌 Note
-This is an internal module of LobeHub (`"private": true`), designed specifically for LobeChat and not published as a standalone package.
+This is an internal module of LobeHub (`"private": true`), designed specifically for LobeHub and not published as a standalone package.
If you're interested in our project, feel free to check it out, star it, or contribute code on [GitHub](https://github.com/lobehub/lobe-chat)!
diff --git a/packages/file-loaders/README.zh-CN.md b/packages/file-loaders/README.zh-CN.md
index bd6e28ab54..98905b8f3e 100644
--- a/packages/file-loaders/README.zh-CN.md
+++ b/packages/file-loaders/README.zh-CN.md
@@ -1,8 +1,8 @@
# @lobechat/file-loaders
-`@lobechat/file-loaders` 是 LobeChat 项目中的一个工具包,专门用于从本地文件路径加载各种类型的文件,并将其内容转换为标准化的 `Document` 对象数组。
+`@lobechat/file-loaders` 是 LobeHub 项目中的一个工具包,专门用于从本地文件路径加载各种类型的文件,并将其内容转换为标准化的 `Document` 对象数组。
-它的主要目的是提供一个统一的接口来读取不同的文件格式,提取其核心文本内容,并为后续处理(例如在 LobeChat 中进行文件预览、内容提取或将其作为知识库数据源)做好准备。
+它的主要目的是提供一个统一的接口来读取不同的文件格式,提取其核心文本内容,并为后续处理(例如在 LobeHub 中进行文件预览、内容提取或将其作为知识库数据源)做好准备。
## ✨ 功能特性
@@ -73,7 +73,7 @@
### 贡献流程
-1. Fork [LobeChat 仓库](https://github.com/lobehub/lobe-chat)
+1. Fork [LobeHub 仓库](https://github.com/lobehub/lobe-chat)
2. 添加新格式支持或改进现有解析器
3. 提交 Pull Request 并描述:
@@ -84,6 +84,6 @@
## 📌 说明
-这是 LobeHub 的内部模块(`"private": true`),专为 LobeChat 设计,不作为独立包发布。
+这是 LobeHub 的内部模块(`"private": true`),专为 LobeHub 设计,不作为独立包发布。
如果你对我们的项目感兴趣,欢迎在 [GitHub](https://github.com/lobehub/lobe-chat) 上查看、点赞或贡献代码!
diff --git a/packages/prompts/CLAUDE.md b/packages/prompts/CLAUDE.md
index 2e5f67a84f..c594733175 100644
--- a/packages/prompts/CLAUDE.md
+++ b/packages/prompts/CLAUDE.md
@@ -1,6 +1,6 @@
# Prompt Engineering Guide for @lobechat/prompts
-本文档提供使用 Claude Code 优化 LobeChat 提示词的指南和最佳实践。
+本文档提供使用 Claude Code 优化 LobeHub 提示词的指南和最佳实践。
## 项目结构
diff --git a/packages/prompts/README.md b/packages/prompts/README.md
index ee7d31fb89..b1a9e16bea 100644
--- a/packages/prompts/README.md
+++ b/packages/prompts/README.md
@@ -1,6 +1,6 @@
# @lobechat/prompts
-This package contains prompt chains and templates for the LobeChat application, with comprehensive testing using promptfoo.
+This package contains prompt chains and templates for the LobeHub application, with comprehensive testing using promptfoo.
## Features
diff --git a/packages/web-crawler/README.md b/packages/web-crawler/README.md
index 1e3c13d1ab..ccf73ccdd7 100644
--- a/packages/web-crawler/README.md
+++ b/packages/web-crawler/README.md
@@ -1,10 +1,10 @@
# @lobechat/web-crawler
-LobeChat's built-in web crawling module for intelligent extraction of web content and conversion to Markdown format.
+LobeHub's built-in web crawling module for intelligent extraction of web content and conversion to Markdown format.
## 📝 Introduction
-`@lobechat/web-crawler` is a core component of LobeChat responsible for intelligent web content crawling and processing. It extracts valuable content from various webpages, filters out distracting elements, and generates structured Markdown text.
+`@lobechat/web-crawler` is a core component of LobeHub responsible for intelligent web content crawling and processing. It extracts valuable content from various webpages, filters out distracting elements, and generates structured Markdown text.
## 🛠️ Core Features
@@ -48,7 +48,7 @@ const url = [
### Rule Submission Process
-1. Fork the [LobeChat repository](https://github.com/lobehub/lobe-chat)
+1. Fork the [LobeHub repository](https://github.com/lobehub/lobe-chat)
2. Add or modify URL rules
3. Submit a Pull Request describing:
@@ -58,4 +58,4 @@ const url = [
## 📌 Note
-This is an internal module of LobeHub (`"private": true`), designed specifically for LobeChat and not published as a standalone package.
+This is an internal module of LobeHub (`"private": true`), designed specifically for LobeHub and not published as a standalone package.
diff --git a/packages/web-crawler/README.zh-CN.md b/packages/web-crawler/README.zh-CN.md
index 6c4c2cfa44..365ed3cd51 100644
--- a/packages/web-crawler/README.zh-CN.md
+++ b/packages/web-crawler/README.zh-CN.md
@@ -1,10 +1,10 @@
# @lobechat/web-crawler
-LobeChat 内置的网页抓取模块,用于智能提取网页内容并转换为 Markdown 格式。
+LobeHub 内置的网页抓取模块,用于智能提取网页内容并转换为 Markdown 格式。
## 📝 简介
-`@lobechat/web-crawler` 是 LobeChat 的核心组件,负责网页内容的智能抓取与处理。它能够从各类网页中提取有价值的内容,过滤掉干扰元素,并生成结构化的 Markdown 文本。
+`@lobechat/web-crawler` 是 LobeHub 的核心组件,负责网页内容的智能抓取与处理。它能够从各类网页中提取有价值的内容,过滤掉干扰元素,并生成结构化的 Markdown 文本。
## 🛠️ 核心功能
@@ -48,7 +48,7 @@ const url = [
### 规则提交流程
-1. Fork [LobeChat 仓库](https://github.com/lobehub/lobe-chat)
+1. Fork [LobeHub 仓库](https://github.com/lobehub/lobe-chat)
2. 添加或修改 URL 规则
3. 提交 Pull Request 并描述:
@@ -58,4 +58,4 @@ const url = [
## 📌 注意事项
-这是 LobeHub 的内部模块(`"private": true`),专为 LobeChat 设计,不作为独立包发布使用。
+这是 LobeHub 的内部模块(`"private": true`),专为 LobeHub 设计,不作为独立包发布使用。