MAGI System is a multi-agent AI inspired by the legendary supercomputers of Neon Genesis Evangelion. Three distinct AI personalities—Melchior (logic), Balthasar (ethics), Casper (practicality)—analyze every question from different angles, then synthesize their answers for a true "consensus of minds".
"The truth lies in the synthesis of three perspectives."
MAGI is the digital soul of NERV: scientific, ethical, and pragmatic. Now you can ask it anything—just like Gendo Ikari.
# 1. Install dependencies
pip install -r config/requirements.txt
# 2. Install LiteLLM (required for LLM provider support)
pip install litellm
# 3. Configure API keys
cp config/.env.example config/.env
# Edit config/.env with your keys
# 4. Launch web interface
python src/magi_web_interface.pyOpen http://localhost:7862 in your browser.
You can deploy this app publicly in a few seconds with Gradio:
# From the project root
pip install gradio
gradio deployNotes:
- The deployment uses
app.py(exportsapp = create_magi_interface()). - Dependencies are taken from the root
requirements.txt. - Add your API keys (e.g.,
GROQ_API_KEY) as Secrets in the Space settings:- Go to Space → Settings → Variables and secrets → New secret.
- Name:
GROQ_API_KEY, Value: your key. - Optionally add
OPENAI_API_KEY,SERPER_API_KEY.
- If you plan to use only local Ollama, you don’t need any secret, but Spaces do not provide GPU/CPU for Ollama models, so prefer Groq/OpenAI.
Troubleshooting:
- If you see “Module not found” after deploy, ensure
requirements.txtexists in the project root and includesgradio,crewai[tools],python-dotenv, andlitellm. - Spaces automatically runs the Gradio app; no need to call
launch()insideapp.py.
- Python 3.8+
- API Key (Groq recommended)
Copy config/.env.example to config/.env and add your keys.
python src/magi_web_interface.pypython src/Main_core_002.py- Ask a question (Evangelion, AI, ethics, anything!)
- Choose your LLM provider (Groq, OpenAI, or local Ollama)
- MAGI splits your question into three perspectives:
- 🔬 Melchior: Scientific/logical
- 🛡️ Balthasar: Ethical/emotional
- ⚖️ Casper: Practical/social
- Synthesis: The system merges all three analyses for a complete answer.
Want to run MAGI with local models? Install Ollama and download your favorite model (e.g. llama3, phi3, mistral). Select "Ollama (local)" in the interface and enter the model name.
Fan-made project for educational purposes.
Neon Genesis Evangelion © GAINAX / khara
Code: MIT License
Powered by CrewAI & Gradio
NERV - God's in his heaven, all's right with the world

