Skip to main content

Getting Started with STELLA

Get the entire STELLA platform running in minutes. This guide walks you through setting up your development environment, configuring your credentials, and deploying your first voice AI agent.

Prerequisites

Before you begin, make sure you have:

  • Docker: OrbStack (recommended for macOS), Docker Desktop (Windows), or Docker Engine (Linux)
  • kubectl configured with a Kubernetes cluster (OrbStack and Docker Desktop include one)
  • OpenAI API key for the conversational AI
  • LiveKit account (cloud or self-hosted) for real-time communication
New to LiveKit?

You can sign up for a free LiveKit Cloud account to get started quickly. LiveKit Cloud handles all the WebRTC infrastructure for you.

Installation

1

Clone the repository

Clone the STELLA repository and navigate to the project directory.

terminal
git clone https://github.com/c4dhi/STELLA.git
cd STELLA
2

Configure environment variables

Copy the example environment file and add your credentials.

terminal
cp .env.example .env

Edit the .env file with your essential configuration:

.env
# LiveKit (required)
LIVEKIT_URL=wss://your-app.livekit.cloud
LIVEKIT_API_KEY=your-api-key
LIVEKIT_API_SECRET=your-api-secret

# AI (required)
OPENAI_API_KEY=sk-your-openai-key
Environment Variables Reference

See all available configuration options including database, security, and provider settings.

3

Start the services

Deploy the entire STELLA stack with a single command.

terminal
./scripts/start-k8s.sh

This script will:

  • Build all Docker images
  • Create the Kubernetes namespace
  • Deploy PostgreSQL, backend, and frontend services
  • Set up port forwarding for local access
4

Verify the deployment

Check that all services are running:

terminal
kubectl get pods -n ai-agents

You should see pods for postgres, session-management-server, and frontend-ui all in Running status.

Access the Application

Once deployed, STELLA is available at:

ServiceURLDescription
Frontend UIhttp://localhost:5173Web interface for voice conversations
Backend APIhttp://localhost:3000REST API and WebSocket server
API Docshttp://localhost:3000/apiSwagger documentation

Your First Conversation

  1. Open http://localhost:5173 in your browser
  2. Create a new project or select an existing one
  3. Click Start Session to begin a conversation
  4. Grant microphone permissions when prompted
  5. Start talking - the AI agent will respond in real-time

Deployment Modes

STELLA supports several deployment modes for different use cases:

FlagDescriptionUse Case
(default)Foreground modeLocal development
--daemonBackground modeProduction servers
--restartStop and restartApply code changes
--rebuildForce rebuildAfter Dockerfile changes
--productionProduction settingsDeploy to production

Examples

terminal
# Local development (foreground)
./scripts/start-k8s.sh

# Production deployment (background)
./scripts/start-k8s.sh --production --daemon

# Apply code changes
./scripts/start-k8s.sh --restart

# Stop all services
./scripts/start-k8s.sh --stop

Troubleshooting

Pods not starting

Check pod logs for errors:

terminal
kubectl logs -f -n ai-agents -l app=session-management-server

Database connection issues

Ensure the PostgreSQL pod is running:

terminal
kubectl get pods -n ai-agents -l app=postgres

LiveKit connection fails

Verify your LiveKit credentials in .env and ensure WebSocket connections are allowed.

Next Steps