headscale vs new-api

headscale and new-api share 6 technologies: Postgres, github.com/glebarez/sqlite, gorm.io/gorm, github.com/coreos/go-oidc/v3, golang.org/x/oauth2, and Prometheus. Both are written in Go.

Read it as markdown

What they share and what sets them apart

juanfont

headscale

An open source, self-hosted implementation of the Tailscale control server

Go45.4kRead on November 6, 2026, at commit 0bdc332What is headscale built with?

Only in headscale

In common

QuantumNous

new-api

Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.

Go51.4kRead on November 5, 2026, at commit 2de51a1What is new-api built with?

Only in new-api

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
headscale222,641 lines written172 code files
new-api574,600 lines written1,977 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
headscale0.3% of its commits signed by AIWith Claude Code, GitHub Copilot, Cursor, and CodeRabbit
new-api0.7% of its commits signed by AIWith Claude Code, CodeRabbit, Codex, Jules, and Cursor
ActivityFrom GitHub and its history, on the day SeeRepo read it.
headscaleLast push November 5, 20264,364 commits45,413 stars
new-apiLast push November 5, 20265,420 commits51,436 stars
TestsThe files that test the code, and the share of code files a test imports.
headscale257 test files72.1% of its code files have a test that imports them
new-api511 test files39.5% of its code files have a test that imports them

Frequently asked questions

Which is bigger, headscale or new-api?
new-api, with 574,600 lines written; headscale has 222,641.

The proof: QuantumNous/new-api's code at commit 2de51a1

Which has more GitHub stars, headscale or new-api?
new-api, with 51,436 stars; headscale has 45,413.

The proof: QuantumNous/new-api on GitHub

Which has more tests, headscale or new-api?
new-api, with 511 test files; headscale has 257.

The proof: QuantumNous/new-api's code at commit 2de51a1

Which was updated more recently, headscale or new-api?
Both got their last push on November 5, 2026.

The proof: juanfont/headscale's commits on GitHub

Which has more commits signed by AI, headscale or new-api?
new-api: an AI signed 0.7% of its commits, with Claude Code, CodeRabbit, Codex, Jules, and Cursor; in headscale, 0.3%.

The proof: the commits each tool signed in QuantumNous/new-api

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →