# API works manually, but AI (Grok/xAI) does not reach VPS

**URL:** https://meta.discourse.org/t/api-works-manually-but-ai-grok-xai-does-not-reach-vps/387960
**Category:** Support
**Tags:** rest-api, ai, ai-bot
**Created:** [November 9, 2025, 8:26am UTC](https://meta.discourse.org/t/api-works-manually-but-ai-grok-xai-does-not-reach-vps/387960 "2025-11-09T08:26:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Enit](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/enit/32/525512_2.png) [@Enit](https://meta.discourse.org/u/Enit)
#### Post date: [November 9, 2025, 8:26am UTC](https://meta.discourse.org/t/api-works-manually-but-ai-grok-xai-does-not-reach-vps/387960/1 "2025-11-09T08:26:12Z")

</div>

My forum (www.enit.hu) runs on a rented VPS (Ubuntu, Discourse Docker). I am the only admin, the forum is private.  
Goal: Write/read via Grok (xAI) API so that conversations get eternal memory (infinite context).

You have:

xAI API (purchased token)  
Discourse API key (user-level, adminjozsi, scopes OK)  
manual curl GET/POST 200 OK, post created

None:

Grok can neither read nor write  
According to network logs, no requests are coming to the VPS (ngrep/tcpdump is empty)

Settings checked:

enable\_api\_key\_auth, api\_key\_required\_for\_private\_messages etc. OK  
rate limit 0 for new users  
firewall (RackForest) 80/443 open  
Discourse container log: nothing from AI

Why is the request not reaching the server? AI-side limitation or Discourse error? Thanks!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 25, 2025, 11:59pm UTC](https://meta.discourse.org/t/api-works-manually-but-ai-grok-xai-does-not-reach-vps/387960/2 "2025-11-25T23:59:58Z")

</div>

Did you end up working this out, my first recommendation here would just to try out openrouter with one of the free models to confirm it can connect.

Are oneboxes working?

Maybe your VPS is firewalling stuff.
