================================================================
____ ___ ____ _
/ ___| / _ \ | _ \ / \
| | | | | || |_) | / _ \
| |___ | |_| || _ < / ___ \
\____| \___/ |_| \_\/_/ \_\
Cognitive Operations & Reasoning Assistant
================================================================
Version: 3.0.0
Unity AI Lab | https://www.unityailab.com
================================================================
Make sure you have Python 3.13 (3.12 works):
python --versionIf not installed: Download Python
The launcher does this for you (windows\start.bat / linux/start.sh / CORA.bat). By hand:
py -3.13 -m venv .venv
.venv\Scripts\pip install -r requirements.txtwinget install Ollama.OllamaOr download from: ollama.com
# The launcher pulls the configured models (config/config.json `models`):
# unity-brain - her brain: chat, tools, vision (built in the lab's Backrooms repo, models/unity-brain)
# huihui_ai/qwen3-abliterated:8b - fallback brain
ollama pull huihui_ai/qwen3-abliterated:8bDownload from: https://sourceforge.net/projects/mpv-player-windows/files/64bit/
Extract to ./tools/ folder - CORA auto-detects mpv.exe (any subfolder works).
windows\start.bat (or linux/start.sh, or CORA.bat)
Stop everything she started with windows\stop.bat / linux/stop.sh.
CORA works great with NO API keys - Ollama runs locally for free! But these optional keys enable extra features:
Pictures render on CORA's own image engine (see Image Engine Setup below): local Stable Diffusion, nothing hosted, no account.
- Go to: https://github.com/settings/tokens
- Click "Generate new token (classic)"
- Name it "CORA" and select scopes:
repo,user - Copy the token (starts with
ghp_) - Add to your
.envfile:GITHUB_TOKEN=ghp_your_token_here
- Go to: https://openweathermap.org/api
- Sign up for free account
- Go to "API Keys" tab
- Copy your API key
- Add to your
.envfile:WEATHER_API_KEY=your_key_here
- Go to: https://newsapi.org/
- Click "Get API Key"
- Sign up for free
- Copy your API key
- Add to your
.envfile:NEWS_API_KEY=your_key_here
- Copy
env.exampleto.env:copy env.example .env
- Open
.envin a text editor - Replace the placeholder values with your actual keys
- Save the file
Note: The .env file contains secrets - never commit it to git!
See env.example for detailed instructions on each API key.
| Component | Minimum | Recommended |
|---|---|---|
| OS | Windows 10 | Windows 11 |
| Python | 3.12 | 3.13 |
| RAM | 8 GB | 16 GB |
| GPU | None | NVIDIA (CUDA) |
| VRAM | 8 GB | 16 GB (brain + voice + whisper together) |
| Storage | 5 GB | 10 GB |
| mpv | Optional | For YouTube playback |
Core packages installed via requirements.txt:
| Package | Purpose |
|---|---|
| customtkinter | Modern GUI framework |
| ollama | AI model integration |
| (sidecar) | unity-voice-v2, her own voice, runs as a separate process |
| soundfile | Audio processing |
| sounddevice | Audio playback |
| psutil | System monitoring |
| opencv-python | Webcam/vision |
| pillow | Image processing |
| requests | API calls |
| faster-whisper | Local GPU speech recognition |
| openwakeword | Optional wake-word model |
Install all:
pip install -r requirements.txtWindows (winget):
winget install Ollama.OllamaWindows (manual):
- Go to ollama.com
- Download the Windows installer
- Run the installer
- Restart your terminal
Ollama runs as a background service. Start it:
ollama serveOr it starts automatically when you pull/run a model.
Required models:
ollama create unity-brain -f <Backrooms>/models/unity-brain/Modelfile # her brain (5.3 GB + 0.9 GB vision)
ollama pull huihui_ai/qwen3-abliterated:8b # fallback brainOptional models: any Ollama model works as models.primary in config/config.json; models with a tools template get native tool calling, others get the JSON fallback protocol.
Check if Ollama is running:
ollama listShould show your downloaded models.
CORA speaks with unity-voice-v2, Unity AI Lab's own trained voice, served as a sidecar on 127.0.0.1:5123 (tts.unity_voice in config/config.json: model dir, Python with torch + misaki, autostart). The launcher starts it. There is no other voice and no fallback voice.
Voice input is faster-whisper on the GPU (stt.whisper_model in config/config.json, default base.en; the model downloads on first use). Vosk is only a fallback engine if faster-whisper cannot load.
CORA paints with her own engine: services/image_sidecar.py, local Stable Diffusion with the realistic-vision-v51 checkpoint (the same rig Unity's stream renders with) through diffusers. Text to image, img2img edits, inpainting, and webcam recreations with the face kept (IP-Adapter Plus Face).
What it needs (config/config.json image block):
| Key | Meaning |
|---|---|
checkpoint |
path to realistic-vision-v51.safetensors (2.1 GB, SD 1.5 family) |
python |
an interpreter with torch + diffusers + transformers + accelerate; null = auto-detect (the voice sidecar's interpreter is tried first, then C:\Program Files\Python310\python.exe); or set CORA_IMAGE_PYTHON |
device |
auto (GPU when there is one), cuda, cpu |
offload |
true keeps the model in RAM and streams layers to the GPU (about 3 GB of VRAM while rendering, so her brain and voice keep their room) |
url |
http://127.0.0.1:5124 |
width / height / steps |
defaults for a picture (768x768; steps null = 25 on GPU, 12 on CPU) |
save_dir |
where pictures land (data/images) |
selfie_look / selfie_negative |
who she is in pictures of herself (girl next door with a soft emo edge); every selfie leads with this and bans the negative. Tune the words here. |
The engine starts on the first picture and the checkpoint loads then (about a second on an RTX 4070 Ti; a picture takes 3-5 s on the GPU, 1-2 minutes on a CPU). The face adapter weights (h94/IP-Adapter) download once into the Hugging Face cache. Health: http://127.0.0.1:5124/health; log: data/image-sidecar.log. The stop scripts end the engine when CORA started it, and every normal exit unloads it with her brain.
Every picture opens in her viewer (ui/image_viewer.py: Save As, Open folder, Copy path); "save that to my desktop" calls her save_image tool.
For faster AI responses with NVIDIA GPU:
- Install NVIDIA drivers (latest)
- The venv brings the CUDA 12 runtime libraries whisper needs (
nvidia-cublas-cu12,nvidia-cudnn-cu12)
CORA auto-detects GPU via nvidia-smi:
nvidia-smiYou should see your GPU listed with VRAM stats.
windows\start.bat (Linux: linux/start.sh)
or, inside the venv, python src/boot_sequence.py.
- Full cyberpunk visual display
- 10-phase diagnostic with TTS
- Live system stats
- Dynamic AI responses
python src/gui_launcher.pypython cora.pypython src/boot_sequence.py --quickServed locally with her voice and the configured models:
python services/stats_server.py # then open http://127.0.0.1:11435/Opened from anywhere else the page is text only against a local Ollama.
| File | Purpose |
|---|---|
config/config.json |
The one config: models, ollama, tts.unity_voice, stt, camera, boot, assistant, web |
config/system_prompt.txt |
Her persona (also served to the web page) |
config/voice_commands.json |
Wake words, voice command aliases |
config/config.json (excerpt):
{
"models": {"primary": "unity-brain", "vision": "unity-brain", "fallback": "huihui_ai/qwen3-abliterated:8b"},
"ollama": {"api_url": "http://127.0.0.1:11434", "num_ctx": 16384, "keep_alive": "30m"},
"tts": {"enabled": true, "engine": "unity-voice-v2", "unity_voice": {"url": "http://127.0.0.1:5123", "autostart": true}},
"stt": {"engine": "faster-whisper", "whisper_model": "base.en"},
"camera": {"index": "auto", "backend": "auto", "open_timeout": 4.0},
"boot": {"demo_phases": false, "popups": false}
}Check Python version:
python --versionMust be 3.12 or 3.13
Check dependencies:
pip install -r requirements.txtCheck Ollama is running:
ollama listStart Ollama:
ollama servePull models:
python scripts/bootstrap.py # pulls whatever config/config.json namesCheck her voice:
curl http://127.0.0.1:5123/health # the sidecar; its log is data/voice-sidecar.logTest TTS:
python -c "from voice.tts import speak; speak('Hello')"Check NVIDIA drivers:
nvidia-smiUpdate drivers: nvidia.com/drivers
Check her image engine:
curl http://127.0.0.1:5124/health # the sidecar; its log is data/image-sidecar.log
python cora_tools/image_gen.py # prints the checkpoint path, finds the torch interpreter, starts the engineA missing checkpoint or an interpreter without torch + diffusers is the usual cause (config/config.json image.checkpoint / image.python).
Check OpenCV:
pip install opencv-pythonTest webcam:
python services/camera.py # probes every index/backend with a timeoutAfter installation:
C.O.R.A/
├── src/
│ ├── boot_sequence.py # Main boot with visual display
│ ├── cora.py # CLI application
│ └── gui_launcher.py # GUI launcher
├── ui/
│ ├── boot_display.py # Visual boot display
│ ├── app.py # Main GUI
│ ├── image_viewer.py # Picture window (Save As, Open folder)
│ └── panels.py # GUI panels
├── voice/
│ ├── tts.py # unity-voice-v2 client
│ ├── stt.py # faster-whisper
│ └── wake_word.py # Wake word detection
├── ai/
│ ├── dispatcher.py # the conversation loop
│ ├── tools_registry.py # 116 tools
│ ├── ollama.py # Ollama client
│ └── settings.py # models, URLs, options
├── cora_tools/ # Python tool modules (20+)
├── tools/ # Downloaded binaries (mpv, ffmpeg)
├── services/ # Camera, image engine sidecar, stats server, weather, location
├── config/
│ └── config.json # Configuration
├── data/
│ ├── images/ # Generated images
│ └── camera/ # Camera captures
└── requirements.txt # Python dependencies
Note: cora_tools/ = Python code, tools/ = binaries only
git pull origin mainpip install -r requirements.txt --upgradepython scripts/bootstrap.py- Website: https://www.unityailab.com
- GitHub: https://github.com/Unity-Lab-AI
- Email: unityailabcontact@gmail.com
C.O.R.A v3.0.0 - Setup Guide Unity AI Lab - Hackall360, Sponge, GFourteen, Alfreddo