Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix:快速上手同步英文及重构

xiaoxiawanga0d9d499e8e5
diff --git a/docs/en/InstallGuide.md b/docs/en/InstallGuide.md
index 833eb3be98..e55fc78728 100644
--- a/docs/en/InstallGuide.md
+++ b/docs/en/InstallGuide.md
@@ -164,7 +164,7 @@ uv pip install -e .
```bash
# Enter front-end directory (repo root is jiuwenswarm)
-cd jiuwenswarm/channels/web
+cd channels/web/frontend
# Install front-end dependencies
npm install
@@ -179,7 +179,7 @@ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
# Back to repo root
-cd ..
+cd ../../..
```
**Notes:**
@@ -261,7 +261,7 @@ pip install -e .
```bash
# Enter front-end directory (repo root is jiuwenswarm)
-cd jiuwenswarm/channels/web
+cd channels/web/frontend
# Install front-end dependencies
npm install
@@ -276,7 +276,7 @@ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
# Back to repo root
-cd ..
+cd ../../..
```
**Notes:**
@@ -313,7 +313,7 @@ jiuwenswarm-start
| Current range | Approach | Notes |
|---------------|----------|-------|
| Routine (e.g. 0.1.8 → 0.1.9, does not cross 0.1.7) | [Routine version upgrades](#routine-version-upgrades) | Upgrade directly; no backup required |
-| Major (e.g. <0.1.7 → ≥0.1.7, crosses 0.1.7) | [Major version upgrades](#major-version-upgrades) | Back up data first |
+| Major (e.g. <0.1.7 → >0.1.7, crosses 0.1.7) | [Major version upgrades](#major-version-upgrades) | Back up data first |
---
@@ -340,7 +340,7 @@ git pull
pip install -e .
# Rebuild the front end (if it was updated)
-cd jiuwenswarm/channels/web
+cd channels/web/frontend
npm install
npm run build
@@ -350,7 +350,7 @@ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
# macOS/Linux:
cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
-cd ..
+cd ../../../
```
---
diff --git a/docs/en/Quickstart.md b/docs/en/Quickstart.md
index 76ec6c4206..bc0352b77f 100644
--- a/docs/en/Quickstart.md
+++ b/docs/en/Quickstart.md
@@ -112,6 +112,140 @@ jiuwenswarm-web --host 0.0.0.0 --port <custom-port>
jiuwenswarm-app
```
+**Configuration Directory Auto-Creation**:
+After first starting the service, the system automatically creates the configuration directory:
+- **Windows**: `C:\Users\<your-username>\.jiuwenswarm`
+- **Linux/Mac**: `~/.jiuwenswarm/`
+
+Configuration files, memory files, and other data will be stored in this directory.
+
+The following installation methods are suitable for users who want to perform secondary development and adaptation based on JiuwenSwarm.
+
+First, clone the repository and enter the project directory:
+
+```bash
+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git
+cd jiuwenswarm
+```
+
+### Install via `uv`
+- Create a new virtual environment using `uv`
+ ```bash
+ # Create virtual environment with uv (supports any of Python 3.11, 3.12, 3.13)
+ uv venv --python=3.11
+ # or uv venv --python=3.12
+ # or uv venv --python=3.13
+ ```
+
+- Run uv sync
+
+ Enter the project root directory `jiuwenswarm/` and run:
+ ```bash
+ uv sync
+ ```
+
+- Install frontend dependencies
+
+ Enter the frontend directory `channels/web/frontend` to install dependencies:
+ ```bash
+ cd channels/web/frontend
+ npm install
+ ```
+
+- Run frontend service
+
+ Two ways to run the frontend service:
+ - Static run (suitable for production deployment)
+ ```bash
+ npm run build
+ # Copy build output into the user workspace
+ # Windows:
+ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
+ # macOS/Linux:
+ cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
+ cd ../../../
+ uv run jiuwenswarm-init
+ uv run jiuwenswarm-start
+ ```
+
+ - Dynamic run (suitable for development debugging)
+ ```bash
+ cd ../../../
+ uv run jiuwenswarm-init
+ uv run jiuwenswarm-start dev
+ ```
+
+ After running, you can access the JiuwenSwarm service via the web frontend.
+
+### Install via `conda`
+- Create a new virtual environment using `conda`
+ ```bash
+ # Create virtual environment with Anaconda (supports any of Python 3.11, 3.12, 3.13)
+ conda create -n JiuwenSwarm python=3.11
+ # or conda create -n JiuwenSwarm python=3.12
+ # or conda create -n JiuwenSwarm python=3.13
+ ```
+- Activate the conda environment
+ ```bash
+ conda activate JiuwenSwarm
+ ```
+- Install Python dependencies
+
+ Enter the project root directory `jiuwenswarm/` and run:
+ ```bash
+ # Mode 1: Development mode installation (recommended, easier to modify code)
+ pip install -e .
+
+ # Mode 2: Normal installation
+ pip install .
+ ```
+ **Note:** This installation method depends on the project's installable package (`pyproject.toml`), and will also install `jiuwenswarm` itself by default.
+
+- Install frontend dependencies
+
+ Navigate to the frontend directory `channels/web/frontend` and install dependencies:
+ ```bash
+ cd channels/web/frontend
+ npm install
+ ```
+
+- Run frontend service
+
+ Two ways to run the frontend service:
+ - Static run (suitable for production deployment)
+ ```bash
+ npm run build
+ cd ../../../
+ jiuwenswarm-init
+ jiuwenswarm-start
+ ```
+
+ - Dynamic run (suitable for development debugging)
+ ```bash
+ cd ../../../
+ # Start directly (without uv run)
+ jiuwenswarm-init
+ jiuwenswarm-start dev
+ ```
+
+ After running, you can access the JiuwenSwarm service via the web frontend.
+
+---
+
+## Quick Start
+
+### 1️⃣ Conversation Modes
+
+| Method | Description |
+|------|------|
+| **Web Frontend** | After starting the service, visit `http://localhost:5173` to chat directly via browser |
+| **Xiaoyi Channel** | Huawei phone users can directly wake up Xiaoyi to chat with JiuwenSwarm |
+| **Feishu Channel** | After completing channel configuration, chat with JiuwenSwarm in Feishu |
+
+### 2️⃣ Configure Model
+
+See the [Configure Model](#configure-model) section below.
+
## Configure Model
In the left sidebar of the Web UI, find "Configuration" and enter the configuration page:
@@ -201,7 +335,9 @@ When you need JiuwenSwarm to forget all conversation history and user informatio
**Steps to Clear Memory:**
-Memory files are stored in `{workspace_dir}/memory/` directory:
+Memory files are stored in:
+- **Windows**: `C:\Users\<your-username>\.jiuwenswarm\agent\workspace\memory\`
+- **Linux/Mac**: `~/.jiuwenswarm/agent/workspace/memory/`
**Method 1: Delete via Agent**
Tell JiuwenSwarm: "Please delete all memory files" or "Clear my memory", Agent will call file tools to delete files in the memory directory.
diff --git a/docs/en/Quickstart_tui.md b/docs/en/Quickstart_tui.md
index d16974ea1c..531e13abb2 100644
--- a/docs/en/Quickstart_tui.md
+++ b/docs/en/Quickstart_tui.md
@@ -90,9 +90,9 @@ Suitable for users who perform custom development or adaptation based on JiuwenS
- Install frontend dependencies
- Navigate to the frontend directory `jiuwenswarm/channels/web/frontend` and install dependencies:
+ Enter the frontend directory `channels/web/frontend` to install dependencies:
```bash
- cd jiuwenswarm/channels/web/frontend
+ cd channels/web/frontend
npm install
```
@@ -103,14 +103,14 @@ Suitable for users who perform custom development or adaptation based on JiuwenS
- Static frontend service (suitable for production deployment)
```bash
npm run build
- cd ../../
+ cd ../../../
uv run jiuwenswarm-init
uv run jiuwenswarm-start
```
- Dynamic frontend service (suitable for development and debugging)
```bash
- cd ../../
+ cd ../../../
uv run jiuwenswarm-init
uv run jiuwenswarm-start dev
```
@@ -118,9 +118,9 @@ Suitable for users who perform custom development or adaptation based on JiuwenS
After running, you can access the JiuwenSwarm web UI.
- Install TUI dependencies
- Open one new erminal,navigate to the TUI directory `jiuwenswarm/channels/tui/frontend` and install dependencies:
+ Open one new terminal, navigate to the project root, then enter the TUI directory `channels/tui/frontend` and install dependencies:
```bash
- cd jiuwenswarm/channels/tui/frontend
+ cd channels/tui/frontend
npm install
```
@@ -154,9 +154,9 @@ Suitable for users who perform custom development or adaptation based on JiuwenS
- Install frontend dependencies
- Navigate to the frontend directory `jiuwenswarm/channels/web/frontend` and install dependencies:
+ Navigate to the frontend directory `channels/web/frontend` and install dependencies:
```bash
- cd jiuwenswarm/channels/web/frontend
+ cd channels/web/frontend
npm install
```
@@ -167,14 +167,14 @@ Suitable for users who perform custom development or adaptation based on JiuwenS
- Static frontend service (suitable for production deployment)
```bash
npm run build
- cd ../../
+ cd ../../../
jiuwenswarm-init
jiuwenswarm-start
```
- Dynamic frontend service (suitable for development and debugging)
```bash
- cd ../../
+ cd ../../../
# Start directly (without using uv run)
jiuwenswarm-init
jiuwenswarm-start dev
@@ -183,9 +183,9 @@ Suitable for users who perform custom development or adaptation based on JiuwenS
After running, you can access the JiuwenSwarm web UI.
- Install TUI dependencies
- Open one new erminal,navigate to the TUI directory `jiuwenswarm/channels/tui/frontend` and install dependencies:
+ Open one new terminal, navigate to the project root, then enter the TUI directory `channels/tui/frontend` and install dependencies:
```bash
- cd jiuwenswarm/channels/tui/frontend
+ cd channels/tui/frontend
npm install
```
diff --git a/docs/en/install.md b/docs/en/install.md
deleted file mode 100644
index 30f45e5355..0000000000
--- a/docs/en/install.md
+++ /dev/null
@@ -1,572 +0,0 @@
-# JiuwenSwarm installation guide
-
-> **Important:** Finishing installation does not mean the app is ready to use. You must complete model configuration first. See [Configuration](#configuration) for model setup.
-
----
-
-## Prerequisites
-
-Before installing JiuwenSwarm, make sure your system meets the following requirements:
-
-| Dependency | Version | Notes |
-|------------|---------|-------|
-| OS | Windows 10/11, macOS 10.15+, Linux | Common desktop OS supported |
-| Python | 3.10 – 3.12 | Python 3.11 recommended |
-| Node.js | 18.x or newer | Used for the web UI |
-| Git | Latest | Required for source install |
-
-### Environment check
-
-Run these commands in a terminal:
-
-```bash
-# Check Python
-python --version
-
-# Check Node.js
-node --version
-
-# Check Git
-git --version
-```
-
----
-
-## First-time installation
-
-### Option 1: Desktop installer (dmg / exe)
-
-For Windows and macOS users who want a ready-to-run app without setting up Python / Node.js themselves. Download the installer for your platform from the gitcode [Release](https://gitcode.com/openJiuwen/jiuwenswarm/releases) page.
-
-| Platform | Artifact |
-|----------|----------|
-| Windows | `JiuwenSwarm-setup-<version>.exe` |
-| macOS | `JiuwenSwarm-<version>.dmg` |
-
-Releases: https://gitcode.com/openJiuwen/jiuwenswarm/releases
-
-#### 1. macOS: download the dmg with curl (recommended)
-
-> ⚠️ **Important:** A `.dmg` downloaded through a browser gets a macOS quarantine flag (`com.apple.quarantine`). When opened it triggers a Gatekeeper check and may report "damaged and can't be opened" or "can't be verified developer". Downloading from the terminal with `curl` does not add the quarantine flag, so the dmg mounts and installs normally.
-
-```bash
-# Replace <version> with the target version
-curl -L --fail -o JiuwenSwarm-<version>.dmg \
- https://gitcode.com/openJiuwen/jiuwenswarm/releases/download/JiuwenSwarm<version>/JiuwenSwarm-<version>.dmg
-```
-
-#### 2. Install and first launch
-
-- **macOS**: double-click to mount the dmg, then drag `JiuwenSwarm.app` into `Applications`. You may right-click it in Finder and choose "Open".
-- **Windows**: double-click the downloaded installer (`.exe`) and follow the prompts; it initializes the workspace automatically.
-
-On first launch the app creates `~/.jiuwenswarm/`. Then follow [Post-start verification](#3-post-start-verification) to finish model configuration.
-
-> Match the version to the actual download link on the Release page. For desktop auto-update behavior (Windows and macOS), see [Desktop auto-update design](WindowsAutoUpdateDesign.md).
-
----
-
-### Option 2: pip install
-
-#### 1. Installation steps
-
-```bash
-# Create a virtual environment (recommended)
-python -m venv jiuwenswarm-env
-
-# Activate the virtual environment
-# Windows:
-jiuwenswarm-env\Scripts\activate
-# macOS/Linux:
-source jiuwenswarm-env/bin/activate
-
-# Install JiuwenSwarm
-## Option 1: default install
-pip install jiuwenswarm
-
-## Option 2: use a China mirror (recommended)
-# Tsinghua mirror
-pip install jiuwenswarm -i https://pypi.tuna.tsinghua.edu.cn/simple
-
-# Aliyun mirror
-pip install jiuwenswarm -i https://mirrors.aliyun.com/pypi/simple/
-```
-
-#### 2. First launch
-
-```bash
-# Initialize JiuwenSwarm (first run)
-jiuwenswarm-init
-# Start JiuwenSwarm
-jiuwenswarm-start
-```
-
-After the first start, the app creates the config directory `~/.jiuwenswarm/`.
-
-#### 3. Post-start verification
-
-After a successful start, verify the installation with these steps:
-
-1. **Open the Web UI**: in your browser go to `http://localhost:5173`
-2. **Open configuration**: in the left sidebar choose **Configuration**
-3. **Configure the model**: follow [Configuration](Configuration.md) to set up your model API
-4. **Confirm it works**:
- - The Web UI loads
- - After model configuration you can run a basic chat
-
-![Example: Web UI connected with a successful verification chat](../assets/images/天气.png)
-
-> 💡 **Tip:** If the Web UI does not load, check `~/.jiuwenswarm/logs/` for errors.
-
-#### 4. Restarting the service
-
-If you closed JiuwenSwarm and want to run it again:
-
-```bash
-# Start again
-jiuwenswarm-start
-```
-
----
-
-### Option 3: Install from source (uv)
-
-#### 1. Install uv
-
-```bash
-# Windows (PowerShell)
-powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
-
-# macOS/Linux
-curl -LsSf https://astral.sh/uv/install.sh | sh
-```
-
-#### 2. Clone and install
-
-```bash
-# Clone the repository
-git clone https://gitcode.com/openJiuwen/jiuwenswarm.git
-
-# Enter project directory
-cd jiuwenswarm
-
-# Create venv and install dependencies with uv
-uv venv
-uv pip install -e .
-```
-
-#### 3. Build the front end
-
-> ⚠️ **Important:** With a source (editable) install you must build the front end manually, or startup will fail with `dist directory not found`.
-
-```bash
-# Enter front-end directory
-cd jiuwenswarm/channels/web
-
-# Install front-end dependencies
-npm install
-
-# Build
-npm run build
-
-# Copy build output into the user workspace
-# Windows:
-xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
-# macOS/Linux:
-cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
-
-# Back to repo root
-cd ..
-```
-
-**Notes:**
-
-- `pip install -e .` / `uv pip install -e .` is an editable install that points at your source tree.
-- `web/dist` is ignored by `.gitignore` and is not shipped in the repo.
-- You must build and copy artifacts to `~/.jiuwenswarm/channels/web/frontend/dist`.
-
-#### 4. First launch
-
-```bash
-# Activate virtual environment
-# Windows:
-.venv\Scripts\activate
-# macOS/Linux:
-source .venv/bin/activate
-
-# Initialize JiuwenSwarm (first run)
-jiuwenswarm-init
-# Start
-jiuwenswarm-start
-```
-
-#### 5. Restarting the service
-
-```bash
-# After activating the virtual environment
-jiuwenswarm-start
-```
-
----
-
-### Option 4: Install from source (conda)
-
-#### 1. Check and install conda
-
-**Check if conda is installed:**
-
-```bash
-conda --version
-```
-
-If a version is printed, conda is installed and you can skip installation.
-
-**Install conda (if missing):**
-
-Miniconda (lightweight) is recommended:
-
-| System | How to install |
-|--------|----------------|
-| Windows | PowerShell commands below |
-| macOS | `brew install --cask miniconda` or download the installer |
-| Linux | Commands below |
-
-**Install Miniconda on Windows (PowerShell):**
-
-```powershell
-# Download Miniconda installer
-Invoke-WebRequest -Uri "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -OutFile "miniconda.exe"
-
-# Silent install (default location)
-start /wait "" .\Miniconda3-latest-Windows-x86_64.exe /InstallationType=[JustMe|AllUsers] /AddToPath=[0|1] /RegisterPython=[0|1] /S /D=<install_path>
-
-# After install, open a new terminal and run conda --version. If it prints a version, install and PATH are OK.
-```
-
-**Install Miniconda on Linux:**
-
-```bash
-# Download and install Miniconda
-curl -sSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh
-bash miniconda.sh -b -p $HOME/miniconda3
-
-# Add to PATH
-export PATH="$HOME/miniconda3/bin:$PATH"
-
-# Initialize conda (optional; takes effect after restarting the shell)
-conda init
-```
-
-#### 2. Create the conda environment
-
-```bash
-# Create environment
-conda create -n jiuwenswarm python=3.11
-
-# Initialize conda (first time)
-conda init
-# After init, close the window and open a new session before activate
-
-# Activate environment
-conda activate jiuwenswarm
-```
-
-#### 3. Clone and install
-
-```bash
-# Clone the repository
-git clone https://gitcode.com/openJiuwen/jiuwenswarm.git
-
-# Enter project directory
-cd jiuwenswarm
-
-# Install dependencies
-pip install -e .
-```
-
-#### 4. Build the front end
-
-> ⚠️ **Important:** With a source (editable) install you must build the front end manually, or startup will fail with `dist directory not found`.
-
-```bash
-# Enter front-end directory
-cd jiuwenswarm/channels/web
-
-# Install front-end dependencies
-npm install
-
-# Build
-npm run build
-
-# Copy build output into the user workspace
-# Windows:
-xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
-# macOS/Linux:
-cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
-
-# Back to repo root
-cd ..
-```
-
-**Notes:**
-
-- `pip install -e .` is an editable install that points at your source tree.
-- `web/dist` is ignored by `.gitignore` and is not shipped in the repo.
-- You must build and copy artifacts to `~/.jiuwenswarm/channels/web/frontend/dist`.
-
-#### 5. First launch
-
-```bash
-# Initialize JiuwenSwarm (first run)
-jiuwenswarm-init
-# Start
-jiuwenswarm-start
-```
-
-#### 6. Restarting the service
-
-```bash
-# Activate environment, then start
-conda activate jiuwenswarm
-jiuwenswarm-start
-```
-
----
-
-## Version upgrades
-
-| Current range | Approach | Notes |
-|---------------|----------|-------|
-| Same major (e.g. 0.1.x → 0.1.y) | [Routine version upgrades](#routine-version-upgrades) | Upgrade directly; no backup required |
-| Cross-major (e.g. 0.1.x → 0.2.x) | [Major version upgrades](#major-version-upgrades) | Back up data first |
-
----
-
-### Routine version upgrades
-
-#### pip install upgrade
-
-```bash
-# Activate your virtual environment
-# Then upgrade
-pip install --upgrade jiuwenswarm
-```
-
-#### Source install upgrade
-
-```bash
-# Enter project directory
-cd jiuwenswarm
-
-# Pull latest
-git pull
-
-# Reinstall
-pip install -e .
-
-# Rebuild the front end (when it changed)
-cd jiuwenswarm/channels/web
-npm install
-npm run build
-
-# Copy build output
-# Windows:
-xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
-# macOS/Linux:
-cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
-
-cd ..
-```
-
----
-
-### Major version upgrades
-
-> ⚠️ Always back up your data before upgrading across major versions.
-
-#### 1. Data backup
-
-**Windows:**
-
-```bash
-# Back up the whole config and data directory
-xcopy "%USERPROFILE%\.jiuwenswarm" "%USERPROFILE%\.jiuwenswarm_backup" /E /I
-
-# Or with PowerShell (recommended)
-Copy-Item -Path "$env:USERPROFILE\.jiuwenswarm" -Destination "$env:USERPROFILE\.jiuwenswarm_backup" -Recurse
-```
-
-**macOS/Linux:**
-
-```bash
-# Back up the whole config and data directory
-cp -r ~/.jiuwenswarm ~/.jiuwenswarm_backup
-
-# Or with rsync (recommended; preserves permissions)
-rsync -av ~/.jiuwenswarm ~/.jiuwenswarm_backup
-```
-
-**What to back up:**
-
-| Path | Description |
-|------|-------------|
-| `config/config.yaml` | Main config (models, API keys, etc.) |
-| `config/.env` | Environment variables |
-| `agent/memory/` | User memory data |
-| `agent/home/` | Identity and task data |
-| `agent/skills/` | Skills library (custom skills and config) |
-| `agent/workspace/` | Workspace files |
-
-#### 2. Perform the upgrade
-
-Pick the steps that match how you installed JiuwenSwarm:
-
-##### pip install upgrade
-
-Same as [Routine version upgrade – pip install upgrade](#pip-install-upgrade):
-
-```bash
-# Activate virtual environment
-# Windows:
-jiuwenswarm-env\Scripts\activate
-# macOS/Linux:
-source jiuwenswarm-env/bin/activate
-
-# Upgrade
-pip install --upgrade jiuwenswarm
-```
-
-##### Source install upgrade
-
-Same as [Routine version upgrade – source install upgrade](#source-install-upgrade):
-
-```bash
-# Enter project directory
-cd jiuwenswarm
-
-# Pull latest
-git pull
-
-# Reinstall
-pip install -e .
-```
-
-#### 3. Data migration
-
-After upgrading, migrate data so config and stores match the new version.
-
-##### Step 1: Review config changes
-
-```bash
-# View the new config template (source install)
-cat docs/config_template.yaml
-
-# Or read the changelog
-# https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/CHANGELOG.md
-```
-
-##### Step 2: Migrate configuration
-
-1. **Compare old and new config shape**
-
- New releases may add or remove options. Check:
- - New required keys in `config.yaml`
- - New variables in `.env`
- - Deprecated or renamed keys
-
-2. **Migrate by hand**
-
- ```bash
- # Back up the new default config
- cp ~/.jiuwenswarm/config/config.yaml ~/.jiuwenswarm/config/config.yaml.new
-
- # Restore from backup (use with care)
- # Prefer diff/merge in an editor instead of blind overwrite
- ```
-
-3. **Common migration cases**
-
- | Case | What to do |
- |------|------------|
- | New model support | Add the new model block in `config.yaml` |
- | API endpoint change | Update URLs in `.env` |
- | Renamed keys | Map old → new using the changelog |
- | Removed keys | Delete obsolete entries |
-
-##### Step 3: Migrate memory data
-
-Memory is usually backward compatible; still verify:
-
-```bash
-# Inspect memory layout
-ls ~/.jiuwenswarm/agent/memory/
-
-# If something looks wrong, restore from backup
-cp -r ~/.jiuwenswarm_backup/agent/memory/* ~/.jiuwenswarm/agent/memory/
-```
-
-##### Step 4: Verify migration
-
-```bash
-# Start the service
-jiuwenswarm-start
-
-# Watch logs for config errors
-# Logs: ~/.jiuwenswarm/logs/
-```
-
-**Migration checklist:**
-
-- [ ] Service starts cleanly
-- [ ] Model config works (chat OK)
-- [ ] Historical memory is readable
-- [ ] Custom settings carried over
-- [ ] No serious errors or warnings
-
----
-
-## Configuration
-
-After installation, configure models before normal use. Files live under:
-
-- **Config directory:** `~/.jiuwenswarm/config/`
-- **Main file:** `config.yaml`
-- **Environment:** `.env`
-
-For details see the [configuration guide](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/en/Configuration.md) ([Chinese](https://gitcode.com/openJiuwen/jiuwenswarm/blob/develop/docs/zh/%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF.md)).
-
-
-## FAQ
-
-### Q: On start I see "Python version not supported"
-
-Use Python 3.10, 3.11, or 3.12.
-
-### Q: On start I see "Node.js not found"
-
-Install Node.js 18.x or newer.
-
-### Q: How do I check the installed version?
-
-```bash
-jiuwenswarm --version
-```
-
-### Q: How do I uninstall?
-
-```bash
-pip uninstall jiuwenswarm
-```
-
----
-
-## Related links
-
-- **Web UI (page overview):** [Page-Overview.md](Page-Overview.md)([简体中文版](../zh/页面概览.md))
-- **Repository:** https://gitcode.com/openJiuwen/jiuwenswarm
-- **Issues:** https://gitcode.com/openJiuwen/jiuwenswarm/issues
-- **Docs:** https://gitcode.com/openJiuwen/jiuwenswarm/tree/develop/docs
-
----
-
-*Last updated: 2026-05-09*
diff --git a/docs/zh/Quickstart.md b/docs/zh/Quickstart.md
index f33facfcdf..3b564b33c9 100644
--- a/docs/zh/Quickstart.md
+++ b/docs/zh/Quickstart.md
@@ -100,13 +100,33 @@ jiuwenswarm chat "你好,介绍一下你自己"
详情见 [命令行指令 / 终端 CLI](命令行指令.md#终端-clijiuwenswarm-chat)。
+### 远程访问(可选)
+
+如需远程访问,执行以下命令:
+
+```bash
+# 启动 Web 服务
+jiuwenswarm-web --host 0.0.0.0 --port <custom-port>
+
+# 启动后端服务
+jiuwenswarm-app
+```
+
**配置目录自动创建**:
首次启动服务后,系统会自动创建配置目录:
- **Windows**:`C:\Users\<你的用户名>\.jiuwenswarm`
- **Linux/Mac**:`~/.jiuwenswarm/`
配置文件、记忆文件等数据将存储在该目录下。
-​适合基于JiuwenSwarm进行二次开发适配的用户。
+
+以下安装方式适合基于JiuwenSwarm进行二次开发适配的用户。
+
+首先克隆仓库并进入项目目录:
+
+```bash
+git clone https://gitcode.com/openJiuwen/jiuwenswarm.git
+cd jiuwenswarm
+```
### `uv`方式安装
- 使用`uv`新建虚拟环境
@@ -126,9 +146,9 @@ jiuwenswarm chat "你好,介绍一下你自己"
- 安装前端依赖
- 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:
+ 进入前端目录 `channels/web/frontend` 安装依赖:
```bash
- cd jiuwenswarm/channels/web/frontend
+ cd channels/web/frontend
npm install
```
@@ -138,14 +158,19 @@ jiuwenswarm chat "你好,介绍一下你自己"
- 静态运行前端服务(适合生产环境部署)
```bash
npm run build
- cd ../../
+ # 复制构建产物到用户工作区
+ # Windows:
+ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
+ # macOS/Linux:
+ cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
+ cd ../../../
uv run jiuwenswarm-init
uv run jiuwenswarm-start
```
- 动态运行前端服务(适合开发调试)
```bash
- cd ../../
+ cd ../../../
uv run jiuwenswarm-init
uv run jiuwenswarm-start dev
```
@@ -160,6 +185,10 @@ jiuwenswarm chat "你好,介绍一下你自己"
# 或 conda create -n JiuwenSwarm python=3.12
# 或 conda create -n JiuwenSwarm python=3.13
```
+- 激活 conda 虚拟环境
+ ```bash
+ conda activate JiuwenSwarm
+ ```
- 安装python依赖
进入项目根目录`jiuwenswarm/`执行:
@@ -174,9 +203,9 @@ jiuwenswarm chat "你好,介绍一下你自己"
- 安装前端依赖
- 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:
+ 进入前端目录 `channels/web/frontend` 安装依赖:
```bash
- cd jiuwenswarm/channels/web/frontend
+ cd channels/web/frontend
npm install
```
@@ -186,14 +215,19 @@ jiuwenswarm chat "你好,介绍一下你自己"
- 静态运行前端服务(适合生产环境部署)
```bash
npm run build
- cd ../../
+ # 复制构建产物到用户工作区
+ # Windows:
+ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
+ # macOS/Linux:
+ cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
+ cd ../../../
jiuwenswarm-init
jiuwenswarm-start
```
- 动态运行前端服务(适合开发调试)
```bash
- cd ../../
+ cd ../../../
# 直接启动(不使用 uv run)
jiuwenswarm-init
jiuwenswarm-start dev
@@ -205,7 +239,7 @@ jiuwenswarm chat "你好,介绍一下你自己"
## 快速上手
-#### 1️⃣ 对话模式
+### 1️⃣ 对话模式
| 方式 | 说明 |
|------|-------------------------------------------|
@@ -213,19 +247,9 @@ jiuwenswarm chat "你好,介绍一下你自己"
| **小艺频道** | 华为手机用户可直接唤醒小艺,与JiuwenSwarm对话 |
| **飞书频道** | 完成渠道配置后,在飞书中与JiuwenSwarm畅聊 |
-#### 2️⃣ 配置模型
-
-### 远程访问(可选)
-
-如需远程访问,执行以下命令:
+### 2️⃣ 配置模型
-```bash
-# 启动 Web 服务
-jiuwenswarm-web --host 0.0.0.0 --port <custom-port>
-
-# 启动后端服务
-jiuwenswarm-app
-```
+详见下方 [配置模型](#配置模型) 章节。
## 配置模型
diff --git a/docs/zh/Quickstart_tui.md b/docs/zh/Quickstart_tui.md
index 9c429d7cf7..47dc8b16ae 100644
--- a/docs/zh/Quickstart_tui.md
+++ b/docs/zh/Quickstart_tui.md
@@ -88,9 +88,9 @@ JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。
- 安装前端依赖
- 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:
+ 进入前端目录 `channels/web/frontend` 安装依赖:
```bash
- cd jiuwenswarm/channels/web/frontend
+ cd channels/web/frontend
npm install
```
@@ -100,14 +100,14 @@ JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。
- 静态运行前端服务(适合生产环境部署)
```bash
npm run build
- cd ../../
+ cd ../../../
uv run jiuwenswarm-init
uv run jiuwenswarm-start
```
- - 动态运行前端服务(适合生开发调试)
+ - 动态运行前端服务(适合开发调试)
```bash
- cd ../../
+ cd ../../../
uv run jiuwenswarm-init
uv run jiuwenswarm-start dev
```
@@ -115,9 +115,9 @@ JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。
运行完成后即可在网页前端访问JiuwenSwarm服务。
- 安装TUI依赖
- 另外打开新终端界面,进入TUI目录 jiuwenswarm/channels/tui/frontend 安装依赖:
+ 另外打开新终端界面,进入项目根目录后,再进入 TUI 目录 `channels/tui/frontend` 安装依赖:
```bash
- cd jiuwenswarm/channels/tui/frontend
+ cd channels/tui/frontend
npm install
```
@@ -151,9 +151,9 @@ JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。
- 安装前端依赖
- 进入前端目录 jiuwenswarm/channels/web/frontend 安装依赖:
+ 进入前端目录 `channels/web/frontend` 安装依赖:
```bash
- cd jiuwenswarm/channels/web/frontend
+ cd channels/web/frontend
npm install
```
@@ -163,14 +163,14 @@ JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。
- 静态运行前端服务(适合生产环境部署)
```bash
npm run build
- cd ../../
+ cd ../../../
jiuwenswarm-init
jiuwenswarm-start
```
- - 动态运行前端服务(适合生开发调试)
+ - 动态运行前端服务(适合开发调试)
```bash
- cd ../../
+ cd ../../../
# 直接启动(不使用 uv run)
jiuwenswarm-init
jiuwenswarm-start dev
@@ -179,9 +179,9 @@ JiuwenSwarm提供两种安装方式:`pip安装`或`源码安装`。
运行完成后即可在网页前端访问JiuwenSwarm服务。
- 安装TUI依赖
- 另外打开新终端界面,进入TUI目录 jiuwenswarm/channels/tui/frontend 安装依赖:
+ 另外打开新终端界面,进入项目根目录后,再进入 TUI 目录 `channels/tui/frontend` 安装依赖:
```bash
- cd jiuwenswarm/channels/tui/frontend
+ cd channels/tui/frontend
npm install
```
diff --git "a/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md" "b/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md"
index 0bbb66086e..3a687c0f79 100644
--- "a/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md"
+++ "b/docs/zh/\345\256\211\350\243\205\346\214\207\345\215\227.md"
@@ -165,7 +165,7 @@ uv pip install -e .
```bash
# 进入前端目录
-cd jiuwenswarm\channels\web\frontend
+cd channels\web\frontend
# 安装前端依赖
npm install
@@ -261,7 +261,7 @@ pip install -e .
```bash
# 进入前端目录
-cd jiuwenswarm\channels\web\frontend
+cd channels\web\frontend
# 安装前端依赖
npm install
@@ -312,7 +312,7 @@ jiuwenswarm-start
| 当前版本范围 | 升级方式 | 说明 |
|--------------|----------|------|
| 常规版本(如0.1.8 → 0.1.9,不跨0.1.7版本) | [常规版本升级](#常规版本升级) | 直接升级,无需备份 |
-| 重大版本(如<0.1.7 → >=0.1.7,跨0.1.7版本) | [重大版本升级](#重大版本升级) | 需要先备份数据 |
+| 重大版本(如<0.1.7 → >0.1.7,跨0.1.7版本) | [重大版本升级](#重大版本升级) | 需要先备份数据 |
---
@@ -339,7 +339,7 @@ git pull
pip install -e .
# 重新构建前端(如有更新)
-cd jiuwenswarm\channels\web\frontend
+cd channels\web\frontend
npm install
npm run build
@@ -349,7 +349,7 @@ xcopy /E /I dist %USERPROFILE%\.jiuwenswarm\channels\web\frontend\dist
# macOS/Linux:
cp -r dist ~/.jiuwenswarm/channels/web/frontend/dist
-cd ..\..
+cd ..\..\..
```
---