Skip to content

jbrinkw/luna-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

181 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Luna Hub

Your private AI platform for managing AI tools and self-hosted applications

๐ŸŒ Live Demo | ๐Ÿ“š Documentation

Documentation License GitHub


A Note from Jeremy, the Developer:

Luna Hub is a platform for hosting and managing all of your AI tools and self-hosted applications. I originally started this project as a way to host a custom tool set for my Home Assistant Voice Preview, which is basically just a self-hosted Alexa. As time went on I realized this could be useful to a lot of people, so I built it out into a platform that would be easy for anyone to use.

Please let me know if you have any questions or feature requests at jeremy@onthebrink.ai. I hope you enjoy it as much as I do!


What is Luna Hub?

Luna Hub is your private, self-hosted platform for managing AI tools and local applications. It puts you in complete control of your AI assistant infrastructureโ€”running entirely on your hardware, whether that's a home server, cloud VM, or always-on computer.

Think of it as mission control for your personal AI ecosystemโ€”install tools, deploy apps, and connect them to AI agents through natural language.

Key Features

  • ๐ŸŽฏ OpenAI-Compatible Agent API - Build custom AI applications using any OpenAI SDK
  • ๐Ÿ”Œ MCP (Model Context Protocol) - Connect your tools to Claude Desktop and other MCP clients
  • ๐Ÿงฉ Extensible Architecture - Install AI tools from the built-in store or create your own
  • ๐Ÿณ Docker App Management - One-click deployment of self-hosted applications
  • ๐Ÿ” GitHub OAuth - Secure authentication with optional username restrictions
  • ๐ŸŒ Unified Web Interface - Manage extensions, apps, tools, and configuration from a single dashboard
  • ๐Ÿ”’ Complete Privacy - All processing happens on your hardware

Quick Start

Prerequisites

  • Linux operating system (Debian, Ubuntu, or compatible)
  • 2+ GB RAM (4+ GB recommended)
  • 20+ GB free disk space
  • Root/sudo access

Installation

  1. Clone the repository:

    git clone https://github.com/jbrinkw/luna-hub.git
    cd luna-hub
  2. Run the installer:

    sudo ./install.sh
  3. Choose your deployment mode:

    • Ngrok: Easiest for home networks (requires ngrok account)
    • Nip.io: Dynamic DNS for cloud VMs (requires open ports 80/443)
    • Custom domain: Production setup with your own domain
  4. Set up GitHub OAuth:

  5. Access Luna Hub:

    • Open your browser to your configured domain
    • Log in with GitHub
    • Start installing extensions and apps!

๐Ÿ“– Full installation guide: Installation Documentation

What Can You Build?

๐Ÿณ Kitchen & Nutrition Assistant

Install ChefByte and Grocy to create an AI-powered kitchen manager:

  • "What's in my pantry?" โ†’ Get real-time inventory with expiration dates
  • "Add milk to my shopping list" โ†’ Voice-controlled shopping lists
  • "What can I cook tonight?" โ†’ Recipe suggestions based on current inventory
  • "Log my breakfast: 2 eggs and toast" โ†’ Track nutrition and calories

๐Ÿ  Smart Home Voice Control

Install Home Assistant extension to control your entire home:

  • "Turn on the living room lights" โ†’ Direct device control
  • "Is the garage door open?" โ†’ Real-time status queries
  • "Set movie mode" โ†’ Trigger multi-device scenes
  • Build your own private Alexa alternative

๐Ÿค– Custom AI Agents

Create specialized agents with filtered tool access:

  • Smart home assistant: Only home automation tools
  • Meal planning assistant: Only kitchen and recipe tools
  • Research assistant: Only web search and documentation

Architecture

Luna Hub is built on a modular architecture:

Components

  • Extensions: AI tools (Python functions) that agents can call
  • Apps/Services: Self-hosted Docker applications (Grocy, PostgreSQL, etc.)
  • Agent API: OpenAI-compatible API server for custom applications
  • MCP Servers: Industry-standard protocol for Claude Desktop integration
  • Hub UI: React-based web interface for management

Technology Stack

  • Backend: Python (FastAPI), LangChain, FastMCP
  • Frontend: React, Vite, TailwindCSS
  • Proxy: Caddy (automatic HTTPS)
  • Containers: Docker, Docker Compose
  • Auth: GitHub OAuth
  • Database: PostgreSQL (optional, for session persistence)

Documentation

๐Ÿ“š Full documentation available at: https://docs.lunahub.dev

Featured Extensions

ChefByte (Kitchen Management)

Connects to Grocy for AI-powered household management:

  • Inventory tracking with expiration dates
  • Smart shopping lists
  • Meal planning and recipe management
  • Nutrition tracking and macros
  • Price tracking for groceries

Home Assistant

Control your smart home through natural language:

  • Device control (lights, switches, thermostats)
  • Status queries for all devices
  • Media control (TVs, speakers)
  • Complex automation and scenes

Automation Memory

Built-in memory and task scheduling:

  • Persistent conversation memory
  • Scheduled task execution
  • Workflow automation
  • Cross-session context retention

Example Use Cases

Morning Routine

"Good morning, what's on my schedule?"

โ†’ Agent checks calendar, weather, and suggests breakfast based on pantry inventory

Cooking Assistant

"I want to make dinner with chicken and rice"

โ†’ Agent searches recipes, checks ingredients, adds missing items to shopping list

Smart Home Automation

"I'm going to bed"

โ†’ Agent locks doors, turns off lights, sets thermostat, and arms security

Grocery Management

"What groceries do I need this week?"

โ†’ Agent analyzes meal plan, checks inventory, generates shopping list with costs

Privacy & Control

Unlike commercial AI assistants, Luna Hub offers:

  • โœ… Complete data sovereignty - All processing on your hardware
  • โœ… No cloud dependencies - Core functionality works offline (LLM API calls excepted)
  • โœ… Open source - Audit, modify, and contribute
  • โœ… Self-hostable - Run anywhere Docker runs
  • โœ… Conversation privacy - Queries stay on your network
  • โœ… Data control - You decide what's stored and for how long

Contributing

Contributions are welcome! Please feel free to:

  • Report bugs or request features via GitHub Issues
  • Submit pull requests for improvements
  • Share your custom extensions with the community
  • Improve documentation

Support

License

MIT License - See LICENSE file for details


Luna Hub is mission control for your personal AI ecosystemโ€”bringing together tools, apps, and AI agents on your infrastructure, under your control.

About

Private AI assistant hub with MCP integration, custom extensions, and self-hosted apps

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors