# Ik wil Discourse AI installeren op Discourse

**URL:** https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622
**Category:** Self-hosting
**Tags:** ai
**Created:** [11 mei 2024 om 05:50 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622 "2024-05-11T05:50:58Z")
**Posts on this page:** 14
**Page:** 1

<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: [11 mei 2024 om 05:50 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/1 "2024-05-11T05:50:58Z")

</div>

1. I want to install Discourse AI on Discourse. Which of the following three methods should I use to install it?  
1-1. add the address of Discourse AI’s .git to ‘nono’ as shown in the plugin’s installation instructions  
1-2. [Discourse AI - Self-Hosted Guide](https://meta.discourse.org/t/discourse-ai-self-hosted-guide/259598) Enter the three lines of ‘Docker’ commands shown in this address to install it.  
\*Do I need to enter the command in the root directory?  
1-3. Do I need to do both 1-1. and 1-2.?
2. What are the minimum specifications to run Discourse AI?

---

<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: [16 mei 2024 om 10:36 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/2 "2024-05-16T10:36:15Z")

</div>

If I want to use Toxic, NSFW and Sensitivity in my self-hosted discourse, is it enough to just add this [GitHub - discourse/discourse-ai: Discourse AI now lives in the discourse/discourse repo · GitHub](https://github.com/discourse/discourse-ai.git)?

Or do I need to install them with the docker commands specified in the link below?

> [@Discourse AI - Self-Hosted Guide](https://meta.discourse.org/t/discourse-ai-self-hosted-guide/259598):
>
> This is a guide aimed at running your own instances of the services that power Discourse AI modules. Introduction If you want to use Discourse AI on your self-hosted instance, you may need to also run the companion services for the modules that you want to enable. Each module has one or more needed companion services, and those services use more CPU / GPU / disk space than Discourse itself, so keep in mind that this is not recommended for people unfamiliar with Linux server administration a…

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [16 mei 2024 om 11:26 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/3 "2024-05-16T11:26:09Z")

</div>

You need some LLM too that is something else that OpenAI based and a lot much more expensive. That plugin is just kind of interface, nothing more.

---

<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: [16 mei 2024 om 11:34 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/4 "2024-05-16T11:34:07Z")

</div>

Thank you for your response, could you please elaborate a little more?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [16 mei 2024 om 11:42 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/5 "2024-05-16T11:42:19Z")

</div>

> [@Truest](#):
>
> **just** add this

As your link tells **just** AI-plugin itself doesn’t do anything. It only gives settings. You need some AI too, self hosted or from OpenAI.

Models of OpenAI don’t give those services you want, so you have to go to self hosted. It needs some technical skills, but because you need quite big VPS it will be really costly.

---

<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: [16 mei 2024 om 12:05 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/6 "2024-05-16T12:05:01Z")

</div>

So to use it, I need to install the ‘Docker’ command from the self-hosted guide in the second link, not just the plugin? (I’m self-hosted)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [16 mei 2024 om 12:32 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/7 "2024-05-16T12:32:31Z")

</div>

Something like that, but much more.

---

<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: [16 mei 2024 om 13:26 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/8 "2024-05-16T13:26:47Z")

</div>

If I understand you correctly, does this mean that you need more than just plugins and ‘Docker’?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [16 mei 2024 om 14:26 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/9 "2024-05-16T14:26:25Z")

</div>

Yes, you need actual AI.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [16 mei 2024 om 14:29 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/10 "2024-05-16T14:29:05Z")

</div>

If in doubt, first try it all out by getting a key from Open AI first, then tackle the more complex task of deploying a local LLM engine later:

[https://platform.openai.com/docs/overview](https://platform.openai.com/docs/overview)

---

<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: [19 mei 2024 om 13:14 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?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [19 mei 2024 om 13:24 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/12 "2024-05-19T13:24:17Z")

</div>

You are only buildin up like a gateway. You must have AI itself somewhere. And to get what you are wanting you propably want to host one by yourself. And because demands are really high you will spin up a separate VPS and install that AI there.

So if you have done that then you have to tune up that docker command properly and you are good to go.

But AI is not part of docker or Discourse.

Perhaps you should do what Rober proposed and start with OpenAI. And after that at some point move on.

BTW, those functionalities you are looking for are not that reliable than you may think. And costs at least 60+ USD a month, perhaps 300+ is more close to reality.

---

<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: [19 mei 2024 om 13:28 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/13 "2024-05-19T13:28:50Z")

</div>

Thank for your reply

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [18 juni 2024 om 13:28 UTC](https://meta.discourse.org/t/i-want-to-install-discourse-ai-on-discourse/307622/14 "2024-06-18T13:28:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
