Source: https://seerepo.com/compare/juanfont/headscale/vs/QuantumNous/new-api
Markdown source: https://seerepo.com/compare/juanfont/headscale/vs/QuantumNous/new-api.md
Description: 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.

# 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.

- [juanfont/headscale](https://seerepo.com/r/juanfont/headscale): An open source, self-hosted implementation of the Tailscale control server
- [QuantumNous/new-api](https://seerepo.com/r/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.

## What they share and what sets them apart

- In common: Postgres, github.com/glebarez/sqlite, gorm.io/gorm, github.com/coreos/go-oidc/v3, golang.org/x/oauth2, Prometheus
- Only in headscale: chi, HashiCorp, SQLite, github.com/tailscale/hujson, github.com/rs/zerolog, Docker, github.com/prometheus/common, github.com/libdns/cloudflare, go.uber.org/zap
- Only in new-api: Gin, pgx, Redis, ClickHouse, MySQL, github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream, Stripe, Electron, React, TanStack, github.com/go-webauthn/webauthn, github.com/casbin/casbin/v2, github.com/golang-jwt/jwt/v5, github.com/aws/aws-sdk-go-v2/credentials, github.com/Azure/go-ntlmssp, github.com/pquerna/otp, github.com/tiktoken-go/tokenizer, golang.org/x/image, github.com/abema/go-mp4, github.com/go-playground/validator/v10, github.com/aws/aws-sdk-go-v2, github.com/grafana/pyroscope-go, Tailwind CSS, class-variance-authority, tailwind-merge, sonner, React Hook Form, @tanstack/react-table, Base UI, motion, xyflow, @visactor/vchart, CodeMirror, react-day-picker, @lezer/highlight, cmdk, embla-carousel-react, input-otp, react-resizable-panels, react-top-loading-bar, recharts, use-stick-to-bottom, vaul, Lucide, hugeicons, @lobehub/icons, react-icons, ai, tokenlens, dompurify, marked, shiki, katex, qrcode.react, yaml, Zod, @hookform/resolvers

## Side by side

| | headscale | new-api |
|---|---|---|
| Size | 222,641 lines written, 172 code files | 574,600 lines written, 1,977 code files |
| Who writes it | 0.3% of its commits signed by AI. With Claude Code, GitHub Copilot, Cursor, and CodeRabbit | 0.7% of its commits signed by AI. With Claude Code, CodeRabbit, Codex, Jules, and Cursor |
| Activity | Last push November 5, 2026, 4,364 commits, 45,413 stars | Last push November 5, 2026, 5,420 commits, 51,436 stars |
| Tests | 257 test files. 72.1% of its code files have a test that imports them | 511 test files. 39.5% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## 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](https://github.com/QuantumNous/new-api/tree/2de51a19e35a602a0041d380b29be7c9bcd1e0e5)

### 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](https://github.com/QuantumNous/new-api)

### 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](https://github.com/QuantumNous/new-api/tree/2de51a19e35a602a0041d380b29be7c9bcd1e0e5)

### 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](https://github.com/juanfont/headscale/commits)

### 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](https://seerepo.com/r/QuantumNous/new-api/ai)

## Sources

- juanfont/headscale: Read on November 6, 2026, at commit 0bdc332 (https://github.com/juanfont/headscale/tree/0bdc332886b3692b88e0c3623f37c2c07a00d262)
- QuantumNous/new-api: Read on November 5, 2026, at commit 2de51a1 (https://github.com/QuantumNous/new-api/tree/2de51a19e35a602a0041d380b29be7c9bcd1e0e5)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
