Installation Guide
December 19, 2025 ยท View on GitHub
Deploy AEnvironment development environment from scratch
System Requirements
Basic Dependencies
| Component | Version Requirement | Purpose |
|---|---|---|
| Python | 3.12+ | Runtime environment |
| Package Manager | pip โฅ 21.0 or uv | Dependency management |
| Docker | 20.10+ | Container runtime |
Environment Check
# Verify Python version
python --version # Should display 3.12+
# Verify Docker status
docker --version && docker ps
# Verify package manager
pip --version || uv --version
SDK Installation
Installation Methods Comparison
| Method | Use Case | Features | Command |
|---|---|---|---|
| PyPI Install | Production environment | Stable version | pip install aenvironment |
| UV Install | High performance needs | Ultra-fast dependency resolution | uv pip install aenvironment |
| Source Install | Development contribution | Latest features | pip install -e . |
Standard Installation Process
๐ฆ PyPI Installation (Recommended)
# Create virtual environment (optional but recommended)
python -m venv aenv-env
source aenv-env/bin/activate # Linux/Mac
# or
aenv-env\Scripts\activate # Windows
# Install SDK
pip install aenvironment
# Verify installation
aenv version
โก UV Installation (High Performance)
# Use UV package manager (install uv first)
uv venv aenv-env
source aenv-env/bin/activate
uv pip install aenvironment
๐ง Source Installation (Developers)
# Clone source repository
git clone https://github.com/inclusionAI/AEnvironment.git
cd AEnvironment/aenv
# Development mode installation
pip install -e .
# Verify development environment
python -c "import aenv; print('Development environment ready')"
Installation Verification
โ Basic Verification
# Check version information
aenv version
Expected Output Example:
AEnv SDK Version: 0.1.0
Environment: PyPI Package
Build Version: 0.1.0
Python version: 3.12.0
๐ Advanced Verification
# Test CLI functionality
aenv --help
# Check dependency completeness
python -c "import aenv.core; print('Core module loaded successfully')"
Third-party Tool Installation
MCP Inspector Installation (Optional)
# Install MCP debugging tool
npm install -g @modelcontextprotocol/inspector
# Verify installation
mcp-inspector --version
๐ก Use Case: MCP Inspector serves as a visual debugging client, recommended for installation in local development environments
Usage
- By default, when you run
aenv run, the MCP Inspector will be automatically launched to help you test and monitor your MCP server.
aenv run
SDK Configuration
๐ ๏ธ Initialize Configuration
# Create configuration file
aenv config init
# View configuration path
echo "Configuration file location: $(aenv config path)"
Configuration File Structure
Global Configuration
{
"global": {
"global_mode": "local",
"log_level": "INFO"
},
"build": {
"type": "local",
"build_args": {
"socket": "unix:///var/run/docker.sock"
},
"registry": {
"host": "docker.io",
"username": "",
"password": "",
"namespace": "aenv"
}
},
"storage": {
"type": "local",
"custom": {
"prefix": "~/.aenv/envs"
}
},
"hub_backend":{
"hub_backend": "http://xxxx"
}
}
Configuration Management Operations
Hub Service Configuration
The Hub Service is a centralized metadata storage system for development environments. It works with aenv list and aenv get commands to manage and retrieve environment information.
Local Mode
No configuration required - uses default local storage.
Non-Local Mode
- Deploy Control Components: First deploy the AEnv management components
- Get EnvHub Service Address: Obtain the EnvHub service endpoint
# Configure Hub service address (required for non-local mode)
aenv config set hub_config.hub_backend http://localhost:8080
# Verify configuration
aenv config get hub_config
Build Configuration
| Configuration Item | Command Example | Description |
|---|---|---|
| Docker Socket | aenv config set build.build_args.socket unix:///var/run/docker.sock | Local Docker connection |
| Image Registry | aenv config set build.registry.host docker.io | Image push target |
| Namespace | aenv config set build.registry.namespace my-team | Image organization namespace |
Docker Socket Configuration Guide
# Standard location check
ls -la /var/run/docker.sock
# Service status verification
sudo systemctl status docker | grep -i sock
# Environment variable confirmation
echo $DOCKER_HOST
# Docker Desktop location
ls -la ~/.docker/run/docker.sock
# Context configuration check
docker context ls
docker context inspect default
# Detailed information view
docker info | grep -i "docker root dir"
# Global Docker socket search
sudo find / -name "docker.sock" 2>/dev/null
# Configuration check
docker version --format '{{json .Server}}' | jq -r '.DockerRootDir'
# Daemon configuration
cat /etc/docker/daemon.json | jq -r '.["hosts"]' 2>/dev/null
Image Registry Configuration
๐ Security Note: Image registry configuration is used for image pushing during the build process. Configure private registries according to actual needs
# View current configuration
aenv config get build_config.registry
# Configure private registry
aenv config set build_config.registry.host your-registry.com
aenv config set build_config.registry.username your-username
aenv config set build_config.registry.password your-password
aenv config set build_config.registry.namespace your-namespace
Storage Configuration
Storage configuration manages AEnvironment environment code with multi-version support:
# Configure storage path
aenv config set storage_config.custom.prefix ~/.aenv/environments
# View storage configuration
aenv config get storage_config
Management Components Installation
๐ Local Mode
Features: Zero dependencies, quick start, suitable for development debugging
# No additional components needed
aenv run
# Direct connection to local service
export DUMMY_INSTANCE_IP=http://localhost
โ๏ธ Kubernetes Production Mode
Features: High availability, elastic scaling, enterprise deployment
For detailed Kubernetes deployment instructions, see the {doc}deployment guide, specifically the Kubernetes Mode section.
To package the umbrella chart:
cd deploy
helm dependency update
helm package .
The packaging step produces an archive like aenv-platform-0.1.0.tgz, which can be pushed to your Helm registry.
Chart directory structure (deploy/)
deploy/
โโโ Chart.yaml
โโโ values.yaml
โโโ .helmignore
โโโ charts/
โโโ controller/
โโโ redis/
โโโ envhub/
โโโ api-service/
Troubleshooting
Getting Help
# View detailed help
aenv --help
# View failure details --verbose
aenv --verbose build
Next Steps
After installation, we recommend continuing with:
- ๐ Quick Start - {doc}
quickstart- Create your first environment in 5 minutes - ๐ Deep Dive - {doc}
concepts- Understand core design principles - ๐ ๏ธ Hands-on Practice - {doc}
../guide/sdk- Master advanced SDK usage
๐ฏ Installation Complete! You can now start building intelligent environments
This guide is released under the Apache 2.0 License.