# ๐ AstronRPA Quick Start Guide
[](https://www.python.org/)
[](https://nodejs.org/)
[](https://www.docker.com/)
[](LICENSE)
**Fast, Simple, Powerful RPA Automation Platform Deployment Guide**
[Quick Start](#๏ธ-environment-setup) ยท [Server Deployment](#-server-deployment-docker) ยท [Client Deployment](#-client-deployment-local) ยท [FAQ](#-faq)
---
## ๐ Table of Contents
- [System Requirements](#-system-requirements)
- [Environment Setup](#๏ธ-environment-setup)
- [Deployment Architecture](#๏ธ-deployment-architecture)
- [Server Deployment (Docker)](#-server-deployment-docker)
- [Client Deployment (Local)](#-client-deployment-local)
- [Development Environment](#-development-environment)
- [FAQ](#-faq)
## ๐ป System Requirements
### Operating System
| OS | Version | Support Status |
|---------|---------|---------|
| Windows | 10/11 | โ
Primary Support |
### Hardware Configuration
| Component | Minimum | Recommended |
|-------|---------|---------|
| **CPU** | 2 cores | 4 cores+ |
| **Memory** | 4GB | 8GB+ |
| **Disk** | 10GB available | 20GB+ |
| **Network** | Stable internet connection | - |
### Environment Dependencies
| Tool | Version | Description |
|-----|---------|------|
| **Node.js** | >= 22 | JavaScript runtime |
| **Python** | 3.13.x | RPA engine core |
| **Java** | JDK 8+ | Backend service runtime |
| **pnpm** | >= 9 | Node.js package manager |
| **UV** | 0.8+ | Python package manager |
| **7-Zip** | - | Create deployment archives |
| **SWIG** | 4.1.1 | Connect Python with C/C++ |
## ๐ ๏ธ Environment Setup
### 1๏ธโฃ Python (3.13.x)
> ๐ **Core Dependency** ยท AstronRPA requires Python 3.13.x as the RPA engine core
๐ฆ Installation Methods (Click to expand)
#### Method 1: Official Download (Recommended)
```bash
# Visit https://www.python.org/downloads/
# Download and install Python 3.13.x
```
#### Method 2: Using Winget
```bash
winget install Python.Python.3.13
```
#### Method 3: Using Chocolatey
```bash
choco install python --version=3.13.x
```
#### ๐ Python Installation Path
After installation, remember your Python installation path for later configuration:
| Installation Method | Typical Path |
|---------|---------|
| ๐ข Official Installer | `C:\Users\{username}\AppData\Local\Programs\Python\Python313\` |
| ๐ต Chocolatey | `C:\Python313\` or `C:\tools\python3\` |
**๐ก Important Note:**
- โ Python executable: `{installation_directory}\python.exe`
- โ Example: `C:\Users\{username}\AppData\Local\Programs\Python\Python313\python.exe`
### 2๏ธโฃ UV (0.8+)
> โก **Fast Package Management** ยท Next-generation Python package manager, 10-100x faster than pip
๐ฆ Installation Methods (Click to expand)
```powershell
# Method 1: Official installation script (Recommended)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Method 2: Using pip
pip install uv
# Method 3: Using Chocolatey
choco install uv
```
#### โ
Verify Installation
```bash
uv --version
# โ Should display something like: uv 0.8.x (xxxxx)
```
**๐ Learn More**: [UV Official Documentation](https://docs.astral.sh/uv/)
### 3๏ธโฃ pnpm (9+)
> ๐ฆ **Efficient Package Management** ยท Disk space-saving Node.js package manager
๐ฆ Installation Methods (Click to expand)
```bash
# Method 1: Using npm (Recommended)
npm install -g pnpm@latest
# Method 2: Windows PowerShell
iwr https://get.pnpm.io/install.ps1 -useb | iex
# Method 3: macOS/Linux
curl -fsSL https://get.pnpm.io/install.sh | sh -
# Method 4: Homebrew (macOS)
brew install pnpm
```
#### โ
Verify Installation
```bash
pnpm --version
# โ Should display 9.x.x or higher
```
**๐ Learn More**: [pnpm Official Documentation](https://pnpm.io/)
### 4๏ธโฃ Docker
> ๐ณ **Containerization Platform** ยท For rapid server deployment
๐ฅ Download & Install (Click to expand)
| Platform | Download Link |
|-----|---------|
| ๐ช Windows/Mac | [Docker Desktop](https://www.docker.com/products/docker-desktop/) |
| ๐ง Linux | [Docker Engine](https://docs.docker.com/engine/install/) |
#### โ
Verify Installation
```bash
docker --version
docker compose --version
# โ Confirm both Docker and Docker Compose are installed correctly
```
---
### 5๏ธโฃ 7-Zip
> ๐ฆ **Compression Tool** ยท For creating deployment archive files
๐ฅ Download & Install (Click to expand)
**Official Website:** https://www.7-zip.org/
Download and install to system, or extract to a custom directory
#### โ
Verify Installation
```bash
# If installed to system path
7z
# Or use full path
"C:\Program Files\7-Zip\7z.exe"
```
---
### 6๏ธโฃ SWIG
> ๐ **Interface Generator** ยท For connecting Python with C/C++ programs
๐ฅ Installation Steps (Click to expand)
#### Step 1: Download SWIG
Visit http://www.swig.org/download.html
Download `swigwin-4.1.1.zip` and extract to any directory.
Use SWIG 4.1.1 for the current `pywinhook==1.6.2` dependency. SWIG 4.5.0
removes the legacy `PyInt_AsLong` compatibility alias and causes a link failure
with Python 3.13. Native extension builds also require Visual Studio Build Tools
with the MSVC x64/x86 C++ tools and a Windows SDK; the VC++ Redistributable
alone does not include these build tools.
#### Step 2: Add to System Environment Variables
Add the directory containing `swig.exe` to PATH environment variable
For example: `C:\swig\swigwin-4.1.1`
#### Step 3: Verify Installation
```bash
swig -version
# โ Confirm SWIG is installed correctly
```
## ๐๏ธ Deployment Architecture
AstronRPA adopts a **Server-Client** architecture:

### Deployment Overview
1. **Server Deployment** - Quick deployment using Docker
- Web management interface
- Backend API services
- Database and cache
- AI services
2. **Client Deployment** - Deploy using packaging scripts
- RPA execution engine
- Desktop management application
- Connect to server for task execution
## ๐ Server Deployment (Docker)
> **Quick Deployment** ยท Launch all server components with Docker Compose in one command
The server provides web management interface, API services, database and other core services.
---
### ๐ฆ Deployment Steps
#### Step 1๏ธโฃ: Clone Repository
```bash
git clone https://github.com/iflytek/astron-rpa.git
cd astron-rpa
```
#### Step 2๏ธโฃ: Start Server
```bash
# Enter Docker directory
cd docker
# Copy .env file
cp .env.example .env
# Configure public HTTPS names in .env
RPA_SERVER_NAME="rpa.example.com"
CASDOOR_SERVER_NAME="auth.example.com"
RPA_HTTPS_REDIRECT_AUTHORITY="rpa.example.com"
CASDOOR_HTTPS_REDIRECT_AUTHORITY="auth.example.com:8443"
CASDOOR_EXTERNAL_ENDPOINT="https://auth.example.com:8443"
# Copy the matching certificate chain and private key to
# docker/certs/tls.crt and docker/certs/tls.key
# ๐ Start all services
docker compose up -d mysql casdoor
# Wait for Casdoor initialization (see docker/HTTPS_DEPLOYMENT.md section 1.3)
python3 scripts/sync-casdoor-credentials.py
docker compose up -d
# ๐ Check service status
docker compose ps
```
See [HTTPS deployment, migration, and rollback](./docker/HTTPS_DEPLOYMENT.md)
for certificate, custom-port, legacy HTTP, and rollback details.
๐ก Expected Output Example
```
NAME STATUS PORTS
robot-service Up 30 seconds 0.0.0.0:8080->8080/tcp
ai-service Up 30 seconds 0.0.0.0:8001->8001/tcp
openapi-service Up 30 seconds 0.0.0.0:8002->8002/tcp
mysql Up 30 seconds 0.0.0.0:3306->3306/tcp
redis Up 30 seconds 0.0.0.0:6379->6379/tcp
```
#### Step 3๏ธโฃ: Verify Server Deployment
```bash
# ๐ View service logs
docker compose logs -f
```
---
### ๐ง Server Management Commands
```bash
# ๐ Stop services
docker compose down
# ๐ Restart services
docker compose restart
# ๐ View specific service logs
docker compose logs -f robot-service
# โฌ๏ธ Update images
docker compose pull
docker compose up -d
```
**๐ Detailed Configuration**: [Server Deployment Guide](./docker/QUICK_START.md)
## ๐ป Client Deployment (Local)
> **Local Deployment** ยท Deploy engine and desktop application on machines running RPA tasks
The client includes RPA execution engine and desktop management application, needs to be deployed on machines executing RPA tasks.
---
### ๐ฏ One-Click Packaging Deployment
Suitable for production environments and end users.
#### ๐ช Windows Environment
Step 1๏ธโฃ: Prepare Python Environment
Ensure Python 3.13.x is installed to a local directory (e.g., `C:\Python313`).
**Environment Directory Structure:**
```
Python313/
โโ DLLs/
โโ Doc/
โโ include/
โโ Lib/
โโ libs/
โโ Scripts/
โโ tcl/
โ
โโ LICENSE.txt
โโ NEWS.txt
โโ python.exe
โโ python3.dll
โโ python313.dll
โโ pythonw.exe
โโ vcruntime140.dll
โโ vcruntime140_1.dll
```
> **โ ๏ธ Important Note:** Use a clean Python installation without additional third-party packages to reduce package size.
Step 2๏ธโฃ: Run Packaging Script
### Basic Usage
Execute the build script from the project root directory:
```bash
# ๐ Full build (engine + frontend)
./build.bat --python-exe "C:\Program Files\Python313\python.exe"
# Or use default configuration (if Python is in default path)
./build.bat
# โณ Wait for operation to complete
# โ
Build successful when console displays "Full Build Complete!"
```
**Execution Flow:**
1. โ
Detect/copy Python environment to `build/python_core`
2. โ
Install RPA engine dependencies
3. โ
Compress Python core to `resources/python_core.7z`
4. โ
Install frontend dependencies
5. โ
Build desktop application
### Advanced Options
View all available parameters:
```bash
./build.bat --help
```
**Common Parameter Combinations:**
```bash
# ๐ง Specify Python path
./build.bat --python-exe "D:\Python313\python.exe"
# ๐ง Specify 7-Zip path
./build.bat --sevenz-exe "D:\7-Zip\7z.exe"
# โญ๏ธ Build engine only, skip frontend
./build.bat --skip-frontend
# โญ๏ธ Build frontend only, skip engine
./build.bat --skip-engine
# ๐ Combine with short options
./build.bat -p "D:\Python313\python.exe" -s "D:\7-Zip\7z.exe"
```
**Parameter Description:**
| Parameter | Short | Description |
|-----------|-------|-------------|
| `--python-exe ` | `-p` | Specify Python executable path |
| `--sevenz-exe ` | `-s` | Specify 7-Zip executable path |
| `--skip-engine` | - | Skip engine (Python) build |
| `--skip-frontend` | - | Skip frontend build |
| `--help` | `-h` | Display help message |
### Manual Frontend Build
If you need to manually build the frontend separately, you can execute the following steps:
Click to expand manual build steps
```bash
cd frontend
# ๐ฆ Install dependencies
pnpm install
# โ๏ธ Configure environment variables
pnpm set-env
# ๐ฅ๏ธ Build desktop application
pnpm build:desktop
```
> **Tip:** Use `build.bat --skip-engine` to automatically complete the frontend build steps above.
Step 3๏ธโฃ: Install Exe Package
**Package completion path:**
```
/frontend/packages/electron-app/dist/
```
Double-click the Exe file to install.
Step 4๏ธโฃ: Configure Server Address
Modify the server address in `resources/conf.yaml` under the installation directory:
```yaml
remote_addr: https://rpa.example.com/
skip_engine_start: false
```
> **๐ก Tip:** Replace `rpa.example.com` with your actual HTTPS gateway name.
---
### ๐ Development Server Addresses
| Service | Address | Description |
|-----|------|------|
| ๐ฅ๏ธ **Desktop App** | Auto-launch window | Desktop client |
| ๐ **Backend Service API** | https://localhost | Backend Gateway Service Nginx |
| ๐ **Casdoor Service API** | https://localhost:8443 | Authentication Service Casdoor |
---
## ๐ Complete Deployment Verification
### โ
Step 1: Server Check
```bash
# ๐ Check Docker service status
docker compose ps
# ๐ Verify API response
# Open in browser: https://rpa.example.com/api/rpa-auth/user/login-check
# If returns {"code":"900001","data":null,"message":"unauthorized"} then deployment is correct and connected
```
### โ
Step 2: Casdoor Service Check
```bash
# ๐ Verify Casdoor service
# Open https://auth.example.com:8443 in browser
# Casdoor authentication page should appear
```
**Follow-up Verification:**
- โ Check client node status in web interface
- โ Create simple test task to verify execution
## โ FAQ
### ๐ Server Related
Q: Docker service fails to start?
```bash
# ๐ Check port usage
netstat -tulpn | grep :8080
# โ
Check Docker status
docker --version
docker compose --version
# ๐ View detailed error logs
docker compose logs
```
**Common Causes:**
- โ Ports occupied (8080, 3306, 6379)
- โ Docker service not started
- โ Insufficient resources (memory/disk space)
Q: Database connection failed?
```bash
# ๐ Check MySQL container status
docker compose ps mysql
# ๐ View MySQL logs
docker compose logs mysql
# ๐ Restart database service
docker compose restart mysql
```
---
### ๐ป Client Related
Q: Python environment copy failed?
```bash
# ๐ Check Python installation path
where python # Windows
which python # Linux/macOS
# ๐ Make sure to pass the Python executable file
โ๏ธ ./build.bat -p "C:\\Python313"
โ๏ธ ./build.bat -p "C:\\Python313\\python.exe"
```
**Solutions:**
- โ Ensure Python directory exists and is readable
- โ Run script with administrator privileges
- โ Check sufficient disk space
Q: Packaging script execution failed?
```bash
# โ
Check all dependencies in preparation phase are fully installed
# ๐พ Check disk space
dir # Windows check available space
```
---
### ๐ Connection Related
Q: Client cannot connect to server?
```bash
# ๐ Check network connectivity
# Open the following URL in your browser to see if there's a response
# Replace the example name with your deployed HTTPS gateway name
https://rpa.example.com/api/rpa-auth/user/login-check
# ๐ก๏ธ Check firewall settings
# Windows: Control Panel > System and Security > Windows Defender Firewall
# Linux: ufw status
# โ
Check server health status
curl https://rpa.example.com/health
```
**Common Causes:**
- โ Server not started
- โ Firewall blocking
- โ Network unreachable
- โ Incorrect address in config file
Q: WebSocket connection failed?
```bash
# ๐ Check WebSocket endpoint
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" \
https://rpa.example.com/api/rpa-openapi/ws
# ๐ Check proxy settings
echo $http_proxy
echo $https_proxy
```
**Solutions:**
- โ Confirm server WebSocket service is running
- โ Check if proxy affects connection
- โ Verify firewall rules
---
### ๐๏ธ Build Related
Q: Frontend build failed?
```bash
# ๐งน Clear cache
pnpm store prune
rm -rf node_modules pnpm-lock.yaml
# ๐ฆ Reinstall
pnpm install
# โ
Check Node.js version
node --version # Requires 22+
```
**Common Causes:**
- โ Node.js version not meeting requirements
- โ Dependency version conflicts
- โ Cache corruption
Q: pywinhook installation fails with swig.exe not found error?
**Error Message:**
```
error: Microsoft Visual C++ 14.0 is required
or
swig.exe not found
```
**Solution Steps:**
1๏ธโฃ **Download SWIG**
- Visit http://www.swig.org/download.html
- Download `swigwin-x.x.x.zip` and extract to any directory
2๏ธโฃ **Add to System Environment Variables**
- Add the directory containing `swig.exe` to PATH environment variable
- For example: `C:\swig\swigwin-4.1.1`
3๏ธโฃ **Verify Installation**
```bash
swig -version
```
4๏ธโฃ **Reinstall pywinhook**
```bash
pip install pywinhook
```
## ๐ Get Help
**Having issues? We're here to help!**
| Channel | Link | Description |
|-----|------|------|
| ๐ง **Technical Support** | [cbg_rpa_ml@iflytek.com](mailto:cbg_rpa_ml@iflytek.com) | Contact technical team directly |
| ๐ฌ **Community Discussion** | [GitHub Discussions](https://github.com/iflytek/astron-rpa/discussions) | Exchange ideas with community |
| ๐ **Issue Report** | [GitHub Issues](https://github.com/iflytek/astron-rpa/issues) | Submit bugs and feature requests |
| ๐ **Full Documentation** | [Project Documentation](README.md) | View detailed usage documentation |
---
## ๐ฏ Next Steps
**โจ Congratulations on completing deployment! Now start your RPA automation journey โจ**
| Step | Content | Link |
|-----|------|------|
| 1๏ธโฃ | **๐ Learn to Use** | Read [User Guide](README.md) to learn how to create RPA processes |
| 2๏ธโฃ | **๐ง Component Development** | Refer to [Component Development Guide](engine/components/) to develop custom components |
| 3๏ธโฃ | **๐ค Contribute** | Check [Contributing Guide](CONTRIBUTING.md) to participate in project development |
| 4๏ธโฃ | **๐ฑ Production Deployment** | Refer to [Production Deployment Guide](docker/PRODUCTION.md) for production deployment |
---
### ๐ Deployment Complete!
**You have successfully deployed AstronRPA server and client**
Now you can start creating powerful RPA automation workflows!

**Happy Automating! ๐คโจ**