One schema, every source
Local files, environment variables (MindAttic__Vault__LLM__claude__apiKey) and upstream providers all resolve into the same MindAttic:Vault tree. Section names live in VaultConfigurationKeys, never as loose strings.
Set a key once. Every app on the machine sees it.
MindAttic.Vault gives every .NET app one IConfiguration-backed home for API keys and settings, plus a native desktop app where all of them are edited in one place.
What it is
Every app that talks to an LLM, a broker or an FTP server ends up hand-rolling the same Load(), Save() and environment-variable plumbing, and every user ends up pasting the same API key into five settings screens. Vault replaces all of it with one library and one place on disk: %APPDATA%\MindAttic.
The library plugs into standard IConfiguration. Local files, environment variables and any configuration provider you wire upstream all surface the same MindAttic:Vault shape, so the code that reads llm.GetKey("claude") on your laptop runs unchanged in a container fed by environment variables.
MindAttic.Vault.Desktop is the companion WPF app. Each MindAttic app describes its settings with a few attributes, and Vault.Desktop renders a tab for it: its settings, the keys it uses, and a shared key pool with several keys per provider you can switch between when one stops working. An app's cog opens Vault.Desktop straight at its tab through the mindattic-vault:// link.
It is deliberately small: no server, no network listener, no Azure SDK in the core package. It is a resolution and projection layer over sources you already own.
Who it's for
LlmCredentialResolver and stop writing per-app key loaders, overlays and fallbacks.Features
Local files, environment variables (MindAttic__Vault__LLM__claude__apiKey) and upstream providers all resolve into the same MindAttic:Vault tree. Section names live in VaultConfigurationKeys, never as loose strings.
LlmCredentialResolver and BrokerCredentialResolver walk IConfiguration, then the writable file store, then null. The first non-blank value wins and writes always land in the file store.
ConfigurationCredentialStore throws on every write, so a deployed app can never mutate its own secrets.
IRotatingKeyStore keeps several labelled keys per provider in priority order. AppScopedCredentialStore lets one app use its own key without changing what any other app resolves.
Every store writes atomically (temp file plus File.Replace), takes cross-process locks, recovers from malformed files, and copies a corrupt providers.json aside before replacing it.
JsonSettingsStore<T> loads, saves and updates roaming or local JSON settings with sync and async APIs, serialized writes, and a strict loader for callers that must never save over unreadable data.
[SettingsApp], [Setting], [SettingRange] and [UsesCredential] describe an app once. Vault.Desktop turns that into a tab with grouped fields, shipped defaults and the keys the app needs.
AddMindAtticVault() for console and desktop apps, AddMindAtticVault(configuration) for web and worker hosts, AddVaultAppSettings<T>("MyApp") for a roaming settings store.
Every public type ships XML doc comments, and an NUnit 4 suite covers each one without ever touching your real %APPDATA%.
How it works
Add MindAttic.Vault (net9.0 and net10.0) to your project.
Call AddMindAtticVaultFiles() on your configuration builder and AddMindAtticVault(builder.Configuration) on your services.
Enter it in Vault.Desktop, edit %APPDATA%\MindAttic\LLM\providers.json, or set an environment variable on the host.
Take LlmCredentialResolver in a constructor and call GetKey("claude").
Quick start
The same two calls work for a web app, a worker or a desktop host.
The full setup guide lives in the documentation.
using MindAttic.Vault.Configuration;
using MindAttic.Vault.DependencyInjection;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration
.AddJsonFile("appsettings.json", optional: true)
.AddMindAtticVaultFiles() // %APPDATA%\MindAttic\...
.AddEnvironmentVariables();
builder.Services.AddMindAtticVault(builder.Configuration);
// later, in any service:
// public class MyService(LlmCredentialResolver llm)
// {
// public string? Claude => llm.GetKey("claude");
// }Part of MindAttic
Vault is the settings and secrets layer under almost every MindAttic app. Fifteen repos reference the package, among them MindAttic.Legion, MindAttic.Launcher, MindAttic.Psst, MindAttic.Deploy and MindAttic.Authentication.
Apps never ask the user for a key on their own screens any more: their cog opens Vault.Desktop at their tab, and the key they need is already in the shared pool.
Status
Every MindAttic app has moved its settings and keys into Vault, and all 24 app manifests open their tab through mindattic-vault://. The remaining work removes the retired Azure profile so the desktop app and the docs describe one local-only system.
Current milestone: Vault Desktop 1.0, local only: one library and one desktop app, with no Azure code left in the solution.
Next step
Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.