> ## Documentation Index
> Fetch the complete documentation index at: https://hub.hcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> H Platform has three products: the Agents API (managed computer-use agents, base URL https://agp.eu.hcompany.ai/api/v2 or https://agp.hcompany.ai/api/v2 for the US), the Models API (OpenAI-compatible Holo vision-language models at https://api.hcompany.ai/v1), and HoloTab (a free no-code Chrome extension that runs Holo in the user's browser, with recordable routines and schedules). The `holo` CLI (`pip install "hai-agents[cli]"`) runs Agents API agents from a terminal, drives the user's own desktop with `-a h/holo-desktop`, and serves coding agents through `holo mcp`.
> Authenticate with a bearer API key from the HAI_API_KEY environment variable. SDKs: `pip install hai-agents` (Python, `from hai_agents import Client`) and `npm install hai-agents` (TypeScript, `import { HaiAgentsClient } from "hai-agents"`). CLI: `holo`.
> Agents do work in a browser or on a desktop; describe the task as an imperative instruction. To run a task quickly, prefer the pre-built agent `h/web-surfer-flash`. Read results from the session's `latest_answer` after it reaches a terminal status.
> Sessions are the unit of work; wait for a terminal status (completed, failed, timed_out, interrupted) before reading the answer. Use webhooks or the `changes` long-poll endpoint to follow progress.

# Local inference

> Serve open-weight Holo4 or Holo3.1 with llama.cpp or vLLM and point base_url at it. Prompts and screenshots never leave your network.

## Pick a setup

| Hardware | Model and precision | Server | Weights |
| :- | :- | :- | -: |
| Mac, M3 or newer, 36 GB or more | Holo3.1 35B-A3B, Q4\_K\_M GGUF | llama.cpp | 21.3 GB |
| DGX Spark, or other Blackwell (GB10, GB300) | Holo3.1 35B-A3B, NVFP4 | vLLM | 23.7 GB |
| NVIDIA GPU server | Holo4 35B-A3B or Holo4 27B (CC BY-NC 4.0), FP8 | vLLM 0.28+ | 37.6 GB / 35.9 GB |
| Single 24 GB GPU | Holo3.1 9B, BF16 | vLLM | 18.8 GB |
| Single 16 GB GPU | Holo3.1 4B, BF16 | vLLM | 10.4 GB |
| On-device | Holo3.1 0.8B, BF16 | Your on-device runtime | 2.2 GB |

Weights are the minimum GPU or unified memory: the KV cache and image encoder come on top. Holo3.1 35B-A3B is what the API serves as `holo3-1-35b-a3b`. Each Hugging Face model card states its license.

The Mac and DGX Spark recipes run Holo3.1, the setups benchmarked below. For Holo4, swap in its GGUF or NVFP4 weights from [Holo4 checkpoints](#holo4-checkpoints). Holo4 on vLLM needs 0.28 or newer, so also bump the Spark image tag.

## Start a server

### macOS (llama.cpp)

Use llama.cpp with Metal and the `Q4_K_M` GGUF. Leave room for the KV cache on top of the 21 GB of weights. If memory is tight, lower `--cache-ram` and `--ctx-size`.

```bash theme={"system"}
brew install llama.cpp
llama-server -hf Hcompany/Holo-3.1-35B-A3B-GGUF
```

The server listens on port `8080`: base URL `http://localhost:8080/v1`. Any string works as the model ID. For Holo4, serve `Hcompany/Holo4-35B-A3B-GGUF` instead.

For higher throughput, use these tuned flags:

```bash theme={"system"}
llama-server \
  -hf Hcompany/Holo-3.1-35B-A3B-GGUF \
  --n-gpu-layers 999 \
  --ctx-size 65536 \
  --batch-size 16384 \
  --ubatch-size 2048 \
  --flash-attn 1 \
  --cache-type-k q8_0 \
  --cache-type-v q8_0 \
  --image-min-tokens 1024 \
  --ctx-checkpoints 8 \
  --cache-ram 32768 \
  --kv-unified \
  --threads 16
```

### DGX Spark (vLLM)

Use the aarch64 vLLM image with NVFP4 weights, which the GB10's Blackwell cores run natively.

```bash theme={"system"}
docker pull vllm/vllm-openai:v0.23.0-aarch64-cu129-ubuntu2404
docker run -d --gpus all \
  --shm-size=16g \
  --network host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:v0.23.0-aarch64-cu129-ubuntu2404 \
  vllm serve Hcompany/Holo-3.1-35B-A3B-NVFP4 \
  --served-model-name holo3-1-35b-a3b \
  --host 0.0.0.0
```

The server listens on port `8000`: base URL `http://localhost:8000/v1`. The model ID must match `--served-model-name`.

For higher throughput, use these tuned flags:

```bash theme={"system"}
docker run -d --gpus all \
  --shm-size=16g \
  --network host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  vllm/vllm-openai:v0.23.0-aarch64-cu129-ubuntu2404 \
  vllm serve Hcompany/Holo-3.1-35B-A3B-NVFP4 \
  --served-model-name holo3-1-35b-a3b \
  --host 0.0.0.0 \
  --gpu-memory-utilization 0.8 \
  --max-model-len 65537 \
  --max-num-batched-tokens 32768 \
  --chat-template-content-format openai \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --reasoning-parser qwen3 \
  --limit-mm-per-prompt '{"image": 5, "video": 0}' \
  --mm-encoder-tp-mode data \
  --mm-processor-cache-type shm \
  --mm-processor-cache-gb 15
```

### NVIDIA GPU (vLLM, Holo4)

These are the recommended flags for vLLM 0.28 or newer. Swap the repo and `--served-model-name` for another [size or precision](#holo4-checkpoints).

```bash theme={"system"}
vllm serve Hcompany/Holo4-35B-A3B-FP8 \
  --served-model-name holo4-35b-a3b \
  --max-model-len 262144 \
  --enable-prefix-caching \
  --chat-template-content-format openai \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --reasoning-parser qwen3 \
  --limit-mm-per-prompt '{"image": 5, "video": 0}'
```

The server listens on port `8000`: base URL `http://localhost:8000/v1`. The model ID must match `--served-model-name`.

## Point your client at it

Use the same client as the [Quickstart](https://hub.hcompany.ai/models-api/overview.md#quickstart) with your server's base URL: port `8000` for vLLM, `8080` for llama.cpp. The server ignores the API key, but the OpenAI SDKs refuse an empty one.

The Models API examples run against your server once `model` matches its model name (`--served-model-name` on vLLM). Holo-specific request fields work only if your server supports them.

```bash cURL theme={"system"}
curl http://localhost:8000/v1/models
```

```python Python theme={"system"}
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="local")
```

```typescript TypeScript theme={"system"}
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "http://localhost:8000/v1", apiKey: "local" });
```

To run Holo agents on this server, point the [Holo CLI](https://hub.hcompany.ai/holo-cli/introduction.md#run-the-model-yourself) or the [Local runtime](https://hub.hcompany.ai/agents-api/local-runtime.md#use-your-own-model-server) at it.

## Checkpoints

### Holo4 checkpoints

Holo4 35B-A3B is under Apache 2.0. Holo4 27B is for research use (CC BY-NC 4.0). Weight sizes are in parentheses.

| Precision | Holo4 27B | Holo4 35B-A3B | Serve with |
| :- | :- | :- | :- |
| BF16 | [Holo4-27B](https://huggingface.co/Hcompany/Holo4-27B) (54.7 GB) | [Holo4-35B-A3B](https://huggingface.co/Hcompany/Holo4-35B-A3B) (70.2 GB) | vLLM |
| FP8 | [Holo4-27B-FP8](https://huggingface.co/Hcompany/Holo4-27B-FP8) (35.9 GB) | [Holo4-35B-A3B-FP8](https://huggingface.co/Hcompany/Holo4-35B-A3B-FP8) (37.6 GB) | vLLM |
| NVFP4 | [Holo4-27B-NVFP4](https://huggingface.co/Hcompany/Holo4-27B-NVFP4) (22.9 GB) | [Holo4-35B-A3B-NVFP4](https://huggingface.co/Hcompany/Holo4-35B-A3B-NVFP4) (22.5 GB) | vLLM on Blackwell |
| Q4 GGUF | [Holo4-27B-GGUF](https://huggingface.co/Hcompany/Holo4-27B-GGUF) | [Holo4-35B-A3B-GGUF](https://huggingface.co/Hcompany/Holo4-35B-A3B-GGUF) (21.3 GB) | llama.cpp |

### Holo3.1 checkpoints

The 9B, 4B, and 0.8B sizes are not on the API. They are open weights under Apache 2.0.

| Checkpoint | Weights | Throughput on DGX Spark | Serve with |
| :- | -: | -: | :- |
| [35B-A3B BF16](https://huggingface.co/Hcompany/Holo-3.1-35B-A3B) | 70.2 GB | 326 tok/s | vLLM |
| [35B-A3B FP8](https://huggingface.co/Hcompany/Holo-3.1-35B-A3B-FP8) | 37.6 GB | 404 tok/s | vLLM |
| [35B-A3B NVFP4](https://huggingface.co/Hcompany/Holo-3.1-35B-A3B-NVFP4) (W4A16) | 23.7 GB | 568 tok/s | vLLM on Blackwell (DGX Spark, GB10, GB300) |
| [35B-A3B Q4\_K\_M GGUF](https://huggingface.co/Hcompany/Holo-3.1-35B-A3B-GGUF) | 21.3 GB | | llama.cpp on Apple silicon or RTX GPUs |
| [9B](https://huggingface.co/Hcompany/Holo-3.1-9B) (BF16) | 18.8 GB | | vLLM |
| [4B](https://huggingface.co/Hcompany/Holo-3.1-4B) (BF16) | 10.4 GB | | vLLM |
| [0.8B](https://huggingface.co/Hcompany/Holo-3.1-0.8B) (BF16) | 2.2 GB | | |

Throughput: vLLM benchmark tool, agentic workload (12k input tokens, 1k output tokens, three 1080p images per request, concurrency 1). NVFP4 uses NVIDIA Model Optimizer in a W4A16 configuration.

#### Agent speed in the Holo CLI

Steps per minute matter more than tokens per second. Model requests per minute for Holo3.1 35B-A3B inside [the Holo CLI](https://hub.hcompany.ai/holo-cli/introduction.md#drive-your-desktop):

| Hardware | Precision, server | Requests per minute |
| :- | :- | -: |
| MacBook M4 Pro | Q4, llama.cpp | 3.6 |
| DGX Spark | FP8, vLLM | 8.9 |
| DGX Spark | Q4, llama.cpp | 9.5 |
| DGX Spark | NVFP4, vLLM | 13.5 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.