Self-hosted Git platform with stacked PRs, merge queue, CI/CD, and AI code review. Built for teams that want speed and control.
git clone https://github.com/swadhinbiswas/OpencodeHub.git
cd OpenCodeHub
cp .env.example .env
docker compose up -d
docker compose exec app bun run scripts/seed-admin.tsOpen http://localhost:4321 and create your admin account.
Requirements: Docker, or Node.js 20+ with PostgreSQL.
Git Hosting — HTTP smart protocol + SSH push/pull. Forks, mirroring, LFS, wiki.
Stacked PRs — Break large changes into dependent branches. Each PR builds on the previous. Review in order, merge in order.
Merge Queue — Stack-aware merge ordering with speculative CI builds. main never breaks.
CI/CD — GitHub Actions-compatible workflows. Docker-based runners. Artifacts, secrets, matrix builds.
AI Code Review — GPT-4, Claude, Gemini, Groq, Ollama, and 5+ more providers. Catches bugs, security issues, and style problems automatically.
Issues & Projects — Labels, milestones, custom fields, kanban boards.
175+ API Endpoints — REST + GraphQL. Full programmatic access to everything.
CLI — och command line tool for stack workflows, reviews, and repository management.
git clone https://github.com/swadhinbiswas/OpencodeHub.git
cd OpenCodeHub
cp .env.example .env
docker compose up -d
docker compose exec app bun run scripts/seed-admin.tsSee Render Deployment Guide. Uses free PostgreSQL + Upstash Redis.
| Platform | Guide |
|---|---|
| Docker Compose | Deployment Guide |
| NAS (Synology/TrueNAS) | NAS Guide |
| Kubernetes | K8s Guide |
| Cloudflare Tunnel | Cloudflare Guide |
| Free Tier Options | Free Deployment |
| Layer | Tech |
|---|---|
| Framework | Astro 4.x SSR + React 18 |
| Database | PostgreSQL, SQLite, Turso (Drizzle ORM) |
| Auth | JWT, OAuth, 2FA/TOTP, SSO/SAML |
| CI/CD | Docker-based runners, GitHub Actions syntax |
| Storage | Local, S3, MinIO, R2, or any S3-compatible |
| CLI | Commander.js (npm i -g opencodehub-cli) |
Full docs at docs.opencodehub.space:
npm install -g opencodehub-cli
och auth login --url http://localhost:4321
och stack create feature/auth
och stack submit
och focus- Fork the repo
- Create a branch
npm install && npm run db:push && npm run dev- Run tests:
npm run test - Open a PR
See CONTRIBUTING.md for details.
MIT