> ## 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.

# Agents

> A saved config of environment, model, skills, and instructions.

## Pre-built agents

Run these as-is, with no setup. List them with [`GET /api/v2/agents`](https://hub.hcompany.ai/agents-api/agents/list). Pre-built managers like `h/deep-search-pro` delegate to [subagents](https://hub.hcompany.ai/agents-api/multi-agent.md).

## Create your own

```python Python theme={"system"}
from hai_agents import Client

client = Client()
client.agents.create_agent(
    name="web-price-finder",
    description="Finds and reports prices on the public web.",
    instructions="Return one line: amount, currency, vendor, link. If the price needs a login, say so.",
    model="holo4-27b",
    environments=[{"id": "price-browser", "kind": "web", "mode": {"type": "visual", "width": 1280, "height": 800}}],
)
```

```typescript TypeScript theme={"system"}
import { HaiAgentsClient } from "hai-agents";

const client = new HaiAgentsClient();
await client.agents.createAgent({
  body: {
    name: "web-price-finder",
    description: "Finds and reports prices on the public web.",
    instructions: "Return one line: amount, currency, vendor, link. If the price needs a login, say so.",
    model: "holo4-27b",
    environments: [{ id: "price-browser", kind: "web", mode: { type: "visual", width: 1280, height: 800 } }],
  },
});
```

```bash cURL theme={"system"}
curl -X POST https://agp.eu.hcompany.ai/api/v2/agents \
  -H "Authorization: Bearer $HAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "web-price-finder",
    "description": "Finds and reports prices on the public web.",
    "instructions": "Return one line: amount, currency, vendor, link. If the price needs a login, say so.",
    "model": "holo4-27b",
    "environments": [{"id": "price-browser", "kind": "web", "mode": {"type": "visual", "width": 1280, "height": 800}}]
  }'
```

Then run it by name in a [session](https://hub.hcompany.ai/agents-api/sessions/overview.md): `client.run_session(agent="web-price-finder", messages="Find the price of a Kindle Paperwhite.")`.

## Configure an agent

| Field | Required | Description |
| - | - | - |
| `name` | Yes | The value you pass as `agent` when creating a session, within the [naming rules](https://hub.hcompany.ai/agents-api/agents/create.md#param-name). |
| `description` | Yes | One line on what the agent does. A manager reads it to decide whether to delegate a task. |
| `environments` | Yes | The surfaces it acts on, like a [browser](https://hub.hcompany.ai/agents-api/browser/configuration.md) or a [desktop](https://hub.hcompany.ai/agents-api/your-desktop.md), which it drives by sight or in [shell mode](https://hub.hcompany.ai/agents-api/your-desktop.md#shell-mode). |
| `model` | No | The Holo model. Default `holo4-27b`. Any ID from [Models](https://hub.hcompany.ai/models-api/overview.md#models), for example `holo4-35b-a3b` for lower latency. |
| `reasoning_effort` | No | How long the model thinks before each step. [Values](https://hub.hcompany.ai/agents-api/agents/create.md#param-reasoning-effort) depend on the model. |
| `instructions` | No | Appended to the system prompt to steer behavior. |
| `skills` | No | [Instruction fragments](https://hub.hcompany.ai/agents-api/skills/overview.md) the agent loads on demand. |
| `tools` | No | [Tools](https://hub.hcompany.ai/agents-api/custom-tools.md) the agent calls in your own code. |
| `subagents` | No | Agents this one can delegate to, as [subagents](https://hub.hcompany.ai/agents-api/multi-agent.md). |
| `answer_format` | No | A [JSON Schema](https://json-schema.org/) the final answer must match ([structured output](https://hub.hcompany.ai/agents-api/structured-output.md)). Unset returns free-form text. Override per session with [`overrides`](https://hub.hcompany.ai/agents-api/sessions/overview#overrides). |

Each `environments`, `skills`, or `subagents` [entry](https://hub.hcompany.ai/agents-api/agents/create.md) is a catalog ID to reuse, or an inline object for one-offs.

## Pin a revision

Every write to a catalog agent creates a numbered revision: create makes revision `1`, and each [update](https://hub.hcompany.ai/agents-api/agents/update.md) or [patch](https://hub.hcompany.ai/agents-api/agents/patch.md) adds the next one.

Pass `name:N` wherever you reference the agent: a session's `agent`, a schedule's `session_request`, or a manager's `subagents`. `"agent": "my-research-bot:3"` keeps running revision 3 after later edits. A bare name runs the latest. [Skills](https://hub.hcompany.ai/agents-api/skills/overview.md#revisions) and [environments](https://hub.hcompany.ai/agents-api/environments/overview.md#revisions) pin the same way, with `name:N` and `id:N`.

[Retrieve an agent](https://hub.hcompany.ai/agents-api/agents/retrieve.md) reads a revision, [List agent revisions](https://hub.hcompany.ai/agents-api/agents/list-revisions.md) lists them, and [Restore an agent revision](https://hub.hcompany.ai/agents-api/agents/restore-revision.md) rolls back. [Update an agent](https://hub.hcompany.ai/agents-api/agents/update.md) guards concurrent edits with `ETag` and `If-Match`.


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