| Program Version | CLI Version |
|---|---|
| GLAM Protocol v1 | >=1.0.0 |
| GLAM Protocol v0 (deprecated) | >=0.1.35 |
Getting Started
Configure
The GLAM CLI by default expects a configuration file at the following path:At minimum, you need to provide
- macOS / Linux:
~/.config/glam/config.json - Windows:
%USERPROFILE%\.config\glam\config.json
-C or --config flag:cluster, json_rpc_url, and keypair_path in the configuration file (full list of options can be found here):Commands Overview
| Command | Description |
|---|---|
env | Display current environment setup |
vault | Create, close, manage vaults |
invest | Investor operations (subscribe/redeem) |
manage | Manager operations (fulfill, fees) |
delegate | Manage vault delegates and permissions |
integration | Manage integration programs |
jupiter | Jupiter swap |
drift-protocol | Drift protocol (spot and perp trading) integration |
drift-vaults | Drift vaults integration |
kamino-lend | Kamino lending integration |
kamino-vaults | Kamino vaults integration |
kamino-farms | Kamino farms integration |
cctp | Cross-chain token bridge |
Configuration Options
cluster: Value must be one ofmainnet-beta,devnet, orlocalnet.json_rpc_url: The URL of your preferred Solana JSON RPC endpoint.keypair_path: Path to your keypair JSON file.tx_rpc_url: Optional. If not set it defaults tojson_rpc_url. Use this to specify a separate RPC endpoint for landing transactions.jupiter_api_key: Required if Jupiter-related functionality is used (swaps, invest flows). Obtain an API key from the Jupiter Developer Portal. Note: Jupiter requires an API key after January 31st, 2026. See the Jupiter migration guide for details.websocket_disabled: Optional. If set totruethe CLI will not attempt to use WebSocket methods. This can be useful if you are using a RPC provider that does not support WebSocket.priority_fee:micro_lamports: Optional. If provided,levelandhelius_api_keywill be ignored.level: Optional (defaults toMin). Only applied if cluster ismainnet-beta. Other options areMin,Low,Medium,High,VeryHigh,UnsafeMax,Default(more info can be found here).helius_api_key: Optional. Only applied if cluster ismainnet-beta. If not providedlevelwill be ignored. The API key is needed to call Helius priority fee endpoint.
glam_staging: Optional. If set totruethe CLI will use GLAM mainnet staging programs.glam_state: Optional. Sets the default active vault state. You can also set this later using thesetcommand.
Dynamic Priority Fee
Use this template if you have a Helius API key and want to use dynamic priority fee:micro_lamports * CU_consumed.
Static Priority Fee
If a fixed priority fee amount is preferred:micro_lamports: Specifies a fixed priority fee per CU in micro-lamports (1,000,000 micro-lamports = 1 lamport). Actual priority fee is calculated asmicro_lamports * CU_consumed.- Use this method when dynamic fee adjustment is unnecessary or unavailable.