diff --git a/apps/web/app/(app)/gitea/page.tsx b/apps/web/app/(app)/gitea/page.tsx
new file mode 100644
index 00000000..8129866c
--- /dev/null
+++ b/apps/web/app/(app)/gitea/page.tsx
@@ -0,0 +1,135 @@
+// glossary-ignore-file: superadmin-only page about the platform's git server — «репозиторий» is the literal object here
+import Link from "next/link";
+import { notFound } from "next/navigation";
+import { ExternalLink, GitBranch, Lock } from "lucide-react";
+import { giteaServerOverview, isSuperadmin, type GiteaServerRepo } from "@peppa/core";
+import { ago, Empty, Notice, PageHeader, Section } from "@/components/common";
+import { Badge } from "@/components/ui/badge";
+import { Button } from "@/components/ui/button";
+import { Card } from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Workspace } from "@/components/Workspace";
+import { requireUser } from "@/lib/auth";
+import { db } from "@/lib/db";
+import { getT } from "@/lib/i18n";
+import type { Translator } from "@peppa/shared/i18n";
+
+export async function generateMetadata() {
+ const t = await getT();
+ return { title: t("Gitea — Peppa FACTORY") };
+}
+
+type Params = { q?: string; show?: string };
+
+function RepoRow({ r, t }: { r: GiteaServerRepo; t: Translator }) {
+ return (
+
+
+
+ {r.fullName}
+
+
+ {r.private ? (
+
+
+ {t("приватный")}
+
+ ) : (
+
{t("публичный")}
+ )}
+ {r.empty &&
{t("пустой")}}
+ {r.archived &&
{t("в архиве")}}
+ {r.fork &&
{t("форк")}}
+ {r.project ? (
+
+ {t("проект {key} · {name}", { key: r.project.key, name: r.project.name })}
+
+ ) : (
+
{t("не подключён к проекту")}
+ )}
+
+ {r.description && {r.description}
}
+
+ {t("ветка {branch} · обновлён {when} · {size}", { branch: r.defaultBranch || "—", when: ago(r.updatedAt, t), size: r.sizeKb >= 1024 ? `${(r.sizeKb / 1024).toFixed(1)} MB` : `${r.sizeKb} KB` })}
+
+
+ );
+}
+
+export default async function GiteaPage({ searchParams }: { searchParams: Promise }) {
+ const user = await requireUser();
+ const t = await getT();
+ if (!(await isSuperadmin(db, user))) notFound();
+ const q = await searchParams;
+ const o = await giteaServerOverview(db);
+ const needle = (q.q ?? "").trim().toLowerCase();
+ const show = q.show === "linked" || q.show === "unlinked" ? q.show : "all";
+ const repos = o.repos.filter(
+ (r) => (!needle || r.fullName.toLowerCase().includes(needle) || r.description.toLowerCase().includes(needle)) && (show === "all" || (show === "linked") === !!r.project),
+ );
+ const owners = new Map();
+ for (const r of o.repos) owners.set(r.owner, (owners.get(r.owner) ?? 0) + 1);
+ const linked = o.repos.filter((r) => r.project).length;
+
+ return (
+
+
+
Gitea>}>
+ {t("Git-сервер платформы и репозитории на нём — как их видит бот Peppa FACTORY. Раздел видят только суперадмины.")}
+
+
+
+
+
+ {t("Адрес")}:{" "}
+ {o.url ? (
+
+ {o.url}
+
+ ) : (
+ "—"
+ )}
+
+
+ {t("Бот")}: {o.bot?.login ?? "—"}
+ {o.bot && (o.bot.admin ? {t("админ сервера — видит все репозитории")} : {t("не админ — видит публичные и свои репозитории")})}
+
+ {o.repos.length > 0 && (
+
+ {t("Репозиториев: {n} · подключены к проектам: {linked}", { n: o.repos.length, linked })} ·{" "}
+ {[...owners].sort((a, b) => b[1] - a[1]).map(([owner, n]) => `${owner} ${n}`).join(", ")}
+
+ )}
+
+
+
+ {o.error &&
{t("Gitea не ответила: {error}", { error: o.error })}}
+
+
+
+ {repos.length === 0 ? (
+ {t("Репозиториев не найдено.")}
+ ) : (
+
+
+ {repos.map((r) => (
+
+ ))}
+
+
+ )}
+
+
+
+ );
+}
diff --git a/apps/web/components/Sidebar.tsx b/apps/web/components/Sidebar.tsx
index 0137c70c..57f363cd 100644
--- a/apps/web/components/Sidebar.tsx
+++ b/apps/web/components/Sidebar.tsx
@@ -2,7 +2,7 @@
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { Bot, Contact, FolderKanban, Megaphone, House, KeyRound, MessagesSquare, ScrollText, LifeBuoy, LogOut, MessageCircleWarning, Search, Server, Settings, ShieldCheck, Sparkles, Users, type LucideIcon } from "lucide-react";
+import { Bot, Contact, FolderKanban, GitBranch, Megaphone, House, KeyRound, MessagesSquare, ScrollText, LifeBuoy, LogOut, MessageCircleWarning, Search, Server, Settings, ShieldCheck, Sparkles, Users, type LucideIcon } from "lucide-react";
import { Brand } from "@/components/Brand";
import { ThemeToggle } from "@/components/ThemeToggle";
import { LanguageSwitcher } from "@/components/I18n";
@@ -35,6 +35,7 @@ const ITEMS: Item[] = [
{ href: "/help", label: m("Помощь"), icon: LifeBuoy, match: (p) => p.startsWith("/help") },
{ href: "/subscriptions", label: m("Подписки"), icon: KeyRound, match: (p) => p.startsWith("/subscriptions"), admin: true },
{ href: "/secrets", label: m("Секреты"), icon: ShieldCheck, match: (p) => p.startsWith("/secrets"), admin: true },
+ { href: "/gitea", label: m("Gitea"), icon: GitBranch, match: (p) => p.startsWith("/gitea"), admin: true },
{ href: "/hosts", label: m("Хосты"), icon: Server, match: (p) => p.startsWith("/hosts"), admin: true },
{ href: "/journal", label: m("Журнал"), icon: ScrollText, match: (p) => p.startsWith("/journal"), admin: true },
{ href: "/platform", label: m("Платформа"), icon: Megaphone, match: (p) => p.startsWith("/platform"), admin: true },
diff --git a/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/proposal.md b/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/proposal.md
new file mode 100644
index 00000000..d215c282
--- /dev/null
+++ b/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/proposal.md
@@ -0,0 +1,11 @@
+## Why
+Суперадмину негде посмотреть, что лежит на Git-сервере платформы: какие репозитории есть, чьи они и какие из них подключены к проектам Peppa (PEP-169).
+
+## What Changes
+- Пункт меню «Gitea» (`/gitea`) только для суперадмина; остальным — 404.
+- Блок «Сервер»: адрес Gitea, учётка бота и видит ли он все репозитории (админ сервера) или только публичные и свои.
+- Список репозиториев, которые видит peppa-bot (`/repos/search`, по свежести): владелец/имя со ссылкой в Gitea, приватность, пустой/архив/форк, ветка по умолчанию, когда обновлён, размер, ссылка на проект Peppa или «не подключён к проекту»; поиск и фильтр «подключённые / без проекта».
+- Ядро: `giteaServerOverview(db)` в `packages/core/src/gitea-server.ts`; ошибка Gitea показывается на странице, не роняет её.
+
+## Impact
+- `packages/core/src/gitea-server.ts`, `apps/web/app/(app)/gitea/page.tsx`, `apps/web/components/Sidebar.tsx`, `packages/shared/src/i18n/en/admin.ts`.
diff --git a/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/specs/gitea-integration/spec.md b/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/specs/gitea-integration/spec.md
new file mode 100644
index 00000000..557141b4
--- /dev/null
+++ b/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/specs/gitea-integration/spec.md
@@ -0,0 +1,16 @@
+## ADDED Requirements
+
+### Requirement: Суперадмин видит репозитории Gitea
+Веб SHALL показывать суперадмину раздел «Gitea» со списком репозиториев сервера, видимых боту, и их связью с проектами Peppa.
+
+#### Scenario: Суперадмин открывает раздел
+- **WHEN** суперадмин открывает `/gitea`
+- **THEN** видит адрес сервера, учётку бота и список репозиториев со ссылками в Gitea и на проект Peppa, если он подключён
+
+#### Scenario: Не суперадмин
+- **WHEN** обычный пользователь открывает `/gitea`
+- **THEN** получает 404, а пункта «Gitea» в меню у него нет
+
+#### Scenario: Gitea недоступна
+- **WHEN** Gitea не отвечает
+- **THEN** страница открывается с сообщением об ошибке и пустым списком
diff --git a/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/tasks.md b/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/tasks.md
new file mode 100644
index 00000000..f3c84716
--- /dev/null
+++ b/openspec/changes/archive/2026-11-16-pep-169-gitea-admin-tab/tasks.md
@@ -0,0 +1,10 @@
+## 1. Ядро
+- [x] 1.1 `giteaServerOverview(db)`: бот, `/repos/search` постранично, связь с `projects` по owner/repo, ошибка — в поле `error`
+
+## 2. Веб
+- [x] 2.1 Страница `/gitea` (только суперадмин), поиск и фильтр
+- [x] 2.2 Пункт меню «Gitea» (`admin: true`)
+- [x] 2.3 Переводы en
+
+## 3. Проверка
+- [x] 3.1 typecheck, словарь, i18n-check; данные с живой Gitea (76 репозиториев, 27 подключены)
diff --git a/openspec/specs/gitea-integration/spec.md b/openspec/specs/gitea-integration/spec.md
index c7931608..9d385242 100644
--- a/openspec/specs/gitea-integration/spec.md
+++ b/openspec/specs/gitea-integration/spec.md
@@ -44,3 +44,18 @@
- **GIVEN** стори PAY-7 в «Ревью» с открытым PR
- **WHEN** PR смержен в интерфейсе Gitea
- **THEN** PAY-7 в «Готово», сообщение «готово к ревью» закрыто
+
+### Requirement: Суперадмин видит репозитории Gitea
+Веб SHALL показывать суперадмину раздел «Gitea» со списком репозиториев сервера, видимых боту, и их связью с проектами Peppa.
+
+#### Scenario: Суперадмин открывает раздел
+- **WHEN** суперадмин открывает `/gitea`
+- **THEN** видит адрес сервера, учётку бота и список репозиториев со ссылками в Gitea и на проект Peppa, если он подключён
+
+#### Scenario: Не суперадмин
+- **WHEN** обычный пользователь открывает `/gitea`
+- **THEN** получает 404, а пункта «Gitea» в меню у него нет
+
+#### Scenario: Gitea недоступна
+- **WHEN** Gitea не отвечает
+- **THEN** страница открывается с сообщением об ошибке и пустым списком
diff --git a/packages/core/src/gitea-server.ts b/packages/core/src/gitea-server.ts
new file mode 100644
index 00000000..784f40b7
--- /dev/null
+++ b/packages/core/src/gitea-server.ts
@@ -0,0 +1,71 @@
+// PEP-169: what the Gitea server holds, as peppa-bot sees it — for the superadmin «Gitea» page.
+import { projects, type Db } from "@peppa/db";
+import type { GiteaRepo, GiteaUser } from "./gitea.ts";
+import { giteaForBot } from "./users.ts";
+
+export interface GiteaServerRepo {
+ fullName: string;
+ owner: string;
+ name: string;
+ description: string;
+ private: boolean;
+ empty: boolean;
+ archived: boolean;
+ fork: boolean;
+ defaultBranch: string;
+ htmlUrl: string;
+ updatedAt: Date | null;
+ sizeKb: number;
+ /** The Peppa project this repository backs, if any. */
+ project: { key: string; name: string } | null;
+}
+
+export interface GiteaServerOverview {
+ url: string;
+ bot: { login: string; admin: boolean } | null;
+ repos: GiteaServerRepo[];
+ error: string | null;
+}
+
+type SearchRepo = GiteaRepo & { description?: string; archived?: boolean; fork?: boolean; updated_at?: string; size?: number };
+
+const PAGE = 50;
+const MAX_PAGES = 40;
+
+/** Repositories visible to peppa-bot (all of them when it is a site admin), newest first. */
+export async function giteaServerOverview(db: Db): Promise {
+ let client;
+ try {
+ client = giteaForBot();
+ } catch (e) {
+ return { url: "", bot: null, repos: [], error: (e as Error).message };
+ }
+ const linked = new Map((await db.select({ key: projects.key, name: projects.name, owner: projects.giteaOwner, repo: projects.giteaRepo }).from(projects)).map((p) => [`${p.owner}/${p.repo}`.toLowerCase(), { key: p.key, name: p.name }]));
+ try {
+ const me = await client.request("GET", "/user");
+ const found: SearchRepo[] = [];
+ for (let page = 1; page <= MAX_PAGES; page++) {
+ const res = await client.request<{ ok: boolean; data: SearchRepo[] }>("GET", `/repos/search?limit=${PAGE}&page=${page}&sort=updated&order=desc`);
+ found.push(...res.data);
+ if (res.data.length < PAGE) break;
+ }
+ const repos = found.map((r) => ({
+ fullName: r.full_name,
+ owner: r.owner.login,
+ name: r.name,
+ description: r.description ?? "",
+ private: r.private,
+ empty: r.empty,
+ archived: !!r.archived,
+ fork: !!r.fork,
+ defaultBranch: r.default_branch,
+ htmlUrl: r.html_url,
+ updatedAt: r.updated_at ? new Date(r.updated_at) : null,
+ sizeKb: r.size ?? 0,
+ project: linked.get(r.full_name.toLowerCase()) ?? null,
+ }));
+ return { url: client.baseUrl, bot: { login: me.login, admin: !!me.is_admin }, repos, error: null };
+ } catch (e) {
+ return { url: client.baseUrl, bot: null, repos: [], error: (e as Error).message };
+ }
+}
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index efa518ee..aaee18f3 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -13,6 +13,7 @@ export * from "./hosts.ts";
export * from "./telegram.ts";
export * from "./crypto.ts";
export * from "./gitea.ts";
+export * from "./gitea-server.ts";
export * from "./users.ts";
export * from "./oauth.ts";
export * from "./access.ts";
diff --git a/packages/shared/src/i18n/en/admin.ts b/packages/shared/src/i18n/en/admin.ts
index 1f0daa27..86c9443d 100644
--- a/packages/shared/src/i18n/en/admin.ts
+++ b/packages/shared/src/i18n/en/admin.ts
@@ -174,6 +174,34 @@ export const admin: Dict = {
"Ни в одном проекте секретов нет.": "No project has secrets.",
"секретов {n} · старейший {oldest} · выдан агенту {used}": "secrets {n} · oldest {oldest} · issued to an agent {used}",
+ // Gitea (PEP-169)
+ "Gitea — Peppa FACTORY": "Gitea — Peppa FACTORY",
+ Gitea: "Gitea",
+ приватный: "private",
+ публичный: "public",
+ пустой: "empty",
+ "в архиве": "archived",
+ форк: "fork",
+ "проект {key} · {name}": "project {key} · {name}",
+ "не подключён к проекту": "not linked to a project",
+ "ветка {branch} · обновлён {when} · {size}": "branch {branch} · updated {when} · {size}",
+ "Git-сервер платформы и репозитории на нём — как их видит бот Peppa FACTORY. Раздел видят только суперадмины.":
+ "The platform's git server and its repositories, as the Peppa FACTORY bot sees them. Only superadmins see this section.",
+ Сервер: "Server",
+ Адрес: "Address",
+ Бот: "Bot",
+ "админ сервера — видит все репозитории": "server admin — sees every repository",
+ "не админ — видит публичные и свои репозитории": "not an admin — sees public and its own repositories",
+ "Репозиториев: {n} · подключены к проектам: {linked}": "Repositories: {n} · linked to projects: {linked}",
+ "Gitea не ответила: {error}": "Gitea did not respond: {error}",
+ Репозитории: "Repositories",
+ "Поиск по имени или описанию": "Search by name or description",
+ все: "all",
+ "подключённые к проектам": "linked to projects",
+ "без проекта": "without a project",
+ Показать: "Show",
+ "Репозиториев не найдено.": "No repositories found.",
+
// Hosts
"Хосты — Peppa FACTORY": "Hosts — Peppa FACTORY",
"не проверен": "not checked",