Files
Nicholas Tindle 43cbe2e011 feat!(blocks): Add Reddit OAuth2 integration and advanced Reddit blocks (#11623)
Replaces user/password Reddit credentials with OAuth2, adds
RedditOAuthHandler, and updates Reddit blocks to support OAuth2
authentication. Introduces new blocks for creating posts, fetching post
details, searching, editing posts, and retrieving subreddit info.
Updates test credentials and input handling to use OAuth2 tokens.

<!-- Clearly explain the need for these changes: -->

### Changes 🏗️
Rebuild the reddit blocks to support oauth2 rather than requiring users
to provide their password and username.
This is done via a swap from script based to web based authentication on
the reddit side faciliatated by the approval of an oauth app by reddit
on the account `ntindle`
<!-- Concisely describe all of the changes made in this pull request:
-->

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
  - [x] Build a super agent
  - [x] Upload the super agent and a video of it working

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Introduces full Reddit OAuth2 support and substantially expands Reddit
capabilities across the platform.
> 
> - Adds `RedditOAuthHandler` with token exchange, refresh, revoke;
registers handler in `integrations/oauth/__init__.py`
> - Refactors Reddit blocks to use `OAuth2Credentials` and `praw` via
refresh tokens; updates models (e.g., `post_id`, richer outputs) and
adds `strip_reddit_prefix`
> - New blocks: create/edit/delete posts, post/get/delete comments,
reply to comments, get post details, user posts (self/others), search,
inbox, subreddit info/rules/flairs, send messages
> - Updates default `settings.config.reddit_user_agent` and test
credentials; minor `.branchlet.json` addition
> - Docs: clarifies block error-handling with
`BlockInputError`/`BlockExecutionError` guidance
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4f1f26c7e7. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

* **New Features**
* Added OAuth2-based authentication for Reddit integration, replacing
legacy credential methods
* Expanded Reddit capabilities with new blocks for creating posts,
retrieving post details, managing comments, accessing inbox, and
fetching user/subreddit information
* Enhanced data models to support richer Reddit interactions and
chainable workflows

* **Documentation**
* Updated error handling guidance to distinguish between validation
errors and runtime errors with improved exception patterns

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2026-01-09 20:53:03 +00:00
..

description, cover, coverY, layout
description cover coverY layout
Welcome to your teams developer platform .gitbook/assets/Banner_image.png 56.53835084561286
width cover title description tableOfContents outline pagination metadata
wide
visible size
true full
visible
false
visible
false
visible
false
visible
false
visible
false
visible
true

Developer Platform

AutoGPT Documentation

Create innovative agents that amplify human potential

Cover image

:leaf:

AutoGPT PlatformGet started with the developer platform in 5 minutes.AutoGPT PlatformAGPT_Platform.png

:server:

IntegrationsLearn more about hosting the developer platform.IntegrationsIntegrations.png

:terminal:

ContributeBrowse, test, and implement APIs.Contributing to the DocsContribute.png

{% columns %} {% column valign="middle" %}

AutoGPT License on GitHub

{% endcolumn %}

{% column %}

AutoGPT Classic (Local Installation)

{% endcolumn %} {% endcolumns %}

Join a community of 65,000+ developers

Join our Discord community or create your first PR in just a few steps.

:discord:

Discord communityJoin our Discord community to post questions, get help, and share resources with our growing community of over 55,000 members.Join Discordhttps://discord.com/invite/autogpt

:github:

GitHubOur product is 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.Submit a PRhttps://github.com/Significant-Gravitas/AutoGPT