Skip to main content
This guide covers all environment variables for Node.js API and Next.js frontend components of Weam AI.

Service-Specific Variables

Complete environment variables for the Node.js API backend service:

Server Configuration

Service URLs

Model Provider API Keys

Authentication Settings

Storage Settings

Email Configuration

Additional Settings

SEO Agent Settings

Complete environment variables for the Next.js frontend application:

API Endpoints

Application Settings

Asset Configuration

WebSocket Settings

Additional Frontend Settings

Required Configuration

These environment variables must be configured for Weam AI to function properly.

Database Settings

Configure MongoDB and Redis connections for data storage and caching:

Security Configuration

Generate and configure secure keys for authentication and encryption:
Generate secure keys:

Service URLs

Configure service endpoints and domain settings:

File Storage Configuration

Choose between local MinIO storage or AWS S3 for file management:
Benefits:
  • No external dependencies
  • Free for development
  • Easy local testing

Vector Database Settings

Configure Qdrant for AI embeddings and vector search:

Optional Configuration

These settings enhance functionality but aren’t required for basic operation.

Optional Dashboard (Mongo Express)

An optional dashboard is available to view MongoDB records for the running project. It is disabled by default. Enable only if you need the dashboard (recommended for development, not production).

Enable the dashboard

  1. Update docker-compose.yml by adding/uncommenting this service:
  1. Start the service:
  1. Open the dashboard:

Email Notifications

Configure SMTP for user notifications and account management:
Popular SMTP providers:
  • Gmail: smtp.gmail.com:587 (requires app password)
  • SendGrid: smtp.sendgrid.net:587
  • AWS SES: Regional endpoints available

External Service Integration

Configure OAuth credentials for third-party integrations:
Enable Slack workspace integration for team collaboration.

Environment-Specific Settings

Configure different settings for development and production environments.

Local Development Environment

Production Deployment Environment

Configuration Validation

Verify your environment variable configuration:

Next Steps

API Credential Setup

Configure model provider API keys and external integrations

Launch & Verify

Start services and verify your environment configuration