Rdt Cli logo

Rdt Cli

Organization
public-clis
rdt-cli

Use rdt-cli for ALL Reddit operations — browsing feeds, reading posts, searching, viewing users, upvoting, saving, and subscribing. Invoke whenever the user requests any Reddit interaction.

Overview

Publisherpublic-clis
Repositoryrdt-cli
Skill namerdt-cli
Stars
539
Forks
62
Bundled files
30
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 30 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by public-clis on GitHub. Read the source before you install it.

Installation

Install the Rdt Cli AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/public-clis/rdt-cli/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/public-clis/rdt-cli.git \
  .claude/skills/rdt-cli
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rdt Cli in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rdt Cli on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rdt Cli is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

rdt-cli — Reddit CLI Tool

Binary: rdt Credentials: browser cookies (auto-extracted via browser-cookie3)

Setup

bash
# Install (requires Python 3.10+)
uv tool install rdt-cli
# Or: pip install rdt-cli

# Upgrade
uv tool upgrade rdt-cli

Authentication

IMPORTANT FOR AGENTS: Before executing ANY rdt command that requires auth, check if credentials exist.

Step 0: Check if already authenticated

bash
rdt status --json 2>/dev/null | jq -r '.data.authenticated' | grep -q true && echo "AUTH_OK" || echo "AUTH_NEEDED"

If AUTH_OK, skip to Command Reference. If AUTH_NEEDED, proceed to Step 1.

Step 1: Guide user to authenticate

Ensure user is logged into reddit.com in a supported browser (Chrome, Firefox, Edge, Brave, Arc, Chromium, Opera, Vivaldi, Safari, LibreWolf). Then:

bash
rdt login

Verify with:

bash
rdt status
rdt whoami --json | jq '.data.name // .data._session.username'

Step 2: Handle common auth issues

SymptomAgent action
No Reddit cookies foundGuide user to login to reddit.com in browser
Session expiredRun rdt logout && rdt login
database is lockedClose browser, then retry

Agent Defaults

All machine-readable output uses the envelope documented in SCHEMA.md. Payloads live under .data.

  • Non-TTY stdout → auto YAML
  • --json / --yaml → explicit format
  • --compact → fewer fields (agent token-efficient)
  • --output file.json → save structured output to file
  • Rich output → stderr (safe for pipes: rdt search X --json | jq .data)
  • Most read commands work without auth (public Reddit JSON API)
  • Write actions (upvote, save, subscribe) require auth + built-in 1.5-4s delay

Command Reference

Browsing

CommandDescriptionExample
rdt feedBrowse home feed (requires login)rdt feed -n 10 --json
rdt feed --subs-onlySubscriptions-only feed (no algorithm, sorted by time)rdt feed --subs-only -n 5 --json
rdt popularBrowse /r/popularrdt popular -n 5 --json
rdt allBrowse /r/allrdt all -n 10 --compact --json
rdt sub <name>Browse a subredditrdt sub python -s top -t week
rdt sub-info <name>View subreddit infordt sub-info rust --json
rdt user <name>View user profilerdt user spez --json
rdt user-posts <name>View user's postsrdt user-posts spez -n 5 --json
rdt user-comments <name>View user's commentsrdt user-comments spez -n 5 --json
rdt savedView your saved itemsrdt saved -n 10 --json
rdt upvotedView your upvoted postsrdt upvoted -n 10 --json
rdt open <id_or_index>Open post in browserrdt open 3

Reading

CommandDescriptionExample
rdt read <post_id>Read a post + commentsrdt read 1abc123 --json
rdt read <post_id> --expand-moreExpand top-level more commentsrdt read 1abc123 --expand-more --json
rdt show <index>Read by short-indexrdt show 3
rdt show <index> --expand-moreExpand more comments from cached resultrdt show 3 --expand-more --json
rdt whoamiView your profile (karma, age)rdt whoami --json

Search & Export

CommandDescriptionExample
rdt search <query>Search postsrdt search "python async" -s top -t year
rdt search <query> -r <sub>Search in subredditrdt search "error" -r rust --json
rdt search <query> -o f.jsonSearch + save to filerdt search "ML" -n 50 -o results.json
rdt export <query>Export to CSV/JSONrdt export "ML" -n 50 -o results.csv

Interactions (require auth)

CommandDescriptionExample
rdt upvote <id_or_index>Upvoterdt upvote 3
rdt upvote <id> --downDownvoterdt upvote 3 --down
rdt upvote <id> --undoRemove voterdt upvote 3 --undo
rdt save <id_or_index>Save postrdt save 3
rdt save <id> --undoUnsaverdt save 3 --undo
rdt subscribe <sub>Subscriberdt subscribe python
rdt subscribe <sub> --undoUnsubscriberdt subscribe python --undo
rdt comment <id> <text>Post a commentrdt comment 3 "Great post!"

Account

CommandDescription
rdt loginExtract cookies from browser
rdt logoutClear cached cookies
rdt statusCheck authentication status
rdt whoamiView detailed profile info

Listing Options

All listing commands (feed, popular, all, sub, user-posts, user-comments, saved, upvoted, search) support:

FlagDescription
--jsonJSON output (with SCHEMA envelope)
--yamlYAML output (with SCHEMA envelope)
-o, --output FILESave structured output to file
--full-textShow full title without truncation
-c, --compactAgent-friendly compact output (fewer fields)

Feed-specific Options

FlagDescription
--subs-onlyShow only posts from subscribed subreddits (sorted by time, no algorithm)
--max-subs NMax subscriptions to fetch (default: 20)

Agent Workflow Examples

Browse → Read → Upvote pipeline

bash
rdt sub python -s top -t week -n 5
rdt show 1 --expand-more
rdt upvote 1

Search → Export pipeline (structured)

bash
rdt search "machine learning" -s top --compact --json | jq '.data'
rdt export "machine learning" -n 100 -o ml_posts.csv

Search → Save to file

bash
rdt search "rust async" -n 50 -o results.json
rdt search "python tips" -n 20 --compact -o tips.json

User research

bash
rdt user spez --json | jq '.data | {name, link_karma, comment_karma}'
rdt user-posts spez -n 10 --compact --json
rdt user-comments spez -n 10 --compact --json

Saved / Upvoted review

bash
rdt saved -n 20 --compact --json
rdt upvoted -n 20 --compact --json

Subscriptions-only monitoring

bash
rdt feed --subs-only -n 5 --compact --json
rdt feed --subs-only --max-subs 10 -o subs_feed.json

Subreddit discovery

bash
rdt sub-info python --json | jq '.data | {subscribers, accounts_active}'
rdt sub python -s top -t month -n 5 --full-text

Sort Options

  • Listing sort: hot, new, top, rising, controversial, best
  • Search sort: relevance, hot, top, new, comments
  • Time filter (for top/controversial): hour, day, week, month, year, all
  • Comment sort: best, top, new, controversial, old, qa

Error Codes

Structured error codes returned in the error.code field (see SCHEMA.md):

  • not_authenticated — cookies expired or missing
  • rate_limited — too many requests
  • not_found — subreddit/user/post does not exist
  • forbidden — private subreddit or blocked user
  • api_error — upstream Reddit API error
  • unknown_error — unexpected error

Limitations

  • No DMs — cannot access private messages
  • No live/streaming — live features not supported
  • No media download — cannot download images/videos
  • Single account — one set of cookies at a time
  • Rate limited — built-in Gaussian jitter (~1s) between requests
  • Public API only — uses .json suffix API, not OAuth endpoints

Anti-Detection Notes for Agents

  • Do NOT parallelize requests — the built-in rate-limit delay is for account safety
  • Write operation delay: 1.5-4s random delay after each write (upvote/save/subscribe/comment)
  • Batch operations: add delays between CLI calls when doing bulk work
  • Chrome 133 fingerprint: all requests use consistent browser identity
  • Exponential backoff: 429/5xx errors are auto-retried with backoff

Safety Notes

  • Do not ask users to share raw cookie values in chat logs
  • Prefer browser cookie extraction over manual secret copy/paste
  • If auth fails, ask the user to re-login via rdt login
  • Built-in rate-limit delay protects accounts; do not bypass it

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rdt Cli AI skill do?

Use rdt-cli for ALL Reddit operations — browsing feeds, reading posts, searching, viewing users, upvoting, saving, and subscribing. Invoke whenever the user requests any Reddit interaction.

Why use Rdt Cli on TypingMind?

Because you install it once and use it with any model. Rdt Cli is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rdt Cli in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/public-clis/rdt-cli/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rdt Cli?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rdt Cli?

As many as you like. As long as a model supports skills, you can use Rdt Cli with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rdt Cli AI skill free?

It is published on GitHub by public-clis. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇