From 0807ce4d5c0e4404c2d2201fcc8e7d8c78b3ebb2 Mon Sep 17 00:00:00 2001 From: Daulet Amirkhanov Date: Thu, 11 Sep 2025 16:48:32 +0100 Subject: [PATCH] default -ui port to 3000 (instead of 3001) (#1371) ## Description ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --- cognee/api/v1/ui/ui.py | 6 +++--- cognee/cli/_cognee.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cognee/api/v1/ui/ui.py b/cognee/api/v1/ui/ui.py index aae0ad5a9..463c22acb 100644 --- a/cognee/api/v1/ui/ui.py +++ b/cognee/api/v1/ui/ui.py @@ -327,7 +327,7 @@ def prompt_user_for_download() -> bool: def start_ui( host: str = "localhost", - port: int = 3001, + port: int = 3000, open_browser: bool = True, auto_download: bool = False, ) -> Optional[subprocess.Popen]: @@ -343,7 +343,7 @@ def start_ui( Args: host: Host to bind the server to (default: localhost) - port: Port to run the server on (default: 3001) + port: Port to run the server on (default: 3000) open_browser: Whether to open the browser automatically (default: True) auto_download: If True, download frontend without prompting (default: False) @@ -353,7 +353,7 @@ def start_ui( Example: >>> import cognee >>> server = cognee.start_ui() - >>> # UI will be available at http://localhost:3001 + >>> # UI will be available at http://localhost:3000 >>> # To stop the server later: >>> server.terminate() """ diff --git a/cognee/cli/_cognee.py b/cognee/cli/_cognee.py index 1c9406143..540c4dc12 100644 --- a/cognee/cli/_cognee.py +++ b/cognee/cli/_cognee.py @@ -205,11 +205,11 @@ def main() -> int: from cognee import start_ui fmt.echo("Starting cognee UI...") - server_process = start_ui(host="localhost", port=3001, open_browser=True) + server_process = start_ui(host="localhost", port=3000, open_browser=True) if server_process: fmt.success("UI server started successfully!") - fmt.echo("The interface is available at: http://localhost:3001") + fmt.echo("The interface is available at: http://localhost:3000") fmt.note("Press Ctrl+C to stop the server...") try: