App Settings

Configure global app settings like your default model, authentication method, and workspace list. Settings are stored in ~/.torlyai/config.json.

Configuration File

The main configuration file is located at:

~/.torlyai/config.json

Full Schema

{
  // Authentication method
  "authType": "api-key" | "oauth",

  // Default model for new sessions
  "defaultModel": "claude-sonnet-4-20250514",

  // Default permission mode for new sessions
  "defaultPermissionMode": "ask" | "safe" | "allow-all",

  // Token display preference
  "tokenDisplay": "hidden" | "compact" | "full",

  // Extended cache TTL (for API responses)
  "extendedCacheTTL": false,

  // List of workspaces
  "workspaces": [
    {
      "id": "workspace-uuid",
      "name": "My Workspace",
      "rootPath": "/path/to/workspace"
    }
  ],

  // Active workspace ID
  "activeWorkspaceId": "workspace-uuid"
}

Settings Reference

authType

How to authenticate with the Claude API.

  • api-key - Use your own API key
  • oauth - Use TorlyAI authentication

defaultModel

The default Claude model for new sessions. Options include:

  • claude-sonnet-4-20250514 - Claude Sonnet 4
  • claude-opus-4-20250514 - Claude Opus 4
  • claude-3-5-sonnet-20241022 - Claude 3.5 Sonnet

defaultPermissionMode

Default permission level for new sessions.

  • safe - Explore (read-only)
  • ask - Ask to Edit (default)
  • allow-all - Auto

tokenDisplay

How to display token usage in the UI.

  • hidden - Don't show tokens
  • compact - Show total only
  • full - Show detailed breakdown

Editing Settings

You can edit settings through:

  • Settings UI: Click the gear icon in the app
  • Direct edit: Modify ~/.torlyai/config.json

Changes to the config file are detected automatically - no restart needed.