Sophia's LoreBary proxy with your own key
What LoreBary passes on (a proxy URL, your RelaySwitch key, a model id), which of its features survive a custom proxy, and the direct route when you only want the model.
Sophia's LoreBary is a free roleplay platform with a proxy layer in front of it. Its Proxy Portal puts it in one line: "Use our models and any provider key inside the chat app you already have. Three fields, no lock-in." You keep JanitorAI, Chub or Wyvern, point them at a LoreBary URL, and LoreBary adds commands, plugins, lorebooks and summaries on the way through. It is not where the model is set; it is a hop between your app and the API, and this page is about what that hop does with a RelaySwitch key.
01Two routes
- You want the model, not the layer. Put the API straight into the app: JanitorAI, Chub, WyvernChat, RisuAI. Nothing in the middle, one bill, every request on the console's Usage page.
- You want LoreBary's layer on top. The key goes through LoreBary; the rest of this page is what that passes on, what it keeps, and what it costs.
02What you need
- A LoreBary account and the app you already use. The portal is at lorebary.com/connect-proxy.
- A RelaySwitch key from the console. Make it a key of its own with a budget, because it will sit in a third party's configuration. Keys start with
sk-relay-. - A balance. Top-ups start at $10, by card or crypto; the console chat runs 12 free turns a day before the first top-up.
03The three fields LoreBary passes on
The portal's first card, Connect my current app ("Show me the setup", then Your own key), lists the providers LoreBary has a permanent route for and hands you three values per provider:
Proxy URL: the URL LoreBary gives you (direct: https://api.relayswitch.io/v1/chat/completions for JanitorAI, https://api.relayswitch.io/v1 elsewhere)API key: sk-relay-...Model: glm-5.3-uncensored (any id from the Models page, suffix included)This API is not on that list today, so the path for this key is the second card, My Custom Proxy (the older community guide calls the same form "Cheating On Us?"). By what each field asks for:
Endpoint URL: https://api.relayswitch.io/v1Path to append: /chat/completionsAPI type: OpenAICreate Proxy -> paste the LoreBary URL into your app's proxy fieldLoreBary answers with a proxy URL of its own. That URL, not https://api.relayswitch.io/v1, goes into the app's proxy field; the key and the model id go into their own fields as usual. In JanitorAI: Settings, Provider Proxy, + New, the LoreBary URL, your key, the model id, Add, Save, then reload the page. Chub wants a LoreBary URL with no /v1, Wyvern wants it with /v1. The form sits behind a LoreBary sign-in and renames fields between releases; match each by what it asks for.
04What a custom proxy keeps, and what it loses
LoreBary's own guide says its features (commands, plugins, lorebooks) work only when the proxy URL belongs to one of its permanent provider routes. A custom proxy relays the chat and nothing else. So on this route you get your app, the model you named, and the LoreBary account for its library and forums; you do not get the mid-chat commands or the plugin mechanics.
If the layer is the reason you are here, the thing to ask LoreBary for is a permanent route to api.relayswitch.io; its Discord is where that request goes. If the model is the reason, skip the hop: the direct guides take two minutes and nothing is lost on the way.
05Which model to name, and what it costs
LoreBary adds no fee of its own ("Bring any provider key, we add no fee", on the portal), so the bill is the app's prompt at this catalog's prices. The ids LoreBary prints for other routes (deepseek-chat and the like) are not on this list; these are, priced per million tokens with one 2K-in / 300-out turn (2,000 in, 300 out):
| Model | Model | Context | Input / M | Output / M | one 2K-in / 300-out turn | 100 turns |
|---|---|---|---|---|---|---|
| GLM-5.3 Flash Uncensored | glm-5.3-flash-uncensored | not stated | $0.1053 | $0.3685 | $0.00032 | $0.0321 |
| GLM-5.3 Uncensored | glm-5.3-uncensored | not stated | $0.282 | $0.846 | $0.00082 | $0.0818 |
| Gemma 4 31B Fabled | gemma-4-31b-fabled | 262K tokens | $0.35 | $1.575 | $0.0012 | $0.1173 |
| Qwen3.8 27B Novelist | qwen3.8-27b-novelist | 262K tokens | $0.35 | $2.10 | $0.0013 | $0.133 |
| Cydonia 24B v4.3 | cydonia-24b-v4.3 | 131K tokens | $0.484 | $0.60 | $0.0011 | $0.1148 |
| Uncensored AI Roleplay | uncensored-ai-roleplay | 128K tokens | $0.60 | $2.34 | $0.0019 | $0.1902 |
| DeepSeek V4.1 Flash Abliterated | deepseek-v4.1-flash-abliterated | not stated | $0.8488 | $1.6975 | $0.0022 | $0.2207 |
| DeepSeek V4 Pro Uncensored | deepseek-v4-pro-uncensored | not stated | $0.97 | $1.94 | $0.0025 | $0.2522 |
USD, read from the RelaySwitch catalog when this page was built.
Give a model that reasons before it writes a response length of 1,000 or more, or the reply arrives empty. The ranked list orders the catalog by use.
06Check the key before you put LoreBary in front of it
With two services in the chain, a failure has to be placed before it can be fixed. One request straight to the API, in the shape an app sends; a 200 here means the key, URL and model id are right, and anything that fails afterwards is the hop.
curl -i https://api.relayswitch.io/v1/chat/completions \ -H "Authorization: Bearer sk-relay-..." \ -H "Content-Type: application/json" \ -d '{"model":"glm-5.3-uncensored","max_tokens":200,"messages":[{"role":"user","content":"Say hello in character as a lighthouse keeper."}]}'Each request is one line on the console's Usage page whether it came direct or through LoreBary, with a signed receipt, so the hop never hides the bill.
07Errors
401: the key is wrong, revoked, or pasted into the URL. Paste it again into the key field.404route_not_found: the endpoint and the appended path do not add up to/v1/chat/completions; re-create the proxy.model_not_found: an id from another provider's list; paste one from the Models page.- Commands or plugins do nothing: expected on a custom proxy. Ask LoreBary for a permanent route, or go direct.
- JanitorAI still answers with its own model: proxy settings are read when the chat loads. Save, then reload.
Questions
- What is LoreBary?
- A free roleplay platform by Sophia with a proxy layer that sits between an app such as JanitorAI, Chub or Wyvern and the model API, adding commands, plugins, lorebooks and summaries on the way through. You bring the model with your own key.
- Does LoreBary charge a fee on my key?
- No. Its Proxy Portal says it adds no fee; the bill is the app’s prompt at the API’s per-token price, on the balance behind the key.
- What proxy URL do I put in JanitorAI when using LoreBary?
- The URL LoreBary hands you after Create Proxy, not the API’s own address. For a direct setup without LoreBary it is https://api.relayswitch.io/v1/chat/completions.
- Do LoreBary commands and plugins work with a custom proxy?
- Not on a custom proxy; LoreBary limits them to its permanent provider routes. A custom proxy relays the chat and nothing else.
- How much does a message cost through LoreBary?
- The same as direct: one 2K-in / 300-out turn on GLM-5.3 Flash Uncensored costs $0.00032 today, or $0.0321 for 100.