Set Up a Twitch Clip Command: Nightbot !clip with Clipbot

Short answer: To add a clip command on Twitch, copy your !clip command from Clipbot (Settings → Accounts → Nightbot clip command). Then add it in Nightbot under Commands → Custom → Add Command. Set a 30-second cooldown and save. It takes about two minutes.
When you are live, anyone in chat can type !clip. Nightbot posts the new Twitch clip link in chat. The command uses a limited Clipbot key, so your Twitch login never goes into Nightbot or chat.
What you need
- A Clipbot account connected to Twitch
- Nightbot in your Twitch channel
- A live Twitch stream when you test the command
Twitch's Create Clip API requires the clips:edit permission and an active stream. Clipbot requests this permission when you connect your Twitch account.
1. Generate the Nightbot command response
- Open Clipbot.
- Go to Settings.
- Open Accounts.
- Find Nightbot clip command.
- Select Generate API key.
- Copy the complete command response.
Clipbot shows the key once. If you leave the page before you copy the response, generate a new key. A new key immediately stops the old command from working.
2. Add the command in Nightbot's dashboard
Do not paste the generated response into public Twitch chat. It contains your limited Clipbot API key.
- Sign in to Nightbot and open Commands → Custom.
- Select Add Command.
- Set the command to
!clip. - Paste the response that Clipbot generated into the message field. It has this structure:
$(urlfetch https://app.clipbot.tv/api/twitch/clips?api_key=YOUR_CLIPBOT_KEY&title=$(querystring))
- Set the cooldown to at least 30 seconds.
- Optional: set Userlevel to Moderator if only you and your mods should clip.
- Save the command.
Do not replace the generated key with a Twitch access token. Nightbot documents custom command management in its commands guide and remote responses in its urlfetch guide. The $(querystring) part passes along the words typed after !clip.
The cooldown stops duplicate clips. It also keeps you under Clipbot's limit of 3 clips a minute per key.
3. Test the command
Start a Twitch stream, then enter:
!clip Great play
Nightbot should reply with a Twitch clip link. Twitch needs a few seconds to finish the clip, so the link may not work right away.
The words after !clip become a Clipbot label after Twitch makes the new clip available. They do not change the title on Twitch.
What Clipbot does next
Shortly after a !clip, Clipbot pulls the new clip from Twitch into your clips. Clips made with Twitch's own clip button show up too.
Review the clip, pick a layout, and post it to TikTok or YouTube Shorts now or on a schedule. Automated captions are part of Pro. Clipbot has a 7-day free trial. After that, Pro costs $15 a month, or $9 a month billed yearly ($108). Start your free trial.
Want to edit a clip by hand first? See how to edit Twitch clips for TikTok and YouTube.
The API key can only identify your Clipbot account for this clip-creation endpoint. Treat the command as private configuration because anyone with the key can request clips while your channel is live. Regenerate the key in Settings → Accounts if it is exposed.
Troubleshooting
When a clip cannot be created, Clipbot replies in chat with the reason, such as Clip failed: clips only work while the stream is live.
Nightbot says "Remote server returned code 400"
Older Clipbot versions returned this when Twitch refused the clip, most often because the channel was offline. Go live and try !clip again. Clipbot now replies with a readable reason instead of an error code.
Nightbot says the request is unauthorized
Generate a new command response in Settings → Accounts and replace the old response in Nightbot's dashboard. Confirm that you copied the complete response.
Chat says the command uses another streamer's key
You copied someone else's !clip command. Their key clips their stream, not yours. Generate your own command in Settings → Accounts and replace the response in Nightbot.
Twitch reports a permission error
Log out of Clipbot and sign in with Twitch again. This refreshes the connected account and requests the clips:edit permission.
Twitch cannot create the clip
Confirm that the channel is live. Twitch does not create a clip for an offline channel. If chat says Clip failed: Twitch refused the clip., check that clips are turned on for your channel in your Twitch settings.
The command was used several times quickly
Wait a minute and try again. Clipbot allows 3 clips a minute per key. When you go over, chat sees Too many clips at once. Try again in a minute. A 30-second cooldown in Nightbot prevents this.
The clip URL appears before the clip is ready
Wait a few seconds and open the link again. Twitch says clip creation takes a short time. Clipbot keeps checking until the clip is ready.
Frequently Asked Questions
What does a Nightbot clip command do?
It lets anyone in chat type !clip to clip your live stream. Nightbot sends the request to Clipbot. Clipbot asks Twitch to make the clip, and Nightbot posts the clip link in chat. By default, Twitch saves up to the last 30 seconds.
Do I need to put a Twitch token in Nightbot?
No. Clipbot stores your Twitch access token securely in your connected account. The Nightbot command uses a separate Clipbot API key that only allows clip creation. This keeps your Twitch credentials out of chat.
What are the requirements for the command to work?
Your channel must be live, you need a Clipbot account connected to Twitch with the clips:edit permission, and Nightbot must be active in your channel. Generate the command in Clipbot at Settings → Accounts → Nightbot clip command.
Where do I generate the Nightbot command?
Sign in to Clipbot, go to Settings, open Accounts, find Nightbot clip command, and select Generate API key. Copy the complete response and paste it into Nightbot's custom command message field.
How do I add the clip command to Nightbot on Twitch?
Sign in to Nightbot's dashboard, go to Commands → Custom, select Add Command, set the command to !clip, paste the generated response from Clipbot into the message field, set a 30-second cooldown, and save. Never share this command response publicly as it contains your Clipbot API key. For more detailed setup instructions, see the step-by-step guide above.
What if my Nightbot clip command is not working?
Check that your channel is live, verify you copied the complete command response from Clipbot, ensure Nightbot is active in your channel, and confirm your Twitch account has the clips:edit permission. If the command says unauthorized, generate a new API key in Clipbot Settings → Accounts and update the Nightbot command. See the troubleshooting section for more common issues.
How do I add a clip command on Twitch?
Use Nightbot with Clipbot. In Clipbot, go to Settings → Accounts → Nightbot clip command and select Generate API key. Copy the command response. In Nightbot, go to Commands → Custom → Add Command, name it !clip, paste the response, set a 30-second cooldown, and save. See the step-by-step instructions above.
How do I set up a Nightbot clip command?
Generate the command in Clipbot Settings → Accounts, then add it to Nightbot. In Nightbot's dashboard, go to Commands → Custom, select Add Command, name it !clip, paste the generated response from Clipbot, set a 30-second cooldown, and save. The complete setup takes about two minutes. See the numbered steps above.
Can I make !clip work for moderators only?
Yes. In Nightbot, edit the !clip command and set Userlevel to Moderator. Then only you and your moderators can make clips.
Related Guides
Looking for more ways to create and manage Twitch clips? Check out how to clip on Twitch for alternative clip methods including Stream Deck buttons and other chatbot options.
Once you have clips created, learn how to find and manage your Twitch clips in the Creator Dashboard, or discover how to upload Twitch clips to YouTube Shorts to grow your audience across platforms.