izwi serve
izwi serve
Start the Izwi inference server.
Synopsis
izwi serve [OPTIONS]Description
Launches the HTTP API server that powers all Izwi functionality. The server provides:
- REST API endpoints (OpenAI-compatible)
- Web UI (unless disabled)
- Model management
- Real-time inference
Options
| Option | Description | Default |
|---|---|---|
--mode <MODE> | Startup mode: server, desktop, web | server |
-H, --host <HOST> | Host to bind to | 0.0.0.0 |
-p, --port <PORT> | Port to listen on | 8080 |
-m, --models-dir <PATH> | Models directory | Platform default |
--max-batch-size <N> | Maximum batch size | 8 |
--metal | Enable Metal GPU (macOS) | — |
-t, --threads <N> | Number of CPU threads | Auto |
--max-concurrent <N> | Max concurrent requests | 100 |
--timeout <SECONDS> | Request timeout | 300 |
--log-level <LEVEL> | Log level | warn |
--cors | Enable CORS for all origins | — |
--no-ui | Disable the web UI | — |
Modes
Server Mode (Default)
Starts only the HTTP server:
izwi serve izwi serve --mode serverAccess at http://localhost:8080
Desktop Mode
Starts the server and opens the native desktop application:
izwi serve --mode desktopWeb Mode
Starts the server and opens the web UI in your default browser:
izwi serve --mode webExamples
Basic server
izwi serveCustom port
izwi serve --port 9000With Metal acceleration (macOS)
izwi serve --metalCustom models directory
izwi serve --models-dir /path/to/modelsProduction settings
izwi serve \\ --host 0.0.0.0 \\ --port 8080 \\ --max-concurrent 200 \\ --timeout 600 \\ --log-level infoDevelopment mode
izwi serve --cors --log-level debugEnvironment Variables
| Variable | Equivalent Option |
|---|---|
IZWI_HOST | --host |
IZWI_PORT | --port |
IZWI_MODELS_DIR | --models-dir |
IZWI_USE_METAL | --metal |
IZWI_MAX_BATCH_SIZE | --max-batch-size |
IZWI_NUM_THREADS | --threads |
IZWI_MAX_CONCURRENT | --max-concurrent |
IZWI_TIMEOUT | --timeout |
RUST_LOG | --log-level |
IZWI_SERVE_MODE | --mode |
Graceful Shutdown
Press Ctrl+C to gracefully shut down the server. Active requests will complete before shutdown.
See Also
- izwi status — Check server health
- izwi config — Manage configuration