- Rust 67.6%
- Shell 32.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| stubs/macos | ||
| .env.example | ||
| .gitignore | ||
| build.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
grindr-always-online
Rust script that keeps a Grindr account always "online" by sending a GET /v4/cascade request at random intervals (2–10 min apart). Automatically changes location by ~5m each request to improve grid rankings. Powered by grindr.rs.
Download
A single reproducible binary with no dependencies. Save it as grindr-always-online (.exe on Windows) and chmod +x it:
- Linux (x86_64)
- Linux (arm64) — Raspberry Pi 3, 4, 5 and Zero 2 W with 64-bit OS
- Linux (armv7) — Raspberry Pi 2, 3, 4 and Zero 2 W with 32-bit OS
- Linux (armv6) — Raspberry Pi 1, Zero and Zero W
- Linux (riscv64)
- macOS 11+ (Apple Silicon)
- macOS 11+ (Intel)
- Windows 10+ (x86_64)
- Windows 10+ (arm64)
- FreeBSD 14+ (amd64)
- other systems: build it
Configure
- Download or build the binary.
- Set your credentials. Every account type signs in with its Grindr
authToken(the long-lived token Grindr returns at sign-in), plus the id the token belongs to:
export GRINDR_AUTH_TOKEN="0123456789abcdef…"
# Email account
export GRINDR_EMAIL="m@example.com"
# Google or Facebook account: the thirdPartyUserId Grindr returned with the token
export GRINDR_THIRD_PARTY_USER_ID=""
# https://geohash.softeng.co/, must be 12 characters
export GRINDR_GEOHASH=""
export GRINDR_DATA_DIR="/var/lib/grindr-always-online"
Email accounts can sign in with GRINDR_EMAIL and GRINDR_PASSWORD instead of GRINDR_AUTH_TOKEN, unless Grindr asks that account for a captcha. Phone number accounts are not supported.
Or put them into .env and load:
set -a; source .env; set +a
Or use systemd's EnvironmentFile=:
[Unit]
Description=Grindr Always Online
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
DynamicUser=yes
StateDirectory=grindr-always-online
WorkingDirectory=/var/lib/grindr-always-online
EnvironmentFile=/etc/grindr-always-online/.env
Environment="GRINDR_DATA_DIR=/var/lib/grindr-always-online"
ExecStart=/opt/grindr-always-online/target/release/grindr-always-online
Restart=always
RestartSec=30
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectHome=yes
ReadWritePaths=/var/lib/grindr-always-online
ReadWritePaths=/etc/grindr-always-online
ReadWritePaths=/opt/grindr-always-online
ReadOnlyPaths=/boot
ReadOnlyPaths=/srv
ReadOnlyPaths=/usr
[Install]
WantedBy=multi-user.target
Run
./grindr-always-online # loop forever at random intervals
./grindr-always-online once # fire a single request and exit
From source: cargo run --release or cargo run --release -- once.
The login session and device identity are cached in session.json and
device.json in the data directory, so it only needs the credentials on the
first run. A refresh can return a new auth token, and session.json always
holds the latest one. Delete session.json to switch accounts or when Grindr
ends the session.
Building
Needs Rust 1.88+, CMake, Git, libclang and a C compiler:
git clone https://git.hloth.dev/hloth/grindr-always-online.git
cd grindr-always-online
cargo build --release
Reproducible builds
./build.sh rebuilds the release files byte for byte on macOS or Linux. It needs curl, Git, make, tar, rustup, libclang and a C compiler (Xcode Command Line Tools, or build-essential libclang-dev on Debian), and downloads the pinned rest to ~/.cache/grindr-always-online: Rust 1.99.1, zig 0.17.0, cargo-zigbuild 0.24.0, CMake 4.4.4 and NASM 3.02.
git checkout v1.2.0
./build.sh # every platform
./build.sh linux-x86_64 macos-arm64 # only these
Compare the printed SHA-256s with the release's SHA256SUMS. The macOS files are signed and notarized, so put the release file in downloaded/ and re-sign both with rcodesign 0.29.0 first:
rcodesign sign --code-signature-flags runtime --binary-identifier dev.hloth.grindr-always-online dist/grindr-always-online-v1.2.0-macos-arm64
rcodesign sign --code-signature-flags runtime --binary-identifier dev.hloth.grindr-always-online downloaded/grindr-always-online-v1.2.0-macos-arm64
cmp dist/grindr-always-online-v1.2.0-macos-arm64 downloaded/grindr-always-online-v1.2.0-macos-arm64