Connect Codex to YouTube
Give your Codex agent access to YouTube in Melso — 48 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 YouTube.
- 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 YouTube.
- 4Give the agent a task. It calls YouTube itself when the work needs it.
What YouTube gives your agent
The tools, permissions, and events YouTube exposes — the same ones your agent can use once the app is authorized.
What you sign in with
YouTube connects with OAUTH2.
- Client id
- Client secret
Permissions
Tools YouTube exposes
Add Video to Playlist
Tool to add a video to a playlist by inserting a playlist item. Use when organizing videos into playlists or building curated collections.
Insert Channel Section
Tool to create a new channel section for the authenticated user's YouTube channel. Use when organizing channel content into sections like featured playlists, recent uploads, or featured channels.
Insert Comment Reply
Tool to create a reply to an existing YouTube comment. Use when responding to user comments or engaging in conversations on videos.
Create Playlist
Tool to create a new YouTube playlist on the authenticated user's channel. Use when organizing videos into collections or building curated playlists.
Delete Channel Section
Tool to delete a YouTube channel section. Use when you need to remove a channel section from a channel. The channel section must exist and the authenticated user must have permission to delete it.
Delete Comment
Tool to delete a YouTube comment owned by the authenticated user or channel. Use when you need to remove a comment from a video. The comment must exist and be owned by the authenticated channel.
Delete Playlist
Tool to delete a YouTube playlist owned by the authenticated user/channel. Use when you need to permanently remove a playlist from YouTube. Requires explicit confirmation via `confirmDelete: true` to prevent accidental deletions.
Delete Playlist Item
Tool to delete a playlist item (remove a video from a playlist). Use when removing specific videos from playlists.
Events your agent can react to
New YouTube Activity
Triggers when a new activity is detected on a YouTube channel.
New Item in YouTube Playlist
Triggers when a new item is added to a YouTube playlist.
New Playlist in YouTube Channel
Triggers when a new playlist is added to a YouTube channel.
New YouTube Channel Subscription
Triggers when a new channel is subscribed.