Self-Hosted AI Stack An open-source project by Lin Song

Local first · Private by default

Build your AI stack on infrastructure you control.

Run local AI models, chat with your documents, and transcribe or generate speech. Deploy with Docker Compose on your own server, with optional HTTPS and NVIDIA GPU acceleration.

View on GitHub

Open source · MIT licensed

Get the book on Amazon

The Self-Hosted AI Builder's Guide Practical guidance for deployment, security, backups, and everyday operation.

What you can run

Before you deploy

Is this a hosted AI service?

You deploy the software on your own Linux server, locally or in the cloud. This website provides project information and resources.

Do I need an NVIDIA GPU?

CPU configurations are available. NVIDIA GPU acceleration is optional; memory and performance requirements depend on your services and models.

Can I run only some services?

Yes. Use a preconfigured lightweight stack or customize the Compose configuration. See the lightweight-stack documentation for the available options and setup instructions.

Is the software free?

The stack's configuration is MIT licensed. Included services and models retain their own licenses. Hardware, cloud hosting, and any external providers may involve costs.

Ready to build?

Deploy the open-source stack

See the architecture, included services, lightweight configurations, security defaults, and deployment instructions on GitHub.

Explore the repository

Still deciding?

Check your local AI readiness

Use the free guide to assess your computer, try one small model, and compare local, cloud, managed, and hybrid approaches before spending.

Get the free readiness guide