To Twitch a “chat bot” is just a user account, it’s not marked “specially” as a bot.
So currently you can’t just get a token as the account is no different to a user, hence the manual browser step.
Usually an access token is only valid for around four hours, so I don’t bother trying the access token, when my bot (re)starts it just uses the refresh proceedure and I don’t bother storing the access token beyond using it to login to chat. (As in most cases my bot’s don’t restart sooner than four hours anyway)