Summary
The API server (desktop/api_server.py) hardcodes its bind address to \127.0.0.1:8080\ (line ~1608) and is launched from main.py via python api_server.py (lines ~88-92). The port cannot be changed without editing code.
Goal
Add a --port CLI flag to main.py so users can run python main.py --ui --port 9090 (or similar) and the API server binds to the chosen port. The flag should default to 8080.
Tasks
- Add --port argument to the argparse parser in main.py
- Pass the port through to the �pi_cmd subprocess launch
- Update docs/api.md / README quick-start if port is mentioned
Acceptance criteria
Labels
good first issue, help wanted
Summary
The API server (desktop/api_server.py) hardcodes its bind address to \127.0.0.1:8080\ (line ~1608) and is launched from main.py via python api_server.py (lines ~88-92). The port cannot be changed without editing code.
Goal
Add a --port CLI flag to main.py so users can run python main.py --ui --port 9090 (or similar) and the API server binds to the chosen port. The flag should default to 8080.
Tasks
Acceptance criteria
Labels
good first issue, help wanted