Model providers
Add providers and their keys in the console, fetch and test their models, give each model its card, and route each job kind to a primary and a fallback model.
Language models write Synaxis's summaries (files, modules, repositories), the repository cards and the capability catalog, judge team notes, review repositories and distill their instructions. You set up the providers and their models, then give each job kind a primary model and an optional fallback. A job kind with no model is not run, so without any providers Synaxis still indexes and searches code, but writes no summaries.
The four pages
Under Models, the console has the same four pages as CodeWrightAI's Settings › Provider/Models:
| Page | Holds |
|---|---|
| Available (Chat) | The providers you set up, one record per key, each with its models, their cards and their tests |
| Provider Settings | Every provider CodeWrightAI knows: endpoint, Embeddings URL, API style, sign-in, key variable, Requests at once, rate limits, Off-peak hours (UTC), Served by, documentation |
| Model Settings | Every model CodeWrightAI knows, once each by its bare model id: context window, maximum output, prices, Reasoning levels, tools, images, video, embedding, structured output |
| Available (Embedding) | The embedding providers you set up, and the index's embedding model (Embeddings) |
Every change is a revision of the configuration's models section, with its audit entry, and applies on every replica
without a restart; only the index's embedding model waits for one. When a configuration file manages models, the
pages show it and change nothing (Configuration as code).
To add a provider
- Open Available (Chat) and select Add model provider.
- Keep Third-party model provider and choose the Provider. The list is the providers of Provider Settings; its endpoint and protocol are filled in. For a relay, a gateway or a self-hosted server, select Custom model API and give a Provider ID, the Base URL and the API protocol.
- Enter the API key. It is sent to the server with Apply, kept in the server's secret store and never shown again. A local server needs none.
- Select Fetch available models. The server asks the provider and adds a card for each model not listed yet, filled from the model's row in Model Settings. Or type a model id and select Add model. Remove a model you do not want with its ×.
- Select the play button beside a model to test it before you save. The server calls the provider with the endpoint and key as the dialog has them; the model's dot turns green with how long it took, or red with why it failed. A key typed here is used for the test and stored only by Apply.
- Select Apply. The server tests each saved model again; Available (Chat) shows test passed, test failed or not tested yet beside each, and the play button there tests one again.
Only models whose test passed are called by jobs and sent to agent executors. A job whose route names no model that
passed is held (model:unconfirmed) until a test passes.
Several keys for one provider
Add the provider again and give the key a Key name (free). It is saved as a record of its own
(openrouter-free) with its own key and models, and takes its endpoint and off-peak hours from the provider. On each
model's card, under This key on this model, set the key's Priority (1 is tried first), Requests per
minute, Tokens per minute and, with Cap this key's use of this model, how much it may use per day or month.
The model card
Select a record's Edit, then a model, to open its card.
| Setting | Means |
|---|---|
| Label, Description | A readable name and what the model is for |
| Context Window Size, Max Output Tokens, Largest input | The model's limits; empty reads its row in Model Settings |
| Prices per 1M tokens | Peak and, with Cheaper at off-peak hours, Off-peak: input, cached input, output and cache write, in the card's Currency |
| Concurrency Limit, Service tier, Per Turn Token Cap | Requests at once on the model, the tier calls are sent at, and the most tokens one agent turn may use |
| Reads | What the model accepts: Text, Images, Video, Files |
| Reasoning levels, Default Reasoning Effort | Standard list, or This model's own levels with How the level is sent |
| This key on this model | Priority, the per-minute limits and the cap |
Budgets price a call at its card's prices, peak or off-peak by the provider's Off-peak hours (UTC) on Provider
Settings. A model without prices on its card uses the budget's own prices. A call with no price at all is never
counted as free: under a limited budget its job is held (budget:<job kind>:unpriced) until a price is set.
Provider Settings and Model Settings
Each list shows one line a row; select a row to open its card, change it and select Save. A built-in row you changed is marked Edited and has Reset to built-in; one you added with Add provider or Add model is marked Added and has Delete; a built-in row is never deleted. On Model Settings, type in the filter to find a model by name, id or another spelling.
Job kinds
| Job kind | Writes |
|---|---|
summary.file |
Summaries of files over a size threshold |
summary.module |
Summaries of modules (a .NET project, a package, or a top-level folder) |
summary.repository |
The repository summary and its card |
catalog.propose |
Capability proposals for the catalog |
memory.review.a, .b, .c |
The team-note reviewers' verdicts on proposals and suggestions (Team notes) |
repo.review |
The nightly repository review's suggestions (Suggestions) |
repo.brief |
The nightly brief's sentences for each repository, rephrased (optional: without a model, rules write them) (Suggestions) |
org.distill |
The weekly instruction lines for each repository's AGENTS.md (Suggestions) |
agent.review, agent.generate |
Agent tasks' reviews and generations, where agent tasks are enabled |
Summaries are written again only when their inputs change, at most once per repository every 6 hours. Upgrading Synaxis does not write them again, even when a release improves the summary prompts: each summary takes the new prompt when its input next changes (a commit that touches it) or its route names another model.
To route the job kinds
- Open Models. Per job kind lists each Job kind with its Primary and Fallback.
- Choose each from the list, which offers the models whose test passed. For a team-note reviewer
(
memory.review.a,.b,.c), Confidence threshold (0 to 1, 0.5 when empty) is the confidence under which a verdict counts as abstain and goes to a curator (Team notes). - Select Save the routes.
The fallback is tried when the primary fails, never when a budget holds the job. Every answer is checked against its schema, and an answer that fails is dropped, never stored. Test beside a model, or under Test a model, answers how long the model took and how many tokens it used, or why it failed.
In the configuration file
The pages write the same models section a file can state:
spec:
models:
available:
- id: deepseek-free
basedOn: deepseek
accountPool: free
apiKey: { secretRef: models/deepseek-free }
models:
- { id: deepseek-v4-pro, priority: 1, cap: { limit: 1000, unit: Requests, period: Day, resetAt: "00:00" } }
- id: deepseek
apiKey: { secretRef: models/deepseek }
models:
- { id: deepseek-v4-pro, priority: 2, inputPrice: 0.5, outputPrice: 2, offPeakInputPrice: 0.25 }
providerSettings:
- { id: deepseek, label: DeepSeek, shipped: true, local: false, offPeakHours: "Mon-Fri 16:30-00:30, Sat-Sun 00:00-24:00" }
jobs:
summary.file: { primary: deepseek-free/deepseek-v4-pro, fallback: deepseek/deepseek-v4-pro }
A route names a record's model as record/model. For a file, store each key first
(synaxis secret set models/deepseek --from-file key.txt). A configuration written with providers (a name, a
kind of openai or anthropic, a baseUrl and an apiKey) keeps working: each provider is read as a record of
the models its routes name, and the first change on Available (Chat) writes it as one.
Each agent task carries its executor the confirmed models, never a key. The executor must hold each record's key in the environment variable Available (Chat) shows for it.