AI pool accounts and external APIs
The models the AI assistant and every other AI place of Qubix run on are connected in two rows of the कनेक्शन group: आंतरिक AI पूल and बाहरी AI API. The rows are described in Connections; this article goes through the fields of an account of the pool and of an external API, and External MCP servers through the third row, with the tools of outside servers.
An account of the pool: Claude subscription limits
The account sheet of a Claude subscription has a group Claude subscription limits. It decides how many conversations an account holds and how it behaves near its limits; a conversation that does not fit goes to another account of the same group.
| Field | What it does |
|---|---|
| Spend per 5-hour window, $ | A Claude subscription counts use in 5-hour windows. This is how many dollars at API prices the account may spend in one window. At the limit new conversations go to other accounts. Empty — no limit |
| Reserve for started sessions, $ | How many dollars over the window limit started conversations may still spend, so they do not break off midway. Empty — $10. |
| Sessions at once | How many conversations the account holds at once. A new conversation over this number goes to another account of the group. Empty — no limit |
| A session ends after idle, min | After how many minutes without requests a conversation counts as finished and frees its place in «Sessions at once». Empty — 5 minutes. |
| Requests per minute | How many requests per minute the account takes. Empty — no limit |
| Over the limit | What happens over the per-minute limit: Slow down step by step or Let started sessions through. The field is shown when the limit is set; its hint is What happens over the per-minute limit. «Slow down step by step» — over the limit only requests of started conversations pass, no more than the reserve below; then the account is closed till the minute ends. «Let started sessions through» — over the limit only new conversations are refused; started ones go on without a cap. |
| Extra for started sessions | How many requests per minute over the limit started conversations may make. Empty — «Requests at once» plus «Sessions at once», at least a fifth of the limit and at least one. The field is shown when the per-minute limit is set |
| Queue of a person's messages | How people's messages are passed to the provider so as not to hit its per-minute limit. «One at a time» — the next message goes when the previous one is done. «Spaced out» — a pause of about 0.2 to 2 seconds before each message, the longer the closer the account is to its per-minute limit. «Off» — at once. The choices are Off, One at a time and Spaced out |
| TLS fingerprint of Claude Code | The account connects to Anthropic with the same TLS fingerprint as Claude Code |
| Mask the session number | The pool keeps Claude Code's session number fixed while requests come at least once every 15 minutes, so Anthropic sees the account's requests as one session. |
| Count cache at one lifetime | The pool counts all cache this account writes at the lifetime chosen below — in its spend records and in the answer to the client. The cache lifetime at Anthropic stays as the client asks. With the switch on, the field Lifetime in the records appears: Which lifetime the cache is counted at: 5 minutes or 1 hour. The choices are 5 minutes and 1 hour |
The empty fields mean the default noted in the hint: a session ends after five minutes without requests, and the reserve for started sessions is ten dollars.
Model restriction
The field Model restriction says which models can be asked through an account. All models takes any model of the provider. Allowlist takes only the models picked in the list: a request for a model outside the list is not taken by this account and goes to another account of the group. Mapping makes a request for one model go to the provider under another name — for example, a request for an expensive model can be served by a cheap one. A row of the mapping is two models: Asked model and Sent model; the list Quick add adds ready mappings. A model that the server has withdrawn since the mapping was saved is marked in the row, with the line This model was withdrawn from your server — pick another one. — pick another one, the pool keeps sending the withdrawn model until you do.
An external API
The sheet New API of the row बाहरी AI API connects an outside API in the Anthropic, OpenAI or Gemini format: pick an aggregator from the list or enter the address of your own API. The group API of the sheet holds:
- नाम — The name shows in Models and in the matches window: it tells models of different APIs apart.
- Address — The start of the address without /v1: ai.example.com, https://ai.example.com or http://10.0.0.5:8080. Without a scheme the box goes over https; an address with a port that has no https — it answers in plain http or keeps silent — goes over http to that same port. To go over https only, type https:// explicitly. An internal network address is accepted only if the network is in «Internal networks for proxies, mail, postbacks and task import».
- Key — The API's access key. The box finds which header to send it in and the API's format: Anthropic, OpenAI or Gemini.
- प्रॉक्सी — चुनें कि इस API तक कैसे पहुँचें: बिना प्रॉक्सी, "आंतरिक AI पूल" के प्रॉक्सी से या Tor से।
- Subscription models — On — this API's models run on your subscription, like the internal pool's subscriptions, and every user sees them. Off — the models are paid per token.
- Models without a price visible to everyone — shown only while the previous switch is off: बंद — बिना कीमत वाले मॉडल मॉडल चयन में केवल एडमिन को दिखते हैं।
Once the API answers, the group Models appears. Its field Only these models limits the models that can be picked: Which models of this API can be picked. Empty — any model of the API. When the list is not empty, the switch New models in the picker at once appears under it: A model the API lists later shows up in the picker at once, even if it is not in the list. Off — new models wait until you tick them. The group Headers adds headers the API needs besides the key; the value of a header is kept in the box and never shown again. The button Check and save checks the API and saves it, Refresh list reads its list of models again, and Delete API takes the API away together with its models.
When a model of the API has the same name as a model of another API, the save opens the window Model matches: These models are already offered by another API. Give each the name it will show under in the picker. A copy left without a name of its own stands in the picker as «model · API name». The window holds at most 8000 rows. When there would be more, an API whose sheet already shows Only these models is not saved, and the refusal advises to keep only the models you need there; a new API, and one whose sheet shows no models, is saved without the window, and all its copies stand in the picker as «model · API name».
Your own subscriptions and APIs
With the permission Own subscriptions and APIs for the assistant a person connects models of their own in My settings, in two rows:
- My AI subscriptions — their own part of the internal AI pool, with the same tabs as आंतरिक AI पूल: accounts, groups and proxies;
- My external APIs — their own external APIs, with the same sheet as बाहरी AI API; an API of any format works, as it does for an administrator. The proxy of such an API is one of the person's own proxies. An address of an own proxy or own API that leads to this server itself or its internal network works only once an administrator adds that network in Services and jobs → Proxy recheck → Internal networks for proxies, mail, postbacks and task import.
These models are seen only by the person who connected them. In the model picker of their AI assistant and their scripts each own group and each own API is a tab under the name the person gave it. Push and PWA texts, mailings and the other AI places of Qubix run on the server's models only: a person's model chosen there is refused. Each group of the pool — the server's and a person's — answers only with its own accounts, so a person's subscription never serves anyone else.
A person keeps at most 8 groups, 16 accounts and 16 proxies of their own and 8 external APIs; over the limit the server refuses and names how many there already are. When the permission is taken away, the person's tabs leave the picker and the assistant no longer answers with their models; what they connected stays until they or an administrator delete it.
What an administrator sees
The tab Personal of आंतरिक AI पूल lists the people's own groups, accounts and proxies, and the pill Personal of बाहरी AI API — their external APIs; the pill appears once someone has an API of their own. The rows are grouped by person. Each row names its kind — group, account, proxy or external API — and a group or an API also its spend over 30 days: … in … days, with the requests, tokens and dollars in place of the first ellipsis and the days in place of the second, or no requests in … days. The button हटाएँ takes a source away; a person's proxy that their own external API goes through is taken away after that API. The administrator never sees a key and cannot pick a person's model. With no own sources the tab reads People have no subscriptions or external APIs of their own.