A self-hosted AI workspace for chat, agents, research, documents, email, notes, calendar, and local model workflows.
Quick Start Β· Setup Guide Β· Contributing Β· Roadmap
ShadowRealm is a self-hosted AI workspace that runs entirely on your own hardware or server. It connects local and cloud-hosted language models to a full suite of productivity tools β chat, agents, research, documents, email, notes, tasks, and calendar β through a single browser-based interface.
devis the default branch and receives changes first. Switch tomainfor the more curated, stable branch.
git clone https://github.com/ShadowWalkerNC/ShadowRealm.git
cd ShadowRealm
cp .env.example .env
docker compose up -d --buildOpen http://localhost:7000 when the containers are healthy. The first admin password is printed in:
docker compose logs shadowrealmNative installs, GPU configuration, Windows/macOS instructions, HTTPS setup, and full configuration options are in the setup guide.
- Chat + Agents β local and API-hosted models with tools, MCP support, file handling, shell access, skills, and persistent memory.
- Cookbook β hardware-aware model recommendations, automated downloads, and backend serving (Ollama, vLLM, SGLang, llama.cpp, LM Studio).
- Deep Research β multi-step web research with source reading and structured report generation.
- Compare β blind side-by-side model testing and answer synthesis.
- Documents β writing-first editor with AI edits, suggestions, Markdown, HTML, CSV, and syntax highlighting.
- Email β IMAP/SMTP inbox with triage, tags, summaries, reminders, and reply drafts.
- Notes, Tasks + Calendar β reminders, todos, scheduled agent tasks, and CalDAV sync.
- Extras β image gallery and editor, themes, file uploads, web search, presets, sessions, and 2FA.
| Layer | Details |
|---|---|
| Backend | Python (FastAPI / Uvicorn) |
| Frontend | Vanilla JS + CSS (served via static/) |
| AI Backends | Ollama, vLLM, SGLang, llama.cpp, LM Studio, OpenAI, Anthropic, Gemini, Groq, xAI, OpenRouter, DeepSeek |
| Storage | File-based (data/) + ChromaDB for vector search |
| Containerization | Docker + Docker Compose (CPU, NVIDIA GPU, AMD GPU variants) |
| Protocols | IMAP/SMTP (email), CalDAV (calendar), MCP (agent tools), ntfy (notifications) |
- Docker (recommended) β
docker-compose.ymlfor CPU,docker-compose.gpu-nvidia.ymlfor NVIDIA,docker-compose.gpu-amd.ymlfor AMD. - Native Python β Python 3.11+,
pip install -r requirements.txt, run with Uvicorn. - macOS App β
build-macos-app.shbundles a standalone.app. - Windows β
launch-windows.ps1for native launch;build-windows-portable.ps1for a portable build. - Linux Service β
install-service.shregisters a systemd service.
app.py # Main application entry point
launcher.py # Cross-platform launcher
core/ # Core logic and utilities
routes/ # API route handlers
services/ # Background service integrations
integrations/ # External provider adapters
mcp_servers/ # MCP tool server definitions
companion/ # Companion app components
config/ # Configuration schemas
static/ # Frontend assets (JS, CSS, HTML)
docs/ # Setup guides and documentation
tests/ # Test suite
specs/ # Feature and API specifications
Help is welcome. The best entry points are fresh-install smoke testing, provider setup bugs, mobile/editor polish, documentation, and small focused refactors. See CONTRIBUTING.md and ROADMAP.md.
Auto-generated PRs: If you are running an LLM coding agent (Cursor, Claude Code, Copilot, etc.), open an issue describing the problem first rather than submitting a PR directly.
ShadowRealm is a self-hosted workspace with access to powerful local tools. Keep authentication enabled, keep private data out of Git, and do not expose raw model or service ports publicly. See SECURITY.md and the setup guide for deployment hardening guidance.
Current high-priority areas include bug triage, fresh-install smoke testing across platforms, Cookbook reliability improvements, Deep Research model presets by hardware, agent prompt/context optimization for smaller models, and email performance. See ROADMAP.md for the full list.
AGPL-3.0-or-later β see LICENSE and ACKNOWLEDGMENTS.md.
