Connect Codex to Reddit
Give your Codex agent access to Reddit in Melso — 21 tools it can call while it works through a task.
Set it up in Melso
- 1In Melso, open Settings → Agent Apps and hit Connect on Reddit.
- 2Finish the OAUTH2 sign-in in the window that opens. Melso stores the connection, not your credentials.
- 3Open your Codex agent, go to its Agent Apps tab, and allow Reddit.
- 4Give the agent a task. It calls Reddit itself when the work needs it.
What Reddit gives your agent
The tools, permissions, and events Reddit exposes — the same ones your agent can use once the app is authorized.
What you sign in with
Reddit connects with OAUTH2.
- Client id
- Client secret
Permissions
Tools Reddit exposes
Create a Reddit post
Creates a new text or link post on a specified, existing Reddit subreddit, optionally applying a flair. Immediately publishes publicly visible content — confirm subreddit, title, and body with the user before executing. Posts may be silently removed post-submission by automoderator or subreddit rules (errors: SUBMIT_VALIDATION_BODY_BLACKLISTED_STRING, POST_GUIDANCE_VALIDATION_FAILED); verify visibility via the returned permalink. Rapid consecutive calls trigger RATELIMIT errors with cooldown hints.
Delete Reddit comment
Deletes a Reddit comment, identified by its fullname ID, if it was authored by the authenticated user. Deletion is permanent and irreversible.
Delete a Reddit post
Permanently and irreversibly deletes a Reddit post by its ID. Confirm with the user before calling. Only works on posts authored by the authenticated account; attempting to delete another user's post will fail.
Edit comment or post
Edits the body text of the authenticated user's own existing comment or self-post on Reddit; cannot edit link posts or titles.
Get Reddit listing by sort
Tool to retrieve a listing of Reddit posts sorted by the specified criteria (hot, new, top, rising, controversial, best). Use when you need to get posts from the Reddit front page or all of Reddit with a specific sort order. Supports pagination and time filtering for top and controversial sorts. For new controversial-post workflows, prefer GET_CONTROVERSIAL; this action retains controversial support for backward compatibility. Use GET_RANDOM for random posts.
Get controversial posts from all subreddits
Tool to retrieve controversial posts from all subreddits with time filters. Use when you need to find the most controversial posts across Reddit from a specific time period (hour, day, week, month, year, or all-time). Returns a paginated listing of posts ranked by controversy within the specified time frame.
Get user preferences
Tool to retrieve preference settings of the logged in user. Use when you need to check user preferences or settings.
Get new posts from subreddit (Deprecated)
DEPRECATED: Use RetrieveRedditPost instead. Tool to retrieve newest posts from a subreddit sorted by creation time. Use when you need to find the most recently submitted posts to discover fresh content. Returns a paginated listing of posts ranked by newest first.