Connect Reddit to your agents for posts, comments, and messages.
Overview
A Reddit credential lets agents read subreddit content, submit posts and comments, vote, and access private messages.
Why "Bring Your Own Key" (BYOK)?
Reddit OAuth apps are registered under your Reddit account. BYOK keeps credentials and API access under your control.
Benefits:
- Your app — registered at reddit.com/prefs/apps under your account
- Scoped permissions — request only the OAuth scopes your agents need
- Your rate limits — API usage counts against your app's quota
Prerequisites
Before connecting, you'll need:
- A Reddit account
- A Reddit app registered at reddit.com/prefs/apps
Step 1: Create a Reddit app
- Go to reddit.com/prefs/apps
- Click create another app... (or create app)
- Choose web app as the app type
- Set the redirect URI:
| Environment | Callback URL |
|---|---|
| Production | https://app.inference.sh/settings/secrets/oauth/reddit |
| Staging | https://app.staging.inference.sh/settings/secrets/oauth/reddit |
| Local dev | http://localhost:3000/settings/secrets/oauth/reddit |
- Save and copy the client ID (under the app name) and client secret
Step 2: Connect in inference shell
Configure credentials
- Go to Vault → credentials
- Find Reddit and click Configure
- Enter:
- Client ID (
REDDIT_CLIENT_ID) - Client Secret (
REDDIT_CLIENT_SECRET)
- Client ID (
- Click Save credentials
Authorize the connection
- Click Connect
- Sign in to Reddit and approve the requested permissions
- Done — the credential status shows Connected
Capabilities
| Capability | Description | Required Scopes |
|---|---|---|
reddit.read | Read posts, comments, and listings | identity, read |
reddit.history | Read voting and comment history | identity, read, history |
reddit.submit | Submit links and comments | identity, read, submit |
reddit.vote | Submit and change votes | identity, vote |
reddit.privatemessages | Access inbox and send messages | identity, privatemessages |
Using in apps
Declare Reddit requirements in your app:
yaml
1# inf.yml2credentials:3 - key: reddit.read4 description: Monitor subreddit posts56 - key: reddit.submit7 description: Post comments on behalf of the user8 optional: trueAt runtime, your app receives:
bash
1REDDIT_ACCESS_TOKEN=oauth2-access-token2REDDIT_ACCESS_TOKEN_EXPIRES_AT=2026-06-03T12:00:00ZUse the token with the Reddit OAuth API.