curl -sL https://raw.githubusercontent.com/DXN1-termux/aegis/master/install.sh | bash && cd ~/aegis && bash run.shOpen β http://localhost:5000 π
AEGIS is the world's first fully open-source Hospital AI Operating System. It combines a Claude-perfect chat interface with 23+ clinical tools, BYOK multi-provider AI, drug interaction checking, patient management, and real-time OSINT β all in a single, beautiful, zero-config package.
Real conversations with GPT-4o, Claude Sonnet 4, Gemini 2.0 Flash, DeepSeek, Grok β or all five at once. Bring Your Own Keys (BYOK) β zero data leaves your network.
| Provider | Best Model | Speed | Quality |
|---|---|---|---|
| π΅ OpenAI | GPT-4o | β‘β‘β‘ | βββββ |
| π€ Anthropic | Claude Sonnet 4 | β‘β‘β‘ | βββββ |
| π΄ Google | Gemini 2.0 Flash | β‘β‘β‘β‘β‘ | ββββ |
| π’ DeepSeek | DeepSeek Chat | β‘β‘β‘β‘ | ββββ |
| β« xAI | Grok Beta | β‘β‘β‘ | ββββ |
| Category | Tools |
|---|---|
| π Drug Safety | Interaction checker, dosage calculator, pregnancy category lookup |
| π Calculators | BMI, eGFR, CHA2DS2-VASc, CURB-65, body surface area |
| π¬ Lab Analysis | Complete blood count interpretation, metabolic panel, ABG analysis |
| β€οΈ Vitals | Heart rate, blood pressure, temperature, respiratory rate interpretation |
| 𧬠Diagnostics | Differential diagnosis generator, symptom checker |
| π OSINT | Drug recalls, outbreak tracking, clinical trials, supply chain monitoring |
| πΊοΈ Navigation | Move between sections via natural language ("Go to patients") |
| π System | File search, grep, calculator, web search |
- Dark clinical theme with subtle grid background
- Mobile sidebar β swipe + Cmd+B to toggle
- Responsive β phones, tablets, desktops all look premium
- OS auto-detection β Android, iOS, Termux, Desktop, Linux
- Smooth animations β every transition feels buttery
- PWA ready β install as app on your phone
AEGIS improves itself every 5 minutes:
- π€ Runs clinical tests automatically
- π Expands drug database with new interactions
- π Auto-fixes dependency issues
- π Generates improvement changelogs
- π Auto-pushes updates to GitHub
- π₯ Self-heals if server crashes
curl -sL https://raw.githubusercontent.com/DXN1-termux/aegis/master/install.sh | bash
cd ~/aegis && bash run.shgit clone https://github.com/DXN1-termux/aegis.git
cd aegis
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -m uvicorn backend.app.main:app --host 0.0.0.0 --port 5000 --reloaddocker pull ghcr.io/DXN1-termux/aegis:latest
docker run -p 5000:5000 ghcr.io/DXN1-termux/aegis:latestpkg update && pkg upgrade -y
pkg install python git curl -y
curl -sL https://raw.githubusercontent.com/DXN1-termux/aegis/master/install.sh | bash
cd ~/aegis && bash run.sh
# Share with: termux-open-url http://localhost:5000aegis/
βββ backend/
β βββ app/
β β βββ main.py # FastAPI server π
β β βββ chat.py # Multi-provider AI engine π€
β β βββ config.py # 5-tier config fallback βοΈ
β β βββ database.py # SQLite + 3-tier fallback πΎ
β β βββ crypto.py # Encrypted key storage π
β β βββ auto_improve.py # Heartbeat improvement β€οΈ
β β βββ chat_tools/ # 23 clinical tools π§
β β βββ routes/ # 16 API + WebSocket π‘
β β βββ plugins/ # Plugin system π
β β βββ osint/ # OSINT modules π
β β βββ safety/ # Safety protocols π‘οΈ
β β βββ surgery/ # Surgical checklists π₯
β βββ tests/ # 60+ tests β
β βββ seed_data/ # WHO medicines π₯
βββ app/
β βββ index.html # Claude SPA π¨
β βββ css/ # Premium theme system β¨
β βββ js/ # Interactive modules π₯
β βββ dashboard/ etc. # Module pages π
βββ assets/ # SVGs & banners πΌοΈ
βββ install.sh # One-click installer π¦
βββ run.sh # Auto-port launcher π
βββ heartbeat.sh # Every 5-min improvement β€οΈ
βββ Dockerfile # π³ Docker
βββ docker-compose.yml # Multi-service setup
POST /api/chat
Content-Type: application/json
{
"message": "Check warfarin and aspirin interaction",
"provider": "anthropic"
}const ws = new WebSocket("ws://localhost:5000/ws/chat");
ws.send(JSON.stringify({
type: "chat",
message: "Analyze this patient case...",
provider: "openai"
}));
ws.onmessage = (e) => console.log(JSON.parse(e.data).content);GET /api/health
β {"status":"ok","version":"2.0.0","service":"AEGIS"}| Method | Path | Description |
|---|---|---|
| GET | /api/health |
System health |
| POST | /api/chat |
AI chat message |
| GET | /api/modules |
Available modules |
| GET | /api/patients |
Patient records |
| GET | /api/drugs |
Drug database |
| POST | /api/keys |
Save API key |
| POST | /api/heartbeat/improve |
Trigger improvement |
| WS | /ws/chat |
Real-time streaming |
import requests
r = requests.post("http://localhost:5000/api/chat", json={
"message": "What's the amoxicillin dosage for a 5-year-old?",
"provider": "openai"
})
print(r.json()["content"])# Terminal chat
curl -X POST http://localhost:5000/api/chat \
-H "Content-Type: application/json" \
-d '{"message":"Calculate BMI for 175cm, 80kg"}'AEGIS needs YOU to become the greatest healthcare AI platform in existence.
- β Star the repo β visibility saves lives
- π Report bugs β every fix helps a hospital
- π‘ Suggest features β what would save more lives?
- π§ Submit PRs β code changes welcome
- π Translate β Russian, Spanish, Arabic, French
- π₯ Test in real hospitals β real-world feedback
MIT License β see LICENSE
Built by DXN1 β a developer who believes healthcare AI should be free and open to everyone.
"Every hospital, clinic, and rural health center deserves world-class AI β regardless of budget or location."
- π Star this repo β β it literally helps patients
- π Share with every doctor you know
- π¦ Follow for updates
- π¬ Join the community discussions
AEGIS β Saving Lives, One Commit at a Time
π Report Bug Β·
π¬ Join Discussion Β·
π‘ Request Feature