> 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](getting-started/installation.md) — Install and set up OpenCodeHub
- [Features](features/stacked-prs.md) — Stacked PRs, AI review, merge queue, and more
- [Tutorials](tutorials/your-first-stack.md) — Hands-on guides
- [API Reference](api/rest-api.md) — Integrate programmatically
- [CLI Reference](reference/cli-commands.md) — Command-line tool
---
## Documentation Sections
### Getting Started
New to OpenCodeHub? Start here!
- **[Installation Guide](getting-started/installation.md)** — Set up OpenCodeHub (Docker or manual)
- **[Quick Start](getting-started/quick-start.md)** — Get up and running in 5 minutes
- **[Create Your First Repository](getting-started/first-repository.md)** — Push your first code
### Core Features
Learn about OpenCodeHub's powerful features:
- **[Stacked Pull Requests](features/stacked-prs.md)**
Break large changes into reviewable stacks. Ship code faster.
- **[AI Code Review](features/ai-review.md)**
Get instant feedback from GPT-4 or Claude. Catch bugs automatically.
- **[Smart Merge Queue](features/merge-queue.md)**
Automate merging with stack-aware CI optimization.
- **[CI/CD Pipelines](features/ci-cd.md)**
GitHub Actions-compatible workflows. Build, test, deploy.
- **[Developer Metrics](features/developer-metrics.md)**
Track velocity, review efficiency, and team performance.
- **[Slack Integration](features/slack-integration.md)**
Get actionable notifications in Slack. Review without leaving chat.
### Hands-On Tutorials
Step-by-step guides to master OpenCodeHub:
- **[Your First Stacked PR](tutorials/your-first-stack.md)**
15-minute tutorial: Create your first stack of PRs
- **[AI-Powered Code Reviews](tutorials/ai-powered-reviews.md)**
Set up and use AI review for your projects
- **[Automated Deployment](tutorials/automated-deployment.md)**
Build a complete CI/CD pipeline from scratch
### Guides
Best practices and workflows:
- **[Team Workflows](guides/team-workflows.md)** — Collaborate effectively
- **[Branch Protection](guides/branch-protection.md)** — Secure your branches
- **[Webhooks](guides/webhooks.md)** — Integrate with external services
- **[Storage Adapters](guides/storage-adapters.md)** — Configure S3, GCS, or local storage
- **[CircleCI Integration](guides/circleci-integration.md)** — Use CircleCI as your CI/CD provider
- **[Run Workers on CircleCI](administration/circleci-worker.md)** — Background workers via CircleCI
### API Reference
Integrate OpenCodeHub into your tools:
- **[REST API](api/rest-api.md)** — Complete API reference (140+ endpoints)
- **[Authentication](api/authentication.md)** — API tokens, PATs, OAuth, and SSH
- **[Webhooks](api/webhooks-api.md)** — Event-driven integrations
### Administration
For system administrators:
- **[Deployment Guide](administration/deployment.md)** — Production deployment
- **[Deploy on Coolify](administration/deploy-coolify.md)** — Self-hosted PaaS deployment
- **[Deploy on CyberPanel](administration/deploy-cyberpanel.md)** — OpenLiteSpeed hosting panel
- **[Deploy on cPanel](administration/deploy-cpanel.md)** — Shared hosting deployment
- **[Deploy on NAS](administration/deploy-nas.md)** — Synology, TrueNAS, QNAP
- **[Configuration Reference](administration/configuration.md)** — All config options
- **[Security Best Practices](administration/security.md)** — Secure your instance
- **[Monitoring](administration/monitoring.md)** — Monitor health and performance
- **[Incident Runbook](administration/incident-runbook.md)** — Respond to incidents
- **[Secret Rotation](administration/secret-rotation.md)** — Rotate credentials safely
### Development
Contributing to OpenCodeHub:
- **[Architecture](development/architecture.md)** — System design and components
- **[Database Schema](development/database-schema.md)** — Database tables and relationships
- **[Testing](development/testing.md)** — Running and writing tests
- **[Contributing](development/contributing.md)** — Dev environment setup
### Reference & Support
- **[CLI Commands](reference/cli-commands.md)** — Full CLI reference
- **[Glossary](reference/glossary.md)** — Project terminology
- **[Troubleshooting](support/troubleshooting.md)** — 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
```
- [What are Stacked PRs?](features/stacked-prs.md#why-stacked-prs)
- [Create your first stack](tutorials/your-first-stack.md)
- [CLI reference](reference/cli-commands.md#stack)
### AI Code Review
Catch bugs before they reach production:
- [Setup AI review](features/ai-review.md#setup)
- [Understanding output](features/ai-review.md#understanding-review-output)
- [Cost optimization](features/ai-review.md#cost-considerations)
### Merge Queue
Merge automatically, in the right order:
```bash
och queue add 123 124 125
# Queue handles everything:
# - CI runs
# - Rebasing
# - Merging in order
# - Zero manual work
```
- [How it works](features/merge-queue.md#how-it-works)
- [Queue configuration](features/merge-queue.md#configuration)
- [Best practices](features/merge-queue.md#best-practices)
---
## Installation
### Quick Start (Docker)
```bash
# 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:4321
```
[Full installation guide](getting-started/installation.md)
### Requirements
- **Docker**: 20.10+ (recommended)
- **OR Node.js**: 18+ with Bun or npm
- **Database**: PostgreSQL 14+ or SQLite
- **Storage**: Local, S3, Google Cloud Storage, Azure Blob, and more
---
## Learning Paths
### For Developers
1. [Quick Start](getting-started/quick-start.md) — Get familiar with the platform
2. [Your First Stack](tutorials/your-first-stack.md) — Learn stacked PRs
3. [Team Workflows](guides/team-workflows.md) — Collaborate effectively
### For Teams
1. [Installation](getting-started/installation.md) — Set up your instance
2. [Team Workflows](guides/team-workflows.md) — Define your process
3. [Branch Protection](guides/branch-protection.md) — Secure your code
4. [CI/CD Setup](features/ci-cd.md) — Automate everything
### For Administrators
1. [Deployment Guide](administration/deployment.md) — Production setup
2. [Security Best Practices](administration/security.md) — Secure your instance
3. [Monitoring](administration/monitoring.md) — Track health
4. [Configuration](administration/configuration.md) — Tune performance
---
## Community & Support
### Get Help
- **Documentation** — You're here!
- **GitHub Issues** — Bug reports, feature requests
- **GitHub Discussions** — Community Q&A
### Contributing
We welcome contributions!
- **[Contributing Guide](development/contributing.md)** — How to contribute
- **[Good First Issues](https://github.com/swadhinbiswas/OpenCodeHub/labels/good-first-issue)** — Easy issues for new contributors
---
## 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 |
| CI/CD | Actions | CI/CD | GitHub Actions-compatible |
| Cost | $$$ | $$$ | Free & open source |
---
## License
OpenCodeHub is open source under the MIT License.
[View license](../LICENSE)
---
**Ready to get started?**
[Install OpenCodeHub](getting-started/installation.md) | [Quick Start](getting-started/quick-start.md) | [Your First Stack](tutorials/your-first-stack.md)