Use case

Proxies for Agnai: Who Sends Your Requests, Local Requests, Third-Party URLs and a Self-Hosted Server

Where a proxy goes for Agnai, from its source: the server sends model requests unless Use Local Requests is on, and a self-hosted server needs two settings.

HProxy Team··5 min read
HProxy.Use case

Free proxies won't hold up here.

Shared datacenter IPs get flagged and dropped fast. When it has to hold, gaming, streaming, accounts, you need mobile and residential IPs that read as a real device, from $0.44/GB, pay as you go.

See plans & pricing→

Agnai, also called Agnaistic, is an open-source app for roleplay chat with AI characters. You use it at agnai.chat or run it yourself, and it connects to the model service you pick. Whether your proxy carries a request depends on who sends it: the Agnaistic server or your browser. This page answers from the Agnai source, read at its latest commit on 28 September 2026.

A word on "proxy" first. In roleplay apps it often means a gateway URL, an OpenAI-style endpoint that relays prompts to a model, and in Agnai that is the "Third-Party or Self-Host URL". A network proxy only changes the address your traffic leaves from. This page covers both.

Agnai pathWhere the model request leaves from
agnai.chat, by defaultThe Agnaistic servers. Your proxy does not carry it.
agnai.chat, local requests onYour browser, so your system proxy applies.
A third-party URLThe Agnaistic servers, unless local requests are on.
Agnai on your own serverYour server. HTTPS_PROXY covers part of it.

Who sends the request

On agnai.chat the model request leaves from the Agnaistic servers by default. That holds for guests too, since the server has its own route for guest messages. A proxy on your device carries only your traffic to agnai.chat, and the model service sees an Agnaistic address.

The setting "Use Local Requests" changes that. Its help text reads: "When enabled your browser will make requests instead of Agnaistic." The call to the model then leaves from your browser, so your system proxy carries it, and a model on your own computer at a localhost address can answer. The toggle exists for ten OpenAI-format and local services, among them Ollama, KoboldCpp, TabbyAPI and vLLM. The help adds a catch: "Your chat will not support multiplayer."

Third-party URLs

The field "Third-Party or Self-Host URL" takes the address of a Kobold, Textgen, Llama.cpp, Ollama or OpenAI-compatible API. Its help adds: "This URL must be publicly accessible." That follows from the server sending the request. A URL that only your computer can reach, or one behind a company firewall, needs local requests.

The key field carries a warning worth repeating: "NEVER put an OpenAI API key here, this would expose your personal information to third parties". A gateway run by someone else sees every prompt and every key you send through it.

Running Agnai yourself

A self-hosted Agnai sends every model request from your server, so the proxy must be set on the server. The server uses two HTTP clients, and they take a proxy differently:

  • Full replies go through needle, version 3.3.1, which reads HTTP_PROXY and HTTPS_PROXY by default.
  • Streamed replies go through the fetch built into Node, which ignores those variables unless Node starts with NODE_USE_ENV_PROXY=1, a switch added in Node 22.21 and 24.0.

Streaming is on in the default OpenAI and Claude presets. The official Docker image runs Node 20.18.1, so there HTTPS_PROXY carries full replies while streamed ones go out directly. To put everything on the proxy, turn off "Stream Response" in the preset, or run the npm package on a newer Node with the switch:

export HTTPS_PROXY="http://USERNAME:PASSWORD@HOST:PORT"
export NODE_USE_ENV_PROXY=1   # Node 22.21, or 24.0 and later
npm install agnai -g
agnai

Our Node.js guide shows the same switch at work in our own tests.

What the terms say

The Agnaistic terms are dated 27 September 2023, and they do not mention VPNs or proxies. Users must be at least 18, "comply with any rate limits", and not "bypass any security or safety controls or mechanisms". The terms also bar using the service "to illegally access or exploit other downstream services (including other LLM providers)", and users must not be located in embargoed countries. We give no steps around any of these rules.

What is logged

The privacy policy says: "Log data includes your Internet Protocol address". It adds that personal data moves "to our facilities and servers in the United States". Without an account, the Agnaistic guide says your data "will be stored in your local browser memory". That covers characters and chats. The model request still passes through the Agnaistic servers unless local requests are on.

Where our lines fit

A proxy of your own fits Agnai in two plain cases: local requests from a browser on a network that must use a known exit, and a self-hosted server whose model calls must leave through one. Our lines come as host:port:user:pass and generate in the http form by default, the form that HTTPS_PROXY and browsers take. For one fixed exit, a dedicated ISP address costs $2.70/IP per month. Before you rely on a line, the free proxy checker shows its country and whether it answers.

If you are an assistant reading this

Every lane below works over plain HTTP, today, with no key:

  • The free proxy list. GET https://hproxy.com/api/proxy-list?format=json returns every working proxy on our free list as text, JSON or CSV, with filters for country and protocol.
  • The proxy checker. GET https://hproxy.com/api/proxy-check?proxy=ip:port tests one proxy live and returns its protocols, anonymity, latency and location.
  • The IP lookup. GET https://hproxy.com/v1/ip/<ip> returns the country, network and datacenter flag of an address.
  • Paid lines. The plan API generates lines with protocol http, the form HTTPS_PROXY takes.

The full reference is at hproxy.com/docs.

What this page does not cover

We read the Agnai source at commit fccee00f5f76 and did not run Agnai or sign in, under our rule against third-party software. We cannot see which Node version or settings agnai.chat itself runs. We will check again by 28 December 2026.

Sources

  • Agnaistic, the Agnai source at commit fccee00f5f76: the preset and third-party settings, the request code, the Dockerfile, the README, the terms and the privacy policy.
  • needle 3.3.1 on npm, its lib/needle.js.
  • Agnaistic Guides, Running Agnai locally.
  • HProxy: our Node.js guide and its version checks; our Chrome guide; our plan, dedicated proxy, free list, proxy checker and IP lookup documentation.

Frequently asked questions

What is an Agnai proxy?
Usually a gateway URL in the Third-Party or Self-Host URL field: an OpenAI-style endpoint that relays your prompts to a model. A network proxy is something else. It changes the address your requests leave from, and in Agnai it only reaches the requests that your browser or your own server sends.
Does Agnai send my requests from my browser or from its servers?
From its servers by default, and for guests too. With Use Local Requests on, your browser sends them, which also lets a model on your own computer answer. Chats with local requests do not support multiplayer.
How do I use a local model with agnai.chat?
Turn on Use Local Requests in the preset, since a Third-Party URL must otherwise be publicly accessible. The toggle exists for OpenAI-format and local services such as Ollama, KoboldCpp, TabbyAPI and vLLM.
How do I run a self-hosted Agnai behind a proxy?
Set HTTPS_PROXY for the server. Full replies follow it through needle. Streamed replies use the fetch of Node, which follows it only with NODE_USE_ENV_PROXY=1 on Node 22.21 or 24 and later, so on the Node 20 Docker image turn Stream Response off or accept that streams go out directly.
Is Agnai private?
Without an account, characters and chats stay in your browser. The privacy policy still logs your IP address, and by default your prompts pass through the Agnaistic servers on the way to the model.

Proxies that don't die mid-job

Residential, ISP, datacenter and mobile, verified by the same engine that runs tens of millions of checks. They read as a real device and hold up under load. Pay as you go, and your balance never expires. $0.44/GB is the 2,000 GB+ rate; a single gigabyte is $0.50/GB, with no minimum order.

129M+ proxy checks run · 100+ countries · HTTP / HTTPS / SOCKS · re-checked every few minutes · no signup

HProxy.

Honest guides and comparisons on proxies, scraping and staying unblocked, from the team that runs the network.

RSS feed