Esto se puede hacer utilizando un outlet de plugin y agregando algunos Handlebars (estos conceptos se cubren en Developing Discourse Themes & Theme Components)
En tu tema (admin > personalizar > temas > editar CSS/HTML), puedes agregar esto a tu archivo <head>.
<script type="text/x-handlebars" data-template-name="/connectors/above-main-container/anon-button">
{{#if this.currentUser}}
{{#if this.currentUser.is_anonymous}}
{{d-button class="btn-primary" action=(route-action 'toggleAnonymous') icon="ban" label="switch_from_anon"}}
{{else}}
{{d-button class="btn-primary" action=(route-action 'toggleAnonymous') icon="user-secret" label="switch_to_anon"}}
{{/if}}
{{/if}}
</script>
