⚙️ ┌─┬─┬─┐ ─┤ ├─┤ ├─ └─┴─┴─┘ ╲ │ ╱ ╲│╱ ◉

Settings

Configure your account, appearance, and API access.

╔═══════════╗ ║ ────●──── ║ ║ ───●───── ║ ║ ──────●── ║ ╚═══════════╝
Settings loaded Account · API · Appearance Configured

Settings

Manage your account, configure API keys, switch appearance modes, and control how Archon behaves.

Account management

The Account section shows your current profile information and session status.

Sign out

Tap Sign Out to end your session. This clears your session token from the Keychain but does not delete your projects or account data. You can sign back in at any time.

Account deletion

Account deletion is available from the bottom of the Account section. This is a permanent, irreversible action:

Deletion is processed immediately. There is no grace period or recovery option.

Appearance

Archon supports four appearance modes to match your preferences and lighting conditions:

🌙
Dark
Deep background with light text. The default mode. Easy on the eyes in low-light environments.
☀️
Light
Clean white background with dark text. Best for bright environments and outdoor use.
🔄
System
Follows your iOS system appearance setting. Automatically switches between dark and light based on your schedule.
💎
Glass
Translucent panels with blur effects. Uses vibrancy to blend with your wallpaper. iOS 17+ only.

Your appearance choice is saved locally and applied immediately across all screens.

API configuration

The API Configuration section is where you connect your own AI provider accounts. Archon uses your keys directly — there is no middle layer, and your keys are stored only on your device.

Supported providers

// Each provider requires an API key from their dashboard:
//
// OpenAI     → platform.openai.com/api-keys
// Anthropic  → console.anthropic.com/settings/keys
// Google     → aistudio.google.com/app/apikey
// OpenRouter → openrouter.ai/keys
//
// Keys are stored in the iOS Keychain.
// They are never transmitted to any server
// other than the provider's own API endpoint.

Setting a key

Tap a provider row, paste your API key, and tap Save. Archon validates the key immediately by sending a lightweight test request. If valid, the corresponding models become available in the AI Builder's model selector.

Removing a key

Swipe left on a provider row and tap Delete to remove a key. The corresponding models are disabled immediately. Previously generated projects are not affected — you can still browse code and preview them.

About and licenses

The About section shows:

Settings data model

// User preferences (simplified)
struct UserPreferences {
    var appearanceMode: AppearanceMode  // .dark, .light, .system, .glass
    var selectedModel: String           // e.g. "claude-sonnet-4-20250514"
    var defaultProvider: Provider       // .openai, .anthropic, .google, .openRouter
    var codeFontSize: CGFloat           // 12–24pt
    var previewAutoRefresh: Bool        // auto-reload preview after builds
}

// API keys are stored separately in the Keychain,
// not in UserDefaults or any plist file.