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

# Delegate Commands

Manage delegate permissions for your vault. Only the vault owner can grant or revoke delegate permissions.

For more information on the access control framework, see [Access Control](/v1/access-control/framework).

## List Delegates

List all delegates and their permissions for the active vault.

```bash theme={null}
glam-cli delegate list
```

## Grant Permissions

Grant delegate permissions for a specific protocol.

* `pubkey`: Public key of the delegate
* `permissions...`: Space-separated list of permission names
* `--protocol`: Protocol name (required). Examples: `KaminoLend`, `SplToken`, `JupiterSwap`

```bash theme={null}
glam-cli delegate grant <pubkey> <permissions...> --protocol <protocol_name> [--yes]
```

**Example:** Grant a delegate permission to deposit and withdraw on Kamino Lending:

```bash theme={null}
glam-cli delegate grant Delegate111111111111111111111111 Deposit Withdraw --protocol KaminoLend
```

<Tip>
  Run `glam-cli delegate grant -h` to see the full list of available permissions for each protocol.
</Tip>

## Revoke Permissions

Revoke specific delegate permissions for a protocol.

* `pubkey`: Public key of the delegate
* `permissions...`: Space-separated list of permission names to revoke
* `--protocol`: Protocol name (required)

```bash theme={null}
glam-cli delegate revoke <pubkey> <permissions...> --protocol <protocol_name> [--yes]
```

**Example:** Revoke deposit permission from a delegate:

```bash theme={null}
glam-cli delegate revoke Delegate111111111111111111111111 Deposit --protocol KaminoLend
```

## Revoke All Permissions

Completely remove a delegate's access to the vault.

```bash theme={null}
glam-cli delegate revoke-all <pubkey> [--yes]
```
