mizorewww/gdirect

GITHUB项目档案

主语言 Rust · 754 星 · GPL-2.0 · 创建于 2026-10-25

新秀7 天第 19 名
打开 GitHub 仓库

Rust Google Drive direct downloader using pinned libaria2

Stars 754 累计 star,越多说明被认可得越广
Watching 1 订阅该仓库变动的人数
Forks 49 被派生出去的仓库数
Issues 1 当前开放的 Issue 数
语言 Rust GitHub 自动判定的主语言
许可证 GPL-2.0 开源协议,用之前先确认能不能商用
24h 增长 — 数据积累中
7 日增长 — 数据积累中
30 日增长 — 数据积累中

仓库健康度

5 个维度
只看客观信号,不构成安全性结论
维护活跃度 数据完整
2026-10-26 19:07 最近推送

最近推送 2026-10-26 19:07(2 天前),属于活跃维护

社区响应 数据完整
1 开放 Issue

开放 Issue 1 个 · Fork 49 个

增长趋势 证据不足
— 7 日新增

star 记录还不够天数,增量算不出来

项目规范 数据完整
GPL-2.0 许可证

许可证 GPL-2.0

版本发布 证据不足
— 发布次数

这一项暂无数据,不代表项目没有发布

「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。

Star 趋势

3 天记录
最近 90 天站内记录的星数
754当前 Star +70首尾差值 2026-10-26最早记录 2026-10-28最近记录

横轴 2026-10-26 → 2026-10-28,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。

README 原文细节

3 个板块
项目自己写的功能与用法,原文照录

怎么安装从零跑起来的步骤

Install

Prebuilt for macOS 15+ (Apple Silicon / Intel), Linux x8664 with glibc 2.35+ (Ubuntu 22.04+, Debian 12+, recent Fedora/Arch/openSUSE), and Windows x8664. Alpine/musl, older glibc and Linux ARM64 need a source build.

The installer puts gdirect in ~/.local/bin (Windows: %LOCALAPPDATA%\gdirect\bin) and tells you how to add it to PATH. On Windows, open a new terminal after installing.

To use mount, add --with-mount (PowerShell: -WithMount). This also installs rclone 1.75.2+ and, on Linux, FUSE3 through your package manager (uses sudo). On Windows it installs rclone and WinFsp with winget; WinFsp may ask for administrator approval.

Upgrade with brew update && brew upgrade gdirect, or by rerunning the installer.

curl -fsSL https://raw.githubusercontent.com/mizorewww/gdirect/main/scripts/install.sh | bash

One-time Google setup (about 10 minutes)

gdirect does not ship a shared Google client, so you create your own in a Google Cloud project, once. Follow the Google setup guide to download a Desktop app OAuth client JSON, then:

A browser opens. After you approve, the terminal prints Logged in. The JSON file is not needed again.

gdirect login --client-secret ~/Downloads/client_secret.json

实现原理它内部是怎么做的

How it works

The first transfer command scans candidate IPs automatically and keeps the fastest working one for 24 hours. login and mount do not scan. Each candidate is probed with the real SNI first, then with the forged identity, so the stored route always reflects what actually connects. Certificates are verified against Google's own GTS roots (embedded in the binary), never against a system CA bundle — a compromised third-party CA cannot impersonate Google for gdirect.

  • Drive API, downloads, uploads (browse, ls, download, upload) — A scanned Google IP. The hostname and certificate check stay the same. If connections carrying the real SNI are reset, gdirect automatica
  • Sign-in and token refresh (oauth2.googleapis.com) — Your normal system network (DNS, proxy)
  • mount (rclone) — Your normal system network
  • Sign-in and token refresh must reach oauth2.googleapis.com through your system network. If Google is blocked, you still need a proxy or VPN for this.
  • If you use a TUN-mode proxy or VPN (for example Clash/Mihomo TUN), route the scanned Google IPs DIRECT and turn off fake-ip for them. Otherwise gdirect's traffic is captured again and the scan finds n

其它说明README 里剩下的内容

Daily use

browse shows the parent folder, the current folder and a preview side by side, like yazi. Press ? for every key.

Advanced route options (download and browse take all of them; ls and upload accept --ip and --sni):

Run gdirect scan to scan again and gdirect scan --list to see the results, including the last error for each IP. To test your own candidates, run gdirect scan --ips FILE. The file holds one public IP per line, and # starts a comment.

For scripts, GDIRECTACCESSTOKEN can supply an access token instead of a login (mount still needs gdirect login).

  • j/k, ↑/↓ — Select
  • g/G, Home/End — First / last item
  • Ctrl-d/Ctrl-u, PgDn/PgUp — Half a page / a page down or up
  • Enter, l/→ — Open folder
  • h/←, Backspace — Parent folder
  • / — Filter the current folder by name. Enter keeps the filter, Esc clears it
  • Ctrl-r, F5 — Refresh
  • Space — Mark or unmark an item. Marks are kept when you change folders
  • Ctrl-a — Mark everything shown (press again to unmark)
  • Esc — Clear the filter, then the marks, then the clipboard
  • a — Create an empty file; a name ending in / creates a folder
  • r — Rename
  • y / x — Copy / cut the marked items, or the selected one
  • p — Paste into the current folder. Cut items are moved; copied files are duplicated (Drive cannot copy folders)

Mount

Mounting requires the dependencies from --with-mount or the Homebrew step above.

  • On macOS the mount uses the built-in NFS client, so no FUSE driver is needed. Linux uses FUSE3.
  • On Windows the mount runs in the foreground and stops with Ctrl-C.
  • The mount directory must be empty on macOS/Linux. On Windows it must not exist yet.
  • Writes go to a local cache first and upload in the background. The cache tries to stay under 5 GiB, but open or unsent files can exceed that. Uploads are finished when the log printed by mount shows t
  • unmount keeps files that have not been uploaded yet, and the next mount uploads them.
  • -j sets how many rclone transfers run at once.

Your data and logout

Credentials, scanned IPs and settings are stored in one private SQLite file:

Use --db PATH to choose another file. gdirect logout removes the stored credentials and keeps the scanned IPs. Unmount before logging out. To switch Google accounts, run gdirect login --reauth.

Sign-in problems, the 7-day expiry and other questions are covered in Troubleshooting.

  • macOS: ~/Library/Application Support/gdirect/state.sqlite3
  • Linux: ~/.local/share/gdirect/state.sqlite3
  • Windows: %LOCALAPPDATA%\gdirect\state.sqlite3

关于 gdirect 的常见问题

3 个问题
答案来自 README 归纳与 GitHub 实时数据
gdirect 是做什么的?

mizorewww/gdirect 是 GitHub 上的开源项目:Rust Google Drive direct downloader using pinned libaria2。README 里的说明是:gdirect browses, downloads, uploads and mounts your Google Drive from the terminal. It finds Google IPs that are reachable from your network and sends Drive traffic straight to them, with multi-connection, resumable downloads.

怎么安装 gdirect?

按项目 README 的说明:Prebuilt for macOS 15+ (Apple Silicon / Intel), Linux x8664 with glibc 2.35+ (Ubuntu 22.04+, Debian 12+, recent Fedora/Arch/openSUSE), and W;The installer puts gdirect in ~/.local/bin (Windows: %LOCALAPPDATA%\gdirect\bin) and tells you how to add it to PATH. On Windows, open a new;gdirect does not ship a shared Google client, so you create your own in a Google Cloud project, once. Follow the Google setup guide to downl;A browser opens. After you approve, the terminal prints Logged in. The JSON file is not needed again.。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。

gdirect 现在还在维护吗?数据怎么样?

目前 754 星,49 个 Fork,主语言 Rust,创建于 2026-10-25,最近一次推送 2026-10-26 19:07,许可证 GPL-2.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。

这些内容来自哪

读法说明
中文整理据 README 归纳,数据取自 GitHub
中文说明据项目 README 归纳只写 README 能确认的内容,不替作者补功能与数字
关键数据与 GitHub 页面一致星数、Fork、语言与时间都不做二次加工
数据日期2026-10-26 06:39星数与介绍这份数据是哪一天的

项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-10-26 06:39。