The console assistant¶
How-to guideThe steps for one task.
The assistant is an AI helper inside the console. It knows which screen, API, operation and field you are on, answers questions about them in English, and drafts the YAML or jq program for you to apply. It never changes your configuration by itself: nothing it writes reaches your draft until you click, and deploying stays your own step.
It comes with the Enterprise plan in Apinx Cloud and with every on-premises installation. In Apinx Cloud it appears once MoznHub has switched it on for your organization's plan; on premises, once an administrator turns it on with your own AI key (below). When it is not available the button is not shown.
Four ways to use it¶
The round ✦ button at the bottom right of every screen opens the chat. Its first line says what it is looking at, such as "API orders · Develop".
Ask about this screen. Type a question: "what does this dialog do?", "why is Deploy greyed out?", "write a jq program that renames accessToken to access_token for this response". An answer can carry a YAML or jq block:
- Insert into editor puts it in the editor that is open (the Code tab, or a policy's jq program). It first shows exactly which lines it removes and adds there, and changes nothing until you click Replace; afterwards Undo puts back what was there, and the editor shows the change (the Code tab opens Show changes). If the editor already holds that text, it says so and does nothing.
- Add to draft applies a whole API definition for the API you are on, through the same check and save as the Code tab.
- Try it (jq only) runs the program through the transform preview to show that it compiles and runs; test it on a real sample in the policy's own preview.
Walk-throughs. When the chat opens it offers starting points that fit the screen: Secure my API (API key, JWT, Basic auth, only these IP addresses, or help me choose), Limit traffic, Allow browser apps (which websites may call it, CORS), Cache responses, Change headers (hide the backend's server details, set or remove headers), Reshape requests and responses, Block attacks and, on an API, Check this API. Each is a few clicks ending in a review of the exact YAML with Add to draft. They add the policy where you are: to the API you are on (every operation), to the shared flow you are on (everywhere it is attached), or, on the Policies screen, to the global or environment defaults (every API starts from them and can override them). The steps are built into the console and cost no tokens; only the free text in Reshape (the jq program you describe) asks the model.
Common questions. Every screen also offers the questions people ask there, such as How do I make a backend more resilient? on Upstreams, What runs on every API here? on Policies or What does this flow do, and where is it used? on a shared flow, and Explain this screen. These ask the assistant and use tokens.
Shared flows and Policies. On a shared flow the assistant reads the flow and where it is
attached; its whole-flow drafts (kind: SharedFlow) go in with Add to draft or Insert
into editor on the flow's Code tab, keeping the secrets already stored. On the Policies screen
it reads the flow hooks and the defaults and explains what runs on every API.
Ask about a field. Fields in a policy's settings show a small ✦. Click it for the field's description at once, for free; Ask more asks the assistant what the field does for this API with its current value. The answer appears right there, beside the field, and is kept in your current chat.
Check this API. Lists what the API's configuration shows that is worth a look: no authentication policy, no rate limit, a JWT policy without an audience, an upstream with no timeout. Apinx works the list out itself, without the model and without tokens; open a finding and the assistant explains it. Policies that come from a shared flow or a flow hook are not looked at, and the finding says so.
Every role can chat. Insert into editor, Add to draft and Try it are shown to editors and administrators, and the server refuses a change from anyone else exactly as it does elsewhere in the console.
What it answers¶
Only questions about Apinx: its screens, settings and features, in English. Everything else is refused with I can only help with the Apinx console, in English., and a refused question costs nothing.
| Answered | Refused |
|---|---|
| "What does strip do on this API key policy?" | "What is a JWT audience?" |
| "Write the jq program for this transform that keeps only id and name." | "Explain jq's reduce." |
| "Why does this API answer 401 with APX-PL-0001?" | "What does HTTP 429 mean?" |
| "Which policy limits calls per application?" | "Why does my IIS server return 500?" |
| "Shorter, please." (after an answer about Apinx) | Questions in any other language |
A general idea is answered only as part of an Apinx setting you are working on: "set the audience on this JWT policy" is answered, "what is an audience" on its own is not. A field name or a sample value in Arabic inside an English question is fine.
The assistant answers from the Apinx manual and from your organization's own configuration. It has no internet access, cannot fetch a page or search the web, and has nothing that writes, sends or deploys.
What is sent to the AI and what never is¶
Each question sends to the AI provider (Anthropic's Claude API):
- your question and the earlier messages of the same chat;
- what the screen shows: its name, the API, operation or upstream open on it, the open dialog, and the field you ask about with its value;
- the parts of the manual that answer it;
- the configuration it looks up to answer: API definitions, upstream settings, policy descriptions, error codes.
Before anything leaves, Apinx replaces every secret with «redacted», on the server, whatever
the browser sent: fields marked secret, credentials of upstreams and callouts, API keys,
passwords, private keys, and anything shaped like a bearer token, a JWT, an apk_ key or a card
number, including inside your question. Secret references such as env:BACKEND_TOKEN pass; the
values behind them never do.
Never sent: your traffic. No request or response, header, body, IP address, trace, analytics or access-log line reaches the AI. Suggestions from traffic are not part of this release.
History (the clock in the chat's header) lists your conversations in this environment, newest first, each under its first question. Open one to carry on where you left off, or delete it with its messages. New chat (+) starts another.
Your conversations are kept for 30 days after their last message and then deleted; only you can open them. In Apinx Cloud, MoznHub's operators see token counts, never what you asked.
Limits¶
| Limit | Default |
|---|---|
| Question length | 1,000 characters (the chat counts down what is left) |
| Questions per person | 20 an hour |
| Messages in one chat | 20, then start a new chat |
| Lookups per question | 4 |
| Answer length | 2,000 tokens |
Tokens in Apinx Cloud¶
Every answer shows what it used ("1,422 tokens used"), in the chat and in History. Your organization has a token balance, shown in the chat as "18,400 tokens left" (amber below a fifth of the last grant or top-up) and on the Subscription page.
- The grant. An Enterprise organization receives 50,000 tokens once, the first time the assistant is available to it. There is no monthly grant.
- What a question costs. The tokens the AI reads and writes to answer it, for every step of the answer. Tokens read again from the AI's cache (the fixed instructions, and your own earlier messages in the same chat) are never counted, so a long chat does not charge its whole history again on every question. The check that a question is about Apinx, refused questions and failed answers cost nothing.
- Asking for more. The organization's owner asks on the Subscription page (Assistant tokens › Ask for more tokens, with the amount and an optional message). MoznHub adds them and invoices as for plan changes.
- Running out. A question is not started below 500 tokens. An answer that has started always finishes, even if it takes the balance a little below zero; the next top-up covers it. If the balance runs out between the steps of an answer, the chat shows what was done so far and Out of tokens: recharge to continue., and keeps the conversation: after the top-up, Continue picks the question up again. Walk-throughs, field descriptions, Check this API and Add to draft keep working at zero, and because the assistant never writes your configuration, running out can never leave a change half done.
On premises¶
The assistant uses your organization's own Claude API account: you pay Anthropic directly, and there is no balance to recharge. It is off until an administrator turns it on.
Admin › Assistant (administrators):
- Assistant on.
- Claude API key: stored encrypted with the master key, never shown again; leave it empty to keep the stored one.
- Answer model and Guard model (the guard checks each question is in English and about
Apinx):
claude-sonnet-5-5by default.claude-haiku-5-5costs about a twentieth and suits the guard well; for answers Sonnet writes better jq and policy YAML. On Haiku a question the model refuses stays refused, because Haiku has no server-side fallback to another model. - Claude API address: empty for Anthropic's endpoint, or your corporate proxy.
- Monthly token cap: tokens the whole organization may use per calendar month; 0 for no cap. When the cap is reached, questions stop until the next month, as at a zero balance.
The same settings can be given in apinx.yaml for installations managed as code; what is saved
in Admin › Assistant wins:
assistant:
enabled: true
model: claude-sonnet-5-5
guard_model: claude-sonnet-5-5
# base_url: https://ai-proxy.example.com # optional corporate proxy
monthly_token_cap: 2000000 # 0: no cap
Give the key in the environment, APINX_ASSISTANT_API_KEY, rather than in the file. The
limits above are assistant.max_output_tokens, assistant.questions_per_user_hour,
assistant.retention_days and assistant.max_in_flight (answers running at once per instance,
32); every key is in the process configuration reference.
Changes in apinx.yaml apply at the next start.
The server needs outbound HTTPS to api.anthropic.com (or your proxy). Answers stream to the
browser: a reverse proxy in front of the console must not buffer them (proxy_buffering off;
in nginx, as in Deploying on Linux).
When it does not answer¶
| You see | What to do |
|---|---|
| No ✦ button | The assistant is off for this organization: on premises an administrator turns it on in Admin › Assistant; in Apinx Cloud it comes with the Enterprise plan. |
| The assistant is not set up correctly | The AI key or a model name was refused: an administrator checks Admin › Assistant. |
| The AI service could not be reached | The Claude API did not answer in time; try again. Nothing was charged for the part that failed. |
| The assistant is busy | Too many answers at once on this instance; try again in a moment. |
| The answer reached its length limit and was cut short | Ask for one part at a time, such as one operation. A cut code block offers nothing to apply. |
| The assistant could not use this conversation | Start a new chat (+) and ask again. |
| You have asked 20 questions in the last hour | The hourly limit per person; it frees up as the hour passes. |
The Admin API calls behind the chat are listed in the Admin API reference.