Installation and Configuration

Follow these steps to deploy Moretta on your infrastructure.

Prerequisites

Setup Instructions

1. Clone & Environment

# Download the repository and enter directory
git clone https://github.com/Kvmyk/moretta.git
cd moretta
# Create environment file from example
cp .env.example .env

2. Configure .env

Edit the .env file and set the following essential variables:

Launch

Windows Setup
Windows
Simply double-click the start.bat file in the root directory.
Unix Setup
Linux / macOS
Run the startup script from the terminal:

chmod +x start.sh
./start.sh

Accessing the Application

Initial User Setup

For enhanced security, the repository does not include pre-provisioned users. To access Moretta for the first time:

  1. Go to the Keycloak Admin Console.
  2. Login with Master Admin credentials from your .env (default: admin / admin123).
  3. Switch the realm from master to moretta (dropdown menu in the top left).
  4. Navigate to UsersAdd user and create your primary account.
  5. Set your password in the Credentials tab (set "Temporary" to on, so you can change your password later).
  6. You can now login to the main dashboard at http://localhost:3000.

Detailed Configuration Reference

Variable Default Description
LOCAL_MODEL phi4-mini Model used for local PII detection.
OLLAMA_URL http://ollama:11434 Internal endpoint for Ollama container.
DEFAULT_PROVIDER claude Main AI engine (claude, openai, gemini, openrouter, ollama).
SSO_ENABLED true Toggles OIDC validation for backend endpoints.

Troubleshooting