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

# Agent Vault

> Manage Agent Vault with the Python SDK.

> [!NOTE]
>
> `agent_vault` requires `infisicalsdk` version 1.4.0 or newer.

## Sessions

`client.agent_vault.sessions` manages [Agent Vault sessions](https://infisical.com/docs/documentation/platform/agent-vault/sessions). A session lets an AI agent use the [services](https://infisical.com/docs/documentation/platform/agent-vault/services) in one [access bundle](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md), the [inline services](https://infisical.com/docs/documentation/platform/agent-vault/inline-services.md) sent with the session, or both, until the session expires or someone revokes it.

What the client can do with sessions depends on the [role](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership) that the user or machine identity the client logs in as has in the Agent Vault project:

| Role | Can create sessions with | Can list, get, label, and revoke |
| - | - | - |
| **Admin** | Any access bundle (on behalf of a user, [only access bundles that the user can use too](https://infisical.com/docs/sdks/languages/python/agent-vault/create-session.md#create-a-session-on-behalf-of-a-user)), and [inline services](https://infisical.com/docs/sdks/languages/python/agent-vault/create-session.md#create-a-session-with-inline-services) | Every session |
| **Member** | The access bundles [granted](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md#grant-access) to the member | The member's own sessions |

## Proxies

`client.agent_vault.proxies` manages [Agent Vault proxies](https://infisical.com/docs/documentation/platform/agent-vault/proxies). A proxy attaches API credentials to the requests that agents send through it.

To use any method in this section except `list`, the client must log in as a user or machine identity with the **Admin** role in the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership).

## Access bundles

`client.agent_vault.access_bundles` manages [Agent Vault access bundles](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md) and who they're [granted](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md#grant-access) to. An access bundle is a list of services that an agent can use during a session.

To use any method in this section except `list` and `get`, the client must log in as a user or machine identity with the **Admin** role in the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership).

## Delegations

`client.agent_vault.delegations` manages [delegations](https://infisical.com/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.md), which let a machine identity [create sessions on behalf of users](https://infisical.com/docs/sdks/languages/python/agent-vault/create-session.md#create-a-session-on-behalf-of-a-user).

To use any method in this section, the client must log in as a user or machine identity with the **Admin** role in the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership). A machine identity without the role can still get its own delegation.


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