Skip to main content
This guide will walk you through creating your first GLAM vault using the CLI.

Prerequisites

Before starting, make sure you have:
  • GLAM CLI installed (Installation Guide)
  • A Solana wallet keypair file
  • Access to a Solana RPC endpoint

Step 1: Create Configuration File

1

Create config directory

Create the GLAM CLI configuration directory:
mkdir -p ~/.config/glam
2

Create config.json

Create a config.json file in ~/.config/glam/ with your settings:
~/.config/glam/config.json
{
  "cluster": "mainnet-beta",
  "json_rpc_url": "https://api.mainnet-beta.solana.com",
  "keypair_path": "/path/to/your/keypair.json",
  "priority_fee": {
    "micro_lamports": 10000
  }
}
Replace /path/to/your/keypair.json with the actual path to your Solana wallet keypair.
3

Verify configuration

Check that your configuration is loaded correctly:
glam-cli env
You should see output showing your wallet address, RPC endpoint, and other settings:
GLAM Protocol program: GLAMpLuXu78TA4ao3FGZPr86CC7SjH8CPN7rJxSUVZe
Staging: false
Wallet connected: YourWalletAddress...
RPC endpoint: https://api.mainnet-beta.solana.com
Priority fee: { micro_lamports: 10000 }
Jupiter API key: not configured
No active GLAM vault configured.

Step 2: Create Your First Vault

1

Create a vault configuration file

Create a JSON file with your vault parameters. Here’s a simple vault example:
vault-config.json
{
  "state": {
    "accountType": "vault",
    "name": "My First GLAM Vault",
    "enabled": true,
    "baseAssetMint": "So11111111111111111111111111111111111111112",
    "assets": [
      "So11111111111111111111111111111111111111112",
      "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ]
  }
}
This creates a vault with SOL as the base asset and allows holding SOL and USDC.
  • So11111111111111111111111111111111111111112 is wrapped SOL (wSOL)
  • EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v is USDC
2

Initialize the vault

Create your vault using the configuration file:
glam-cli vault create vault-config.json
You’ll be asked to confirm the operation. After confirmation, the vault will be created and you’ll see:
State PDA: 8xKz...
Vault PDA: 9yLm...
Initialized vault: <transaction-signature>
The vault is automatically set as your active vault. All subsequent commands will operate on this vault unless you specify a different one.

Step 3: List Your Vaults

View all vaults where you are the owner or have delegate access:
glam-cli vault list
Output:
Type   Vault State       Vault PDA         Launch Date  Name
-----  ----------------  ----------------  -----------  --------------------
vault  8xKz...           9yLm...           2026-03-03   My First GLAM Vault
Use glam-cli vault list --all to see all GLAM vaults on the network, or glam-cli vault list --owner-only to see only vaults you own.

Step 4: Check Vault Balances

View the token balances in your vault:
glam-cli vault token-balances
This displays all tokens held by the vault with their current USD values:
Token  Mint                                          Amount        Value (USD)
-----  --------------------------------------------  ------------  -----------
SOL    N/A                                           0.000000000   0.000000
USDC   EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v  0             0.000000

Next Steps

Now that you have a vault set up, you can:

View Configuration Options

Learn about all available configuration settings

Manage Vault Assets

Transfer assets, enable integrations, and manage permissions

DeFi Integrations

Connect to Jupiter, Kamino, Drift, and other protocols

Create Tokenized Vaults

Launch investment products with custom fee structures

Common Commands

Here are some frequently used commands:
# Switch active vault
glam-cli vault set <vault-state-pubkey>

# View vault details
glam-cli vault view

# Add asset to allowlist
glam-cli vault allowlist-asset <mint-address>

# Check environment
glam-cli env

# Get help for any command
glam-cli vault --help
glam-cli jupiter --help

Build docs developers (and LLMs) love