# Configuration Settings live in `~/.config/alchemist/config.toml`. The connect form and [`alchemist profile`](cli.md#alchemist-profile) write it, and you can edit it by hand. It never holds a key. | Setting | Meaning | |---|---| | `theme` | the [theme](../using/themes.md) every launch opens in; `ctrl+t` in the app and `alchemist theme use` set it | | `default_profile` | the profile `alchemist` connects to when none is named | | `snapshot_dir` | where snapshots are stored; `--snapshot-dir` overrides it | | `[profiles.]` | one table per profile | ## Profile settings | Setting | Default | Meaning | |---|---|---| | `adapter` | | `cosmos` for an Azure Cosmos DB account | | `endpoint` | | the account endpoint URL | | `insecure_skip_verify` | `false` | skip TLS verification, for the emulator's self-signed certificate | | `well_known_key` | `false` | connect with the [emulator's](../data/emulator.md) published key; only for an endpoint on this machine | | `database` | | database to open in the catalog on start | | `page_size` | adapter default | rows per result page | | `max_join_rows` | `10000` | rows a [join](../language/cross-container.md#limits) may hold in memory | | `sample_fields` | `true` | let [autocomplete](../using/editor.md#field-sampling) sample a container for field names | | `read_only` | `true` unless the endpoint is local | refuse writes; see [read-only accounts](../data/profiles.md#read-only-accounts) | | `writers` | `4` | concurrent item writes for clones, updates and deletes, 1 to 16 | | `max_mutation_items` | `10000` | most items one update or delete may match | | `snapshot_max_items` | `5000000` | largest container a snapshot accepts | | `diagnostics` | `curly` | [error hint](../using/editor.md#terminal-support) style: `curly`, `underline` or `off` | Example: ```toml theme = "dracula-at-midnight" default_profile = "emulator" snapshot_dir = "/mnt/big/alchemist-snapshots" [profiles.emulator] adapter = "cosmos" endpoint = "http://localhost:8081" well_known_key = true database = "sales" page_size = 100 max_join_rows = 5000 sample_fields = false read_only = false writers = 8 max_mutation_items = 50000 snapshot_max_items = 10000000 diagnostics = "underline" [profiles.prod] adapter = "cosmos" endpoint = "https://myaccount.documents.azure.com:443/" ``` ## Environment variables | Variable | Meaning | |---|---| | `ALCHEMIST__KEY` | key for profile `` (upper-cased, dashes as underscores), used when the keychain has none | | `COSMOS_CONNECTION_STRING` | connection string, used only for the profile whose endpoint it names | | `ALCHEMIST_CONTAINER_RUNTIME` | `docker` or `podman`, for [`alchemist emulator`](cli.md#alchemist-emulator) when `--runtime` is not given | | `XDG_CONFIG_HOME`, `XDG_STATE_HOME`, `XDG_DATA_HOME` | move the config, state and data directories | See [keys](../data/profiles.md#keys) for the lookup order. ## Files On Windows, `~` is your user profile folder, `%USERPROFILE%`. | Path | Contents | |---|---| | `~/.config/alchemist/config.toml` | profiles and settings | | `~/.config/alchemist/themes/*.toml` | [custom themes](../using/themes.md#writing-your-own-theme) | | `~/.config/alchemist/queries//*.sql` | [saved queries](../using/history.md#saved-queries) | | `~/.local/state/alchemist/history.jsonl` | [query history](../using/history.md#history) | | `~/.local/state/alchemist/` | log file | | `~/.local/share/alchemist/snapshots/` | [snapshots](../data/snapshots.md) | Keys are stored in the OS keychain under the service `alchemist`. The emulator's data is in the Docker or Podman volume `alchemist-cosmos-emulator-data`, not under these directories. Uninstalling Alchemist, with Homebrew, winget or otherwise, leaves these files and the keychain entries in place.