Configuration
Configuration uses TOML with a schema version. The validator rejects unknown fields and invalid values before the service starts.
Configure from the desktop app
Section titled “Configure from the desktop app”The desktop app covers the normal path without editing TOML:
In RC15, new installations start in Basic. Use Setup guide in the header to connect a provider, choose a model and open Chat. Existing installations retain Advanced; the header or Settings → Interface switches interfaces without changing active policies. All settings… opens specialist sections from Basic.
- In Providers, use Discover for running local services or Add provider for a cloud API, personal subscription or compatible endpoint. Credentials live in the system store. Saving the connection does not add models.
- In Add model, select a provider and wait for its Available model catalog. Choose an entry, review its stable alias and save. Registered models are marked Already added; editing shows Current.
- Click i beside Protocol conversion to compare Strict and Compatible. Respect actual model capabilities and input limits.
- Return to Chat and select the alias. Routes are optional; add candidates and a mode under Routes when you need grouped selection or fallback.
If the catalog fails, check connectivity and authentication before refreshing. Local and Local only block remote catalogs. No free-text entry invents an upstream. Follow the manual screenshots.
In Settings, Gateway port is configurable and Open introduction reopens the welcome flow. An occupied port falls back to another available port; the header shows the full active URL. Reconfigure clients retaining an old port. Use Settings → Default routing for visual routing controls and save pending changes. Settings → Reset contains data deletion. TOML examples below are for advanced CLI/repository use, not a raw-file editor in the app.
LiteGate starts without fictional providers or models. The gateway may be live
at 127.0.0.1:4100, but Chat stays gated until at least one model is configured.
For optional historical document-tool compaction, enable virtual context under Settings → Virtual context, enable Dynamic context compaction (experimental) and choose Save changes. It uses the shared small local language model and keeps complete originals recoverable. Supported tools, model permissions and limits.
Provider templates
Section titled “Provider templates”Authorized routing prefers local models and excludes cloud providers unless
their Allow in Authorized mode permission is enabled. Select it for a route
or in Settings → Default routing → Default routing mode. The provider field is
authorized_allowed in TOML and authorizedAllowed in JSON templates; the mode
identifier is authorized. Former names are rejected, not migrated or aliased.
This permission does not remove PII or certify the provider’s privacy behavior.
In Providers > Catalog, choose a recognized template and review its values before opening setup. Refresh published catalog queries the published list only on request; Import JSON adds a template downloaded from the provider directory. Templates are data, not executable code or credentials. Discovery detects running services; the catalog offers known configurations even before a service is running.
Local / Local only allows bundled templates and file imports, but blocks remote refresh. Saving a connection still does not register models automatically.
An available example
Section titled “An available example”The repository includes tests/fixtures/config/valid-phase1.toml:
version = 1
[server]listen = "127.0.0.1:4000"request_timeout_ms = 120000max_body_bytes = 1048576max_concurrent_requests = 16
[[providers]]id = "mock"kind = "openai-compatible"base_url = "http://127.0.0.1:4100/v1"locality = "local"authentication = "none"
[[models]]id = "mock-chat"provider = "mock"upstream_model = "mock-chat-v1"Fixture ports are test data, not recommended settings for a real installation. The mock destination is example configuration: this file does not start a model
server. LiteGate does not run or download user models either.
Select and validate the file
Section titled “Select and validate the file”Use an explicit path for reproducible results:
cargo run -p litegate-cli -- config validate --config tests/fixtures/config/valid-phase1.tomlThe LITEGATE_CONFIG environment variable is also available. Selection prioritizes
--config, then that variable, and finally the platform path. When getting
started, use --config to avoid ambiguity.
Validation does not check network availability, credentials or actual model capabilities. Provider secrets are managed through the operating system’s credential store; do not add them to the example.