---
title: "Discussion on \"Setting Up Your Self-Hosted AI Stack - Part 1: Building the foundation with Open WebUI, Ollama, and Postgres\" | Hashnode"
description: "Discussion on \"Setting Up Your Self-Hosted AI Stack - Part 1: Building the foundation with Open WebUI, Ollama, and Postgres\". Build your own ChatGPT alternative running on your machine. No cloud, no data leaks, pure self-hosted AI power."
url: "https://hashnode.com/posts/self-hosted-ai-stack-part-1/688fa712245554373de10e3d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setting Up Your Self-Hosted AI Stack - Part 1: Building the foundation with Open WebUI, Ollama, and Postgres](https://triedandtestedbuilds.com/self-hosted-ai-stack-part-1?utm_source=hashnode&utm_medium=feed)

Build your own ChatGPT alternative running on your machine. No cloud, no data leaks, pure self-hosted AI power.

Aug 3, 2025 · 11 min read · triedandtestedbuilds.com  
Updated Mar 11  
Read the article

-   [#self-hosted-ai](https://hashnode.com/tag/self-hosted-ai)
-   [#self-hosted](https://hashnode.com/tag/self-hosted)
-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#open-webui](https://hashnode.com/tag/open-webui)
-   [#ollama](https://hashnode.com/tag/ollama)
-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[Farzam Mohammadi](https://hashnode.com/@Farzam)

@Farzam · The moon

  
[View profile](https://hashnode.com/@Farzam)

Tech Adventures & Bug Battles: Sharing my journey of big wins and hilarious tech misadventures to help guide yours!

I'm Farzam, a Software Engineer specializing in backend development. My mission: Collaborate, share proven tricks, and help you avoid the pricey surprises I've encountered along the way.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
