Bash.tv → GitHub → itch.io

Pushing Games from Bash to itch.io with butler

This guide sets up a Bash space so the bot can upload your games to itch.io using butler, itch.io’s official upload tool. You only do the setup once per space, plus a few settings once per game.


How to read the screenshots


What you need


Part 1: Get your itch.io API key

The API key lets butler upload to your itch.io account.

  1. Sign in to https://itch.io.
  2. Click your profile picture / username in the top-right corner, then Settings.
  3. In the left menu, under Developer, click API keys. Direct link: https://itch.io/user/settings/api-keys
  4. Click Generate new API key.
  5. Click View next to the new key, then copy it.

Important:

  • The key works for your whole itch.io account, so it can’t be limited to one game.
  • Never paste it into the Bash chat. Everyone watching the space can see the chat.
  • If it ever leaks, go back to this page and click Revoke next to the key, then make a new one.

Part 2: Add the key to your Bash space

  1. In your Bash space, click the gear icon next to the chat box.

    Gear icon next to the chat box

  2. Open the API keys tab.
  3. Under Add an API key, click Any API.

    Advanced settings: API keys tab and Any API button

  4. Fill in the form:

    Add API key form filled in for itch.io

    # Field What to enter
    4 Address api.itch.io
    5 Name itch.io
    6 Key paste your itch.io API key
    – How it’s sent Bearer token (leave as is)
    7 Tips for the bot see below
    8   click Add key

    Tips for the bot. Copy this and replace USERNAME/GAME with your own, like yourname/my-game:

    itch.io API key for butler. Push builds from Bash to itch.io with: butler push <folder> USERNAME/GAME:<channel> (use html5 for web games). Ask before pushing to a game that's already public.
    
  5. When you open the key again, it should look like this. Only api.itch.io is listed under Addresses, and that’s all butler needs.

    Saved itch.io key: Tips for the bot and a single api.itch.io address


Part 3: Create a game page on itch.io

Skip this part if the game already has a page.

  1. Go to https://itch.io/game/new.
  2. Give it a Title. The Project URL becomes your game’s name for butler. For example, https://yourname.itch.io/my-game → yourname/my-game.
  3. Leave Visibility on Draft for now, then click Save.

Part 4: Ask the bot to push

Send the bot a message like:

The itch.io key is set up. Push my game to USERNAME/GAME on the html5 channel.

The bot will:

  1. check that the key works,
  2. install butler in the space, if it isn’t installed yet,
  3. upload the game (butler push <folder> USERNAME/GAME:html5),
  4. wait until itch.io confirms the build finished.

The bot asks before pushing to a game that’s already public, because the new version goes live right away.


Part 5: One-time game page settings (only on the website)

The itch.io API can’t change these, so you need to set them once on the website. After the first push:

  1. Open your game’s page and click Edit game.
  2. Under Kind of project, change Downloadable to HTML.

    Edit game page: Kind of project set to Downloadable

    Kind of project menu: pick HTML

  3. Scroll to Uploads. On the html5 file that butler pushed, check This file will be played in the browser. This checkbox only appears after step 2.

    Uploads: the html5 file pushed by butler

    It should look like this once it’s checked:

    Uploads: "This file will be played in the browser" checked on the html5 file

    • Embed options appear after you check it. If the bot gave you an embed size, enter it here. Turn on the fullscreen button.
  4. Scroll down to Visibility & access. Choose Draft to test first, or Public to share it.
  5. Click Save.

    Visibility & access and the Save button

That’s it. Every later push to the same channel updates the game page automatically, with no more clicking needed.


Part 6: Check it worked

Open your game page. You should see a Run game button that plays the game in the browser. The bot can also check this for you. Just ask it to verify the itch.io page.


Troubleshooting

Problem Fix
Bot says “authentication required” The key isn’t saved. Check the gear icon → API keys for itch.io, and that its address is exactly api.itch.io.
The page only shows Download, not Run game Kind of project isn’t HTML, or the file isn’t checked as played in the browser (Part 5).
Can’t find “played in the browser” Change Kind of project to HTML first. Then the checkbox appears.
The game page shows a 404 for other people It’s still a Draft. Change Visibility to Public.
Bot pushed to the wrong game Put the exact USERNAME/GAME in Tips for the bot and in your message.
The key leaked Revoke it at https://itch.io/user/settings/api-keys, make a new one, and replace it in Bash.

Bot skill

The bot’s instructions for this are saved in skills/bash-and-publishing/bash-itchio-packager in the guide’s GitHub repo. Upload bash-itchio-packager.zip from that repo to a new space to teach its bot the same steps.


Quick checklist