On Janitor AI, 401 Unauthorized means a login or API key was refused; a network error means no usable answer arrived. If Janitor's own model fails too, log out and back in; if only your proxy fails, check its key and exact URL. When it hits everyone at once, as on November 19, 2026, only Janitor can fix it.
Which message, which cause, what to try first
| What you see | Likely cause | First fix |
|---|---|---|
| Unauthorized on Janitor's own model | Your login expired or was ended | Log out and log back in |
| The session time has expired | Janitor could not renew your login | Log in again |
| 401 with a proxy set | The provider refused your key | A new key, pasted clean |
| A network error occurred | Wrong URL, or no refresh after saving | The exact URL, save, refresh |
| Network Error after Check Key/Model | Janitor calls that button buggy | Ignore it, save, refresh |
| Access Restricted or 403 | Cloudflare refused your connection | Private window, another network |
Janitor AI help center and Janitor's site code, read November 24, 2026
Unauthorized on Janitor's own chats: the login
Janitor's site sends each request to Janitor's servers with a login token from your session. When those servers answer 401, the site renews the token once and sends the request again. If the renewal fails, it shows "Error. The session time has expired. Please login again." A request that carried no token at all gets no second try. We read this in the site's public code on November 24, 2026.
Janitor's own article on the 401 points the same way. It names "cookies not refreshing properly, browser-related bugs, or access being blocked via IP" as causes. Its steps, in its own order:
- Log out, then log back in. Make sure you know your password before you do.
- Open Janitor in a private window.
- Try another browser.
- Clear the browser's cache and cookies. This logs you out, so skip it if you do not know your login.
- As the last step, change your network. Janitor's Cloudflare article names mobile data or another Wi-Fi as ways to do that.
Janitor has given this fix before. After a database migration on January 29, 2026, its changelog told anyone seeing "unauthorized" errors to "just log out and log back in." Since May 11, 2026, its account settings also list every active session and can "sign out individual sessions or every other device at once". A device signed out that way needs a new login.
One test splits the two kinds of 401. Start a new chat on Janitor's own model. If it fails too, the problem is your login or Janitor itself. If it replies and only your proxy fails, the key or the URL is at fault. Janitor's network-error article uses the same test: if its own model works, "the issue is with the proxy server".
When everyone sees it at once
On November 19, 2026, Janitor posted that "janitorai.com is on hold after a false abuse report, so use jani.com while we work on getting it back." The .com registry's record shows the domain last changed at 02:00 UTC on November 20, 2026.
Searches for this error came in the same wave. Google showed this page 1,130 times on November 19, and not once on any of the nine days before. Of the 13 search terms Google named that day, 11 carried "unauthorized" or "unauthorised". The most frequent was "why is it saying unauthorized on janitor ai".
Janitor's status page did not mark that day. Its history lists 11 reports, from July 28 to November 24, 2025, and none since. On November 24, 2026, it read "There have been no reports within the last 7 days."
When the error hits everyone, nothing in your settings changes it. Leave the key and the URL alone, and watch Janitor's newsroom, where the November 19 post appeared, and its changelog. The r/JanitorAI_Official subreddit shows quickly whether others see the same thing.
A 401 with a proxy: the provider refused the key
With a proxy set, Janitor sends your chat to the URL you saved, along with your key. On the website, that request leaves from Janitor's servers. The site's security policy, which tells the browser which addresses a page may contact, names none of the chat addresses of OpenRouter, DeepSeek, Anthropic, Google or Mistral. Janitor also stores each proxy configuration through its own API. A 401 is the provider's answer to that request. The HTTP standard, RFC 9110, defines a 401 as a request that "lacks valid authentication credentials for the target resource".
On November 24, 2026, we sent each of five backends a made-up key. Every answer named the key, and four of the five used 401:
OpenRouter 401 Invalid API key: this is not an OpenRouter API key.
OpenRouter keys start with "sk-or-".
DeepSeek 401 Authentication Fails, Your api key: ****0000 is invalid
Anthropic 401 Invalid Anthropic API Key
Mistral 401 Invalid API Key
Gemini 400 Please pass a valid API key
Gemini is the exception. Google's OpenAI-format endpoint answered 400, so on Gemini look for a 400 that names the key. With the key field left empty, the answers changed again. OpenRouter said "No cookie auth credentials found", and Gemini said "Missing or invalid Authorization header."
The causes, from the providers' own pages and our test:
- The key was revoked, disabled or expired. OpenRouter lists "OAuth session expired, disabled/invalid API key" under 401. Anthropic's 401 covers a key that is malformed, revoked or expired. Make a new key and paste it again.
- The key belongs to another provider. OpenRouter's answer to our made-up key said that its keys start with sk-or-. Match each key to its own URL.
- A space or line break came with the paste. Delete the field, paste the key again, and check both ends.
- The key field is empty, or the settings were not saved. An empty field drew a 401 from four backends and a 400 from Gemini.
- The account has no balance. That is a 402 on OpenRouter, on DeepSeek ("Insufficient Balance") and on Anthropic. OpenRouter adds that a negative balance can block even its free models.
- The key was someone else's. A key copied from a shared post stops working once its owner revokes it. Use your own.
Janitor's error guide also lists a 402 for too little balance and three 404s, for provider settings, a retired model and privacy settings. Our no endpoints found page handles the 404s, and the 429 page the rate limits.
Is it the key or the URL? What a wrong address answers
A 401 does not always prove that the URL is right. We sent four common address mistakes to each backend, with the same made-up key: the base URL without /chat/completions, a trailing slash, a repeated segment, and a space at the end.
On OpenRouter, all four came back as 404 Not Found, so there a wrong path shows as a 404 and a 401 points at the key. DeepSeek and Anthropic answered all four with the key error, because they judge the key before the path. With a bad key on those two, a 401 says nothing about the URL. Anthropic's wording still tells the two apart: "Invalid Anthropic API Key" on the chat path, "invalid x-api-key" on a wrong one. Gemini answered 404 to three mistakes and 400 to the trailing slash. Mistral answered 404 to the base URL and the space, and 401 to the other two.
Two more mistakes turn up in pasted settings. Plain http drew a redirect from OpenRouter and Mistral (301) and from DeepSeek (307). Google refused it with a 403: "SSL is required to perform this operation." Anthropic refused it with a 400 and this advice: "Consider revoking your API key, as it was sent in plaintext over the internet with this request." If you ever saved an http URL with a real Claude key, replace that key.
A website address in place of the API's brings back a web page or a redirect. We got 404 pages from OpenRouter and Mistral, a 403 page from DeepSeek's site, a redirect to Google's sign-in, and a plain Not Found from Anthropic's site. Janitor has a help article for an HTML page in place of a reply, and its first step is to read the page's title line. A host name that does not exist gets no answer at all, and curl reports "curl: (6) Could not resolve host".
The network error: the URL or a stale page
Janitor's OpenRouter error guide starts with four steps before any message. Check that the configuration says Active, and press Save Settings even if nothing changed. Then refresh the whole page, open the configuration again and press Test. For "A network error occurred", the guide says: "Most likely, your API URL is wrong, or you didn’t refresh after saving changes." A bare "Network Error" after the Check Key/Model button is a different thing. Janitor calls that button "buggy" and says to ignore it, save and refresh.
Paste the exact URL of your backend. Each one is the full chat path, as the providers document it:
OpenRouter https://openrouter.ai/api/v1/chat/completions
DeepSeek https://api.deepseek.com/chat/completions
Gemini https://generativelanguage.googleapis.com/v1beta/openai/chat/completions
Claude https://api.anthropic.com/v1/chat/completions
Mistral https://api.mistral.ai/v1/chat/completions
What each provider's own page adds:
- OpenRouter. Janitor's guide gives this URL and wants it "With no extra slashes, no repeated segments". Our OpenRouter setup guide covers the free models and the daily cap.
- DeepSeek. DeepSeek's own example posts to this URL, with no /v1 in it. Its model names are now deepseek-flash and deepseek-v4-pro. See our DeepSeek setup guide.
- Gemini. Google's base URL ends in /v1beta/openai/, so keep /openai/ in the path. Without it, our made-up key drew the same 400 as with it, so a made-up key cannot reveal that mistake. See our Gemini setup guide.
- Claude. Anthropic documents the base URL https://api.anthropic.com/v1/, and the chat path adds chat/completions. Anthropic calls this layer "primarily intended to test and compare model capabilities". See our Claude guide.
- Mistral. Mistral's reference posts to this URL with a Bearer key. See our Mistral guide.
Janitor's network-error article adds the provider's side. The error "often arises from proxy-related problems with services like DeepSeek or Claude, especially when their servers are down or overloaded." Its test is the one above: switch to Janitor's own model, and if that works, wait. It suggests 24 hours before you check again.
Test the key and the URL outside Janitor
Janitor shows one message for two settings, and curl separates them. From any terminal, with your real URL and key:
curl -sS https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"nvidia/nemotron-3-ultra-550b-a55b:free","messages":[{"role":"user","content":"hi"}]}'
The model in it is one of OpenRouter's free models, listed on November 24, 2026. Read the outcome:
- A JSON reply with a message in it. The URL and the key both work. The fault is inside Janitor: another saved URL, a wrong model name, or a page that was not refreshed.
- A 401, or a 400 on Gemini, that names the key. The key is the problem. On DeepSeek and Anthropic, check the URL against the list above as well.
- 404 Not Found. The path is wrong.
- An HTML page instead of JSON. You used the website's address in place of the API's.
- curl: (6) Could not resolve host. The host name is misspelled.
To test another backend, swap in its URL and a model name from its documentation.
Access Restricted and 403: Cloudflare
Janitor runs behind Cloudflare. When Cloudflare refuses a request, Janitor's code swaps the refusal page for a notice of its own. A 403 becomes "Access temporarily restricted", a 502 "Service temporarily down", a 503 "Service temporarily overloaded", and 520 to 524 a maintenance notice.
Janitor's Cloudflare article says the decision rests on "your IP address, browser fingerprint, network reputation, and device configuration". Its support cannot whitelist an address or override Cloudflare. Its fixes are to clear cookies, use a private window, try another browser and check the system clock. Then turn off privacy extensions, and last, try another network such as mobile data.
One rule follows the address on purpose. Janitor asks users who connect from Australia, Brazil or the UK for a one-time age check, and "Detection is IP-based only." We give no steps around it.
When none of it works
Janitor's help center offers a chat and an email address. Its Cloudflare article lists what to send: what you already tried, the exact error text or a screenshot, and your browser and device. For an error from your provider, keep the reference in its answer. In our test, DeepSeek's 401 carried a request_id, and so did Anthropic's answers on wrong paths. Anthropic asks for that ID when you contact its support about a request.
Where a network proxy fits, and where it does not
HProxy sells network proxies, and for the login, the key and the URL they do nothing. With a proxy set in Janitor, the provider sees Janitor's server, so your own address never reaches it. The fixes above cost nothing.
Our lines fit a narrower case: a network that must leave through a fixed, known address, such as a company network that allows listed addresses only. For that, HProxy's static ISP proxies cost $2.70 per IP a month, from one address, and residential proxies start at $0.23 per GB.
Sources
Read on November 24, 2026, with the date each page gives:
- IETF, RFC 9110, HTTP Semantics, section 15.5.2, 401 Unauthorized, June 2022.
- Janitor AI help center: Error Code: 401 Unauthorized, September 5, 2025; OpenRouter Error Guide, August 4, 2025.
- Janitor AI help center: Error: Rate Limit/Network Error, July 29, 2025; Cloudflare "Access Denied" & Verification Issues, December 30, 2025.
- Janitor AI help center: Error Code: Raw HTML, July 25, 2025; Age Verification for Australia, Brazil, and the UK, November 3, 2026.
- Janitor newsroom: A quick domain update, November 19, 2026; Changelog, January 29 and May 11, 2026.
- Janitor's status page, its events and feed; Janitor's site code, its main script and the 296 files it loads.
- Verisign, the .com registry's RDAP record for janitorai.com.
- OpenRouter: Errors and debugging, Limits and the public model list.
- DeepSeek: Error Codes and Your First API Call.
- Anthropic: Errors and OpenAI SDK compatibility.
- Google: OpenAI compatibility and Troubleshooting for the Gemini API.
- Mistral: the API reference for chat completions.
- Our own measurement: 43 requests to five backends with a made-up key, and Google Search Console for this page.





