OpenCodeHub Documentation
Everything you need to know about OpenCodeHub - from getting started to advanced features
Welcome to OpenCodeHub's comprehensive documentation. Whether you're new to the platform or looking to master advanced features, you'll find everything you need here.
🚀 Quick Links
🎯 Getting Started
Install and set up OpenCodeHub in 5 minutes
✨ Features
Learn about stacked PRs, AI review, and more
📚 Tutorials
Hands-on guides to master OpenCodeHub
🔌 API Reference
Integrate with OpenCodeHub programmatically
📖 Documentation Sections
Getting Started
New to OpenCodeHub? Start here!
- Installation Guide - Set up OpenCodeHub (Docker or manual)
- Quick Start - Get up and running in 5 minutes
- Create Your First Repository - Push your first code
Core Features
Learn about OpenCodeHub's powerful features:
Stacked Pull Requests ⭐
Break large changes into reviewable stacks. Ship code faster.AI Code Review 🤖
Get instant feedback from GPT-4 or Claude. Catch bugs automatically.Smart Merge Queue 🔀
Automate merging with stack-aware CI optimization.Developer Metrics 📊
Track velocity, review efficiency, and team performance.Slack Integration 💬
Get actionable notifications in Slack. Review without leaving chat.CI/CD Pipelines ⚙️
GitHub Actions-compatible workflows. Build, test, deploy.
Hands-On Tutorials
Step-by-step guides to master OpenCodeHub:
Your First Stacked PR 🎓
15-minute tutorial: Create your first stack of PRsAI-Powered Code Reviews
Set up and use AI review for your projectsAutomated Deployment
Build a complete CI/CD pipeline from scratch
Guides
Best practices and workflows:
- Team Workflows - Collaborate effectively
- Branch Protection - Secure your branches
- Webhooks - Integrate with external services
- Storage Adapters - Configure S3, GCS, or local storage
API Reference
Integrate OpenCodeHub into your tools:
- REST API - Complete API reference
- Webhooks - Event-driven integrations
- Authentication - API tokens and OAuth
Administration
For system administrators:
- Deployment Guide - Production deployment
- Configuration Reference - All config options
- Security Best Practices - Secure your instance
- Monitoring - Monitor health and performance
Development
Contributing to OpenCodeHub:
- Architecture - System design components
- Database Schema - Database tables
- Contributing - Dev environment setup
- Testing - Running tests
Reference & Support
- CLI Commands - Full CLI reference
- Glossary - Project terminology
- Troubleshooting - Fix common issues
🎯 Popular Topics
Stacked Pull Requests
The #1 feature that makes OpenCodeHub unique:
main branch
└── PR #123: Add database schema ✅
└── PR #124: Add auth service 🔍
└── PR #125: Add login UI ⏳
AI Code Review
Catch bugs before they reach production:
# AI Review finds:
# 🔴 CRITICAL: SQL injection on line 45
# 🟡 WARNING: N+1 query on line 128
# 🔵 INFO: Consider error handling on line 87
Merge Queue
Merge automatically, in the right order:
och queue add 123 124 125
# → Queue handles everything:
# - CI runs
# - Rebasing
# - Merging in order
# - Zero manual work
🔧 Installation
Quick Start (Docker)
# 1. Download docker-compose.yml
curl -O https://raw.githubusercontent.com/swadhinbiswas/OpencodeHub/main/docker-compose.yml
# 2. Configure
cp .env.example .env
# Edit .env with your settings
# 3. Start
docker-compose up -d
# 4. Create admin user
docker-compose exec app bun run scripts/seed-admin.ts
# 5. Open
open http://localhost:3000
Requirements
- Docker: 20.10+ (recommended)
- OR Node.js: 18+ with Bun or npm
- Database: PostgreSQL 14+ or SQLite
- Storage: Local, S3, Google Cloud Storage, or Azure Blob
🎓 Learning Paths
For Developers
- Quick Start - Get familiar with the platform
- Your First Stack - Learn stacked PRs
- Team Workflows - Collaborate effectively
For Teams
- Installation - Set up your instance
- Team Workflows - Define your process
- Branch Protection - Secure your code
- CI/CD Setup - Automate everything
For Administrators
- Deployment Guide - Production setup
- Security Best Practices - Secure your instance
- Monitoring - Track health
- Configuration - Tune performance
💬 Community & Support
Get Help
- 📖 Documentation - You're here!
- 💬 Discord - Real-time chat, community support
- 🐛 GitHub Issues - Bug reports, feature requests
- 📧 Email Support - Direct support
Contributing
We welcome contributions!
- Contributing Guide - How to contribute
- Good First Issues - Easy issues for new contributors
- Roadmap - What's coming next
📝 Recent Updates
December 2024
- ✨ Added AI code review with GPT-4 and Claude support
- 🚀 Improved merge queue performance (60% faster)
- 📊 New developer metrics dashboard
- 🔧 100+ bug fixes and improvements
🌟 Why OpenCodeHub?
| Feature | GitHub | GitLab | OpenCodeHub |
|---|---|---|---|
| Stacked PRs | ❌ | ❌ | ✅ Native support |
| AI Code Review | ⚠️ Copilot only | ❌ | ✅ GPT-4 & Claude |
| Smart Merge Queue | ⚠️ Basic | ⚠️ Basic | ✅ Stack-aware |
| Self-Hosted | ❌ | ✅ Complex | ✅ Simple |
| Cost | $$$ | $$$ | Free |
🔍 Search Documentation
Can't find what you're looking for?
- Use the search bar above
- Check the FAQ
- Ask in Discord
- Browse GitHub Discussions
📄 License
OpenCodeHub is open source under the MIT License.
Ready to get started?