Xget 是一个开源的超高性能、安全的一站式开发者资源加速引擎,能显著提升 GitHub、PyPI、npm、Docker Hub、Hugging Face、OpenAI 等平台的访问和下载速度。基于 Cloudflare 全球边缘网络,实现毫秒级响应,尤其适合网络受限环境。

项目地址:https://github.com/xixu-me/xget

项目特点

  • 极致性能:<50ms 平均响应、HTTP/3、并行下载、智能压缩
  • 企业级安全:请求验证、超时保护
  • 完整协议支持:Git 全协议(clone/pull/push/LFS)、容器 registry 认证
  • 智能缓存:默认 30 分钟边缘缓存
  • 无需额外配置:兼容 git、docker、pip、npm、curl 等工具

支持平台

  • 代码仓库:GitHub、GitLab、Gitea、Codeberg 等
  • 包管理器:npm、PyPI、conda、Maven、Homebrew、Go Modules 等
  • 容器镜像:Docker Hub、GHCR、Quay.io 等
  • AI 服务:OpenAI、Anthropic、Gemini、Mistral AI API 及 Hugging Face 模型
  • 其他:arXiv、Kaggle、Linux 发行版等

快速使用(公共实例:https://xget.xi-xu.me)

一键转换工具:https://xuc.xi-xu.me

示例

  1. Git Clone

    1
    git clone https://xget.xi-xu.me/gh/microsoft/vscode.git
  2. Docker Pull

    1
    docker pull xget.xi-xu.me/cr/ghcr/nginxinc/nginx-unprivileged:latest
  3. npm 加速

    1
    npm config set registry https://xget.xi-xu.me/npm/
  4. pip 加速

    1
    pip config set global.index-url https://xget.xi-xu.me/pypi/simple/
  5. OpenAI API 加速

    1
    base_url = "https://xget.xi-xu.me/ip/openai/v1"

自部署方式

  • Cloudflare Workers/Pages:Fork 后一键部署
  • Docker 自托管:
    1
    2
    docker pull ghcr.io/xixu-me/xget:latest
    docker run -d -p 8080:8080 ghcr.io/xixu-me/xget:latest

许可证:GPL-3.0,完全开源。