From 780bdf1fac046c41ac8aeb5433143078e14d373d Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 2 Nov 2026 07:25:05 -0800 Subject: [PATCH] Default the API to port 1134 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QaE1hpvyZTJixEbUUMj9Ca --- README.md | 4 ++-- llmhost/cli.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89092e1..d19652c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ installs the inference backend, and runs it as a background service with a web d - **Linux + NVIDIA** → [vLLM](https://github.com/vllm-project/vllm) - **macOS on Apple Silicon** → [MLX](https://github.com/ml-explore/mlx-lm), behind a small proxy that adds API keys -Either way you get the same OpenAI-compatible API (with an API key) on port 8000 and a dashboard on port 11340. +Either way you get the same OpenAI-compatible API (with an API key) on port 1134 and a dashboard on port 11340. Everything installs into your home directory; no sudo, Docker or system CUDA toolkit needed. ## Install @@ -25,7 +25,7 @@ Pass setup options after `--`: /bin/bash -c "$(curl -fsSL https://git.neilbantoc.dev/pub/llm-host/raw/branch/main/install.sh)" -- --yes --default ornith-1.5-35b ``` -Ports: the API defaults to 8000 and the dashboard to 11340. On a first install a busy default moves to the +Ports: the API defaults to 1134 and the dashboard to 11340. On a first install a busy default moves to the next free port; after that the ports are saved and never move on their own (clients are configured with them). Change them with `llmhost setup --api-port --web-port `. On a Mac, MLX also uses the API port + 1. diff --git a/llmhost/cli.py b/llmhost/cli.py index b596086..e9a6f0c 100644 --- a/llmhost/cli.py +++ b/llmhost/cli.py @@ -14,7 +14,7 @@ from . import hfcache, hw, opencode, paths, plan, service from .backends import vllm as vllm_backend # stdlib-only module; safe to import anywhere VERSION = "0.1.0" -DEFAULT_API_PORT = 8000 +DEFAULT_API_PORT = 1134 DEFAULT_WEB_PORT = 11340