Default the API to port 1134

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QaE1hpvyZTJixEbUUMj9Ca
This commit is contained in:
neil 2026-11-02 07:25:05 -08:00
parent c08a548fe0
commit 780bdf1fac
2 changed files with 3 additions and 3 deletions

View file

@ -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 <port> --web-port <port>`. On a Mac, MLX also uses the API port + 1.

View file

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