Skip to content

[FEATURE] [0.0.4-alpha] Add Automatic Port Selection Option #3011

@rockmania99

Description

@rockmania99

Project

cortex-cli

Description

When a port is in use, users must manually find an available port. An auto-select option would find an available port automatically.

Use Case

$ cortex serve --port auto
error: invalid value 'auto' for '--port'

Proposed Solution

  1. Support --port auto or --port 0
  2. Find available port automatically
  3. Print selected port clearly
  4. Useful for CI/testing

Alternatives Considered

No response

Impact

All users

Additional Context

  1. Avoid port conflicts
  2. Parallel test execution
  3. Dynamic environments

Issue #138: [FEATURE] [0.0.4-alpha] Add Unix Socket Support for Local Communication

Project

cortex-cli

Description

For local integrations, Unix sockets provide better security than TCP. Adding socket support would benefit IDE integrations.

Use Case

$ cortex serve --socket /tmp/cortex.sock
error: unexpected argument '--socket'

Proposed Solution

  1. Add --socket <path> option
  2. Use Unix socket (or named pipe on Windows)
  3. Better local security
  4. Useful for IDE integration

Alternatives Considered

No response

Impact

Security-conscious users

Additional Context

  1. No network exposure
  2. File permission security
  3. Lower latency

Metadata

Metadata

Assignees

No one assigned

    Labels

    cortexIssues related to CortexLM/cortex repositoryvalidValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions