minipostiz-reddit-setup
Reddit OAuth setup for minipostiz-cli — create script app, get client credentials, store with username/password/subreddit
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- minipostiz-reddit-setup
- type
- setup
- description
- Reddit OAuth setup for minipostiz-cli — create script app, get client credentials, store with username/password/subreddit
03 SKILL.md 正文
minipostiz-cli — Reddit Setup
Reddit uses OAuth2 password grant for script-type apps. You need app credentials + your account credentials + a target subreddit.
Commands
minipostiz-cli <resource> <action>— Execute minipostiz-cli commandsminipostiz auth set-x— Store X/Twitter OAuth 1.0a credentials (apiKey, apiSecret, accessToken, accessSecret)minipostiz auth set-bluesky— Store Bluesky credentials (handle + app password)minipostiz auth set-discord— Store Discord webhook URLminipostiz auth set-telegram— Store Telegram bot token and chat IDminipostiz auth set-mastodon— Store Mastodon instance URL and access tokenminipostiz auth set-devto— Store Dev.to API keyminipostiz auth set-linkedin— Store LinkedIn access token and person URNminipostiz auth set-reddit— Store Reddit OAuth credentials and target subredditminipostiz auth set-facebook— Store Facebook page access token and page IDminipostiz auth list— List all configured social media platform credentialsminipostiz auth remove— Remove stored credentials for a platformminipostiz auth verify— Verify stored credentials for a platform are validminipostiz post publish— Publish a message immediately to one or more social media platformsminipostiz post schedule— Schedule a post for future publication on a social media platformminipostiz schedule list— List scheduled posts, optionally filtered by platformminipostiz schedule cancel— Cancel a scheduled post by IDminipostiz history list— Show post history with optional platform and status filtersminipostiz platforms list— List all supported platforms and their auth requirementsminipostiz daemon start— Start the background scheduler daemonminipostiz daemon stop— Stop the background scheduler daemonminipostiz daemon status— Check if the scheduler daemon is runningminipostiz self status— Show minipostiz-cli system status: version, db path, platforms, daemon
What you need
| Credential | Flag |
|---|---|
| Client ID | --clientId |
| Client Secret | --clientSecret |
| Reddit Username | --username |
| Reddit Password | --password |
| Target Subreddit | --subreddit |
Step 1 — Create a Reddit App
- Go to https://www.reddit.com/prefs/apps
- Scroll down → click Create another app...
- Fill in:
- Name:
minipostiz(or any name) - Type: select script (important — other types won't work with password grant)
- Description: optional
- Redirect URI:
http://localhost(required, not used)
- Name:
- Click Create app
- Note:
- Client ID — the string under your app name (looks like
abc123xyz) - Client Secret — shown as "secret" field
- Client ID — the string under your app name (looks like
Step 2 — Check posting permissions
- Your Reddit account must have sufficient karma to post to most subreddits
- Some subreddits require account age minimums
- Test with a subreddit you own or moderate first (e.g.
u_yourname— your profile subreddit)
Step 3 — Store in minipostiz-cli
minipostiz auth --platform reddit \
--clientId "abc123xyz" \
--clientSecret "YOUR_CLIENT_SECRET" \
--username "your_reddit_username" \
--password "your_reddit_password" \
--subreddit "test"
# Or via supercli
sc minipostiz auth set-reddit \
--clientId "abc123xyz" \
--clientSecret "YOUR_CLIENT_SECRET" \
--username "your_reddit_username" \
--password "your_reddit_password" \
--subreddit "test"
Use your own subreddit
u_yourusername(profile posts) or a subreddit you own for testing.
Step 4 — Test
minipostiz auth verify --platform reddit
minipostiz publish --platform reddit --message "# Test Post
This is a test post via minipostiz-cli."
Post format
Reddit posts are self (text) posts. minipostiz-cli maps:
- First line → post title (markdown heading stripped)
- Remaining lines → post body (markdown supported)
minipostiz publish --platform reddit --message "# Post Title
Post body with **markdown** support."
Posting to different subreddits
The subreddit stored in auth is the default. To override:
# Store multiple reddit auth entries by adding extra credentials
# (minipostiz stores one per platform — change subreddit in auth to switch)
minipostiz auth --platform reddit --clientId ID --clientSecret S \
--username U --password P --subreddit "anothersubreddit"
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
invalid_grant |
Wrong username/password, or 2FA enabled | Disable 2FA or use password without special chars |
403 Forbidden |
Subreddit posting restricted | Try your profile subreddit u_yourusername |
RATELIMIT |
Too many requests | Reddit limits to ~1 post per 10 minutes |
SUBREDDIT_NOTALLOWED |
Account karma/age too low | Post to your own subreddit first |
invalid_client |
Wrong app type | Ensure app type is script, not web/installed |
Token lifetime
Reddit password-grant tokens expire after 24 hours. minipostiz-cli re-authenticates automatically on each post using your stored credentials.
Security note
Storing your Reddit password in minipostiz-cli's SQLite DB (~/.minipostiz/minipostiz.db) is safe for personal use. For shared environments, use a dedicated alt account.
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
quickstart
暂无简介