YouTube OAuth Setup Guide

Create your own credentials for secure YouTube uploads

← Back to Documentation

Video Tutorial Available

Watch the complete OAuth setup walkthrough: https://youtu.be/1rhyTrb3Qwc

Why Do I Need My Own Credentials?

Google requires applications that upload to YouTube on behalf of users to go through a costly verification process ($15,000-$75,000). Instead of passing this cost to users, Loki Studio uses a "bring your own credentials" approach where you create your own OAuth credentials for free.

Your credentials are:

  • Free to create
  • Private - stored only on your computer
  • Secure - sent only to Google's servers during authentication

Step-by-Step Setup

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console
  2. Sign in with your Google account
  3. Click Select a project (top left) → New Project
  4. Name it something like "Loki Studio" or "My YouTube Uploader"
  5. Click Create

Step 2: Enable the YouTube Data API

  1. In your new project, go to APIs & ServicesLibrary
  2. Search for "YouTube Data API v3"
  3. Click on it and press Enable

Step 3: Configure OAuth Consent Screen

  1. Go to APIs & ServicesOAuth consent screen
  2. Select External (unless you have a Google Workspace account)
  3. Click Create
  4. Fill in the required fields:
    • App name: "Loki Studio" (or any name you prefer)
    • User support email: Your email address
    • Developer contact email: Your email address
  5. Click Save and Continue
  6. On the Scopes screen, click Add or Remove Scopes
  7. Search for and add these scopes:
    • https://www.googleapis.com/auth/youtube.upload
    • https://www.googleapis.com/auth/youtube
  8. Click Update then Save and Continue
  9. On Test users, click Add Users and add your own email
  10. Click Save and Continue then Back to Dashboard

Step 4: Create OAuth Credentials

  1. Go to APIs & ServicesCredentials
  2. Click + Create CredentialsOAuth client ID
  3. Application type: Desktop app
  4. Name: "Loki Studio Desktop" (or any name)
  5. Click Create
  6. A dialog will show your Client ID and Client Secret
  7. Copy both values - you'll need them in the next step

Step 5: Enter Credentials in Loki Studio

  1. Open Loki Studio
  2. Go to Application SettingsYouTube tab
  3. Paste your Client ID in the first field
  4. Paste your Client Secret in the second field
  5. The credentials are automatically saved

Step 6: Add Your YouTube Channel

  1. Go to the Upload tab
  2. Click Add Channel
  3. Your browser will open to Google's sign-in page
  4. Sign in and authorize the application
  5. You'll see a success message in the browser
  6. Return to Loki Studio - your channel should now appear

Troubleshooting

"Access blocked: This app's request is invalid"

This usually means the OAuth consent screen is not configured or your email is not added as a test user. Go back to Step 3 and verify the consent screen setup.

"Error 400: redirect_uri_mismatch"

This can happen if the OAuth client type is not "Desktop app". Delete the credential and create a new one as "Desktop app".

"OAuth not configured" in Loki Studio

  • Make sure both Client ID and Client Secret are entered
  • The Client ID should end in .apps.googleusercontent.com
  • The Client Secret is usually a shorter alphanumeric string

Token Expired or Invalid

Tokens occasionally need to be refreshed. Try removing and re-adding the channel: Go to Upload → select channel → Remove Channel, then Add Channel again.

Security Notes

  • Your OAuth credentials are stored locally in app_settings.json
  • They are never sent anywhere except directly to Google during authentication
  • Each user must create their own credentials
  • You can revoke access anytime at Google Security Settings

Need More Help?

← Settings Reference Troubleshooting →
Buy me a coffee