How to Turn On Proxy in Janitor AI: A Technical Guide
As we move into 2025, Janitor AI remains a popular platform for role-playing and uncensored large language model (LLM) interactions. However, users frequently face access restrictions, Cloudflare "Error 1020" blocks, or privacy concerns when connecting their own API keys. The solution to these problems lies in understanding how to turn on and configure a proxy.
This guide covers the technical implementation of proxies for Janitor AI, distinguishing between browser proxies (for access) and reverse proxies (for API usage).
---
Understanding Proxy Types in the Janitor Ecosystem
Before configuring settings, it is vital to distinguish between the two types of proxies relevant to Janitor AI users:
1. Browser/Residential Proxy (Access Proxy): Used to bypass IP bans or Cloudflare filters preventing the Janitor AI website from loading in your region. 2. Reverse Proxy (API Proxy): Used when you want to use your own OpenAI API key with Janitor AI but want to hide the "source" of the traffic from the API provider or bypass restrictions on API endpoints.
Part 1: Using a Proxy to Access Janitor AI (Bypassing Cloudflare)
If you cannot reach the Janitor AI website, you need to route your browser traffic through a proxy.
Method A: Browser Configuration (Manual)
The most straightforward method to "turn on" a proxy for web access is through your browser settings. Here is how to do it technically:
For Chrome/Edge (Chromium-based): 1. Go to Settings > System > Open your computer's proxy settings. 2. Manually set up a proxy server. 3. Enter the IP Address and Port provided by your proxy service. 4. Click Save.
For Firefox: 1. Go to Settings > Network Settings > Settings. 2. Select Manual proxy configuration. 3. Input the HTTP Proxy and Port. 4. Check Proxy DNS when using SOCKS v5 for higher success rates with WebSockets.
Method B: Web Scraping & Automation (Python)
For advanced users or developers scraping Janitor AI characters (e.g., for archiving purposes), a simple browser setting is insufficient. You need a rotating residential proxy to avoid immediate detection.
Here is a Python snippet using requests and selenium concepts to access Janitor via a proxy:
import requests
Replace with your actual proxy credentials (format: http://user:pass@ip:port)
proxy_url = "http://username:password@proxy-provider.com:8000"
proxies = { "http": proxy_url, "https": proxy_url, }
headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" }
try: # Testing connectivity to Janitor AI response = requests.get("https://janitorai.com", proxies=proxies, headers=headers, timeout=10)
if response.status_code == 200: print("Proxy successful. Access granted.") else: print(f"Status Code: {response.status_code}")
except Exception as e: print(f"Proxy Connection Failed: {e}")
*Note: Janitor AI employs aggressive anti-bot protection. A simple datacenter proxy will likely fail. You must use Residential or Mobile proxies.*
---
Part 2: How to Turn On Reverse Proxy for API Usage
This is the most common context for the search query "proxy janitor ai." Users with an OpenAI API Key often need to route that key through a "Reverse Proxy" to prevent the key from being banned or to bypass regional restrictions on the API itself.
Step-by-Step Configuration
There is no "On" button. You activate it by changing the Endpoint URL.
1. Obtain a Reverse Proxy: You need a URL that points to an OpenAI-compatible API but is hosted on a different server. Many self-hosted options exist (e.g., Pawan.OS, or private deployments on Hugging Face/Replit). * *Format Example:* https://your-proxy-replit-url.app/v1
2. Access Janitor AI Settings: * Log in to Janitor AI. * Click the API (not Chat) menu option usually found in the top right (settings icon).
3. Configure the OpenAI Router: * In the "KoboldAI / OpenAI" or "OpenAI" settings panel: * Endpoint URL: Clear the default https://api.openai.com/v1 and paste your reverse proxy URL (ensure it ends in /v1 or matches the proxy provider's instructions). * API Key: Enter your *actual* OpenAI API key (sk-...). The reverse proxy will forward this key to OpenAI, masking your direct IP connection.
4. Toggle the Switch: Ensure the "Show Proxy" or "Proxy" toggle (if available in the UI version you are using) is set to the "On" position or verified via the "Check Connection" button.
Technical Explanation: The Role of the Reverse Proxy
Why do this? When you send a prompt to Janitor AI:
- Without Proxy: Janitor Server -> OpenAI API (Direct).
- With Reverse Proxy: Janitor Server -> Your Proxy Server (e.g., Replit/HuggingFace) -> OpenAI API.
- Fix: Verify the URL. If hosting on Replit, ensure the repl is not in "Suspended" state (you must click "Run" on the Replit).
- Fix: Ensure you typed
sk-...correctly. Some reverse proxies require a specific password/header instead of the raw OpenAI key. Check the documentation of the specific proxy source you are using. - Fix: The proxy IP is blacklisted. You need to switch to a "Clean" Residential IP. Datacenter IPs are almost universally detected and blocked by Janitor AI's Cloudflare configuration.
* *Result:* OpenAI sees the request coming from Janitor's servers. If Janitor's IP is blocked or rate-limited, you get errors.
* *Result:* OpenAI sees the request coming from your unique proxy server. This bypasses the queue and rate limits applied to the main Janitor AI servers.
Comparison: Direct vs. Proxy Connection
| Feature | Direct API Connection | Reverse Proxy Connection | | :--- | :--- | :--- | | Stability | Low (Prone to 429/403 errors) | High (Dependent on your proxy server) | | Privacy | Medium | High (Traffic appears to come from your server) | | Speed | Fast (If not rate-limited) | Variable (Adds one hop in the network chain) | | Cost | Free (Just API Key) | Free/Varies (Hosting the proxy) | | Setup Difficulty | Low | Medium (Requires hosting or finding a public one) |
---
Troubleshooting Common Proxy Issues
Error 1: "Connection Refused" or "ECONNREFUSED"
This indicates the reverse proxy URL is offline or incorrect.
Error 2: "Unauthorized 401"
The API Key is being rejected.
Error 3: Cloudflare Loop (Error 520/522)
If using a browser proxy to access the site, and the page keeps reloading:
Conclusion
"Turning on" the proxy in Janitor AI is about configuration rather than a simple switch. For web access, it involves configuring your browser or Python environment to route traffic via residential IPs. For API usage, it requires replacing the default OpenAI endpoint with a personal reverse proxy URL. By setting up a reverse proxy correctly, you ensure a more stable and private role-playing experience in 2025.