# I want to install Discourse AI on Discourse

**URL:** <https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622>\
**Category:** Self-hosting\
**Tags:** ai\
**Created:** [May 11, 2024, 5:50am UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622 "2024-05-11T05:50:58Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Truest](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@Truest](https://meta.discourse.org/u/Truest)\
**Post date:** [May 19, 2024, 1:14pm UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/11 "2024-05-19T13:14:40Z")

</div>

1. if I understand correctly, in order to properly bring up certain APIs on self-hosting, you need to install them using docker commands, is that correct?  
For example, if it is a toxic AI, I would need to install “docker run -it --rm --name detoxify -e BIND\_HOST=0.0.0.0 -p6666:80 [Package detoxify · GitHub](http://ghcr.io/discourse/detoxify:latest)”.  
1-1. In this case, is it okay to leave the endpoint values as they are?
2. “docker run -it --rm --name detoxify -e BIND\_HOST=0.0.0.0 -p6666:80 [Package detoxify · GitHub](http://ghcr.io/discourse/detoxify:latest)” Should this command be run from the discourse directory? Or should it be run from the root directory?

---

_[View the full topic](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622)._
