Model HQ
DocumentationServer Deployment
Model HQ Server is a scalable API server designed for multi-user deployments on Linux. It provides a larger model catalogue, an enhanced set of RAG capabilities (including vector databases and full semantic search), and support for concurrent client access.
Requirements
- A valid Model HQ Server license.
- A Linux environment — physical server, virtual machine, or container.
- Network connectivity configured so that client machines can reach the server endpoint.
- The Model HQ Server binary (provided with the license).
- Python 3.8 or later on client machines, with
requestsandpsutilinstalled.
Starting the server
The server binary should be started from the command line:
./modelhq_api_server_10125_062326The terminal should be kept open while the service is in use. The server will bind to the configured IP address and port (default: http://localhost:8088).
You should see output confirming the server is running, for example:
Uvicorn running on http://10.0.224.73:8088Connecting to the server
Client machines can connect to the server using the Model HQ Client SDK.
Same local network
If the client machine and the server are on the same LAN, the SDK can be pointed at the server's IP directly:
from modelhq.client import LLMWareClient
client = LLMWareClient(api_endpoint="http://10.0.224.73:8088", api_key="")No SSH or tunnelling is required.
Remote access via SSH tunnel
If the server is behind a jump host and only reachable over SSH, port forwarding should be used.
Step 1 — Open a tunnel:
ssh -L 8088:<SERVER_IP>:8088 <USER>@<HOST>The <SERVER_IP> must match the address the API server binds to (visible in server logs: Uvicorn running on http://<IP>:8088). For example:
ssh -L 8088:10.0.224.73:8088 user@hostStep 2 — On the local machine, point the SDK at 127.0.0.1:8088 (the tunnel forwards requests to the server):
client = LLMWareClient(api_endpoint="http://127.0.0.1:8088", api_key="")Verifying the connection
Run a quick health check to confirm the server is reachable:
from modelhq.client import LLMWareClient
client = LLMWareClient(api_endpoint="http://127.0.0.1:8088", api_key="")
print(client.ping())Then list available models to confirm the server is operational:
models = client.list_all_models()
for m in models.get("response", []):
print(m)Multi-user considerations
Model HQ Server supports concurrent client access. Each client creates its own LLMWareClient instance pointing at the same server endpoint. The server manages model loading, library storage, and agent execution centrally.
For access control, use the trusted_key parameter when launching the server and pass it in SDK calls:
client = LLMWareClient(api_endpoint="http://10.0.224.73:8088", api_key="")
response = client.inference(prompt="Hello", model_name="llama-3.2-1b-instruct-ov", trusted_key="your-key")Further reading
| Topic | Document |
|---|---|
| SDK installation and first call | Getting Started |
| Hello world example | Hello World |
| Chat with app sessions | Chat |
| Run agents | Agents |
| Build knowledge bases | RAG |
| SDK method reference | SDK Reference |
| Full endpoint specifications | API Reference |
Topic
SDK installation and first call
Document
Topic
Hello world example
Document
Topic
Chat with app sessions
Document
Topic
Run agents
Document
Topic
Build knowledge bases
Document
Topic
SDK method reference
Document
Topic
Full endpoint specifications
Document
For further assistance or to share feedback, please contact us at support@aibloks.com
