---
title: OpenCodeHub Documentation
description: The open-source, AI-native Git server with Stacked PRs and Smart Merge Queues.
hero:
title: OpenCodeHub
tagline: The fully self-hosted GitHub alternative with SSH hosting, CI/CD pipelines, and a modern developer experience.
---
import { Card, CardGrid } from "@astrojs/starlight/components";
## Why OpenCodeHub?
Break large features into small, dependent steps. Ship faster without the
review bottleneck.
Built-in LLM agents (GPT-4/Claude) review your code for bugs and security
issues automatically.
Automate your merging strategy. Ensure `main` never breaks with speculative
CI runs.
Keep your code on your servers. No "per-seat" pricing. No vendor lock-in.
## Architecture Overview

OpenCodeHub is built on a modern, scalable architecture designed for performance and flexibility.
## Deploy Anywhere
The recommended way to deploy. Full Docker Compose setup with PostgreSQL and
Redis. [Deploy with Docker →](/administration/deploy-docker/)
Rootless containers with native systemd integration. Ideal for
security-focused deployments. [Deploy with Podman
→](/administration/deploy-podman/)
Use Cloudflare Tunnel + R2 for zero-port exposure and S3-compatible storage.
[Deploy with Cloudflare →](/administration/deploy-cloudflare/)
Production-ready reverse proxy config with SSL and Git-specific
optimizations. [Configure Nginx →](/administration/deploy-nginx/)
## Tech Stack
| Layer | Technology |
| ------------ | ------------------------------------- |
| **Frontend** | Astro, React, Tailwind CSS, shadcn/ui |
| **Backend** | Node.js, Hono (API), simple-git |
| **Database** | PostgreSQL, Turso (LibSQL), SQLite |
| **Storage** | Local disk, S3, R2, Google Drive |
| **Auth** | JWT, 2FA, OAuth (GitHub, Google) |
| **CI/CD** | GitHub Actions compatible runners |
## Quick Links
Get OpenCodeHub running in minutes with Docker or Node.js. [Read the guide
→](/getting-started/installation/)
Learn the `och` CLI commands for managing stacks and repositories. [View
commands →](/reference/cli-commands/)
Integrate with OpenCodeHub using the REST API. [Explore the API
→](/api/rest-api/)
Help make OpenCodeHub better. Set up your local dev environment. [Start
contributing →](/development/contributing/)
## Storage Options
:::tip[Performance Recommendation]
For best performance, use **local SSD storage** in production. Object storage (S3/R2) introduces latency. See [Storage Adapters](/guides/storage-adapters/#️-performance-considerations) for details.
:::
| Storage Type | Performance | Cost | Best For |
| ---------------- | ----------- | ---- | ----------------------- |
| **Local SSD** | ⚡ Fastest | $$ | Production, self-hosted |
| **S3/R2** | 🐢 Slow | $ | Backup, serverless |
| **Google Drive** | 🐢 Slow | Free | Personal projects |