From b3f35953ed2d4f8e9937f07eeb8d38ecb241b2f6 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Mon, 2 Feb 2026 18:04:53 -0600 Subject: [PATCH] feat(classic): add interactive config command to CLI Add a new `config` command that opens a tabbed TUI for browsing and editing AutoGPT settings. The UI allows users to configure settings interactively rather than manually editing .env files. Co-Authored-By: Claude Opus 4.5 --- classic/original_autogpt/autogpt/app/cli.py | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/classic/original_autogpt/autogpt/app/cli.py b/classic/original_autogpt/autogpt/app/cli.py index 63940d6d5e..934a7a279a 100644 --- a/classic/original_autogpt/autogpt/app/cli.py +++ b/classic/original_autogpt/autogpt/app/cli.py @@ -238,5 +238,28 @@ def serve( ) +@cli.command() +@click.option( + "-e", + "--env-file", + type=click.Path(dir_okay=False, resolve_path=True, path_type=Path), + default=None, + help="Path to .env file (default: ~/.autogpt/.env)", +) +def config(env_file: Optional[Path]) -> None: + """Interactive settings configuration browser. + + Opens a tabbed UI to browse and edit AutoGPT settings. Settings are + saved to a .env file that AutoGPT reads on startup. + + Use Tab or 1-9 to switch categories, arrow keys to navigate settings, + Enter to edit a setting, S to save, and Q to quit. + """ + from autogpt.app.settings import SettingsUI + + ui = SettingsUI() + ui.run(env_file) + + if __name__ == "__main__": cli()