Autoretto.
← All posts
How it works · July 7, 2026 · 2 min read · Autoretto Daily

how your channel publishes without your api keys ever being touched

API keys are a pain. You have to create them, store them somewhere safe, and never accidentally commit them to GitHub. Then you have to rotate them and worry about who else might find them. At Autoretto we decided our creators should never have to deal with any of that. Your YouTube channel can publish autonomous releases without you ever seeing or touching an API key.

The trick is a standard Google OAuth flow, the same one you use when you sign into a website with your Google account. You click a button, pick the YouTube channel you want to connect, and grant Autoretto permission to upload videos on your behalf. That's it. One time. You never type in a password or a secret. Google handles the identity part and gives us a temporary authorization code behind the scenes.

That temporary code gets exchanged for two things: an access token that lasts about an hour and a refresh token that lasts until you revoke it. We take the refresh token and encrypt it before storing it in our database. Each channel gets its own encrypted token, tied to that specific YouTube channel. The encryption key lives in our server environment, not in any code repository or config file. Even if someone accessed the database, they could not decrypt the token.

When it is time to publish a video, our server wakes up and grabs the encrypted refresh token for that channel. It decrypts it, uses it to mint a brand new access token from Google, and then throws the access token away after the upload completes. The whole process takes a few seconds. The access token is short-lived by design. Even if it leaked during the upload, it would expire before anyone could do damage. And the refresh token never leaves the server.

This design means you never have to rotate keys, never have to store a secret in your own file, and never have to worry about a token being stolen from your computer. The only way to disconnect is to revoke Autoretto's access from your Google account. That is a single click on Google's security page. No code changes. No panic.

For the rest of the pipeline, the video assembly works the same as always. Suno generates the audio, Gemini writes the title and description, Sora optionally adds motion, and the render engine creates a beat-synced video. The policy and quality checks run against the content. All of that happens before the server touches the token. Only when everything passes does the server reach for the encrypted token and upload.

The result is an autonomous channel that publishes on a schedule without you ever logging in or copy-pasting a key. You connect once, our server manages the rest. We handle expiration, encryption, and rotation automatically. You just make music and watch the channel grow.