Configuration
Settings live in ~/.config/polyglots/config.json and API keys in
~/.config/polyglots/.env, kept apart so the settings file can be shared or
read without exposing a key. Change them with polyglots config or from the
menu rather than by hand: every value is checked before it is saved.
polyglots config get # every setting, keys masked
polyglots config get batchSize
polyglots config set batchSize 50
Settings
| Setting | Default | What it does |
|---|---|---|
defaultLocale |
not set | The locale a command uses when --locale is not given. review and translate then fall back to the file’s Language header; every other command that needs a locale stops and asks for one. config set defaultLocale "" unsets it. |
defaultDraftEngine |
deepl |
The draft engine for translate: deepl, openai or local, or none for translation memory only; see without AI. |
reviewProvider |
claude |
Which agent reviews: claude, antigravity or codex; see codex. local is the experimental local reviewer; see local models. none reviews with the rules alone; see without AI. |
codex.model |
not set | The model codex reviews with. When unset, the model in your ~/.codex/config.toml applies, then codex’s own default. config set codex.model "" removes it. See codex. |
codex.effort |
not set | Codex’s reasoning effort: none, minimal, low, medium, high, xhigh, max or ultra. Not every model takes every value. When unset, your codex config’s model_reasoning_effort applies, as written, then codex’s own default. An empty value removes it. |
wporgUsername |
empty | Your translate.wordpress.org login. Used only to link the requester message to the contributor’s strings. |
batchSize |
25 |
Entries per batch sent to the reviewer or draft engine. --batch-size overrides it for one run. |
consistencyTtlDays |
30 |
How long a translate.wordpress.org consistency lookup is cached before it is asked again. |
localServerKind |
ollama |
Which local server the local engine and reviewer use: ollama or openai-compatible. |
ollama.baseUrl |
http://localhost:11434 |
Where Ollama listens. |
ollama.model |
qwen3.8:27b-mlx |
The Ollama model to load. |
ollama.contextLength |
unset | The context to ask Ollama for. Worth setting; see local models. |
openaiCompatible.baseUrl |
http://localhost:1234 |
An LM Studio, llama.cpp or vLLM server. |
openaiCompatible.model |
empty | The model id, exactly as polyglots models shows it. |
openaiCompatible.contextLength |
unset | The context the server was started with. |
localModelServers |
none | Extra servers for polyglots models to list, comma-separated. Replaces the whole list. |
localIdleTimeout |
180 |
Seconds a local server may send nothing before polyglots gives up on the reply. Raise it on slow hardware: polyglots config set localIdleTimeout 600. |
usageStats |
off | Whether to share anonymous weekly totals for the website: on or off. See usage statistics. |
debug |
off | Whether every review and translate run saves its prompts and the agent’s output beside the run log: on or off. See debug mode. |
problemReports |
ask |
Whether a run that had a problem offers to send a report to the maintainer: ask or never. See problem reports. |
updateCheck |
on | Whether to ask npm once a day for a newer version, and say so at the end of a command and in the app’s header: on or off. Also asks translate.wordpress.org once a day whether a glossary you synced has changed since. |
The two context lengths are cleared with an empty value:
polyglots config set ollama.contextLength "".
Names the checks should leave alone
Where the title-case check runs (a locale whose
rules file enables it), a capital in the middle of a
sentence is flagged. Places, people and institutions are the
exceptions, so add them per locale:
polyglots config add-name --locale tr "Kadıköy"
polyglots config add-name --locale sv "Riksdagen"
A name may be several words, and is then excused only as the whole name:
Türk Dil Kurumu excuses the three words together, not Dil on its own. A
single word also covers its suffixed forms, so Kadıköy covers Kadıköy'de.
The names go in the properNouns.always list of the locale’s
rules file, the list the app shows as Always
capitalized under Configuration › Locale rules › Proper nouns.
polyglots config list-names prints the whole list with numbers.
polyglots config remove-name takes those numbers, or the names themselves:
polyglots config list-names --locale tr
polyglots config remove-name 2 --locale tr
All numbers in one command refer to the list as it was printed, and if one number or name matches nothing, nothing is removed.
Names added by an earlier version were kept in config.json. The first
command after the upgrade moves them into each locale’s rules file and says
so; the next review of those locales starts over once.
API keys
| Key | Used by |
|---|---|
DEEPL_API_KEY |
the deepl draft engine |
OPENAI_API_KEY |
the openai draft engine |
polyglots config set-key DEEPL_API_KEY
With no value given the key is read from standard input, so it never reaches
your shell history. An environment variable of the same name takes precedence
over the stored key. The .env file is written readable by you alone.
Reviewing needs no key: the agent uses its own sign-in.
Environment variables
| Variable | Effect |
|---|---|
POLYGLOTS_HOME |
Keep settings and data under this folder (config/ and data/) instead of ~/.config and ~/.local/share. |
POLYGLOTS_AGENT_BIN |
The agent executable to run, when it is not claude or agy on your PATH. |
POLYGLOTS_DEBUG=1 |
Debug mode for every review and translate run, as --debug does for one. See debug mode. |
POLYGLOTS_REPORTS_URL |
Where problem reports are sent, instead of https://ada.tools/polyglots/api/reports. |
POLYGLOTS_ASCII=1 |
Plain ASCII instead of Unicode symbols and box lines. Also chosen automatically when the locale is not UTF-8, and on Windows outside Windows Terminal, VS Code and a few other terminals. POLYGLOTS_ASCII=0 keeps Unicode in every case. |
NO_COLOR |
No colour in the output. |
FORCE_COLOR |
Colour even when the output is not a terminal. |
NO_UPDATE_NOTIFIER=1 |
Never check npm for a newer version, or translate.wordpress.org for a changed glossary. Both checks are also skipped when CI is set, or when the output is not a terminal. |
Exit codes
| Code | Meaning |
|---|---|
0 |
Success. |
1 |
An error, or the run was aborted. |
2 |
A usage error: a missing argument or an invalid option. |
3 |
The run stopped early on an API quota or rate limit. Run it again later to carry on. |
This page is docs/configuration.md in the repository.