Fistron docs

fistron.io

Configure models (LLM endpoints)

Fistron works without a model (Fistron Sovereign Rules — Deterministic: every decision comes from rules and evidence): the rules reasoner analyses failures and the status report is built by rules. A model adds reasoning, answers and writing. Fistron talks to any OpenAI-compatible chat completion endpoint (a cloud API, an LLM gateway, vLLM, Ollama), and to Anthropic’s Messages API with prompt caching (api = "anthropic", below).

Where your models come from

For each project and role you choose one of five options (ADR 0140):

Option Sovereign Where it runs State
Fistron Sovereign Rules — Deterministic yes no model: rules and evidence available, in every subscription
Fistron Sovereign LLM in your environment (Performance, Traceable) yes your GPU, also air-gapped in development: included in Enterprise, an add-on in Business
Fistron Sovereign LLM hosted by Fistron in the EU yes Fistron’s GPUs in the EU in development
Fistron Managed: frontier models through Fistron’s account (Claude, GPT, Gemini) no the providers’ APIs in development
Your own model: your key or endpoint as you decide where you run it available: the sections below

Fistron Managed and hosted Fistron Sovereign LLM are paid from your organisation’s model pool, included in your subscription per active committer a month: EUR 5 in Team, EUR 8 in Business, EUR 12 in Enterprise. Everyone and every role use it together, at the providers’ list prices. An admin sets limits per project and role and chooses what happens when the pool is used up: fall back to Fistron Sovereign Rules or your own key, or pay the overage. The pool does not roll over. Individual has its own model credit instead (EUR 12 a month in its variant with a model). Your data classes and your model policy still decide: a project whose data may not leave your network cannot choose Fistron Managed, and an air-gapped installation never offers it.

In every option the model proposes and phrases; verdicts, gates and control states are computed by rules from evidence.

What to decide first

Roles. Each task uses a role, and each role uses an endpoint:

Role Used for
reasoner the analysis of a failure and the assessment of a change
judge confirming the change assessment’s supported checks
assistant Fištrónek’s answers
repair the repair of a bad test
reviewer the AI review of a pull or merge request
planner the test plan’s links and wording
summariser the interpretation of an assessment summary, from its facts, when the project wants it

Data classes. public < internal < confidential. An endpoint receives evidence only up to its max_data_class. Evidence (logs, code, diffs) is confidential by default (default_data_class). An endpoint left at internal therefore receives none of it, and the evidence is reported as missing. Set confidential only for an endpoint your policy allows to see logs and code: a self-hosted model, or a provider under contract.

Add an endpoint to an agent or a local configuration

In the local UI, Setup and settings › Model endpoints does it for you:

  1. Press Add an endpoint, choose the Provider’s API (Amazon Bedrock with its Region, or an Address) and the Model.
  2. For Amazon Bedrock choose the Access: A key, or This machine’s own AWS credentials; and, to make the calls as a role, The role its calls are made as with its Role session name when the role’s trust policy asks for one.
  3. Give The key’s variable and the Key: the key is kept on this machine beside its variable, never in fistron.toml.
  4. Choose the Roles it serves and Data it may be given, and the Price in and Price out (empty: the list price Fistron knows).
  5. Press Preview the change: the endpoint is tried with one short call and the diff of fistron.toml is shown; Confirm and write writes it. Test the endpoint tries an endpoint again later.
  6. Under Your budget for Fistron, set the Budget, Its period and When it is spent for this machine’s own models ([llm.budget]), and press Preview the budget.

By hand, in the file:

  1. Put the key in an environment variable, for example FISTRON_LLM_LOCAL_KEY.

  2. Add the endpoint and its roles to fistron.toml:

    [llm]
    default_data_class = "confidential"
    
    [llm.endpoints.local]
    base_url = "https://llm.acme.test/v1"
    model = "qwen3-32b"
    api_key_env = "FISTRON_LLM_LOCAL_KEY"   # the variable's name, never the key
    max_data_class = "confidential"
    
    [llm.roles]
    reasoner = "local"
    assistant = "local"
    planner = "local"
  3. Check it:

    fistron integrations check --config fistron.toml

    It checks each endpoint a role uses: its key’s variable, one short fixed request (nothing of your repositories), and whether its data class lets it receive the evidence.

  4. For an agent, restart it so that it declares its endpoints to the control plane. The control plane learns each endpoint’s name, model, host, data limit and roles, never its key or URL.

An agent whose file consents to its configuration in the control plane ([agent] control_plane_config = true) takes its endpoints from its Configuration page too, without a restart and without a file on its host: the section llm.endpoints, with the key as a secret sealed there (api_key_env = "cp:<name>", Set an agent’s configuration in the control plane). The section replaces the endpoints of the agent’s file, so list every endpoint the agent keeps. The project’s Models page offers them at once.

The local UI’s Setup wizard writes one endpoint for every role (Run the local UI).

Give the organisation shared endpoints

Admins can add endpoints in the control plane, with their keys, for every project to choose.

  1. Open Model endpoints.

  2. Click Add an endpoint and enter:

    • Name: small letters, digits and -. Projects choose it as organisation/<name>;
    • Base URL: an OpenAI-compatible API over https://, or Anthropic’s (https://api.anthropic.com/v1) with the Messages API. For Amazon Bedrock it is not needed: its address follows the region;
    • API: Chat completions or Anthropic’s Messages API, with prompt caching. For https://api.anthropic.com/v1 the form chooses the Messages API and says why; for any other address Chat completions. With Anthropic’s models keep the Messages API: the instructions and the evidence already read stay in the provider’s cache, so an analysis’s later rounds and later groups are billed at the cache’s price. Anthropic’s OpenAI-compatible API has no such cache: chosen there, the form and the table say no prompt cache with this API;
    • Model;
    • Data it may receive, at most: public, internal or confidential;
    • optionally Temperature (0 to 2) and Evidence per prompt, in characters (10 000 to 1 000 000) and The answer’s limit, in tokens (256 to 128 000; when empty, by the effort: 8 192 at low, 32 000 at medium and high, 64 000 at xhigh and max);
    • optionally Effort: how much the model works on an answer (low, medium, high, xhigh or max). The model’s own sends none: Anthropic’s Claude models then work at high, their Opus 5.5 and Haiku 5.5 at medium. At high and above the model’s thinking counts toward the answer’s limit: give it 16 000 tokens or more (64 000 at xhigh and max);
    • Pictures and PDFs: whether the model is given a picture attached in Fištrónek’s chat, and a PDF as it is. As Fistron knows the model (Claude, GPT-4o, GPT-4.1, GPT-5, Gemini and vision models read them), Reads pictures and PDFs for a model Fistron does not know, or Reads neither. A PDF’s text goes to every model; the PDF as it is only through Anthropic’s Messages API;
    • Prices, per million tokens: Input, Output, Read from the cache and Written to the cache, each named, from the provider’s price list. A work states its cost from them; without the input and output prices it states its tokens but no cost, and the form says so. An empty cache price is the input’s, and the field shows it; writing to a provider’s cache usually costs more than the input, so set it, or the cost comes out too low. For an endpoint at its provider’s own address (the Claude API, OpenAI’s API, Amazon Bedrock) and a model on its price list, the form offers the list price, as the provider’s page said it on its date, with a link to the page; Use the list price fills the prices with it. They are then the endpoint’s own prices: Fistron never changes them, and a gateway’s, a proxy’s or a contract’s prices are yours to write;
    • Currency: the three letters of the prices’ currency, USD unless you write another (EUR, CHF). A work’s cost is in it, said with its sign to the cent (“$20.74”); a sum never adds one currency to another, a cost in another currency is said beside it (“$12.30 and €4.00”);
    • Key. It is kept sealed by the control plane and never shown again.

    For Claude at Amazon Bedrock choose the API Amazon Bedrock (Anthropic models), with prompt caching (an address https://bedrock-runtime.<region>.amazonaws.com chooses it by itself), and enter:

    • Region: the AWS region its calls go to, as AWS names it (eu-central-1); the base URL follows it, so leave the base URL empty unless the calls go through an endpoint of your network (a VPC endpoint) or a proxy of yours;
    • Model: a model’s ID in Bedrock or an inference profile’s, with its prefix (global., us., eu.) or its ARN. The newer models are served only through one;
    • Access: An access key of the account (its Access key ID and its Secret access key, kept sealed like any key; it does not expire, so an agent that runs for days keeps working), An API key of Amazon Bedrock, or The agent’s own AWS credentials (its environment, a profile, a role or a workload identity; no key is kept, and the control plane cannot test it);
    • optionally The role its calls are made as: the access key, or the agent’s own credentials, only ask AWS for this role’s, so that the calls count where the role’s do (a budget kept for the role). The key needs sts:AssumeRole on the role, the role bedrock:InvokeModel on the model and its inference profile;
    • with a role, its Role session name when the role’s trust policy asks for one (its owner’s e-mail, say). Left empty, the role is assumed as fistron-<name>, and the form says so in a warning: a role that asks for another session name refuses the calls;
    • its prices: the form offers Bedrock’s list price of a Claude model (at a geographic profile or in one region 10 % over the global one, as Anthropic’s price page says), else write them from Bedrock’s price list for the region.

    A refusal of Bedrock is said in words: the model not in the region, an inference profile needed, the access denied, an opt-in region not enabled, the credentials expired, the budget spent or the calls paused. When the budget is spent during a work, the work stops with stopped: no model left instead of asking again, and the next work tries again.

  3. Click Save. The control plane then tries the endpoint with its key: two identical calls with a fixed text of about 6 000 tokens that ask for a word and send nothing of yours. A key the provider rejects is said at once, in words, with the fix (for example a provider that takes only keys created inside a workspace). The second call says whether the prompt cache works: how many of its tokens it read from the cache, or what to change when it read none. Test in the list tries it again at any time.

To change one, click Change . Leave A new key empty to keep the key, or tick Remove its key. Click Remove to delete it. The table shows each endpoint’s API, marked no prompt cache with this API where that API has none at the endpoint’s address, its Effort (the model’s own said as the one it is, “high (the model’s default)”) with a warning when the answer’s limit may cut an answer at that effort, its Pictures and PDFs in words, when and by whom a key was set, and Used by: the projects and roles that chose it (“Pay: reasoner”), or no project chooses it.

See what spent the model calls across the projects

Admins open Model use (under Administration, at the top). It shows what called a model in every project in the last day, week or month (The period), in the same table as a project’s What spent it, with the Project beside each row; a project’s name opens its Models page. Below it, Each project’s model per role lists the model that answers each role in each project, and how: chosen in the project, its agents’ configuration, without a model or no model. When a role’s model is not the same in every project, the page says so above the table, for example “reasoner: big-model-9 in Pay; small-model-2 in Shop”. It changes nothing: you decide on each project’s Models page.

An agent applies the organisation’s endpoints only when its configuration allows it:

[agent]
control_plane_models = true                        # default false
control_plane_model_hosts = ["llm.acme.test"]      # optional: the only hosts it may send to

The key reaches the agent with a work, lives in that run’s environment only and is never written to disk.

Let your members’ command lines use an endpoint

A member signed in with fistron licence login --control-plane (Your licences) uses on your organisation’s code only the endpoints you allow for it, called through your control plane: the key stays here.

  1. Open Model endpoints.
  2. Click Change of an endpoint, or add one.
  3. Tick Members’ command lines may use it, tick the roles it serves there under For the roles (for example reasoner for an RCA and explainer for Become a developer), and click Save.

The member’s command line gets the endpoint at its next refresh (within a day, or fistron licence refresh). Each call is in the audit trail and in the usage of the model pool, never its messages. The control plane must reach the endpoint’s host; the member needs only your organisation’s network. With no endpoint allowed, a member’s command line runs Fistron Sovereign Rules — Deterministic on your code.

A member’s command line calls an endpoint through the chat completions API even when it is set to Anthropic’s Messages API: the control plane relays chat completions only, so there it works without the provider’s cache.

Let people use their own models

A person may run the works they start, the chat and their command line on a model endpoint of their own, paid from their own budget for Fistron, when an admin turns on People’s own models on Model endpoints: see your own model and budget (ADR 0190).

Let Fištrónek’s chat answer

In a control plane, Fištrónek’s chat and the panel of every page answer with one endpoint of the organisation, without an agent: outside a project, and in a project with no model for the role assistant. A project that chose one on its Models page answers with that one, whatever endpoint is the chat’s: to move the chat of such a project, change its model of the role assistant. Each answer says what answered it, Answered with its endpoint and model, as Model use names them.

  1. Open Model endpoints.
  2. Click Change of an endpoint whose Data it may receive, at most is internal or confidential.
  3. Tick Fištrónek’s chat and click Save.

A new endpoint is never the chat’s at once: save it first. When its test answers, the page offers Make it Fištrónek’s chat, which opens the endpoint’s form with the box ticked. One endpoint is the chat’s; ticking it on another moves it there, once you confirm the move. The endpoint is given the question, the guide’s pages, what the page shows and what Fištrónek reads of the organisation (internal data). Every plan has the chat; everyone signed in may ask; the costs of the endpoint are the organisation’s. The control plane must reach the endpoint’s host.

Under the endpoints, What Fištrónek’s chat answers says what it answers for everyone of the organisation: Anything, as a general AI chat (the default), or Only about the work, when it declines anything but Fistron, engineering and the organisation’s work in one line. An admin chooses.

Fištrónek on the web says in one sentence whether the chat searches the web and reads its pages, and how: off until an admin turns it on.

  1. Click Set the chat’s web and turn on The chat may search the web and read its pages.
  2. Choose through what: The project’s agent (Brave Search’s API with its key, or your own SearXNG, as the agent’s [acquisition.web] says; outside a project, the agent of the first project the person starts works in) or The model’s own search (Anthropic’s API only, never Amazon Bedrock; Anthropic charges $10 per 1,000 searches, counted in the chat’s cost).
  3. Optionally keep it to some domains (Only these domains, one a line; a domain takes its subdomains), keep domains off, and tick the roles and the projects it is for (none ticked: everyone, every project).
  4. Set how many searches and pages a question and a day, for the organisation, and click Save.

For the project’s agent, give it the section in Agents, Configuration (Set an agent’s configuration in the control plane), the key as a secret sealed here:

[acquisition.web]
provider = "brave"                # or "searxng" with base_url = "https://search.example.org"
api_key_env = "cp:brave-search"

The web is never offered in an air-gapped installation, nor in a project that runs with Fistron Sovereign Rules. Each search and page is counted under Model use, its query is in the audit trail, and in its person’s Where your data went. Only public words go into a query, and only pages of the public web are read.

In the local UI, the configuration’s endpoint of the role assistant answers.

Choose a model per role in a project

You need the role Engineer (or Manager or Admin) in the project.

  1. Open the project’s Models page.
  2. For each role, choose an endpoint from the list, As the agent’s configuration says, or Without LLM (rules only). The list shows each endpoint’s model, host, data limit and the agents that have it. An endpoint the agent would not apply is listed as not usable, with why, and cannot be chosen. The column Left to the agent says what the agent’s configuration gives the role (“the agent uses local (qwen3-32b)”), or no model: it runs by rules.
  3. Optionally, in Then, in this order, add the models the role’s work goes on with when its model is out: Add a model to go on with, once for each, in their order; Remove takes one out. A role left to the agent first needs its model (Choose its model first.). A model that may get less data than the role’s own says Passed over for a work with … data: it is never given that work’s data.
  4. Click Save. The next work of the project runs with these models.

A work goes on with the next model only when its model is busy or out of its quota after two more tries, its budget is spent or its access paused, or it cannot be reached; never on an error of the request or of its setting. It stays with that model to its end, says so (“The budget of organisation/bedrock-sonnet is spent: went on with organisation/claude-sonnet”), and the next work starts with the first again, so a new month or a raised quota is used without anyone. With none left it stops and says each model and why. An endpoint of the organisation’s that a project goes on with cannot be removed until the project’s Then no longer names it.

Without LLM (rules only) runs the role without a model, whatever the agent’s configuration gives it: the feature that asks for the role runs by its rules and says so (ADR 0182). The switch Without LLM above the table does it for every role of the project; the choice per role is kept for when you turn it off. An agent whose configuration has no [llm] section takes its model from its environment and cannot be told: its work says so.

What spent it shows what called a model in the last day, week or month (The period): a row for each feature, how it was started (a person, never named; a schedule by its name; the system; a pipeline of the CI integration), the endpoint and its model, with its calls and works, tokens and cost. The cost is the calls’ whose endpoint has prices; the others are counted beside it (“plus 2 calls without a price”). Against the period before compares the calls with the period before, as long. A row opens to its newest works. Fištrónek’s chat is a row of its own, counted in questions; on Model use a question asked outside a project is under No project. The table sorts, filters and exports like every result.

The table The agents’ models shows each agent’s endpoints, with the API each speaks (its default included: an endpoint without api in the agent’s file speaks the native API of a provider’s own address, else Chat completions), and whether it applies the organisation’s (applies them) or its own only. An endpoint with the chat API at a provider that has its own says no prompt cache with this API at this provider: set api = "anthropic" in its [llm.endpoints.<name>], or remove the line.

What the models used sums what the project’s work of the last 30 days used, as each agent reported it: the calls, the tokens in (and how many the provider’s cache served) and out, and the cost when the endpoints have their prices (price_in, price_out, price_cached, price_cache_write, in currency), in all and per endpoint; a cost in another currency than US dollars is said beside the sum, never added to it. Per endpoint it also says Cut at the limit, the answers that stopped at the endpoint’s output limit, and the Effort its calls were made at: when answers are cut, raise the answer’s limit or lower the effort. It also says how many tokens the cases of that work would have been, pasted whole into a model, against what Fistron sent (ADR 0148). A work’s own page shows the same under Model calls.

The monthly cap is what the project’s model calls may cost in a month, in the currency of the endpoints’ prices, US dollars. There is none by default: an organisation pays its own models. A manager of the project sets it, or empties it again. A cap set while the form said EUR is now read in US dollars: check it. A cost in another currency is not counted against the cap and is said beside it; nothing is converted. The month counts the project’s works and the runs of its pipelines that upload to the control plane: a run of fistron ci that called a model uploads its use with its reports (the record model_usage). A call of an endpoint without prices is counted without a cost. At the cap, an investigation runs with Fistron Sovereign Rules, and Fix it and Repair the test wait (Investigate a failed build).

Choose a model by measurement

Before a role gets a model, benchmark the candidates on your own cases: each candidate runs the same tasks through the same pipeline, with only that role’s model replaced, three times.

  1. Write the candidates file benchmark.toml: rules, and each endpoint, either by its name in your configuration’s [llm] or with its base_url and model, where it runs, and its prices. Name a key by its environment variable (api_key_env), never write it in the file.
  2. Write the set benchmark-set.toml: per task its cases and ground truth, and what data the cases hold (data_class). Start from examples/model-benchmark/ in Fistron’s repository. For a test’s repair and a proposed test, collect the cases from your project’s records: download the project’s documents (Documents) and run the operation benchmark-collect with each project’s checkout (--repository owner/name=<path>); it writes the set, with the reviews of the changes whose outcome is known.
  3. Run the operation model-benchmark (or fistron model-benchmark --set benchmark-set.toml --candidates benchmark.toml --config fistron.toml). A test’s repair and a proposed test need the closed core: the core writes each candidate’s change, and the test runs on your machine with your change policy’s [tests] command. The review needs PR-Agent installed (pip install pr-agent==0.48.0), as the AI review does.
  4. Open the record of kind model_benchmark under Documents: per task, each candidate’s share of cases solved, the cases it solved beyond rules and lost to them, the cases whose answer changed between runs, and its time, tokens and cost.

A candidate that made no call could not receive the cases’ data: its endpoint’s max_data_class is below the set’s data_class.

To see what Fistron saves, add the same model once more with kind = "whole-log": it gets each case’s files pasted whole, as you would paste them into a chat. The root cause analysis then shows Fistron against the whole log: the tokens, cost and time saved, and how many more cases Fistron solved (evaluation.md).

Troubleshooting

You see Do
No agent serves this project Register an agent for the project (Install and register an agent).
“The project’s agents declare no model” The agents’ configurations have no [llm] endpoints: add one and restart the agent.
An endpoint set on an agent’s Configuration is listed as not usable: “it names , not in [agent] control_plane_hosts” The agent’s file limits the hosts its configuration here may name, and that limit holds for the whole section llm.endpoints: add the host (and the host of every other endpoint of the section) to control_plane_hosts in its file and restart it once, or use an allowed host.
An endpoint set on an agent’s Configuration is listed as not usable: “the agent did not apply version N” The agent ran a work with that version and did not apply its endpoints: that work’s warnings say why (often a variable its environment lacks).
“No agent of the project applies the organisation’s endpoints” Set [agent] control_plane_models = true in the agent’s configuration and restart it. Until then the agents use their own.
“The control plane keeps no key: its key-encryption key … is not set” The control plane’s operator has not set its key-encryption key. Endpoints without a key can still be added.
“The URL’s host changed: enter its key again, or remove the key.” A key is never sent to a new host silently: enter the key again.
A role answers nothing, the report lists missing evidence The endpoint’s max_data_class is below the data’s class. Raise it only if your policy allows.
The endpoint rejects temperature Fistron retries once without it. Set temperature = "omit" to stop sending it.
The gateway’s certificate is not trusted Set ca_file to your internal CA.

Fistron does no routing, failover, rate limiting or cost tracking across providers: point one endpoint at your LLM gateway for that. Details: llm-configuration.md, agent.md.