~ / AI Research / Code Forges & Source Code Hosting

Code Forges & Source Code Hosting: Bootstrapper Analysis

Deep analysis of the code forge market through a bootstrapper lens. GitHub ($2.8B revenue, 180M+ developers), GitLab ($946M), Bitbucket, Gitea, Forgejo, Sourcehut, Codeberg, Radicle, Phabricator/Phorge, Gogs, OneDev, the AI coding revolution (Copilot $2B+ ARR, Cursor $1B ARR, Claude Code $2.5B ARR), forge federation, CI/CD market, modern Git workflow tools (GitButler, Graphite), and what all of this means when AI writes most of the code.



1. The Market

Market snapshot
GitHub revenue (2026 projected)~$2.8 billion
GitHub market share (company adoption)~87.67%
GitLab revenue (FY2026)~$946 million
GitHub Copilot ARR$2B+ (20M+ users, 1.3M paid)
Cursor ARR$1B+ (1M+ DAU)
Claude Code ARR$2.5B
CI/CD market (projected 2031)$19 billion
Total developers worldwide~30 million professional (GitHub claims 180M+ registered)

The code forge market is a near-monopoly. GitHub controls ~88% of company adoption and is pulling away from every competitor simultaneously — through network effects, Copilot integration, and Microsoft’s distribution. The interesting question is not “can someone beat GitHub?” (they cannot) but “what does the market look like when AI writes most of the code?”

The market has four layers:

The monopolist (GitHub)
$2.8B revenue, 180M+ developers, 87.67% market share. Owns the developer graph. Copilot is already bigger than GitHub was when Microsoft bought it. Not attackable head-on.
The enterprise alternative (GitLab)
$946M revenue, publicly traded. Wins on integrated DevSecOps and CI/CD. Stock down 74% from highs. A real business but structurally second.
Self-hosted and open-source (Gitea, Forgejo, Gogs, OneDev)
Driven by data sovereignty regulations (EU Data Act, GDPR), compliance requirements, and ideology. Gitea/Forgejo dominate self-hosted. Growing but not monetizing well.
AI coding tools (Copilot, Cursor, Claude Code, Windsurf)
The real disruption. Combined ARR already exceeds $5.5B+. These tools are becoming the primary interface for code creation, turning the forge into a backend commodity. This is the existential question for the entire market.

2. GitHub: The $35B Monopoly

Founded2008 (San Francisco, CA)
FoundersTom Preston-Werner, Chris Wanstrath, PJ Hyett, Scott Chacon
Acquired byMicrosoft for $7.5 billion (October 2018)
Estimated valuation (2026)~$35 billion
Revenue$2B ARR (2024), projected $2.8B (2026)
Developers180M+ registered (January 2026)
Repositories1 billion+ (including forks)
Companies1.95 million+ using GitHub as SCM
Market share~87.67% (company adoption, 6sense)

Pricing

PlanPriceIncludes
Free$0Unlimited public/private repos, 2,000 Actions minutes/month
Team$4/user/monthProtected branches, code owners, 3,000 Actions minutes
Enterprise$21/user/monthSAML SSO, SCIM, audit log, 50,000 Actions minutes

GitHub Copilot: the real story

Users20M+ all-time (July 2025), 1.3M paid subscribers
Growth30% quarter-over-quarter
Revenue contribution40%+ of GitHub’s revenue growth
Fortune 100 penetration90%
Unit economics (2023)Microsoft losing $20+/user/month at $10/month price point
Unit economics (2025)Scale improvements + tiered pricing ($10–$39/user/mo) improved margins

The key insight: Copilot is already a larger business than all of GitHub was when Microsoft bought it for $7.5B. Microsoft’s strategy is clear: GitHub is the developer graph (180M+ developers), Copilot is the monetization layer. The forge itself — Git hosting, PRs, Issues — is the loss leader that keeps developers on the platform where Copilot extracts value.

Copilot pricing

TierPriceTarget
Free$0Individual developers (limited completions)
Pro$10/monthIndividual developers
Pro+$39/monthPower users
Business$19/user/monthTeams
Enterprise$39/user/monthLarge organizations

GitHub Actions: the bundling play

GitHub Actions is the default CI/CD for most GitHub users — not because it’s the best, but because it’s bundled. A February 2026 critique called it “the Internet Explorer of CI” — dominant through bundling, not quality. Starting March 1, 2026, GitHub will charge $0.002/minute for self-hosted runner usage (ending years of free self-hosted runners), while simultaneously reducing GitHub-hosted runner pricing by up to 39%.

Why you cannot compete with GitHub


3. GitLab: The Enterprise Runner-Up

Founded2011 (Ukraine, later moved to San Francisco)
FoundersDmitriy Zaporozhets, Sytse “Sid” Sijbrandij
StatusPublic company (NASDAQ: GTLB)
FY2025 revenue$759.25 million (up 31% YoY)
FY2026 guidance$946–$947 million
Q3 FY2026 revenue$244.4 million (up 25% YoY)
Registered users~30 million
Customers >$5K ARR10,475 (up 10% YoY)
Customers >$100K ARR1,405 (up 23% YoY)
Stock price (early 2026)~$29–$37 (down 74% from all-time high)
Layoffs7% of workforce (~130 people), February 2023

Pricing

TierPriceTarget
Free$0Individual developers, small teams
Premium$29/user/monthTeams needing CI/CD, code review, project management
Ultimate$99/user/monthEnterprise security, compliance, advanced CI/CD

What GitLab does well:

The structural problem: GitLab is a $5.5B company competing with a $35B subsidiary of a $3T company (Microsoft). GitHub can afford to give away features that GitLab charges $99/user/month for. Every time GitHub adds a feature (security scanning, project boards, AI), GitLab’s premium pricing becomes harder to justify. The stock decline (−74% from ATH) reflects this structural disadvantage.


4. Bitbucket: Managed Decline

OwnerAtlassian
Market share~2.78–10% (depending on source, declining)
Developers~10 million
PricingFree (5 users), Standard $3/user/mo, Premium $6/user/mo
Key eventBitbucket Server (on-premise) discontinued 2022
MoatJira integration (65,000+ enterprise customers)

Bitbucket is in managed decline as a standalone product. Market share dropped from ~18% (2018) to under 10%. Discontinuing Bitbucket Server in 2022 forced customers to either migrate to Bitbucket Cloud or leave entirely — many left for GitHub. Atlassian is investing in Bitbucket primarily as an Atlassian-ecosystem component (deep Jira integration), not as a GitHub competitor. Organizations already running Jira have friction switching away, which is the only thing keeping Bitbucket alive.


5. Self-Hosted Forges: Gitea, Forgejo, Gogs, OneDev, GitBucket

Gitea

OriginCommunity fork of Gogs, started 2016
StackGo
GitHub stars~51,800
LicenseMIT
Gitea Cloud$9.50–$19/user/month (1-year commitment)
FeaturesGit hosting, code review, team collaboration, package registry, CI/CD (Gitea Actions, GitHub Actions-compatible)
ControversyOctober 2022: domain/trademarks transferred to for-profit Gitea Ltd without community approval. Triggered Forgejo fork

Gitea is the most popular self-hosted Git server by a significant margin. It includes everything you need: repositories, code review, issues, CI/CD (GitHub Actions-compatible), package registry. Runs on minimal resources. The October 2022 controversy — maintainers transferring the domain and trademarks to a for-profit company without community knowledge — damaged trust and created Forgejo, but Gitea remains widely deployed.

Forgejo

OriginFork of Gitea, December 2022 (hard fork since early 2024)
GovernanceCodeberg e.V. (German nonprofit). Democratic structure, quarterly contributor meetings
StackGo
LicenseMIT
Key differentiatorNonprofit governance, no open-core model, federation support (ForgeFed/ActivityPub)
Federation statusFederated “stars” work across instances. Cross-instance issues/PRs experimental. Funded by NLnet

Forgejo is the “community-first Gitea.” The codebases diverged in early 2024 — Forgejo is no longer rebadged Gitea but an independent project. The federation work (ActivityPub for code forges) is the most technically interesting development in the self-hosted forge space. Whether federation matters commercially is another question entirely (see Section 11).

Gogs

GitHub stars~47,454
StackGo
StatusMaintained but slow cadence. Single primary maintainer
Resource usageCan run on 128MB RAM
SecurityZero-day actively exploited since December 2025. 700+ compromised instances found on Shodan

Gogs is the original Go-based self-hosted Git server that spawned Gitea. It still works for users who want absolute minimalism (128MB RAM!), but the actively exploited zero-day vulnerability since December 2025 — with 700+ compromised instances found via Shodan and a slow maintainer response — makes it impossible to recommend for anything security-sensitive. Single-maintainer projects carry this risk.

OneDev

GitHub stars~13,000+
StackJava
LicenseMIT
Resources1 core / 2GB RAM for medium projects
FeaturesGit hosting, language-aware code search, issue tracking, kanban, Docker-first CI/CD, package registry
RevenueNone (passion project, no commercial entity)

A hidden gem for small teams wanting a self-hosted all-in-one platform. Everything in a single application: Git, issues, CI/CD, kanban, packages. Recently added MCP server support for AI-driven DevOps workflows. Not widely known outside self-hosting communities. No commercial model — purely community-maintained.

GitBucket

StackScala (JVM)
DeploymentSingle .war file. Runs on 512MB RAM
StatusActively maintained (v4.43.0, June 2025)
Best forJava/Scala shops wanting a private Git server with zero learning curve

Niche. Single-file deployment on any JVM is its unique selling point. GitHub-like UI. No built-in CI/CD. Best for individuals or small teams in Java environments who want the simplest possible setup.


6. Indie & Ideological Forges: Sourcehut, Codeberg, Radicle

Sourcehut (sr.ht)

FounderDrew DeVault
Revenue (2022)$505,307 total (incl. consulting). Platform subscriptions: ~$132K/year (~$11K/month)
Revenue (2021)$105,777 from subscriptions (10,484 invoices)
Users (2021)28,262 registered, 3,209 (11.35%) paid
Funding$0 (bootstrapped)
Pricing (Jan 2026)$5/$10/$15/month (USD) or 4/8/12 EUR. Reduced rate $2/2 EUR
StatusTechnically alpha. Operationally stable for years
Philosophy100% FOSS. No JS required. Email-based patches. No tracking

Sourcehut is the DHH of code forges. Drew DeVault built exactly the forge he wanted: email-based patch workflow (like the Linux kernel), no JavaScript, no tracking, radically transparent finances. The result is a real business ($132K/year in subscriptions, growing) that serves a tiny but committed user base.

What makes Sourcehut interesting for bootstrappers:

The limitation: Email-based workflow is a hard sell to anyone under 35. The target market (developers who prefer mailing lists) is small and not growing. This is a lifestyle business, not a growth story — and that’s by design.

Codeberg

OrganizationCodeberg e.V. (German nonprofit)
Users200,000+ registered
Repositories300,000+
Paying members1,208 (November 2025)
FundingMembership fees + donations. No VC. No ads. No tracking
ServicesForgejo hosting, Codeberg Pages, Weblate, Woodpecker CI + Forgejo Actions

Codeberg is the de facto flagship Forgejo instance and the “ethical alternative” to GitHub. 200K+ users is respectable for a nonprofit with zero marketing budget. The paying member count (1,208) is the sustainability metric to watch — everything runs on membership fees and donations. Codeberg hosts the Forgejo project itself and holds Forgejo’s domains and trademarks in trust.

Radicle

Funding$12M (February 2021, led by NFX; Naval Ravikant among angels)
ArchitecturePeer-to-peer. Git-based. Gossip protocol. CRDTs for code review/issues
Governance token (RAD)~$22.6M market cap (early 2026)
GovernanceRadworks (community-governed organization)
StatusActive development. Presented at FOSDEM 2026. Niche adoption

Radicle is the web3 approach to code forges: no central server, peer-to-peer replication, cryptographic verification, governance token. $12M in VC funding is significant for a niche developer tool. The $22.6M token market cap in early 2026 (down massively from crypto highs) tells the adoption story. Not commercially relevant for bootstrappers — the target market (crypto/sovereignty-minded developers) is too small and too ideological to monetize.


7. Dead & Dying: Phabricator, Launchpad, the vBulletin of Forges

Phabricator / Phorge

PhabricatorWind-down announced May 29, 2021. No longer maintained
OriginBuilt by Facebook/Meta for internal use. Used by Wikimedia, KDE, FreeBSD
Phorge (fork)Community fork. Stable release September 7, 2022. Actively maintained
Phorge usersWikimedia Foundation continues to deploy Phorge

Phabricator was the best all-in-one developer tool of its era: code review, task management, wikis, CI, all integrated. Phacility’s shutdown in 2021 was a loss. Phorge keeps it alive for existing users (Wikimedia is the anchor), but no one is deploying Phorge for new projects. This is legacy maintenance, not a living platform.

Launchpad (Canonical)

Still operational but purely an Ubuntu/Canonical ecosystem tool. Migrating from Bazaar to Git as of 2025. Homepage redesigned in 2024 (first since 2016). No aspirations to be a general-purpose forge. Functional but irrelevant outside Ubuntu package development and PPAs.


8. The AI Code Generation Revolution

This is the section that matters most. AI coding tools are reshaping the forge market more than any competitor, regulation, or ideology. The combined ARR of major AI coding tools already exceeds the entire traditional forge market.

AI coding tools: the numbers
ToolARRUsersValuationFunding
GitHub Copilot $2B+ 20M+ total, 1.3M paid Part of GitHub/Microsoft N/A
Cursor (Anysphere) $1B+ 1M+ DAU, 50K businesses $29.3B $3.8B+ total
Claude Code (Anthropic) $2.5B Not disclosed Part of Anthropic ($380B) N/A
Windsurf (ex-Codeium) N/A N/A Sold to Cognition Troubled 2025

The speed of this market

What this means for forges

AI coding tools are becoming the primary interface for code creation. When Cursor or Claude Code writes the code, commits it, and opens the PR, the forge becomes a backend storage and collaboration layer — not the place where work happens. This has three implications:

  1. GitHub wins by default because Copilot is deeply integrated. Moving to another forge means losing the best-integrated AI experience
  2. The forge becomes commodity infrastructure — like S3 for storage. Developers care about their AI tool, not their Git host
  3. Code review gets automated: Cursor’s acquisition of Graphite signals that AI will handle code review too. The entire PR workflow may become AI-to-AI

The existential question for every non-GitHub forge: if AI writes the code, AI reviews the code, and AI deploys the code, what is the forge for? The answer may be: compliance, audit trail, and access control — the boring stuff that enterprises pay for.


9. Modern Git Workflow Tools

GitButler

FounderScott Chacon (GitHub co-founder)
Funding$3.7M (Broadstone Ventures, Factorial Capital, Fly Ventures)
StackRust/Tauri/Svelte, open-source
Key featureVirtual branches — manage multiple parallel workstreams without git stash/branch switching
PricingFree (enterprise features planned)

GitButler rethinks the Git workflow with “virtual branches” — work on multiple features simultaneously without switching branches. Built by a GitHub co-founder who understands Git’s pain points intimately. Has an MCP server for AI-driven Git workflows. The question is whether this becomes an independent tool or gets absorbed into an AI coding IDE.

Graphite (acquired by Cursor)

Funding$72M total ($20M Series A from a16z, $52M Series B from Accel at $290M valuation, March 2025)
Acquired byCursor (Anysphere), December 2025, for reportedly “well over” $290M
ProductStacked diffs / stacked PRs workflow for GitHub

The Graphite acquisition is the most important signal in this market. A code review and PR workflow tool, raised $72M, valued at $290M, then acquired by an AI coding tool (Cursor) for >$290M. The message: code review is being absorbed into AI-native development environments. Standalone code review tools are a shrinking category.

Code review tools: the shrinking market

Gerrit
Still actively developed. Pre-commit review workflow. Used by Android/AOSP, Chromium, Eclipse. Self-hosted only. Steep learning curve. Enterprise-grade but niche
Reviewable
Still operational. GitHub-integrated. Overshadowed by AI-powered review tools
AI-powered review (the new wave)
CodeRabbit, Greptile, Qodo, Graphite Agent. Auto-review PRs using LLMs. This is the direction — traditional code review tools are being disrupted

10. CI/CD: The Adjacent Market

CI/CD market (2024–2026)
PlatformRevenueEmployeesFundingStatus
GitHub Actions Part of GitHub ($2.8B) Part of GitHub Microsoft-backed Market leader by bundling, not quality
GitLab CI Part of GitLab ($946M) Part of GitLab Public company Best integrated CI/CD experience
CircleCI $55.7M (Oct 2024) 163 (from 700+) $315M+ raised Multiple layoff rounds. Shrinking but still operational
Buildkite $17.9M (2024) 134 $41.3M raised New CEO August 2025. Used by Uber, DoorDash
Jenkins $0 (open source) Volunteers N/A #1 by installations but declining. CloudBees pivoted away

CI/CD market size: Projected $19 billion by 2031. The irony: this is a bigger market than forges themselves, but it’s being commoditized by bundling. GitHub Actions dominates through bundling (not quality), making standalone CI/CD companies’ lives progressively harder. CircleCI’s implosion (700+ employees to 163, multiple layoff rounds) is the cautionary tale.

Bootstrapper angle: Don’t build a general CI/CD platform. The bundling dynamics make this a losing game. Do build CI/CD for specific use cases that GitHub Actions handles poorly: mobile CI/CD, GPU-intensive ML pipelines, regulated industries requiring air-gapped runners, or industry-specific compliance (SOC 2, HIPAA, FedRAMP).


11. Forge Federation: ForgeFed & ActivityPub

ForgeFedActivityPub extension for code forge federation. In development since 2019. Funded by NLnet
Primary implementerForgejo
Current statusFederated “stars” work. Cross-instance issues/PRs experimental
GitLabHas begun ForgeFed work but slower progress
NLnet grant deadlineApril 1, 2026
VisionThe Mastodon model for code forges — follow users, comment on issues, get notifications across instances

The forge federation vision is compelling: users on different instances can follow each other, open issues across servers, and get notifications about commits on remote repositories. The reality: 7 years in development and only “stars” work across instances. The protocol is complex, the engineering is hard, and the audience (developers who care about federation) is small.

Bootstrapper assessment: Federation is interesting infrastructure but has no commercial value. Developers choose forges based on features, network effects, and AI integration — not federation capability. Do not build a business plan around forge federation. The target market is too small and has near-zero willingness to pay for this specific feature.



13. Open-Source Sustainability

How do open-source forges sustain themselves?

ProjectModelRevenueSustainable?
GitLab Open-core (CE is MIT, EE is proprietary) $946M Yes (public company)
Gitea For-profit entity + Gitea Cloud + donations Not disclosed Probably (commercial revenue + donations)
Forgejo/Codeberg Nonprofit + membership fees + NLnet grants Membership/donations Fragile (1,208 paying members)
Sourcehut Bootstrapped subscriptions + consulting ~$132K/yr platform + consulting Tight but sustainable
OneDev Passion project (no commercial model) $0 No (bus factor risk)

Broader funding landscape:


14. Comparison Matrix

Forge comparison (2025–2026)
Platform Revenue Users Self-host? Open source AI features CI/CD
GitHub ~$2.8B 180M+ Enterprise only ($21/user/mo) No Copilot ($2B+ ARR) Actions (bundled)
GitLab $946M 30M+ Yes (CE is MIT) Partial (open-core) Duo GitLab CI (best-in-class)
Bitbucket Part of Atlassian ~10M Data Center only No Minimal Pipelines
Gitea Not disclosed Most popular self-hosted Yes Yes (MIT) None built-in Gitea Actions
Forgejo Donations 200K+ (via Codeberg) Yes Yes (MIT) None built-in Forgejo Actions
Sourcehut ~$132K/yr ~28K+ Yes Yes (AGPL-2.0) None builds.sr.ht
Gogs $0 47K GitHub stars Yes Yes (MIT) None None
OneDev $0 13K+ GitHub stars Yes Yes (MIT) MCP server Built-in (Docker/K8s)
Radicle N/A Niche P2P (no server) Yes None None
Codeberg Donations/membership 200K+ N/A (hosted nonprofit) Runs Forgejo None Woodpecker CI + Actions

15. The Future: When AI Writes All the Code

The code forge market is entering a phase transition. Today, developers write code and forges host it. Tomorrow, AI writes the code and the forge may be irrelevant. Here is what happens as AI coding tools mature:

Phase 1: AI assists (2023–2025) — where we are

Phase 2: AI authors (2026–2028) — emerging now

Phase 3: AI deploys (2028+) — speculative

What this means for bootstrappers

Don’t build a code forge. Build for the world where AI writes the code and forges are commodity infrastructure. The opportunities are in the layers around the forge:


16. Bootstrapper Verdict

What works

1. Managed Gitea/Forgejo hosting for regulated industries
The EU Data Act (September 2025) and similar regulations are forcing companies to self-host or use EU-based alternatives. A managed Gitea/Forgejo hosting service targeting GDPR/HIPAA/SOC 2 compliance — with EU data residency, audit logging, SSO, and backup — is a real business. GitHub charges $21/user/month for Enterprise. You can undercut significantly while offering data sovereignty guarantees. The buyers are CTOs and compliance officers, not developers.
2. AI code security and quality tooling
45% of AI-generated code has security flaws. As AI writes more code, automated security scanning and quality gates specifically designed for AI-authored code become essential. This is a growing market with real willingness to pay. Build tools that integrate with existing forges (GitHub/GitLab) as CI/CD checks, not standalone platforms.
3. Niche CI/CD for underserved verticals
GitHub Actions is terrible for some use cases: mobile CI/CD, GPU-intensive ML pipelines, air-gapped environments, and industry-specific compliance. Buildkite ($17.9M revenue) proves there’s a market for CI/CD that GitHub Actions doesn’t serve well. Don’t go broad; go deep into one vertical.
4. Migration services (vBulletin-of-forges pattern)
Companies migrating from Bitbucket (discontinued on-prem), GitLab (cost optimization), or legacy systems (SVN, Perforce) to GitHub or self-hosted alternatives need migration tooling and consulting. Boring but real demand.
5. The Sourcehut model (lifestyle business)
Drew DeVault proves you can build a sustainable forge business at micro-scale: $132K/year in subscriptions, 11.35% paid conversion, $0 in funding. If you have a strong opinion about how code forges should work and are willing to serve a niche audience, this model works. It will not make you rich. It will give you independence.

What doesn’t work

Building “GitHub but better”
GitHub has 88% market share, 180M+ developers, $2.8B in revenue, and Microsoft’s backing. GitLab, with $946M in revenue and a public-company war chest, is struggling to compete. You cannot out-feature GitHub. You cannot out-price GitHub (their free tier is subsidized by Microsoft). You cannot out-network GitHub (the developer graph is non-exportable). Do not try.
Forge federation as a product differentiator
ForgeFed has been in development since 2019. Only “stars” work across instances. The target market (developers who care about federation) is small and has near-zero willingness to pay. Federation is interesting technology with no commercial value.
General-purpose CI/CD
GitHub Actions dominates through bundling. CircleCI went from 700+ employees to 163. The bundling dynamics make standalone CI/CD a losing game unless you pick a niche that GitHub Actions handles poorly.
Standalone code review tools
Cursor acquired Graphite for >$290M. The signal is clear: code review is being absorbed into AI-native IDEs. Don’t build the next Reviewable or Crucible.
Web3/decentralized forges
Radicle raised $12M and has a $22.6M token market cap. The target market is ideological, small, and unwilling to pay. Peer-to-peer code collaboration solves a problem that almost nobody has.

The opportunity matrix

OpportunityDifficultyRevenue potentialCompetition
Managed Gitea/Forgejo for regulated industriesMedium$200K–$2M ARRLow
AI code security toolingHigh$500K–$5M+ ARRGrowing (Snyk, Sonar, CodeRabbit)
Niche CI/CD (mobile, ML, air-gapped)High$200K–$2M ARRMedium
Forge migration services/toolingLow$100K–$500K/yrLow
Opinionated indie forge (Sourcehut model)Medium$100K–$300K ARRLow (niche)
“GitHub but better”Impossible$0GitHub ($2.8B), GitLab ($946M)
Forge federationVery high$0Forgejo (nonprofit), 7 years and counting

The bottom line

The code forge market is a near-monopoly being disrupted from above. GitHub owns the forge layer. AI coding tools (Copilot, Cursor, Claude Code) are becoming the primary interface for code creation, turning the forge into commodity infrastructure. The forge’s future role is compliance, audit, and access control — not code editing.

The best bootstrapper opportunity is not building a forge. It’s building for the world where AI writes the code: security scanning for AI-generated code, compliance tooling, managed hosting for regulated industries, and cost management for AI coding tool spend. The boring adjacent markets — not the sexy core product — are where the money is.


Back to AI Research