Source: https://seerepo.com/compare/infiniflow/ragflow/vs/Wei-Shaw/sub2api
Markdown source: https://seerepo.com/compare/infiniflow/ragflow/vs/Wei-Shaw/sub2api.md
Description: ragflow and sub2api share 4 technologies: Gin, Postgres, Redis, and MCP. Both are written in Go.

# ragflow vs sub2api

ragflow and sub2api share 4 technologies: Gin, Postgres, Redis, and MCP. Both are written in Go.

- [infiniflow/ragflow](https://seerepo.com/r/infiniflow/ragflow): RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
- [Wei-Shaw/sub2api](https://seerepo.com/r/Wei-Shaw/sub2api): Sub2API 一站式开源中转服务，让 Claude、Openai 、Gemini、Grok订阅统一接入，支持拼车共享，更高效分摊成本，原生工具无缝使用。

## What they share and what sets them apart

- In common: Gin, Postgres, Redis, MCP
- Only in ragflow: React Router, React, net/http, OpenAI, Google, AWS S3
- Only in sub2api: Vue, Vite, Stripe

## Side by side

| | ragflow | sub2api |
|---|---|---|
| Size | 1,268,305 lines written, 2,772 code files | 1,182,759 lines written, 1,683 code files |
| Who writes it | 2.2% of its commits signed by AI. With Claude Code, Cursor, CodeRabbit, GitHub Copilot, Kilo Code, Codex, OpenHands, Gemini CLI, and Factory | 17.7% of its commits signed by AI. With Codex, Claude Code, Cursor, Gemini CLI, GitHub Copilot, and Factory |
| Activity | Last push October 30, 2026, 10,660 commits, 93,217 stars | Last push October 30, 2026, 5,448 commits, 45,171 stars |
| Tests | 1,875 test files. 50.6% of its code files have a test that imports them | 2,018 test files. 79.3% 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, ragflow or sub2api?

ragflow, with 1,268,305 lines written in 2,772 code files; sub2api has 1,182,759 in 1,683.

The proof: [infiniflow/ragflow's code at commit 94369fc](https://github.com/infiniflow/ragflow/tree/94369fc289e61be2f7e43bd0c65862269207d9c4)

### Which has more GitHub stars, ragflow or sub2api?

ragflow, with 93,217 stars; sub2api has 45,171.

The proof: [infiniflow/ragflow on GitHub](https://github.com/infiniflow/ragflow)

### Which has more tests, ragflow or sub2api?

sub2api, with 2,018 test files; ragflow has 1,875.

The proof: [Wei-Shaw/sub2api's code at commit d851a38](https://github.com/Wei-Shaw/sub2api/tree/d851a38477597157e78450d30af2d8504764d085)

### Which was updated more recently, ragflow or sub2api?

Both got their last push on October 30, 2026.

The proof: [Wei-Shaw/sub2api's commits on GitHub](https://github.com/Wei-Shaw/sub2api/commits)

### Which has more commits signed by AI, ragflow or sub2api?

sub2api: an AI signed 17.7% of its commits, with Codex, Claude Code, Cursor, Gemini CLI, GitHub Copilot, and Factory; in ragflow, 2.2%.

The proof: [the commits each tool signed in Wei-Shaw/sub2api](https://seerepo.com/r/Wei-Shaw/sub2api/ai)

## Sources

- infiniflow/ragflow: Read on October 30, 2026, at commit 94369fc (https://github.com/infiniflow/ragflow/tree/94369fc289e61be2f7e43bd0c65862269207d9c4)
- Wei-Shaw/sub2api: Read on October 31, 2026, at commit d851a38 (https://github.com/Wei-Shaw/sub2api/tree/d851a38477597157e78450d30af2d8504764d085)

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