Setup Guide

How to connect this proxy to JanitorAI and other platforms.

← Back to home

Proxy URLs

Use one of these URLs as your custom model endpoint:

Vercel (direct)

https://janitor-pi.vercel.app/v1

Cloudflare Worker (recommended)

https://janitor-pi.mochibun.workers.dev/v1

The Worker URL is recommended for JanitorAI because it bypasses Content Security Policy restrictions.

JanitorAI Setup

1
Open JanitorAI and go to SettingsAPI
2
Select Custom as the API provider
3
Paste the proxy URL:
https://janitor-pi.mochibun.workers.dev/v1
4
Enter any string as the API key (e.g. free) — it's not validated
5
Select a model and start chatting

Common Errors

Error — CSP Blocked

Content-Security-Policy: The page's settings blocked the loading of a resource at https://janitor-pi.vercel.app

Fix

Use the Worker URL instead of the Vercel URL. JanitorAI's CSP only allows the Worker domain.

Error — URL Doubled

Connect-src blocked: .../chat/completions/chat/completions

Fix

Enter https://janitor-pi.mochibun.workers.dev/v1 — not /v1/chat/completions. The platform appends /chat/completions automatically.

Error — Empty Response

Error: Empty response received from API

Fix

The model may be temporarily unavailable. Try a different model or wait a few seconds and retry.

Error — Network Error

TypeError: Failed to fetch / NetworkError when attempting to fetch resource

Fix

Check your internet connection. If using a VPN or ad blocker, try disabling them temporarily. Make sure the proxy URL is correct.

Available Models

Other Platforms

This proxy follows the OpenAI API format. Any platform that supports custom OpenAI-compatible endpoints should work: