Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

2.3 KB
Raw Blame
"use client";
import { useTranslations } from "next-intl";
import { Card } from "@/shared/components";

export default function DocumentationTab() {
  const t = useTranslations("settings");

  return (
    <Card className="p-6 space-y-6">
      <section>
        <h3 className="font-semibold mb-2">{t("proxyDocumentationScopeTitle")}</h3>
        <p className="text-sm text-text-muted">
          {t("proxyDocumentationScopeDescBefore")}
          <strong>{t("proxyDocumentationScopeOrder")}</strong>
          {t("proxyDocumentationScopeDescAfter")}
        </p>
      </section>

      <section>
        <h3 className="font-semibold mb-2">{t("proxyDocumentationAddTitle")}</h3>
        <p className="text-sm text-text-muted">
          {t("proxyDocumentationAddDescBefore")}
          <strong>{t("proxyPoolTab")}</strong>
          {t("proxyDocumentationAddDescMiddle")}
          <em>{t("proxyDocumentationAddCta")}</em>
          {t("proxyDocumentationAddDescAfter")}
        </p>
      </section>

      <section>
        <h3 className="font-semibold mb-2">{t("proxyDocumentationBulkTitle")}</h3>
        <pre className="text-xs bg-surface-alt/50 p-3 rounded mt-1 overflow-x-auto">
          {`http://user:[email protected]:8080\nhttps://5.6.7.8:3128\nsocks5://9.0.1.2:1080`}
        </pre>
        <p className="text-sm text-text-muted mt-1">
          {t("proxyDocumentationBulkDesc")} <code>type|host|port|user|pass|name</code>
        </p>
      </section>

      <section>
        <h3 className="font-semibold mb-2">SOCKS5</h3>
        <p className="text-sm text-text-muted">
          {t("proxyDocumentationSocks5DescBefore")}{" "}
          <code className="bg-surface-alt px-1 rounded">ENABLE_SOCKS5_PROXY=false</code>{" "}
          {t("proxyDocumentationSocks5DescAfter")}
        </p>
      </section>

      <section>
        <h3 className="font-semibold mb-2">{t("freePoolTab")}</h3>
        <p className="text-sm text-text-muted">{t("proxyDocumentationFreePoolDesc")}</p>
      </section>

      <section>
        <h3 className="font-semibold mb-2">Vercel Relay</h3>
        <p className="text-sm text-text-muted">
          {t("proxyDocumentationVercelRelayDescBefore")} (
          <code className="bg-surface-alt px-1 rounded">x-relay-auth</code>).{" "}
          {t("proxyDocumentationVercelRelayDescAfter")}
        </p>
      </section>
    </Card>
  );
}