Skip to main content
You can manage GLAM vaults through AI coding agents using the glam-skill. Instead of running CLI commands or clicking through the GUI, describe what you want in natural language and the agent handles the rest. The skill gives your agent a decision tree for vault operations, error handling, integration awareness, and knowledge of the GLAM CLI and SDK.

Supported platforms

The glam-skill works with any skills.sh-compatible platform:
  • Claude Code
  • Gemini CLI
  • Codex
  • OpenCode

Installation

For skills.sh-compatible platforms:
npx skills add https://github.com/glamsystems/glam-skill --skill glam
In Claude Code, you can also install with /skill or add the skill manually to your project configuration.

Configuration

Before your agent can manage vaults, you need the GLAM CLI installed and configured. Install the CLI:
npm install -g @glamsystems/glam-cli
Create your CLI config at ~/.config/glam/config.json:
config.json
{
  "keypair_path": "~/.config/solana/id.json",
  "json_rpc_url": "https://api.mainnet-beta.solana.com",
  "priority_fee": { "micro_lamports": 5000 },
  "jupiter_api_key": "<jupiter-api-key>"
}
Need an RPC endpoint? AI agents can create a Helius account and get an API key automatically. Your json_rpc_url would then be https://mainnet.helius-rpc.com/?api-key=<helius-api-key>.
The jupiter_api_key is optional but recommended. It’s required for commands that fetch token prices (e.g., vault token-balances). Get one for free on Jupiter Developer Platform.
The agent uses this config automatically when running CLI commands. If you have multiple keypairs (e.g., owner, delegate, user), you can either update the config or tell the agent to use a specific config file with the -C flag.

Example walkthrough

Here’s what managing a GLAM vault looks like through an AI agent. The following prompts mirror the CLI quickstart flow.
1

Create a vault

Prompt your agent:
Create a tokenized GLAM vault called "AI Quickstart USDC" with USDC as
the base asset. Set max cap to 1000 USDC, min subscription to 1 USDC,
and zero fees.
The agent will generate the vault configuration JSON and run the appropriate glam-cli vault create command.
2

Enable integrations

Enable Kamino Vaults integration on my vault.
The agent knows which integrations are available and runs:
glam-cli integration enable KaminoVaults
3

Grant delegate permissions

Grant my delegate ndcXmT...ids4QnG permissions to fulfill mint requests
and deposit/withdraw from Kamino Vaults.
The agent translates this into the correct delegate grant commands with the right protocol and permission names.
4

Manage portfolio

Deposit 5 USDC into Kamino lending (main market).
The skill knows the main Kamino market address, so this works out of the box. If you want to use a different market or vault, just paste the address in your prompt.
5

Handle investor flows

Fulfill all pending redemption requests.
The agent runs glam-cli manage fulfill to process queued redemptions.

What the skill provides

  • Decision tree for vault operations — the agent knows which commands to run and in what order
  • Error handling — the agent interprets CLI errors and suggests fixes
  • Integration awareness — the agent understands which integrations need to be enabled before use and what permissions delegates need
  • CLI and SDK coverage — the agent can use either the CLI or the TypeScript SDK depending on your context

Learn more

See the full skill reference at skills.sh/glamsystems/glam-skill/glam.