Source: https://seerepo.com/compare/chaitin/SafeLine/vs/router-for-me/CLIProxyAPI
Markdown source: https://seerepo.com/compare/chaitin/SafeLine/vs/router-for-me/CLIProxyAPI.md
Description: SafeLine and CLIProxyAPI share 3 technologies: Gin, Postgres, and github.com/sirupsen/logrus. Both are written in Go.

# SafeLine vs CLIProxyAPI

SafeLine and CLIProxyAPI share 3 technologies: Gin, Postgres, and github.com/sirupsen/logrus. Both are written in Go.

- [chaitin/SafeLine](https://seerepo.com/r/chaitin/SafeLine): SafeLine is a self-hosted WAF(Web Application Firewall) / reverse proxy to protect your web apps from attacks and exploits.
- [router-for-me/CLIProxyAPI](https://seerepo.com/r/router-for-me/CLIProxyAPI): Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini Series, GPT Series, Grok Series, Claude model through API

## What they share and what sets them apart

- In common: Gin, Postgres, github.com/sirupsen/logrus
- Only in SafeLine: MCP, gorm.io/gorm, github.com/pquerna/otp, go.uber.org/zap
- Only in CLIProxyAPI: net/http, go-redis, pgx, Redis, MinIO, github.com/charmbracelet/bubbletea, github.com/charmbracelet/lipgloss, github.com/charmbracelet/bubbles, golang.org/x/oauth2, github.com/tiktoken-go/tokenizer, gopkg.in/natefinch/lumberjack.v2

## Side by side

| | SafeLine | CLIProxyAPI |
|---|---|---|
| Size | 14,197 lines written, 109 code files | 801,966 lines written, 799 code files |
| Who writes it | 0.4% of its commits signed by AI. With Codex | 3.4% of its commits signed by AI. With Codex, Claude Code, Gemini CLI, Amp, Factory, GitHub Copilot, Devin, and Cursor |
| Activity | Last push October 22, 2026, 783 commits, 23,167 stars | Last push November 5, 2026, 3,893 commits, 57,638 stars |
| Tests | 12 test files. 12.8% of its code files have a test that imports them | 1,186 test files. 86.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, SafeLine or CLIProxyAPI?

CLIProxyAPI, with 801,966 lines written; SafeLine has 14,197.

The proof: [router-for-me/CLIProxyAPI's code at commit 585f97d](https://github.com/router-for-me/CLIProxyAPI/tree/585f97deac9aa57c700301221fb1a7085e1827cc)

### Which has more GitHub stars, SafeLine or CLIProxyAPI?

CLIProxyAPI, with 57,638 stars; SafeLine has 23,167.

The proof: [router-for-me/CLIProxyAPI on GitHub](https://github.com/router-for-me/CLIProxyAPI)

### Which has more tests, SafeLine or CLIProxyAPI?

CLIProxyAPI, with 1,186 test files; SafeLine has 12.

The proof: [router-for-me/CLIProxyAPI's code at commit 585f97d](https://github.com/router-for-me/CLIProxyAPI/tree/585f97deac9aa57c700301221fb1a7085e1827cc)

### Which was updated more recently, SafeLine or CLIProxyAPI?

CLIProxyAPI: its last push was on November 5, 2026, and SafeLine's on October 22, 2026.

The proof: [router-for-me/CLIProxyAPI's commits on GitHub](https://github.com/router-for-me/CLIProxyAPI/commits)

### Which has more commits signed by AI, SafeLine or CLIProxyAPI?

CLIProxyAPI: an AI signed 3.4% of its commits, with Codex, Claude Code, Gemini CLI, Amp, Factory, GitHub Copilot, Devin, and Cursor; in SafeLine, 0.4%.

The proof: [the commits each tool signed in router-for-me/CLIProxyAPI](https://seerepo.com/r/router-for-me/CLIProxyAPI/ai)

## Sources

- chaitin/SafeLine: Read on November 4, 2026, at commit 9b72ba6 (https://github.com/chaitin/SafeLine/tree/9b72ba6ad4d7e042e7a79ee2e062305179312c98)
- router-for-me/CLIProxyAPI: Read on November 5, 2026, at commit 585f97d (https://github.com/router-for-me/CLIProxyAPI/tree/585f97deac9aa57c700301221fb1a7085e1827cc)

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