Source: https://seerepo.com/compare/chenyme/grok2api/vs/QuantumNous/new-api
Markdown source: https://seerepo.com/compare/chenyme/grok2api/vs/QuantumNous/new-api.md
Description: grok2api and new-api share 18 technologies: Gin, Redis, Postgres, github.com/glebarez/sqlite, React, gorm.io/gorm, github.com/golang-jwt/jwt/v5, Tailwind CSS, class-variance-authority, tailwind-merge, sonner, React Hook Form, recharts, react-day-picker, Lucide, marked, @hookform/resolvers, and Zod. Both are written in Go.

# grok2api vs new-api

grok2api and new-api share 18 technologies: Gin, Redis, Postgres, github.com/glebarez/sqlite, React, gorm.io/gorm, github.com/golang-jwt/jwt/v5, Tailwind CSS, class-variance-authority, tailwind-merge, sonner, React Hook Form, recharts, react-day-picker, Lucide, marked, @hookform/resolvers, and Zod. Both are written in Go.

- [chenyme/grok2api](https://seerepo.com/r/chenyme/grok2api): Multi-account API gateway for Grok Build, Grok Web, and Grok Console
- [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: Gin, Redis, Postgres, github.com/glebarez/sqlite, React, gorm.io/gorm, github.com/golang-jwt/jwt/v5, Tailwind CSS, class-variance-authority, tailwind-merge, sonner, React Hook Form, recharts, react-day-picker, Lucide, marked, @hookform/resolvers, Zod
- Only in grok2api: go-redis, Vite, react-router-dom, next-themes, Radix UI, @shadcn/react
- Only in new-api: pgx, github.com/samber/hot, ClickHouse, MySQL, github.com/glebarez/go-sqlite, Stripe, github.com/MoeForge/moejs, github.com/gin-contrib/static, Electron, @tanstack, gorm.io/driver/clickhouse, github.com/go-webauthn/webauthn, github.com/casbin/casbin/v2, github.com/aws/aws-sdk-go-v2/credentials, github.com/Azure/go-ntlmssp, github.com/coreos/go-oidc/v3, github.com/pquerna/otp, golang.org/x/oauth2, openai-go, relaykit, tokenkit, github.com/aws/aws-sdk-go-v2/service/bedrockruntime, github.com/tiktoken-go/tokenizer, golang.org/x/image, github.com/abema/go-mp4, github.com/go-audio/aiff, github.com/go-audio/wav, github.com/HugoSmits86/nativewebp, github.com/jfreymuth/oggvorbis, github.com/ledongthuc/pdf, github.com/mewkiz/flac, github.com/tcolgate/mp3, github.com/yapingcat/gomedia, github.com/go-playground/validator/v10, github.com/aws/aws-sdk-go-v2, github.com/grafana/pyroscope-go, Prometheus, @tanstack/react-table, Base UI, motion, visactor, xyflow, CodeMirror, @lezer/highlight, yace, auto-skeleton-react, cmdk, embla-carousel-react, input-otp, react-resizable-panels, react-top-loading-bar, use-stick-to-bottom, vaul, hugeicons, @lobehub/icons, react-icons, ai, tokenlens, stream-markdown-parser, dompurify, shiki, katex, qrcode.react, yaml

## Side by side

| | grok2api | new-api |
|---|---|---|
| Size | 200,409 lines written, 351 code files | 641,830 lines written, 2,073 code files |
| Who writes it | 3.8% of its commits signed by AI. With Codex, Claude Code, and Cursor | 0.7% of its commits signed by AI. With Claude Code, CodeRabbit, Codex, Jules, and Cursor |
| Activity | Last push November 11, 2026, 983 commits, 7,906 stars | Last push November 17, 2026, 5,458 commits, 52,102 stars |
| Tests | 225 test files. 65.5% of its code files have a test that imports them | 573 test files. 41.4% 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, grok2api or new-api?

new-api, with 641,830 lines written; grok2api has 200,409.

The proof: [QuantumNous/new-api's code at commit 669d774](https://github.com/QuantumNous/new-api/tree/669d774976369e986f03b6e24fff1042f6f94832)

### Which has more GitHub stars, grok2api or new-api?

new-api, with 52,102 stars; grok2api has 7,906.

The proof: [QuantumNous/new-api on GitHub](https://github.com/QuantumNous/new-api)

### Which has more tests, grok2api or new-api?

new-api, with 573 test files; grok2api has 225.

The proof: [QuantumNous/new-api's code at commit 669d774](https://github.com/QuantumNous/new-api/tree/669d774976369e986f03b6e24fff1042f6f94832)

### Which was updated more recently, grok2api or new-api?

new-api: its last push was on November 17, 2026, and grok2api's on November 11, 2026.

The proof: [QuantumNous/new-api's commits on GitHub](https://github.com/QuantumNous/new-api/commits)

### Which has more commits signed by AI, grok2api or new-api?

grok2api: an AI signed 3.8% of its commits, with Codex, Claude Code, and Cursor; in new-api, 0.7%.

The proof: [the commits each tool signed in chenyme/grok2api](https://seerepo.com/r/chenyme/grok2api/ai)

## Sources

- chenyme/grok2api: Read on November 18, 2026, at commit 8535932 (https://github.com/chenyme/grok2api/tree/8535932b0783db2033657f36e2e1a84196c4e151)
- QuantumNous/new-api: Read on November 18, 2026, at commit 669d774 (https://github.com/QuantumNous/new-api/tree/669d774976369e986f03b6e24fff1042f6f94832)

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