> For the complete documentation index, see [llms.txt](https://docs.labs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labs.ai/getting-started/getting-started.md).

# Getting Started

[![Version](https://img.shields.io/github/v/release/labsai/EDDI?label=version\&color=blue)](https://github.com/labsai/EDDI/releases)

Welcome to **EDDI**!

This article will help you to get started with **EDDI**.

## What You're Installing

EDDI is a **middleware orchestration service** for conversational AI. When you run EDDI, you're starting:

1. **The EDDI Service**: A Java/Quarkus application that exposes REST APIs for agent management and conversations
2. **A database**: MongoDB (default) or PostgreSQL, storing agent configurations, workflows, and conversation history
3. **The Manager dashboard**: A web UI bundled into the same service — no separate deployment. `http://localhost:7070/` redirects to the `/welcome` chooser, the admin dashboard is at `/manage`, and `/workforce` is the group-conversation workspace

Once running, you can:

* Create and configure agents through the API or dashboard
* Integrate agents into your applications via REST API
* Connect to LLM services (OpenAI, Claude, Gemini, etc.)
* Build complex conversation flows with behavior rules
* Call external APIs from your agent logic

## Verifying It Works

Whichever option you pick below, these three checks tell you the install succeeded. The first two are the ones CI's smoke test runs against every published image, so if they pass, the service is genuinely up — not merely listening.

```bash
# 1. Readiness — the only check that also proves the database is reachable
curl -sf http://localhost:7070/q/health/ready
# → {"status":"UP","checks":[...]}

# 2. The REST API is serving its own contract
curl -sf -o /dev/null -w '%{http_code}' http://localhost:7070/openapi
# → 200

# 3. No agents yet — an empty list is the correct answer on a fresh install
curl -sf http://localhost:7070/agentstore/agents/descriptors
# → []
```

Step 3 assumes authentication is off, which is the default (`quarkus.oidc.tenant-enabled=false`). If you chose Keycloak in the install wizard, that call returns `401` until you send a bearer token — a `401` there still means the service is healthy. Steps 1 and 2 are always unauthenticated.

If step 1 returns `DOWN` or refuses the connection, the service is running but the database is not — check `docker compose logs eddi`. A fresh install has **no agents deployed**; see [Creating your first Agent](/getting-started/creating-your-first-agent.md) or activate the Platform Operator at `/manage/operator`.

## Installation Options

### Option 0 - One-Command Install (Recommended)

**Linux / macOS / WSL2:**

```bash
curl -fsSL https://raw.githubusercontent.com/labsai/EDDI/main/install.sh | bash
```

**Windows (PowerShell):**

```powershell
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/labsai/EDDI/main/install.ps1" -OutFile "install.ps1"
Unblock-File .\install.ps1
.\install.ps1
```

The wizard guides you through choosing a database (MongoDB or PostgreSQL), optional authentication (Keycloak), and monitoring (Grafana). EDDI starts with no agents deployed — to create your first one, activate the **Platform Operator** at `/manage/operator` and describe the agent you want, or fill in the form-based wizard at `/manage/agents/wizard`.

### Option 1 - EDDI with Docker (Manual)

There are two ways to run **EDDI** under Docker: with **Docker Compose**, or by launching the containers manually.

> **Prerequisite:** a working Docker installation — see the [Docker documentation](https://docs.docker.com/learn/). Compose v2 ships as the `docker compose` subcommand; the standalone `docker-compose` binary is end-of-life and is not used here.

### Use Docker Compose (recommended)

1. Download [`docker-compose.yml`](https://github.com/labsai/EDDI/blob/main/docker-compose.yml) from GitHub, into an empty directory
2. Start it:

   ```bash
   docker compose up
   ```

### Launch the containers manually

The image runs in production mode, and in production mode EDDI **refuses to start without authentication** unless you opt out explicitly. A bare `docker run labsai/eddi` therefore exits during startup — `AuthStartupGuard` stops it because OIDC is off, and `HighValueSurfaceGuard` separately requires an opt-in for the MCP endpoint and the secrets vault. The commands below make the same three opt-outs the bundled `docker-compose.yml` makes, and bind the port to `127.0.0.1` so the unauthenticated instance is reachable from this machine only.

1. Create a shared network

   ```bash
   docker network create eddi-network
   ```
2. Start a `MongoDB` instance. The container must be named `mongodb`: the image's default connection string is `mongodb://mongodb:27017/eddi`.

   ```bash
   docker run --name mongodb --network=eddi-network -d mongo:7.0.43
   ```
3. Start **EDDI**:

   ```bash
   docker run --name eddi --network=eddi-network -p 127.0.0.1:7070:7070 \
     -e EDDI_SECURITY_ALLOW_UNAUTHENTICATED=true \
     -e EDDI_MCP_ALLOW_UNAUTHENTICATED=true \
     -e EDDI_SECRETSTORE_ALLOW_UNAUTHENTICATED=true \
     -e EDDI_VAULT_MASTER_KEY='replace-with-a-long-random-passphrase' \
     -d labsai/eddi:latest
   ```

> **Warning — local use only.** With these three flags every endpoint, including agent administration, the MCP server and the secrets vault, answers without a token. Keep the `127.0.0.1:` bind. For anything other people can reach, turn authentication on instead (`QUARKUS_OIDC_TENANT_ENABLED=true` plus the OIDC settings in the [Configuration Reference](/deployment-and-infrastructure/configuration-reference.md), and drop the three `ALLOW_UNAUTHENTICATED` flags) — see [Security](/security-and-compliance/security.md).
>
> Keep `EDDI_VAULT_MASTER_KEY` stable: secrets stored in the vault are encrypted with a key derived from it, and a different passphrase on the next start cannot decrypt them. Without the variable EDDI still starts, but the vault is disabled. For anything you keep, pin a release tag (for example `labsai/eddi:6.6.0`; the [releases page](https://github.com/labsai/EDDI/releases) lists the newest) instead of `latest`.
>
> To use a MongoDB that requires a password, pass the full connection string: `-e MONGODB_CONNECTIONSTRING='mongodb://user:pass@host:27017/eddi?authSource=admin'`.

## Option 2 - Deploy on Kubernetes

EDDI runs natively on any Kubernetes cluster (minikube, kind, GKE, EKS, AKS).

**Quickstart (all-in-one):**

```bash
kubectl apply -f https://raw.githubusercontent.com/labsai/EDDI/main/k8s/quickstart.yaml
```

The manifest deploys EDDI with an **empty** vault master key, so it starts but cannot encrypt secrets. Generate the key next. `create-secrets.sh` lives in the repository, so this step needs a checkout:

```bash
git clone https://github.com/labsai/EDDI.git && cd EDDI
bash k8s/create-secrets.sh --auto
kubectl rollout restart deployment/eddi -n eddi
```

Without a checkout, do the same thing by hand — EDDI reads secrets from a mounted *file*, not environment variables, because env is readable through `/proc/<pid>/environ` and leaks into crash dumps:

```bash
set -euo pipefail

# mktemp gives an unpredictable name created 0600, so another local user
# cannot pre-create the path or point it at a symlink.
secrets_file=$(mktemp "${TMPDIR:-/tmp}/eddi-secrets.XXXXXX")
trap 'shred -u "$secrets_file" 2>/dev/null || rm -f "$secrets_file"' EXIT

# Fail closed: an empty key would create a Secret that silently leaves the
# vault inert and secrets in plaintext.
key=$(openssl rand -base64 24)
[ -n "$key" ] || { echo "vault key generation failed" >&2; exit 1; }
printf 'eddi.vault.master-key=%s\n' "$key" > "$secrets_file"

# The Secret key must be named application-secrets.properties — that is the
# filename the Deployment mounts. A bare temp path would name it otherwise.
kubectl create secret generic eddi-secrets \
  --namespace=eddi \
  --from-file=application-secrets.properties="$secrets_file"

kubectl rollout restart deployment/eddi -n eddi
```

**Using Kustomize overlays:**

```bash
kubectl apply -k k8s/overlays/mongodb/    # MongoDB backend
kubectl apply -k k8s/overlays/postgres/   # PostgreSQL backend
```

Both need their Secrets first — the vault key (`bash k8s/create-secrets.sh`) and the database credentials, which are not shipped; the [Kubernetes Deployment Guide](/deployment-and-infrastructure/kubernetes.md) has the commands.

**Using Helm:**

```bash
helm install eddi ./helm/eddi \
  --set eddi.vaultMasterKey="$(openssl rand -base64 24)" \
  --set mongodb.rootPassword="$(openssl rand -base64 24)" \
  --set eddi.security.allowUnauthenticatedMcp=true \
  --set eddi.security.allowUnauthenticatedSecretStore=true \
  --namespace eddi --create-namespace
```

That is the local, port-forward-only shape (no OIDC); the chart refuses to render without each of those values. Enable OIDC for anything others can reach.

See the [Kubernetes Deployment Guide](/deployment-and-infrastructure/kubernetes.md) for full details including auth, monitoring, NATS, Ingress, and production hardening.

## Option 3 - Run from Source

#### *Prerequisites:*

* Java 25
* MongoDB ≥ 6.0 (or PostgreSQL)
* Docker, if you want Dev Services to start MongoDB for you (PostgreSQL has no Dev Service; start it yourself and use the `postgres` profile)

No local Maven install is needed — the repository ships the Maven wrapper (`./mvnw`, or `.\mvnw.cmd` on Windows), which downloads the pinned version on first use.

### How to run the project

Setup a local MongoDB (≥ 6.0) or PostgreSQL instance.

> **Note:** If no database instance is available, Quarkus Dev Services will try to start a MongoDB container automatically (requires Docker running on the host).

On a terminal, under project root folder, run the following command:

```shell
./mvnw compile quarkus:dev '-Djvm.args=--add-modules=jdk.incubator.vector'
```

The API is then on <http://localhost:7070> and the Quarkus Dev UI on <http://localhost:7070/q/dev-ui>. Dev mode starts with authentication off — the guards described above only apply in production mode.

> **The Manager dashboard is not built in dev mode.** `compile` and `quarkus:dev` never run the UI build, so `/manage` only works if an earlier `./mvnw package` (without `-DskipUi=true`) left the built UI in `target/classes`. For dashboard work, run `npm run dev` in `ui/manager` instead: it serves the Manager on port 3000 and proxies API calls to the backend on 7070.

### Build App & Docker image

```bash
./mvnw clean package -DskipTests
docker build -f src/main/docker/Dockerfile -t labsai/eddi:local .
```

This is the Dockerfile CI builds. `-Dquarkus.container-image.build=true` does not work here: the Quarkus Docker extension looks for `src/main/docker/Dockerfile.jvm`, which does not exist.

### Download from Docker hub registry

```bash
docker pull labsai/eddi
```

<https://hub.docker.com/r/labsai/eddi>

### Run Docker image

For production, launch a standalone MongoDB and then start an EDDI instance as defined in `docker-compose.yml`

```bash
docker compose up
```

For development, use

```bash
docker compose -f docker-compose.yml -f docker-compose.local.yml up
```

For integration testing run

```bash
./mvnw verify -DskipITs=false
```

This uses Testcontainers to automatically start EDDI + MongoDB/PostgreSQL in Docker containers for E2E testing. Requires Docker to be running.
