Install NexusAI Engine
Get the NexusAI inference runtime and CLI up and running on your local machine or production infrastructure in under 5 minutes.
đ Prerequisites
*.nexusai.cloud (ports 443, 8443)đ Choose Installation Method
Quick global installation using npm or standalone binary. Recommended for developers and local testing.
-
1
Install via npm
Run the following command to install the CLI globally:
npm install -g @nexusai/cli
nexus init
-
2
Authenticate
Log in with your API key or OAuth credentials:
nexus auth login
# Paste your API key or open the browser prompt
sudo npm install -g @nexusai/cli or use nvm to avoid permission errors.Containerized runtime with zero host dependencies. Ideal for staging and production.
-
1
Pull the latest image
Terminaldocker pull nexusai/engine:latest -
2
Run the container
Terminaldocker run -d \ -p 8080:8080 \ -e NEXUS_API_KEY=your_api_key_here \ -e NEXUS_LOG_LEVEL=info \ --name nexus-engine \ nexusai/engine:latest
--gpus all flag and use the nexusai/engine:latest-cuda image tag.Deploy to Kubernetes using the official Helm chart. Supports auto-scaling, secrets management, and service meshes.
-
1
Add Helm repository
Terminalhelm repo add nexusai https://charts.nexusai.cloud helm repo update -
2
Deploy with Helm
Terminalhelm install nexus-engine nexusai/nexusai-engine \ --set apiKey=your_secret_key \ --set replicaCount=3 \ --set resources.limits.memory="8Gi"
Python client for rapid prototyping and ML pipeline integration.
-
1
Install package
Terminalpip install nexusai-sdk -
2
Initialize in Python
main.pyfrom nexusai import Client # Initialize client nexus = Client(api_key="your_api_key_here") # Load modelmodel = nexus.models.load("nexus-v3-ultra") result = model.infer("Analyze this dataset...") print(result)
âī¸ Environment Configuration
Customize your deployment using environment variables or a nexus.config.yaml file.
| Variable | Default | Description |
|---|---|---|
NEXUS_API_KEY |
unset |
Authentication token from developer console |
NEXUS_LOG_LEVEL |
info |
Logging verbosity: debug, info, warn, error |
NEXUS_CACHE_DIR |
~/.nexusai/cache |
Local model & token cache directory |
NEXUS_MAX_CONCURRENCY |
4 |
Maximum parallel inference requests |
NEXUS_GPU_ACCEL |
false |
Enable CUDA/Metal hardware acceleration |
runtime:
log_level: info
cache:
enabled: true
path: ~/.nexusai/cache
ttl: 3600
performance:
max_concurrency: 8
gpu_acceleration: true
quantization: int8
api:
timeout_ms: 15000
retry_attempts: 3
â Verify Installation
Run the following command to confirm your setup is working correctly:
nexus doctor
# Expected output:
â CLI Version: 3.2.1
â Authentication: Valid
â Network: Connected
â Disk Space: 24.5 GB available
â Runtime Engine: Ready
All checks passed. NexusAI is ready to use.
đ§ Troubleshooting
Common Issues
-
â ī¸ Permission Denied (npm global install)
Use
nvmorsudo chown -R $(whoami) /usr/local/lib/node_modules. Never run npm with sudo directly. -
â ī¸ Docker GPU not detected
Ensure NVIDIA Container Toolkit is installed. Run
nvidia-smito verify drivers. Use--gpus allflag. -
â ī¸ API Key Authentication Failed
Verify the key is copied without trailing spaces. Regenerate from Console if expired.
Still stuck? Check the Full Troubleshooting Guide or contact Support.