omp packages

pi-provimux105.0.17

Use your AI API keys in Pi through Provimux or CLIProxyAPI. With Provimux, see which service answered and share published prices and cache lifetimes with pi-cache-keeper when available.

GitHub Actions Published 20 hours ago MIT ~3.1K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-provimux

Provimux's extension for Pi. It adds Provimux, one self-hosted, OpenAI-compatible endpoint for your AI API keys, as a provider in Pi, and works the same with plain CLIProxyAPI.

Every model your Provimux or CLIProxyAPI serves appears in Pi's /model, under the provider provimux. With Provimux's Serve only my names on (Provimux v8.1.3-pmx.2 or newer), /model shows only the names you chose, from the next start of Pi (a running Pi keeps the models it started with: Loaded only at the start). With Provimux, each model's name also says which of your API keys serve it (Anthropic api, fallback OpenRouter api), the footer names the service that answered (answered: OpenRouter api), and pi-cache-keeper is told which providers.dev entry answered. Every value Pi registers for a model (price, window, output limit, thinking levels, kinds of input) is providers.dev's, for the entry your server names; see Every value from providers.dev. With CLIProxyAPI, which names no entry, those values are unknown (0), the other Provimux parts stay quiet, and everything else works except /provimux-route, which needs Provimux.

It needs Pi 1.8.0 or newer (it is tested on the latest Pi), and a running Provimux or CLIProxyAPI with a client key for Pi. The entries, and so every providers.dev value, need Provimux 8.1.8-pmx.4 or newer: an older Provimux names no entry in its model list, and every value is then unknown (0), as with CLIProxyAPI.

pi install npm:pi-provimux

Then start Pi (in a Pi that is already open, type /reload first, so it loads the extension) and type:

/login Provimux

and enter the server's address (for example http://127.0.0.1:8317) and your client key. Then choose a model in /model: the server's models are listed as provimux/<model>.

To update it later:

pi update --extension npm:pi-provimux

then restart each Pi that is open (quit it and start it again). /reload is not enough: Pi keeps the model objects it took when the session started, and pi-provimux keeps the models and values the window started with (Loaded only at the start). A bare pi update updates Pi itself, not this extension.

pi-provimux is a fork of router-for-me/pi-cliproxyapi-provider, see Credits.

Commands

Command What it does When you would use it
/login Provimux Connects Pi to your server: asks for its address and key, checks that the server answers its model list with them, and saves the address, the key and the list. The models are in /model at once where this Pi has no Provimux model yet (a first login); otherwise after a restart. The first time, or when the server's address or key changes.
/provimux-refresh Reads the model list from your server now, with the accounts behind each model and providers.dev's values for the entries they name, saves it for the next start, and says what changed against the models in use: models added, removed, and each value changed, then Restart Pi to use them. It registers nothing. It also lists the models whose effort switch or default effort providers.dev does not publish. You added or removed a model, an account or a priority on the server, and want to know what a restart brings.
/fast Turns Fast mode on or off, saved for later starts: asks the server for its priority service tier on Provimux models whose entry lists a service tier, which can cost more. You want quicker answers and accept that they may cost more.
/ultrafast Turns Ultra Fast mode on or off, saved for later starts: asks the server for its Ultra Fast service tier on Provimux models whose entry lists a service tier. You want the fastest tier the server offers for the model.
/pause Holds each new model request Pi sends, in every Pi window with pi-provimux that shares your ~/.pi/agent, until you type /continue. You need Pi to stop sending for a while, for example while you change something on the server.
/continue Lets the held requests go out again. After /pause.
/provimux-route Shows which of your accounts this conversation is on, whether that is a fallback, and whether a higher-priority route is free; /provimux-route release moves it back, after saying what that may cost and asking. A conversation fell back to another key (a shorter cache, a higher price) and you want it on the first one again.

Not to confuse with pi-cache-keeper's refresh: /provimux-refresh reads your server's model list and, where the server lists them, the accounts behind each model, for the next start; /cache-keeper-refresh fetches providers.dev's prices and cache lifetimes again. Neither changes which account answers: your server decides that.

/login Provimux

What it does. It connects Pi to your Provimux (or CLIProxyAPI) server. It asks for the server's address and its client key, and asks the server for its model list with them. If the server answers (an empty list is accepted), the login and the list are saved. Where this Pi has no Provimux model yet (a first login, or a start that found none), the models are loaded into /model at once: Logged in: 42 Provimux models read from …, saved with the address and the key, and in /model now. Where it has them already, they stay as the window started, and the new list is for the next start: Logged in: 42 Provimux models read from … and saved, with the address and the key. Restart Pi to use them: this window keeps the models and the values it started with. (Loaded only at the start). It does not try a request to a model. /login provimux (the provider id) does the same: Pi ignores case.

Example. You type /login Provimux. Pi shows:

Set up Provimux: enter the address of your Provimux or CLIProxyAPI server, then its client key. Give the address as host:port, for example http://127.0.0.1:8317.
Provimux server URL (Enter keeps http://127.0.0.1:8317):
Provimux client key (the API key your server accepts from Pi):
Checking the address and the key: asking the server for its model list...

If the server does not answer, refuses the key, or answers with something that is not a model list (a web page, an empty body), you see Could not log in with this address and key: … and Enter the address and the key again., the two questions come back, and nothing is saved. An address Pi cannot read (http://not a url) is asked again at once, before the key.

What it changes, and for how long. Every later session that uses the same ~/.pi/agent: the address and the key are saved in ~/.pi/agent/provimux.json (readable by you only, mode 0600) and in Pi's auth.json, and the model list is saved for the next start. The list this login read replaces the saved one: nothing of another key's or another address's list is kept. The key is saved for this address only: if the address alone changes later (PROVIMUX_BASE_URL, or baseUrl edited in provimux.json), Pi sends the key nowhere, loads no models, and asks you to log in again. Where PROVIMUX_API_KEY is set, the model list is loaded with it instead; requests to the models still use the address and the key of this login.

What it does not do. It does not choose a model: pick one in /model. If Pi first asks how to sign in, choose Sign in with an account: the API-key way saves only the key, in auth.json, and after a restart Pi does not use it for Provimux, so it says Provider is not configured: provimux (see Login-style setup). Pi's /logout removes the login from auth.json only, not provimux.json.

/provimux-refresh

What it does. It asks your server for its model list now, with the accounts that serve each model (Provimux lists them) and providers.dev's values for the entries they name, saves it for the next start, and says what it changes against the models this window uses: the models added, the models removed, and, for each model in both, every value that differs (window, output limit, price, cache lifetime, the providers.dev entries, the accounts and what the server adds there, the request format, the thinking levels). It registers nothing: /model, the names in it, what other extensions are told and every value Pi decides with stay as the window started (Loaded only at the start). Restart Pi to use the new list.

Example. You removed claude-fable-5-2 on the server, added gpt-6.1-sol, and moved claude-opus-5-5 to an API key. You type /provimux-refresh. Pi shows:

Read 2 Provimux models from http://127.0.0.1:8317/v1/models?client_version=pi and saved them for the next start. Against the models in use here:
Added: gpt-6.1-sol.
Removed: claude-fable-5-2.
Changed: claude-opus-5-5: window 1,000,000 → 200,000; providers.dev entries claude-subscription/claude-opus-5-5 → anthropic/claude-opus-5-5; output limit 128,000 → 32,000; cache lifetime 3,600 s → none; accounts login (claude-subscription/claude-opus-5-5, adds cache.retention 1h) → login (anthropic/claude-opus-5-5, adds nothing).
Restart Pi to use them: this window keeps the models and the values it started with.

With nothing changed: Read 42 Provimux models from … and saved them for the next start. They are the models in use here, with the same values. If the read fails: Could not read the Provimux models: …. Nothing was saved, and the models in use are unchanged. Check that the server is running, or type /login Provimux to change its address or key. With no key set up at all (no login, no apiKey in provimux.json, no PROVIMUX_API_KEY): Provimux has no key set up (no login, no apiKey in provimux.json, no PROVIMUX_API_KEY), so there is no model list to read. Type /login Provimux (or /login provimux) and enter your server's address and key.

Where providers.dev publishes no effort switch or no default effort for a model with thinking levels, the message goes on with one line per such model: what is unknown, and what Pi does instead (see Where the effort is unknown). Pi says this nowhere else, not at start.

What it changes, and for how long. The saved list (provimux-models.json) the next start falls back on, and providers.dev's copy on disk; nothing in this Pi. Each start reads the list itself, so the next start uses the server's list anyway when the server answers; this command tells you before. The list read replaces the saved one: a model the server no longer lists is gone after a restart. With Pi offline (pi --offline or PI_OFFLINE=1), a start sends nothing: Pi uses the saved list, or, with none, registers no models and says so; this command still asks the server, because you typed it.

What it does not do. It does not change your server or which account answers, it does not switch you to another model, and it does not change any model in this Pi, also where the server no longer lists the model you use. It does not take an address or key: use /login Provimux for that. More: Model cache.

/fast and /ultrafast

What they do. They ask the server for a faster service tier: /fast for the priority tier, /ultrafast for the Ultra Fast one. Only Provimux models whose providers.dev entry offers that tier (its service_tier control lists priority for Fast, ultrafast for Ultra Fast) and that are not sent in Claude's own format or with Pi's OpenAI Responses adapter are asked; on the others nothing changes. Where the entry offers the tier and providers.dev publishes no price for it, Pi counts it at 0 and says so: price unknown beside the tier in the footer, in the command's message, and in /provimux-route. How fast an answer comes and what it costs is the server's to decide. The same command again turns the mode off; the other command switches to it directly.

Example. With a model whose entry offers the priority tier, you type /fast. Pi shows fast in yellow beside the model's name in the footer, and:

Fast mode is on, saved for later starts: requests to gpt-5.6-sol ask the server for its priority service tier, which can cost more. Type /fast again to turn it off.

Then /ultrafast reads Ultra Fast mode is on, saved for later starts (in place of Fast mode): …, and /ultrafast again reads Ultra Fast mode is off, saved for later starts: requests no longer ask for a faster service tier. On a Provimux model that is not asked: Fast mode is on, saved for later starts, but the current model (claude-opus-5-5) is not asked for the priority tier (its providers.dev entry does not offer it, or it is sent in Claude's own format or with Pi's OpenAI Responses adapter), so its requests stay as they are. It applies to the Provimux models whose providers.dev entry offers that service tier, except those sent in Claude's own format or with Pi's OpenAI Responses adapter. Type /fast again to turn it off. On another provider's model it says that the model is not a Provimux model.

What it changes, and for how long. This Pi window, all its sessions, and every later start that uses the same ~/.pi/agent: the choice is saved as fast in provimux.json, until you type the command again. Other Pi windows already open keep their own until they load the extension again (a restart, /reload, a new or resumed session). PROVIMUX_FAST set at start wins over the saved choice. Nothing is registered again (Loaded only at the start): the models keep the prices registered at the start, so Pi's estimate before an answer is the start's mode's; each answer that names its entry is then counted at the tier its request sent, at the price providers.dev states for it. The next start registers the mode's prices.

What they do not do. They do not switch you to another model, and they do nothing on Claude models sent in Claude's own format or on OpenAI models sent with Pi's OpenAI Responses adapter. More: Fast and Ultra Fast modes.

/pause and /continue

What they do. /pause holds each new request Pi is about to send to a model, whatever its provider, until you type /continue (another extension's own requests that bypass Pi's request hook are not held). A held request waits: the window holding it checks the setting about every 0.2 seconds, and once the setting says requests continue, it lets the request go. A request held in a window you close is never sent, and the pause does not keep anything waiting across a restart.

Example. You type /pause. Pi shows:

Requests are paused: each new request Pi sends to a model waits until you type /continue, in every Pi window with pi-provimux that shares this agent folder, also after a restart. An answer already streaming is not stopped.

While a window's request guard believes requests are paused, its footer says paused · /continue in the warning colour (paused alone in a terminal narrower than 60 columns); with a Provimux model selected, the model's name in the footer also ends with paused, in orange. Both come from that one belief. A window knows it from its start, at once when you type /pause or /continue in it, and each time its guard checks the setting, which is when a request is about to go out and while one is held. An idle window keeps what its guard last saw until its next check: after another window pauses, one that last saw no pause shows nothing until its next request is held, and then shows the mark; after another window continues, one that last saw a pause keeps both signs until its next request goes out.

Then /continue: Requests continue: each window holding a request checks about every 0.2 seconds and then lets it go. /continue with nothing paused: Requests were not paused. /pause twice: Requests were already paused. Type /continue to let them go.

What it changes, and for how long. Every Pi window that has pi-provimux and the same ~/.pi/agent, also after a restart: the pause is saved as pause in provimux.json, and each window reads it before each request. It lasts until /continue in any window, or until provimux.json stops saying so (changed by hand, or removed: a window that finds no provimux.json sends its requests).

What they do not do. /pause does not stop an answer already streaming or cancel anything: a paused Pi simply waits, and the footer says why. Pi puts every extension's status on one line, in the order of their names, and cuts it at the right edge, so in a narrow terminal the statuses of other extensions before it can push paused out of view. More: Pausing provider requests.

/provimux-route

What it does. Shows which of your accounts this conversation is on, and moves it back to a higher-priority one when that is free again. One model can be served by several of your accounts, tried by priority. When the first is cooling down, Provimux sends the conversation to the next, and with session affinity on (routing.session-affinity: true) the conversation stays bound there. /provimux-route asks your server, afresh at every call, and shows:

  • which account the conversation is on, in the words of the model names (Anthropic api, OpenRouter api), and since when;
  • whether that is a fallback, and from which account, since it was bound there (a release or an automatic return starts that history again);
  • whether a higher-priority route is free now or, if not, when the first of them is expected free;
  • whether your server's automatic return is on (below).

The check sends nothing to a model and costs nothing. It works at any time, also while Pi is answering, and in Pi's RPC mode. It offers the release only where the release would go ahead: in the TUI, with a higher-priority route free.

/provimux-route release moves the conversation back, in Pi's interactive terminal and while Pi is not answering:

  • It first says what the move may cost and asks. The conversation's next message may read the whole conversation once without cache: in tokens and, where Pi has the model's price, in dollars at list price for that size. Without a yes nothing is released.
  • With a yes, Provimux removes the binding the check saw, and the next message goes to the first available route by priority. Where the conversation may be on a Codex WebSocket, that socket is closed, so the next message is routed afresh.
  • When the current account is listed, it releases nothing unless a higher-priority route is free (it says when one is expected). It releases nothing when the conversation is already on a first route, while Pi is answering (type it again when the answer is done), or when the binding changed since the check (it shows the conversation as it is now).
  • If the release was sent but its answer was lost or could not be read, it says whether it was released is not known; /provimux-route shows where the conversation is.
  • In RPC mode it releases nothing and says so. In print and JSON mode the command sends nothing and says so on stderr.
  • Known limit: a turn that starts between the last idle check and the closing of the socket can overlap the release; /provimux-route shows where the conversation ended up.

Automatic return. From Provimux 8.1.7-pmx.5 the operator can set routing.session-affinity-return.cold-after so that the server moves a conversation back by itself. While that rule is in effect the show says, for example with cold-after: 6m: Automatic return: on. Once no request of this conversation has been routed for 6 minutes (a keep-warm request counts), Provimux can send its next request to a free higher-priority route; a pinned Codex follow-up stays on its account. Otherwise, including where the server leaves the rule off (a cold-after at or above the binding's lifetime, or rebind-on: never), it says Automatic return: off on this server.

Needs Provimux 8.1.7-pmx.4 or newer, with session affinity on. With an older Provimux, or plain CLIProxyAPI, it prints This server has no conversation routes: /provimux-route needs Provimux 8.1.7-pmx.4 or newer (plain CLIProxyAPI has none). Update Provimux to use it; everything else works as before. and changes nothing. A model whose name contains :: cannot be shown: Provimux answers that it has not seen the conversation.

Example. Your conversation on claude-opus-5-5 fell back from your Anthropic key to your OpenRouter key. You type /provimux-route. Pi shows:

Route of this conversation on claude-opus-5-5, as Provimux says now (this check sends nothing to a model and costs nothing):
• Now on: OpenRouter api, since 09:35 (40 minutes ago).
• A fallback: it was on Anthropic api until 09:35.
• No higher-priority route is free yet: one is expected free at 10:40 (in 25 minutes).
• Automatic return: off on this server.
To check again later: /provimux-route.

After 10:40 it says A higher-priority route is free now: Anthropic api. and To move it now: /provimux-route release (it says what that may cost and asks first). You type /provimux-route release. Pi asks:

Move this conversation from OpenRouter api to Anthropic api now?
Its next message may read the whole conversation once without cache (about 182,000 tokens, about $0.55 at the list price; more where the vendor also charges for writing the new cache). Staying costs a cached read, about $0.05 a message, while the cache is warm.

On yes: Released: this conversation is no longer bound to OpenRouter api. Its next message goes to the first available route (now: Anthropic api), and may read the whole conversation once without cache. On no: Nothing was released.

What it changes, and for how long. Only your server's binding of this conversation for the current model, once: the next message goes to the first available route, and from then on the conversation is routed as usual. The check changes nothing. Nothing is saved in Pi.

What it does not do. It does not send a message, end a cooldown or choose an account: Provimux chooses, by priority. It moves only this conversation, for the current model, and not its sub-agents. It sees a conversation only once your key has used it since the server last started.

When you update pi-provimux to this version. Pi now names each conversation on a Claude-format model by its session id (x-session-affinity, see Claude Messages format), where before Provimux recognised it by the start of its content. So, with session affinity on, a conversation already running is bound afresh once for each model it uses, at its first message on that model after the update: that message is routed as a new conversation's. It may go to the account it was on, with its cache, or to another one, where it may read the whole conversation once without cache. Until that message, /provimux-route says Provimux has no record of the conversation. Conversations started after the update are not affected.

Resume, compaction, fork. What names the conversation is Pi's session id, and Pi keeps it or makes a new one:

  • Resume (--continue, --resume, /resume, --session) and moving in /tree: the same session, the same id. Provimux finds the same binding while it lasts (by default an hour without a request). With automatic return on, its next request can go to a higher-priority route, as any request of the conversation can.
  • Compaction (/compact, or automatic): the conversation keeps its id. The summary request Pi sends to make the compaction carries no session id and is routed apart; the next turn is routed as usual.
  • Fork (/fork, /clone, --fork): a new session with a new id, so a new conversation for Provimux, bound at the first route that is free. /provimux-route in the fork says it has no record of it until its first message.
  • /new: a new id, a new conversation.

What it does

From the original extension:

  • Your models in pi. It reads the model list from {root}/v1/models?client_version=pi and registers each model with its price, context window, output limit, thinking levels and kinds of input from providers.dev (see Every value from providers.dev).
  • Setup by /login. /login Provimux asks for the address and the key, checks them, and saves them.
  • A saved model list, which a start uses when the server does not answer within 3 seconds; /provimux-refresh reads the server's list for the next start and says what changes.
  • Models fixed for the process: registered once, at the start, and never again in that Pi (Loaded only at the start).
  • /fast and /ultrafast: faster service tiers on the models that offer them.
  • /pause and /continue: hold every request to the provider until you continue.
  • GPT prompt caching kept: a gpt- request always starts with its base prompt as a developer message, so the prompt cache keeps being read.
  • Thinking level changes that keep the cache, for models that support them: Pi's own, placed as OpenAI documents.
  • Elapsed time and tokens per second in Pi's footer.
  • A fresh Codex WebSocket after compaction, so the server's context matches the compacted one.

Added in pi-provimux:

  • Claude Messages format. Claude models go to /v1/messages in Claude's own format, automatically where safe. With Pi's long cache retention, that brings Anthropic's 1-hour prompt cache.
  • OpenAI Responses format (API keys). OpenAI models served only by OpenAI API keys go to /v1/responses with Pi's own OpenAI adapter, as Pi sends them to OpenAI directly, so the prompt cache holds across idle reconnects and pi-cache-keeper can keep them warm.
  • Where each model comes from, in its name. With Provimux, a model's name ends with the keys that serve it: Claude Opus 5.5 · Anthropic api, fallback OpenRouter api.
  • Where each model comes from, for other extensions. Over Pi's event bus, which accounts may serve each model and, with Provimux, which one answered each response, also over the Codex WebSocket. pi-cache-keeper uses it.
  • /provimux-route. Where this conversation is bound on Provimux, and back to a free higher-priority route, after saying what that may cost.
  • One package in Pi's list. The footer helper loads from the provider, so pi list shows a single extension.

Install

# from npm
pi install npm:pi-provimux

# or from GitHub
pi install git:github.com/ngvoicu/pi-provimux

# from a local checkout
pi install /absolute/path/to/pi-provimux

# or temporarily for one run
pi -e /absolute/path/to/pi-provimux

To update an npm or Git install to the latest version, then load it:

pi update --extension npm:pi-provimux
# or, installed from GitHub
pi update --extension git:github.com/ngvoicu/pi-provimux

and restart each Pi that is open (quit it and start it again; /reload is not enough, see Loaded only at the start). A bare pi update updates Pi itself, not its extensions.

The version names the original release it is built on, then a count of its own: 105.0.1 is pi-provimux's first release on the original's 1.5.0 (major × 100 + minor, then patch), 105.0.2 its second, and 105.1.1 would be the first on the original's 1.5.1.

Versions on npm are published from this repository's main by GitHub Actions, with npm provenance. A workflow follows the original's releases: once a day old, one that merges cleanly and passes every check is merged into main and released, with no person in between: this is switched on. docs/FOLLOWING.md says how, and what that accepts.

It needs Pi 1.8.0 or newer, and is tested on the latest Pi.

Login-style setup (recommended)

This plugin needs both baseUrl and apiKey. Pi's built-in /login only supports multi-field prompts on the account/OAuth path, so Provimux appears under Sign in with an account.

When provimux.json or PROVIMUX_API_KEY already holds a key and no account login is stored, Pi also offers Sign in with an API key. Do not use it: it stores only the key, in auth.json, and after a restart Pi does not use that key for Provimux (with a login stored, the extension sets Provimux up for account logins only). The next start says Provider is not configured: provimux, and a saved default or a resumed session moves to another provider if you have one. Use Sign in with an account, or put apiKey and baseUrl in provimux.json. If you already used it, remove the provimux entry from auth.json (/logout) and log in with an account.

Which key wins. The extension reads the address from the PROVIMUX_* variables first, then provimux.json, then the login in auth.json (see Resolution order). The key is bound to the address it was given for: PROVIMUX_API_KEY is used with whatever address is in use; a saved key only when apiKeyFor in provimux.json (written by /login) names the address in use. No address is guessed for a saved key: one without apiKeyFor (written by hand) is sent nowhere, and Pi says Your saved key is not bound to a gateway: run /login once to bind it. A key saved for another address is never sent either: Pi loads no models and asks you to log in. The account login writes its address and key into provimux.json as well, so after it the two agree. Change the key or the proxy with an account /login. The key and address resolved at startup are used together for every model request in that Pi process.

Preferred: /login shortcuts

/login Provimux

or, by the provider id:

/login provimux

(Pi ignores case, so both name the same provider.) These shortcuts jump straight into the multi-field baseUrl + API key prompts, unless Pi also offers the API-key method (above): then it asks which one first, and you choose Sign in with an account.

Menu path

/login

Then choose:

  1. Sign in with an account (required for multi-field baseUrl + API key prompts)
  2. Provimux
  3. Enter:
    • base URL — preferred form is host:port, e.g. http://127.0.0.1:8317
    • API key

Final login validation calls {root}/v1/models?client_version=pi (this always bypasses the model cache and forces a fresh remote query):

  • HTTP 200 with a model list (JSON with a models or data list, or a list, whose every row has a non-empty string id, or slug as Codex lists name it) → login succeeds (an empty list is still OK) and the model cache is replaced
  • any other status, a body that is not such a list (an HTML page, no body), or a network error → login fails, nothing is saved, and you are prompted to re-enter base URL + API key
  • an address Pi cannot read → the address is asked again, before the key

On success:

  • models are registered immediately in the current session (0 models is allowed)
  • baseUrl / apiKey (and apiKeyFor, the address the key is for) are written to ~/.pi/agent/provimux.json, mode 0600 (only you can read it), through a temporary file renamed over it
  • Pi also stores the returned credential in ~/.pi/agent/auth.json

Re-run /login Provimux or /login provimux anytime to reconfigure. The built-in /logout command only removes credentials saved in auth.json; it does not erase provimux.json. Remove or update that file if you also need to clear the provider configuration.

Non-interactive configuration

You can still configure without /login.

Config file

~/.pi/agent/provimux.json:

{
  "baseUrl": "http://127.0.0.1:8317",
  "apiKey": "12345",
  "fast": false,
  "pause": false
}

Optional fields:

Field Default Description
baseUrl http://127.0.0.1:8317 Provimux or CLIProxyAPI address
apiKey (required unless set via /login or env) Bearer token / CPA API key
apiKeyFor (none: the key is sent nowhere) The address apiKey is for (written by /login); with another address in use, or without it, the key is not sent
providerId provimux Provider id shown in /model (written here by /login)
providerName Provimux Display name in /login and UI (written here by /login)
fast false Persisted speed preference: false (off), true (Fast), or "ultrafast" (Ultra Fast)
pause false Persisted request-pause preference; provider requests wait until it is cleared
tps true Show the elapsed time footer and TPS summary in the TUI; see Elapsed time and TPS
answered true Show in the footer which route answered the last turn; see Which route answered, in the footer
claudeMessages "auto" When Claude models use Claude's own format: "auto", true (always) or false (never); see Claude Messages format

Environment overrides

Variable Overrides
PROVIMUX_BASE_URL baseUrl
PROVIMUX_API_KEY apiKey
PROVIMUX_PROVIDER_ID providerId
PROVIMUX_PROVIDER_NAME providerName
PROVIMUX_FAST fast (true / false, also accepts 1, 0, yes, no, on, off)
PROVIMUX_CLAUDE_MESSAGES claudeMessages (auto, or the same values as PROVIMUX_FAST)

Resolution order for connection settings:

  1. Environment variables
  2. provimux.json
  3. /login credentials in auth.json
  4. Default baseUrl http://127.0.0.1:8317

A saved key is used only with the address it was saved for (see Which key wins under Login-style setup).

The extension writes provimux.json owner-only (0600), and makes an existing one 0600 when it starts.

At startup, PROVIMUX_FAST overrides the persisted speed preference: a true value selects Fast, and a false value turns both modes off. The variable does not accept ultrafast. If unset, the provider uses fast from provimux.json, or defaults to off.

baseUrl normalization

Preferred form is host:port only:

Input Inference baseUrl Models URL
http://127.0.0.1:8317 http://127.0.0.1:8317/backend-api/ http://127.0.0.1:8317/v1/models?client_version=pi
http://127.0.0.1:8317/backend-api http://127.0.0.1:8317/backend-api/ same models URL
http://127.0.0.1:8317/v1 http://127.0.0.1:8317/backend-api/ same models URL
127.0.0.1:8317 http://127.0.0.1:8317/backend-api/ same models URL

Pi then sends inference traffic to {inference}/codex/responses.

Fast and Ultra Fast modes

Both modes are off by default. They request faster processing for supported models and may use more credits or incur higher costs.

Command Model status label Request field
/fast fast service_tier: "priority"
/ultrafast Ultra Fast service_tier: "ultrafast"

The modes are mutually exclusive. Run the active command again to turn it off, or run the other command to switch directly. Each change saves the global preference in ~/.pi/agent/provimux.json and switches the tier each request asks for at once. It registers nothing: the models keep the prices registered at the start, and each answer that names its entry is counted at the tier it sent. The saved preference is restored at the next startup unless PROVIMUX_FAST overrides it.

Each mode applies only to models whose providers.dev entry offers its tier: the service_tier control of the entry (request_controls) lists priority (Fast) or ultrafast (Ultra Fast), for every request. With several entries behind a name, a tier they all offer. When an account that may answer the name names no entry, its support is unknown: no tier is sent, and the commands say the mode is unavailable for that model. The server's service_tiers and additional_speed_tiers are not read. When a mode is effective, Pi appends its yellow label to the bottom-right model status, and the command says what it turned on or off. On unsupported models, the commands still update the global preference and warn when enabling a mode, but the request and model status remain unchanged.

Both modes are independent of Pi's reasoning level. A model sent with the tier is registered with the price providers.dev publishes for a request that names that tier (price_at_publication.service_tiers): Fast at the priority tier's price, Ultra Fast at the ultrafast tier's, each as published (Ultra Fast on GPT-6.1 Sol is 6 times the base price, not Fast's 2). Where providers.dev publishes no price for the tier sent, the price is unknown and Pi counts 0, never the standard price or the other tier's; the plugin does not guess prices from -pro or -fast model IDs. A saved model list holds each model's price without a tier and with each tier, so a start in another mode prices it with no request. The price is counted once: Pi's own Codex adapter multiplies a reply's cost by a table of its own when the reply or the request names a tier (priority ×2, ×2.5 on gpt-5.5; flex ×0.5; ultrafast and any other ×1), which on top of the tier's published price would count Fast twice. In the adapter copy pi-provimux loads for its own models, that multiplier applies none; Pi's own providers are untouched.

Pausing provider requests

Pause provider requests with:

/pause

Use /continue to clear the pause:

/continue

The pause holds each request Pi sends to a model through its request hook, whatever the provider. While a window's request guard believes requests are paused, that window's footer says paused · /continue (paused under 60 columns), from the same state as the orange paused beside a Provimux model's name. Both commands persist the pause boolean in ~/.pi/agent/provimux.json. Before every provider request, the extension rereads this setting. When it is true, the request waits asynchronously and checks again every 200 ms until /continue sets it to false. A pause issued during an active run lets that run finish before Elapsed stops; a run that starts while paused excludes its waiting time from Elapsed and TPS.

Loaded only at the start

Within one Pi process, pi-provimux keeps the provider ID, models, and values it registers at startup. Model requests use the gateway address and key from that start together for the life of the process. Pi's --api-key sets the request key when you start with a Provimux model.

  • At the start pi-provimux reads the gateway's model list and providers.dev's values. If a saved list matches the address, key, and modes, Pi uses it when the gateway takes more than 3 seconds or returns an error. Without a saved list, Pi waits for the read. A late answer is saved for the next start, even across /reload. If it differs from the models in use, Pi reports the changes and says Restart Pi to use them.
  • Commands in the current Pi. /provimux-refresh saves a list for the next start. /login saves the new list, address, and key for the next start, or registers them immediately if Pi has no Provimux models yet. /fast and /ultrafast switch the tier sent immediately. Each answer is counted at the tier its request used.
  • New sessions and reloads. /new, /resume, /fork, and /reload reuse pi-provimux's startup registration. Pi still applies explicit user overrides from models.json. For example, an edited context window or output limit takes effect on /new. Model requests still use the gateway connection from startup.
  • A late answer can fill an entirely missing part once. If the saved list contains no accounts or routes, the late answer supplies them. If startup has no providers.dev data, it takes the whole copy from the late read, including its dataset and listing. The models stay as registered from the saved list.
  • Accounts and provider data. The start's accounts say what each route adds and which entries it may answer as. pi-provimux uses these accounts to time cache refreshes and the providers.dev copy held at startup to price each answer. An answer that names an entry outside the start's list for its model and account is reported to other extensions without an entry.

Why. Pi keeps its own copies of the model objects it is given (the list Ctrl+P cycles through, taken when a session is created; the session's model; the picker's list, taken when it opens) and hands an old copy back without telling an extension. A model registered again under an open session left Pi and pi-cache-keeper deciding on values nobody stated any more: a summary paid for a window that had changed, a 1-hour cache write on a lifetime the server no longer added.

To use a changed list, restart Pi. /reload is not enough: Pi shuts the extensions down, loads them again and registers what they register on the session's model registry (the session's model follows it), but keeps the session's scoped models, the list Ctrl+P cycles through, as they were when the session was created; and pi-provimux registers the models the window started with. The same goes for an update of this package.

Model cache

The provider keeps a separate cache file so startup stays fast when CLIProxyAPI is slow or briefly unreachable:

~/.pi/agent/provimux-models.json

The cache stores only model metadata and derived endpoint URLs — the model list, Fast-capable IDs, inferenceBaseUrl, modelsUrl, a fetchedAt timestamp, and keyId, a short one-way fingerprint of the key that read it, so another key's list is not used. A list without keyId is never used, online or offline: the start treats it as no saved list; nor is one without the values mark of providers.dev's values. One without the formats mark (saved before API-key OpenAI models went to Pi's OpenAI adapter) is read again from the server when online, and used offline. A saved list holds each model's price without a tier and with each service tier, and is priced for the Fast or Ultra Fast mode in use when it is registered, offline too, as a list just read is. It never stores your API key or other credentials. It is written owner-only (0600).

Property Value
Cache file ~/.pi/agent/provimux-models.json
Remote query timeout 60 seconds
Scope tied to the current baseUrl and key (a different base URL or key ignores the existing cache)

Startup behavior

When Pi starts (once per Pi process: a new session, /resume, /fork and /reload register the start's models again, with no request; see Loaded only at the start):

  1. The list is read from {root}/v1/models?client_version=pi, with providers.dev's values. If a cache exists for the configured baseUrl, key and modes, the start waits for that read at most 3 seconds: past them, or if the read fails, the cache's models are registered. A read that comes after the 3 seconds replaces the cache for the next start, and Pi reports what would change. It fills in accounts and routes only if the saved list had neither.
  2. If no matching cache exists, the start waits for the read. On success, the cache is written and the fetched models are registered. If it fails, startup logs a warning and no models are registered, and nothing tries again by itself: once the proxy answers, restart Pi (or /login Provimux, which registers the list where Pi has none).
  3. With Pi offline (pi --offline, or PI_OFFLINE set to 1, true or yes), nothing is sent at start or in the background, neither to the server nor to providers.dev: the cache for this address and key is registered as it is, or, with none, no models are registered and a warning says so. providers.dev's values come only from the copy on disk. Commands you type (/login, /provimux-refresh, /provimux-route) and your model requests still reach the server.

Refresh commands

  • /provimux-refresh — read the model catalog now, rewrite the cache for the next start, and say what it changes against the models in use. It registers nothing: restart Pi to use it.
  • /login Provimux / /login provimux — re-entering credentials always reads the models and rewrites the cache; they are registered at once only where Pi has no Provimux model yet, else at the next start.

Delete ~/.pi/agent/provimux-models.json to clear the cache manually.

Model mapping

From the server's model list → Pi model (every other field is providers.dev's, see Every value from providers.dev):

Server field Pi field
slug id
display_name name, followed by where the model comes from when CLIProxyAPI says
visibility: "hide" skipped

The server's context_window, max_tokens, input_modalities, supported_reasoning_levels, service_tiers and supports_reasoning_effort_updates are not read as the model's values.

Unsupported Pi thinking levels are set to null so they are hidden in the UI. A level the model lacks asked on the command line of a one-shot run (pi -p --thinking low, --model provimux/<model>:low, or --models provimux/<model>:low when that pattern selects the model; also --mode json) is refused: nothing is sent, the error names the levels the model has, and Pi exits with 1. The flags are read as Pi reads them: a suffix that is part of a model's id (--model provimux/local-assistant:high, for a model listed as local-assistant:high) asks for no level. Elsewhere (the level picker, a saved default level, --thinking in an interactive or RPC session) Pi moves the level to the nearest one the model has, and the request names that level, never the missing one. Each price tier's input_tokens_above becomes Pi's inputTokensAbove, including thresholds such as 272000. These are list prices, not a guarantee of the server's own markup or billing.

GPT Responses prompt caching

Pi builds no top-level instructions: it puts the system prompt, as given, in a leading { "role": "developer", "content": "…" } input item, for every model, and the provider sends that as Pi built it. For gpt- model IDs (ignoring case and surrounding whitespace) the provider makes sure the request starts with a base prompt: when the final body has instructions (an extension's before_provider_request hook set them), their text becomes the leading developer message instead; when the input does not start with a developer message (no system prompt, or a hook put another item first), You are a helpful assistant. is put in front as one. Existing input items stay in order, tools and prompt_cache_key are unchanged, and other models keep their request shape. This applies to HTTP and WebSocket requests, including Pi background streams that use this provider. A changed developer prefix or model sends the full input instead of a WebSocket continuation delta. To drop or replace the base prompt, a hook removes or changes that first item.

Cache-preserving thinking level changes

Models whose providers.dev summary publishes that the effort may change mid-conversation (effort.updates: true, API 1.28.0; for the format the model is sent in, its item of effort.apis for responses or messages, else the entry's own) get Pi's cache-preserving mid-session thinking level changes, with placement following the OpenAI documentation: the effort of the first turn becomes the fixed request-level reasoning.effort, and each later change is carried by a configuration_update input item placed immediately before the user message it applies to, so switching levels mid-session keeps the prompt prefix — and the upstream prompt cache — intact instead of rewriting it. WebSocket previous_response_id continuation also survives level changes. Pi's Codex adapter carries these changes itself; the provider only moves the items to the placement above. Pi records the level it sent on each reply, none with thinking off.

providers.dev's answers are kept for a day at ~/.pi/agent/tmp/providers-dev-data.json (see Every value from providers.dev). The copies older versions kept (providers-dev-prices.json, models-dev-cache.json) are no longer read and can be deleted.

Claude Messages format

Claude models can be sent in Claude's own format to CLIProxyAPI's /v1/messages, using Pi's built-in Anthropic client, instead of the Codex Responses format every other model uses. This happens automatically; nothing needs configuring.

  • Which models: those the server lists with owned_by: "anthropic" (from its plain /v1/models) that Pi's built-in catalog has by exactly that id, and for which providers.dev gives an output limit. Their compat flags, and the value Pi sends for each thinking level, come from Pi's catalog; which levels they have is providers.dev's: every level Pi knows is set, the listed ones with Pi's value and every other one unsupported, so Pi offers no level providers.dev does not list (minimal on Claude Fable 5.2). No price is copied from Pi's catalog: Pi's allowedFallbackModels (Anthropic's server-side fallback) is kept without its cost. Every other model, Claude models Pi doesn't have by that id, and Claude models with no output limit on providers.dev stay on the Codex format.
  • Setting: claudeMessages in provimux.json (or PROVIMUX_CLAUDE_MESSAGES) is "auto" by default. false keeps every model on the Codex format; true works as "auto": a model with no output limit on providers.dev is never switched, since Claude's format must send one.
  • Why: Claude's format can carry Anthropic features the Codex format can't. The main one is the 1-hour cache: with PI_CACHE_RETENTION=long, Pi marks the prompt with cache_control ttl: "1h", CLIProxyAPI passes it through, and Anthropic writes the 1-hour tier, on API keys too. One-hour cache writes cost 2× the input price instead of 1.25×. The thinking levels offered are also the model's own, not a generic list.
  • Limits come from providers.dev, as for every other model. Unlike the Codex format, Claude's format sends the output limit (max_tokens) on every request (Pi would send 1 for an unknown one); the Codex format can send none, so a model whose output limit is unknown stays there.
  • Not available for these models: Fast mode (a Codex service tier; they keep their standard price under /fast and /ultrafast) and the Codex WebSocket transport. Thinking, tools, images and auto-compaction work as before.
  • Changing the setting refreshes the model list (the cache records it). The first request of an ongoing session after a model switches formats is a cache miss.
  • The conversation is named: each turn carries the Pi session's id in x-session-affinity, as the Codex format carries it in session-id, so Provimux binds the conversation by that id (and /provimux-route can find it) instead of by the start of its content. The summary request of a compaction carries none. The header goes to your server only: Provimux itself does not pass it on to the vendor. A conversation already running when you update to a version that sends it is bound afresh once for each model, at its next message on it: that message is routed as a new conversation's, and may read the conversation once without cache.

OpenAI Responses format (API keys)

OpenAI models that only OpenAI API keys serve are sent with Pi's built-in openai-responses adapter to the server's /v1/responses, instead of the Codex format. This happens automatically; nothing needs configuring.

  • Which models: those whose every account in the server's contract-2 list (/v1/models?include=entries) is an OpenAI API key (provider codex, kind apikey), and that Pi's built-in OpenAI catalog has by exactly that id. Their compat flags, and the value Pi sends for each thinking level, come from Pi's catalog; which levels they have, and every other value, is providers.dev's. Everything else stays on the Codex format: a model served by a ChatGPT login, by a login and a key, by another provider's key or by no listed account, an id Pi's catalog lacks, and Claude models kept on the Codex format.
  • Why: this is how Pi sends these models to OpenAI directly: the whole conversation, in one serialisation, on every turn. On the Codex WebSocket Pi sends only the new items, and the server rebuilds the rest from OpenAI's own output; after a reconnect (Pi closes a socket after 45 minutes) Pi sends everything in its own serialisation, which OpenAI's cache does not match after an idle spell (8,431 of 64,203 tokens read from cache in one measured case). It also makes these models eligible for pi-cache-keeper's keep-warm, which refuses the Codex stream.
  • Not available for these models: Fast and Ultra Fast (no service tier is sent; they keep their standard price under /fast and /ultrafast) and the Codex WebSocket transport, as for the Claude Messages models. Thinking, tools, images and auto-compaction work as before.
  • The conversation is named: Pi's adapter sends the session's id in session-id, as the Codex format does, so Provimux binds the conversation by it and /provimux-route finds it.
  • Which route answered is told for these requests as for the others: pi-provimux wraps pi-ai's openai-responses implementation for this provider's requests, as it wraps anthropic-messages.
  • The first start after updating reads the model list again. The first request of an ongoing session after a model switches formats is a cache miss.

Where each model comes from, in its name

Through CLIProxyAPI Pi sees one provider, so its model list does not say which of your API keys (or logins) serves a model, nor whose. Provimux 8.1.8-pmx.4 or newer is asked for them with the plain model list (GET /v1/models?include=entries, Provimux's contract 2), and each model's name then ends with where it comes from:

Claude Opus 5.5 · Anthropic api, fallback OpenRouter api
GPT-6.1 Terra · OpenAI api
anthropic/claude-opus-5.5 · OpenRouter api
  • api is an API key; a login shows as sub (see Logins).
  • First comes what CLIProxyAPI may answer with: the credentials at the highest priority, joined by or when they differ (Anthropic api or OpenRouter api). After fallback come the others, highest priority first: what may answer when the first fail or cool down. A service is named again only when it changes.
  • The service is the one behind CLIProxyAPI's provider (claude is Anthropic, codex is OpenAI …). An API key goes by the host CLIProxyAPI names for it (openrouter.ai is OpenRouter whatever the entry is called; a host that is not known is shown as it is). A provider that is not known keeps CLIProxyAPI's name for it.
  • Everything is read from the server's list; nothing is guessed from a model's id or owner. A server whose list is not contract 2 (plain CLIProxyAPI, Provimux before 8.1.8-pmx.4), or a list that can't be read, leaves every name as it was: accounts on a list that is not contract 2 are not read.
  • It says what the list said at Pi's start: after changing credentials or priorities in CLIProxyAPI, restart Pi (/provimux-refresh says beforehand what changes). What answered a given request is a separate matter: see the next section.

Pi shows a model's name in /model beside its id and searches it, and its model patterns (--model, scoped models) also match names: openrouter now matches every model that comes from OpenRouter, not only ids that contain the word.

Which route answered, in the footer

Provimux can serve one model name through several routes (your Anthropic or OpenAI key, OpenRouter, any login …). After each answer on a Provimux model, the footer says which one answered it, in the words of the model names:

answered: Anthropic api
answered: OpenRouter api
answered: OpenAI api

It only ever shows the route that produced the answer you see.

  • It is read from the answer itself: the X-CPA-AUTH-* response headers, or on the Codex WebSocket the cpa_auth_* fields of the turn's response.created. No other extension is needed.
  • When Pi tries a request again (an HTTP 429, or a Codex WebSocket continuation replayed on a fresh socket), only what the attempt that answered said counts: an attempt that names nobody is unnamed, whatever an earlier one said.
  • Only an answer changes it: a turn that completed (or calls tools) with something in it. A failed, aborted or empty turn leaves it as it was.
  • Whatever routes an install has and however it orders them, the footer names the one that answered: the credential list and its priorities play no part, and a route that is not in the list is named all the same.
  • Only the session's own turns count: Pi's cache warmer and other extensions' requests, which can run at the same time, never change it.
  • answered: unknown: the proxy names answers (its model list lists credentials, as Provimux's does; a lookup of the list that fails changes nothing), but not this one (Provimux leaves an answer unnamed when plugin code took part in it).
  • Needs Provimux 8.1.1-pmx.1 or newer for the footer: an answer counts as named only with both its kind and its provider (X-CPA-AUTH-KIND and X-CPA-AUTH-PROVIDER), which Provimux sends from that version on.
  • Nothing from a proxy that names no answer (plain CLIProxyAPI), and nothing while a model of another provider is selected or answers, even for a Provimux answer that ends after the switch.

Set "answered": false in ~/.pi/agent/provimux.json to turn it off (takes effect on the next start or /reload).

Every value from providers.dev

Every value Pi registers for a model comes from providers.dev, as published, read by the rules providers.dev states for its clients (Reading the data as a client, R1 to R8): its price, its context window, its output limit, its thinking levels and its kinds of input. pi-provimux looks up and chooses among published values, and does nothing else: it never multiplies a rate, takes a value from another entry, fills a blank, or matches a name. Where providers.dev has no value, the value is unknown, and Pi gets 0 (Pi needs a number). providers.dev's own worked examples (reading-examples.json) are part of this package's tests.

Which entry. Your server says which providers.dev entry each model is, in Provimux's contract 2 (GET /v1/models?include=entries): for each account behind the model, in the order the server tries them, the entries its recorded answers named (answered), else the entry the server states it expects for that account (expected, where its routing leaves no doubt), and what it adds to a request there (adds: the 1-hour cache on a Claude login; null where it does not know, because a payload rule it is configured with can reach the request's cache fields). Nothing else names an entry: not the model's name, not its owner, not the account's credential or host.

  • One entry: that entry's values.
  • Several entries, and it is not known which answers (a login with an API key as its fallback, or one name that answered as two models): the smallest window and output limit, unknown where one of them has none, and the whole price of the dearest entry (the highest input price, then the highest output price, then the first ref in character order). Parts of two entries are never mixed. Levels and kinds of input are read item by item, as providers.dev's guide says (R8, API 1.27.2): a kind of input is registered when every entry states it, and a level is offered when every entry lists it, in the order the first entry lists them, so nothing is offered that an account the server falls back to would refuse (thinking can be turned off only where every entry lists none). The first entry is the one of the account the server tries first, and within an account the entry its answers named last. The order of the kinds of input means nothing. Kinds Pi has no place for (PDF) are then left out. They are unknown where an entry states none, or where the entries have no item in common. The service tiers are not read item by item: a request's tier is priced as before. An account that may answer and names no entry (neither answered nor expected) is one of them, of which nothing is known: every value of the name is then unknown.
  • No entry named (a server whose list is not contract 2: plain CLIProxyAPI, or Provimux before 8.1.8-pmx.4; or a model no answer has named yet): every value is unknown: price 0, window unknown, output limit unknown, no thinking levels, text input only, no service tier. Pi's log says so once. When an answer names an entry the list did not name for that model and account, the values stay unknown in that Pi; the server's list names it from then on, so the next start reads its values (an alias whose first answer names an entry another model already named too).
Value providers.dev field Unknown
Input, output, cache read the entry's price_at_publication.rates, in USD per million tokens; from next_change.at on, next_change.rates, at that instant (each answer is counted at the price of its own instant; the models keep the price registered at the start, and the next start, or a saved list, is priced at its own instant, offline too) 0
Cache write the rate keyed by the lifetime the request carries: the one the server states it adds, else Pi's (1h with PI_CACHE_RETENTION=long on a Claude-format model), else the entry's default; a rate keyed by no lifetime is the price of every lifetime. Where the server says what it adds is unknown (adds: null), the lifetime is unknown, whatever Pi asks for: no write price, and an answer that writes cache there says "price unknown"; so does an answer from an account the held list has no row for 0
Prices above a prompt size price_at_publication.tiers, Pi's inputTokensAbove the base price at every size
Fast (priority) and Ultra Fast (ultrafast) price_at_publication.service_tiers, the item of the tier the request sends, with its own tiers 0, said as "price unknown"; never the base price or the other tier's
Which tiers a request may name the service_tier control of request_controls: its options for every request no tier is sent
A subscription its billing: reference entry already carries the API list price of price_from in its own price fields billing: not_applicable: 0
Context window safe.input_window.value, else the provider's listing (max_input, else context_window) 0, Pi's own mark for a window it does not know (below)
Output limit safe.max_output.value, else the listing's max_output 0, and no output limit is sent; the model is not sent in Claude's format (below)
Effort changed mid-conversation the summary's effort (API 1.28.0): the item of effort.apis for the format the model is sent in (responses, messages), else effort.updates Pi's own behaviour: no switch
The effort of a request that names none the summary's effort, the same way: default. providers.dev publishes one only where someone states it (on a plan, only that plan's own page), never models.dev's by assumption Pi's own behaviour: the effort Pi sends, none filled in
Thinking levels the listing's reasoning.levels (none is Pi's off); a level Pi has no slot for is not offered none: thinking off only
Kinds of input the listing's input_modalities (text, image) text only

Each answer, at the entry that answered. Before an answer Pi counts with the registered price: for a name several entries may answer, the dearest one's, and cache writes at the lifetime the request was expected to carry. Once the answer names its entry, that entry alone counts for it (R8), and the cache