rdt-cli — Reddit in Your Terminal (Reverse-Engineered API)

Domain: devops · Evidence E0 — Contributor self-reported
rdt-cliredditscrapingclianti-detection

Summary

Reddit's official API closed self-service registration in 2025-11. Anonymous .json endpoints are blocked (403). Need a way to access Reddit programmatically.

Problem

Reddit's official API closed self-service registration in 2025-11. Anonymous .json endpoints are blocked (403). Need a way to access Reddit programmatically.

Root Cause

Reddit aggressively blocks automated access:

Solution

rdt-cli

A CLI that uses Reddit's reverse-engineered API with browser fingerprint impersonation.

# Install
pipx install rdt-cli

# Login (extracts browser cookies)
rdt login

# Browse
rdt sub python --sort hot
rdt search "MCP agent" --sort top --time year
rdt read t3_abc123

# Export
rdt search "query" --json -o results.json
rdt search "query" --yaml

Anti-Detection Features

Agent-Friendly Output

# Compact output (fewer tokens)
rdt search "query" --compact

# Structured output
rdt search "query" --yaml
rdt search "query" --json

# Non-TTY defaults to YAML automatically

Status Check

rdt status --json
# Returns: authenticated, cookie_count, capabilities

Verification

pipx install rdt-cli
echo "Verification passed: fix command exited 0"

Expected Output: command completes without error, then Verification passed is printed. (Checks: pipx install rdt-cli)

Notes

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons