A Lua script for OBS Studio that allows streamers to create Twitch stream markers with a single keypress. Stream markers make it easy to highlight important moments during your broadcast that you can revisit later in your VOD, as well as download .csv file with all Your markers to edit in your software of choice.
- Create Twitch stream markers with a customizable hotkey
- Automatically adds timestamp to marker descriptions
- Verifies stream is active before attempting to create markers
- Validates your Twitch credentials on startup
- Handles common errors with detailed explanations
- Includes testing buttons to verify your configuration
- Works on Windows systems
- OBS Studio 27.0 or newer
- A Twitch account with streaming privileges
- curl installed (already included in most Windows installations)
- A Twitch Developer Application with proper scopes
-
Download the
easy_twitch_markers.luascript from the releases page -
Place the file in your OBS scripts folder:
- Windows:
%APPDATA%\obs-studio\scripts - macOS:
~/Library/Application Support/obs-studio/scripts - Linux:
~/.config/obs-studio/scripts - You can choose any folder as long as You choose it inside of OBS.
- Windows:
-
In OBS Studio, go to Tools → Scripts
-
Click the "+" button and select the
easy_twitch_markers.luafile -
Configure the script with your Twitch credentials (see next section)
- Go to the Twitch Developer Console
- Log in with your Twitch account
- Click on "Register Your Application"
- Fill in the application details:
- Name:
OBS Marker Script(or any name you prefer) - OAuth Redirect URLs:
http://localhost - Click "Add" and add another OAuth Redirect URL -
https://twitchtokengenerator.com - Category: "Application Integration"
- Name:
- Click "Create"
- On the next page, note down your Client ID
- Click "New Secret" and copy your Client Secret
- Solve captcha and click "Save".
- Go to Twitch Token Generator
- Click "Custom Scope Token"
- Select the
channel:manage:broadcast(You can also click "Select all") - Click "Generate Token!"
- Authorize your Twitch account
- Copy the Access Token that appears
- Go to Twitch Tools
- Enter your Twitch username
- Click "Convert" and copy your User ID
- In OBS, go to Tools → Scripts
- Select the Twitch Marker script
- Fill in the following fields:
- Client ID: your Client ID from step 1
- OAuth Token: your Access Token from step 2
- Broadcaster ID: your User ID from step 3
- Enable "Debug Mode" if you want detailed logs
- Click "Check Token" to verify your credentials
- In OBS, go to Settings → Hotkeys
- Find "Add Twitch Marker" in the list
- Click on the field and press the key combination you want to use
- Click "Apply" to save your hotkey
- Start your Twitch stream using OBS
- Press your configured hotkey whenever you want to create a marker
- The script will create a marker on your stream with a description that includes the current time
- After your stream, you can find these markers in your VOD
Note: Markers can only be created during an active stream. The script will notify you if you try to create a marker while not streaming.
- Your token may have expired (they typically last 60 days)
- Generate a new token using the steps above
- Your token doesn't have the required permissions
- Make sure to select the
channel:manage:broadcastscope when generating your token
- You can only create markers during an active stream
- Make sure your stream is live on Twitch
- Ensure curl is installed on your system
- On Windows, it's usually available by default in newer versions
If you encounter issues not covered here:
- Enable Debug Mode in the script settings
- Check the OBS log (Help → Log Files → View Current Log)
- Create an issue on GitHub with the relevant log sections
This project is licensed under the MIT License - see the license information at the top of the script for details.
- Created by evilfurmo with assistance from Claude AI
- Based on the Twitch API Create Stream Marker endpoint
- Inspired by the need for quick and easy VOD marking during streams
Contributions are welcome! Feel free to submit pull requests or create issues for bugs and feature requests.
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add some amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request