An outside control panel can run bot actions without keeping the dashboard in front of you. For example, a Stream Deck key can pause music or control OBS while you stay in your game. NomNomzBot gives that tool its own credential, so it can connect without using your dashboard sign-in.
There are two ways to give it that access: pair a device that offers pairing, or make an API key that you paste into a compatible tool. Pairing handles the secret for you. A manual key lets you choose its allowed actions and, if needed, restrict which pipelines it can start.
You manage both on API and devices under Settings, in the Developers group. Touch Portal and custom scripts need a compatible setup that calls the bot’s automation API; merely creating a key does not add a plugin to those tools.
Connect a NomNomzBot Stream Deck plugin
The project supplies separate NomNomzBot Music and NomNomzBot OBS plugins for Stream Deck software 6.5 or later on Windows and macOS.
Choose the Music plugin release or OBS plugin release, download its .streamDeckPlugin file and open the file to install it in Stream Deck.
When an unpaired plugin starts, it opens Connect your Stream Deck in your browser.
- Enter your bot’s address in Bot URL. The default,
http://localhost:5080, fits a bot running on that computer; use the bot’s actual address for another computer or server. - Choose Authorize. The plugin opens the bot’s approval page and shows a pairing code.
- Sign in to the dashboard as the broadcaster if needed, then approve the device on that page.
- Wait for Paired! You can close this tab.
The device now appears in the dashboard’s key list. Its controls still need the underlying feature to work: connect Spotify for Spotify music and OBS for OBS control. Pairing supplies access to the bot; it does not connect those services for you.
Who can use this page
An Editor or the Broadcaster may open the page and see the list of keys. Only the Broadcaster sees New key, the Pair a device panel, and the buttons to make a new secret or revoke a key.
Make a key
Use this path when your tool asks for an API key rather than offering pairing. For example, a tool that starts one prepared pipeline can have Start pipelines enabled and only that pipeline selected. Test the pipeline in the dashboard first so a device-connection problem is easier to distinguish from an action that is not ready.
- Choose New key. The New API key dialog opens.
- Type a name in Name, for example
Stream Deck on my desk. Each key in the channel needs its own name. - Choose the Allowed actions (see the table below). Start pipelines, Read data and Listen to events are on when the dialog opens.
- If Start pipelines is on, you can pick pipelines in Pipelines it may start. The field shows only when the channel has at least one pipeline. Pick none to allow every pipeline.
- Pick a day in Ends on, or leave it empty for a key that does not end.
- Choose Make key. The Key for dialog opens and shows the key.
- Choose Copy key, paste the key into your tool, then choose I copied it.
The bot keeps only a fingerprint of the key. After the dialog closes, no one can see the key again. A key with an end day stops working at the end of that day.
| Allowed actions | What the tool may do |
|---|---|
| Start pipelines | Start a pipeline of the channel, or only the pipelines you picked. |
| Read data | Read the channel’s pipelines, chat commands, music player state and playlists, and OBS scenes and state. |
| Listen to events | Receive the channel’s public events while it is connected, and read past events. |
| Speak as the bot | Post chat messages, replies and whispers as the bot. |
Give a key only what the tool needs. A key needs at least one allowed action.
Read the key list
Each key is one row in the API keys table.
| Column | What it shows |
|---|---|
| Key | The name, and the first characters of the key. |
| Allowed | The allowed actions, as short words (see the next table). A key limited to some pipelines also shows “Starts N chosen pipelines only”. |
| Last used | The day the tool last used the key, or Never. |
| Ends | The end day, or No end date. |
| State | Active, Expired or Revoked. |
| Word in Allowed | The allowed action |
|---|---|
| invoke | Start pipelines |
| read | Read data |
| events | Listen to events |
| chat | Speak as the bot |
A key that may listen to events has an info button next to its allowed actions. It opens Events this key can listen to, a list of each event name with a short description.
Pair a device
Pairing connects a Stream Deck or another device without copying a key by hand. The Pair a device panel has two halves, one for each direction.
Make a code for the device
- Type a name in Device name and choose Make code. The page shows an eight-character code.
- Type the code into the device within five minutes. The code works once.
The device then gets its own key, which shows in the key list. A key made this way may start pipelines, read data and listen to events.
Approve a device code
- Read the code the device shows.
- Type it into Code shown on the device and choose Approve device. The page shows “Device approved. It appears in the key list.”
A device can also open an approval page in your browser. That page shows the code and an Approve button. If you are not logged in, the button reads Log in first: log in to the dashboard in the same browser, then reload the page.
A code the device shows works for ten minutes, and it works once. A paired device’s key is named after the kind of device and its name. If that name is taken, a short code is added in brackets. The key ends 30 days after pairing. A device that stays connected renews its own key, so you do not need to pair it again.
Make a new secret for a key
- Choose the rotate button on the key’s row. The dialog asks “Make a new secret for” the key.
- Choose Make new secret. The Key for dialog shows the new key once.
The old key stops working right away. The tool needs the new key before it can connect again. A revoked key cannot get a new secret.
Revoke a key
- Choose the trash button on the key’s row.
- Choose Revoke key.
Any tool or device that uses the key loses access right away. A paired device is unpaired. The key stays in the list with the state Revoked, and its row has no buttons.
Troubleshooting
When something is not right
A device says the code is invalid or expired. The code was used already, or its time ran out. Make a new code and type it in again.
When something is not right
Pairing says there are too many attempts. A device may try five codes a minute, and so may your account. All devices together may try 30 codes a minute. Wait the number of seconds the message names, then try again.
When something is not right
The key is lost. The bot cannot show it again. Make a new secret for the key, and put the new key into the tool.
Related pages
- Automation API covers requests from compatible tools and scripts.
- Dashboard tour
- Pipelines