---
title: "Get agent harnesses"
method: GET
path: "/api/agent-harnesses"
tags: ["agents"]
---

# Get agent harnesses

`GET /api/agent-harnesses`

Get the registry of AI agents / harnesses known to the Hub, along with the standard environment variables used to detect them. Clients use this registry to identify which agent they are running in when reporting Hub activity.

## Response `200`

The registry of AI agents / harnesses known to the Hub

- object
  - `standardEnvVars` string[], required — Standard environment variables that any agent can set to identify itself. Their value is matched against the harness ids.
  - `harnesses` object, required — Registered harnesses, keyed by id and ordered by detection priority: the first match wins

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/dae0cc3790f0/schema)
