# Configuration By default, `aws-sso` will by default store all it's configuration and state files in `~/.config/aws-sso` for versions `>= 1.17.0` per the [XDG spec]( https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). Previous versions of `aws-sso` used `~/.aws-sso`. Users at their own descresion may move the files to the new location. To keep files co-located in the same place, if the directory `~/.aws-sso` exists, then it will be used. **Note:** The `aws-sso` documentation will generally use the older file path (`~/.aws-sso/...`) when describing file locations. The main configuration file is named `~/.aws-sso/config.yaml`, but this can be overridden by setting `$AWS_SSO_CONFIG` in your shell or via the `--config` flag. The first time you run `aws-sso` and it detects there is no configuration file, it will prompt you for a number of questions to give you a basic configuration. Afterwords, you can edit the file and adjust the settings as desired or run [aws-sso setup wizard](commands.md#setup-wizard). ```yaml SSOConfig: : SSORegion: StartUrl: DefaultRegion: AuthUrlAction: [clip|exec|print|printurl|open|granted-containers|open-url-in-container|ansi-osc52] Accounts: # optional block for specifying tags & overrides : Name: DefaultRegion: Tags: # tags for all roles in the account : : Roles: : Profile: DefaultRegion: Tags: # tags specific for this role (will override account level tags) : : Via: # optional, for role chaining SourceIdentity: # See description below for these options DefaultRegion: AuthWorkflow: [device_code|pkce] DefaultSSO: CacheRefresh: AutoConfigCheck: [false|true] AutoLogin: [false|true] Threads: MaxRetry: MaxBackoff: Browser: UrlAction: [clip|exec|print|printurl|open|granted-containers|open-url-in-container|ansi-osc52] ConfigProfilesBinaryPath: UrlExecCommand: - - - - "%s" ConsoleDuration: LogLevel: [error|warn|info|debug|trace] LogLines: [true|false] HistoryLimit: HistoryMinutes: SecureStore: [file|keychain|kwallet|pass|secret-service|wincred|json|1password] JsonStore: SecretServiceCollection: OnePassword: Vault: AuthType: [desktop|service-account] Account: ProfileFormat: "