Configuration

Imports

_cfg_path()
Path('/Users/jhoward/.config/shell_sage/shell_sage.conf')

ShellSageConfig


def ShellSageConfig(
    model:str='claude-sonnet-4-5-20250929', search:str='', think:str='', trust:str='', mode:str='default',
    api_base:str='', api_key:str='', history_lines:int=-1, code_theme:str='monokai', code_lexer:str='python',
    log:bool=False, safecmd:bool=False
)->None:
cfg = ShellSageConfig()
cfg
ShellSageConfig(model='claude-sonnet-4-5-20250929', search='', think='', trust='', mode='default', api_base='', api_key='', history_lines=-1, code_theme='monokai', code_lexer='python', log=False, safecmd=False)

get_cfg


def get_cfg(
    
):
cfg = get_cfg()
cfg
{'provider': 'anthropic', 'model': 'claude-opus-4-5', 'think': 'l', 'search': 'l', 'trust': 'view,rg', 'history_lines': '1000', 'code_theme': 'xcode', 'code_lexer': 'python', 'log': 'True', 'safecmd': 'True'}