reddit-cli

data sources

choose the live reddit api or the arctic shift archive.

sourceaccessuse it for
livereddit data api with app-only oauthcurrent listings and scores, reddit search, and expanding hidden replies in live threads
archivearctic shift, a third-party archive that requires no credentialshistorical posts, comment text search, and date or author filters
autoselects live when credentials resolve and archive otherwisea default based on your local configuration

select a source

--source takes precedence over REDDIT_CLI_SOURCE, then the top-level source setting in config.toml. the default is auto. the cli selects the source once before a request. if the source fails, read the hint and rerun with a different --source when that source supports the request. auth, cache, and skills ignore --source.

reddit data api shutdown

reddit stopped accepting new public data api access on october 31, 2026. unregistered apps lose access starting january 12, 2027. all public access ends in march 2027. the arctic shift archive uses a separate service. project spec

backend support matrix

unsupported combinations return E_UNSUPPORTED before a request. the table shows supported options and the endpoints each source uses.

command or flaglivearchive
sub --sort hot/rising/controversial/topyesno
sub --sort newyes/posts/search?subreddit=&sort=desc
sub --timeyesno
about/r/S/about/subreddits/search?subreddit=S. first exact match or E_NOT_FOUND.
search --type posts/search or /r/S/search/posts/search?query=. requires --sub or --author.
search --type commentsno/comments/search?body=. requires --sub or --author.
search --type subs/subreddits/search?q=/subreddits/search?subreddit_prefix=&sort_type=subscribers. one page.
search --type users/users/search?q=/users/search?author_prefix=&sort_type=total_karma. one page.
search --author/--since/--untilnoyes
search --sortall valuesnew descending. treats relevance as new.
search --timeyesno. use --since and --until.
search --comments K (up to 100)yesfetches roots via /comments/search?link_id=&parent_id=, up to five pages per post, and sorts by score locally. a note reports truncation at the cap.
thread/comments/ID and /api/morechildren/posts/ids?ids= and /comments/tree?link_id=t3_ID&limit=9999
thread --sort/--depth/--limityesfetches the tree with limit=9999, then applies top, new, or old sort and depth and limit locally. pruning sets complete to false and adds a note with the count dropped.
thread --full/--max-requestsyesthe cli fetches the archive tree without expansion and adds a note if you pass either flag.
user overview, posts, or comments/user/U/about and a listing/users/search?author=U and /posts/search?author= or /comments/search?author=. overview merges activity by time.
user --sort hot/top/controversial and --timeyesno
user --since/--untilnoyes

live threads default to confidence sort. archive threads default to top.

archive caveats

arctic shift captures scores and comment counts at posting time and refreshes them once about 36 hours later. when its second-capture marker is absent, the cli reports score, num_comments, and upvote_ratio as null.

post search uses a simple keyword match. comment search uses postgres full-text search with websearch_to_tsquery syntax. if a busy subreddit or user times out, narrow the dates or add a subreddit or author filter. archive caveats appear in meta.notes.

On this page