| sidebar_position |
|---|
3 |
Standalone mode is a single-machine deployment solution that packages Backend, Frontend, Chat Shell, Executor, and Redis into a single Docker image, using SQLite for the database. No external dependencies required - just Docker.
- Single-machine deployment
- Development and testing
- Small-scale usage
- Quick evaluation
| Feature | Standard Mode | Standalone Mode |
|---|---|---|
| Deployment Complexity | High (multi-container) | Low (single container) |
| Resource Usage | High | Medium |
| Scalability | Good | Limited |
| Isolation | Good (Docker) | None |
| Database | MySQL | SQLite |
| Redis | External | Embedded |
| Use Case | Production | Dev/Test/Small-scale |
curl -fsSL https://raw.githubusercontent.com/wecode-ai/Wegent/main/install.sh | bashThis will automatically:
- Check and install Docker if needed
- Pull the latest Wegent standalone image
- Create a data volume for persistence
- Start the container
If you prefer to run the container manually:
docker run -d \
--name wegent-standalone \
--restart unless-stopped \
-p 3000:3000 \
-p 8000:8000 \
-v wegent-data:/app/data \
ghcr.io/wecode-ai/wegent-standalone:latestFor remote access (replace YOUR_SERVER_IP with your actual IP):
docker run -d \
--name wegent-standalone \
--restart unless-stopped \
-p 3000:3000 \
-p 8000:8000 \
-v wegent-data:/app/data \
-e RUNTIME_SOCKET_DIRECT_URL=http://YOUR_SERVER_IP:8000 \
ghcr.io/wecode-ai/wegent-standalone:latest| Variable | Description | Default |
|---|---|---|
RUNTIME_SOCKET_DIRECT_URL |
WebSocket URL for frontend | http://localhost:8000 |
STANDALONE_MODE |
Enable standalone mode | true |
DATABASE_URL |
Database connection URL | sqlite:////app/data/wegent.db |
REDIS_URL |
Redis connection URL | redis://localhost:6379/0 |
ANTHROPIC_API_KEY |
Anthropic API key | - |
OPENAI_API_KEY |
OpenAI API key | - |
Data is stored in the /app/data directory, including:
wegent.db- SQLite database fileredis/- Redis persistence data (AOF and RDB)- Other runtime data
Use Docker volume for persistence:
# Create a named volume
docker volume create wegent-data
# Run with the volume
docker run -v wegent-data:/app/data ...# View logs
docker logs -f wegent-standalone
# Stop the container
docker stop wegent-standalone
# Start the container
docker start wegent-standalone
# Restart the container
docker restart wegent-standalone
# Remove the container (data is preserved in volume)
docker rm -f wegent-standalone
# Update to latest version
docker pull ghcr.io/wecode-ai/wegent-standalone:latest
docker rm -f wegent-standalone
docker run -d \
--name wegent-standalone \
--restart unless-stopped \
-p 3000:3000 \
-p 8000:8000 \
-v wegent-data:/app/data \
ghcr.io/wecode-ai/wegent-standalone:latestIf you need to build the image yourself:
# Use the build script
./scripts/build-standalone.sh
# Or specify a tag
./scripts/build-standalone.sh -t my-registry/wegent:v1.0
# Specify platform
./scripts/build-standalone.sh -p linux/amd64- Concurrent Writes: SQLite doesn't support high-concurrency writes, suitable for single-user or small-scale usage
- Data Backup: Regularly backup the
/app/data/wegent.dbfile
The standalone image includes an embedded Redis server:
- Data is persisted to
/app/data/redis/ - Uses AOF (Append Only File) for durability
- Memory limit: 256MB with LRU eviction policy
- Resource Isolation: No Docker container isolation, tasks share process resources
- Security: Code execution has no sandbox protection
- Use Case: Only suitable for trusted environments and development/testing
If you need to migrate to standard mode:
- Export SQLite data
- Import to MySQL
- Modify configuration for standard deployment
For detailed migration guide, see Data Migration Documentation.