default -ui port to 3000 (instead of 3001) (#1371) (#1376)

<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## 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.

<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.
This commit is contained in:
Boris 2025-09-11 18:05:59 +02:00 committed by GitHub
commit 302d9ee3a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -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()
"""

View file

@ -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: