Settings

Configure application appearance, general behavior, data management, and security. Customize startup options, close behavior, notifications, and network proxy.

Overview

The Settings page contains 4 tabs:

TabDescription
AppearanceTheme, language, sidebar settings
GeneralStartup, close behavior, notifications, network proxy
DataLog settings, import/export, cache, reset
SecurityCredential encryption, log desensitization

Appearance

Theme

OptionDescription
LightLight color theme
DarkDark color theme

The theme setting affects the entire application interface including the sidebar, dialogs, and content areas.

Language

LanguageCode
简体中文zh-CN
Englishen-US

Language changes take effect immediately without restarting the application.

SettingDescriptionDefault
Collapsed on StartStart with sidebar collapsedOff

General

Startup Options

SettingDescriptionDefault
Auto Start AppStart app when system bootsOff
Auto Start ProxyStart proxy when app launchesOff

Auto Start Proxy requires Auto Start App to be enabled for consistent behavior.

Close Behavior

SettingDescriptionDefault
Minimize to TrayMinimize to system tray instead of closingOn
Close BehaviorBehavior when closing windowMinimize

Close Behavior Options:

OptionDescription
MinimizeMinimize to system tray
CloseClose the application directly
AskAsk user each time

Notifications

SettingDescriptionDefault
Enable NotificationsShow system notificationsOn

Network Proxy

OAuth Proxy Mode:

Configure proxy settings for OAuth authentication.

ModeDescription
systemUse system proxy (default)
noneDisable proxy

If OAuth login fails, try switching the proxy mode.

Data

Log Settings

SettingDescriptionDefaultRange
Log LevelLogging verbosityinfodebug, info, warn, error
Log Retention DaysDays to keep logs301-365
Max LogsMaximum log entries10000100-100000

Log Levels:

LevelDescription
debugAll logs, for development
infoStandard information and above
warnWarnings and errors only
errorErrors only

Data Management

ActionDescription
Export SettingsExport current settings to JSON file
Import SettingsImport settings from JSON file

Export Format:

{
  "version": "1.0.0",
  "exportedAt": "2026-03-10T...",
  "settings": "..."
}

Importing settings will replace current settings and refresh the page.

Danger Zone

ActionDescriptionConfirmation
Clear CacheClear session cacheNone
Reset AppReset all data to defaultsDialog required

Reset App will delete all data including accounts, configurations, and logs. This action cannot be undone.

Security

Credential Encryption

SettingDescriptionDefault
Enable EncryptionEncrypt stored credentialsOn

Credentials (tokens, passwords) are encrypted using secure algorithms before storage.

Log Desensitization

SettingDescriptionDefault
Enable DesensitizationMask sensitive data in logsOn

Example:

Original: sk-1234567890abcdef1234567890abcdef
Masked:   sk-1234****cdef

Log desensitization helps protect sensitive information like API keys and tokens from appearing in logs.

Configuration File

Settings are stored in:

PlatformLocation
Windows%APPDATA%\chat2api\config.json
macOS~/Library/Application Support/chat2api/config.json
Linux~/.config/chat2api/config.json

Example Configuration:

{
  "theme": "system",
  "language": "en-US",
  "autoStart": false,
  "autoStartProxy": false,
  "minimizeToTray": true,
  "closeBehavior": "minimize",
  "enableNotifications": true,
  "oauthProxyMode": "system",
  "logLevel": "info",
  "logRetentionDays": 30,
  "maxLogs": 10000,
  "credentialEncryption": true,
  "logDesensitization": true
}

On this page