Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(minikube): gate minikube-setup on prereqs; downgrade missing LLM key to a warning

Andy Pavia11f5d5c4ce14
diff --git a/Makefile b/Makefile
index 406842cbe..e018c2d96 100644
--- a/Makefile
+++ b/Makefile
@@ -146,7 +146,8 @@ minikube-stop: ## Stop minikube cluster
minikube stop -p $(MINIKUBE_PROFILE)
.PHONY: minikube-setup
-minikube-setup: ## Clean install from scratch (rebuilds the DB; REUSE_DB=true keeps it). SKIP_UIS=true omits Control/Profile UI. Needs ADMIN_PASSWORD in .env.
+minikube-setup: ## Clean install from scratch (rebuilds the DB; REUSE_DB=true keeps it). SKIP_UIS=true omits Control/Profile UI. Runs 'prereqs' first (SKIP_PREREQS=true to bypass). Needs ADMIN_PASSWORD in .env.
+ @if [ "$(SKIP_PREREQS)" != "true" ]; then $(MAKE) --no-print-directory prereqs; fi
@MINIKUBE_SKIP_UIS="$(SKIP_UIS)" MINIKUBE_SEED_PROFILE="$(SEED_PROFILE)" REUSE_DB="$(REUSE_DB)" \
scripts/minikube/full-setup.sh $(ARGS)
diff --git a/docs/deploy/minikube.md b/docs/deploy/minikube.md
index 7f05a070b..7fa0a4c17 100644
--- a/docs/deploy/minikube.md
+++ b/docs/deploy/minikube.md
@@ -43,13 +43,17 @@ Ready before E2E results are interpreted.
## Prerequisites
-- **Docker Desktop** installed and running
+- **Docker Desktop** installed and running (**≥10 GB RAM / 6 CPUs**)
- **minikube** v1.30+ (`brew install minikube`)
- **kubectl** (`brew install kubectl`)
- **python3** (for JWT key sync)
- **Node.js** 24+ (for building services and desktop app)
+- **git**, **make**, and **ruby** (ruby renders the control-api DB migration overlay)
- `.env` file at project root with LLM API keys (optional — uses placeholders if missing)
+> Tip: run `make prereqs` (alias `make doctor`) to verify all of the above at
+> once, with per-platform install commands for anything missing.
+
---
## Full Setup (First Time — from scratch)
diff --git a/docs/get-started/minikube.md b/docs/get-started/minikube.md
index 28bba7041..ee51bf7d7 100644
--- a/docs/get-started/minikube.md
+++ b/docs/get-started/minikube.md
@@ -13,6 +13,11 @@ Docker Desktop with **≥10 GB RAM / 6 CPUs** · `minikube` v1.30+ · `kubectl`
`python3` · Node.js 24+ · `git` · `make` · `ruby` (renders the control-api DB
migration overlay; ships with macOS, `apt-get install ruby` on Debian/Ubuntu).
+Run `make prereqs` (alias `make doctor`) to check every one of these at once —
+it prints the exact install command per platform for anything missing, and
+flags a `.env` without `ADMIN_PASSWORD` or an LLM key. `make minikube-setup`
+runs it automatically first (bypass with `SKIP_PREREQS=true`).
+
## Bring the platform up
```bash
diff --git a/docs/get-started/quickstart.md b/docs/get-started/quickstart.md
index 48dcaa9e3..347158b40 100644
--- a/docs/get-started/quickstart.md
+++ b/docs/get-started/quickstart.md
@@ -16,7 +16,12 @@ named `chatllm` you can message immediately.
- **kubectl**
- **python3** (used by the JWT key sync)
- **Node.js 24+** (service builds; desktop app)
-- One LLM API key: OpenAI, Anthropic Claude, Z.AI, or Alibaba Bailian
+- **git**, **make**, and **ruby** (ruby renders the control-api DB migration
+ overlay; ships with macOS, `apt-get install ruby` on Debian/Ubuntu)
+- One LLM API key from any of the 21 supported providers (e.g. OpenAI,
+ Anthropic Claude, Google Gemini, Groq, Mistral, Z.AI, Alibaba Bailian) —
+ optional for setup (it boots with placeholders), but the agent can't call a
+ model without one. Full list: [../deploy/llm-providers.md](../deploy/llm-providers.md)
## 1. Configure
diff --git a/scripts/check-prereqs.sh b/scripts/check-prereqs.sh
index 62c2aa830..0f4693a6c 100755
--- a/scripts/check-prereqs.sh
+++ b/scripts/check-prereqs.sh
@@ -270,9 +270,11 @@ azure:AZURE_OPENAI_API_KEY"
if [ -n "$LLM_KEYS_SET" ]; then
ok ".env LLM key set —$LLM_KEYS_SET"
else
- err ".env no LLM key set (need ONE of 21 providers, e.g. OPENAI_API_KEY / CLAUDE_API_KEY / GEMINI_API_KEY / GROQ_API_KEY / MISTRAL_API_KEY …)"
- echo " Set one in .env; setup infers the matching provider. Full list: docs/deploy/llm-providers.md"
- MISSING=$((MISSING + 1))
+ # Non-fatal: setup boots with test placeholders (default zai). The agent
+ # just can't reach a model until a real key is added — matches the
+ # "optional" behavior documented in docs/deploy/minikube.md.
+ warn ".env no LLM key set — setup will boot with placeholders (default zai); the agent can't call a model until you add one"
+ echo " Set one of 21 providers in .env (OPENAI_API_KEY / CLAUDE_API_KEY / GEMINI_API_KEY / GROQ_API_KEY / MISTRAL_API_KEY …); setup infers the provider. Full list: docs/deploy/llm-providers.md"
fi
# Provider/key consistency — non-fatal, catches a common mismatch.