﻿---
title: Agent provider
description: Provides information about the Elastic Agent. The available keys are: 
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/fleet/agent-provider
products:
  - Elastic Agent
  - Fleet
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Agent provider
Provides information about the Elastic Agent. The available keys are:

| Key                        | Type      | Description                              |
|----------------------------|-----------|------------------------------------------|
| `agent.id`                 | `string`  | Current agent ID                         |
| `agent.version`            | `object`  | Current agent version information object |
| `agent.version.version`    | `string`  | Current agent version                    |
| `agent.version.commit`     | `string`  | Version commit                           |
| `agent.version.build_time` | `date`    | Version build time                       |
| `agent.version.snapshot`   | `boolean` | Version is snapshot build                |