Skip to main content
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.

List Delegates

List all delegates and their permissions for the active vault.
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: DriftProtocol, KaminoLend, SplToken, JupiterSwap
glam-cli delegate grant <pubkey> <permissions...> --protocol <protocol_name> [--yes]
Example: Grant a delegate permission to deposit and withdraw on Kamino Lending:
glam-cli delegate grant Delegate111111111111111111111111 Deposit Withdraw --protocol KaminoLend
Run glam-cli delegate grant -h to see the full list of available permissions for each protocol.

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)
glam-cli delegate revoke <pubkey> <permissions...> --protocol <protocol_name> [--yes]
Example: Revoke deposit permission from a delegate:
glam-cli delegate revoke Delegate111111111111111111111111 Deposit --protocol KaminoLend

Revoke All Permissions

Completely remove a delegate’s access to the vault.
glam-cli delegate revoke-all <pubkey> [--yes]