Skip to main content
The Helius CLI enables AI agents to autonomously create Helius accounts and obtain API keys without human intervention. Through the Helius MCP server, AI tools can guide agents through the full signup workflow.

Capabilities

CapabilityDescription
Generate keypairsCreate Solana wallets programmatically via helius keygen
Self-service signupCreate Helius accounts for a payment of 1 USDC via helius signup
Manage projectsList and view project details via helius projects
Access API keysRetrieve and create API keys via helius apikeys
Monitor usageCheck credit consumption via helius usage
Get RPC endpointsDisplay mainnet and devnet URLs via helius rpc
JSON output modeMachine-readable output with --json flag on any command

Key Information for Agents

Commands Reference

CommandDescription
helius keygenGenerate a new Solana keypair
helius signupPay 1 USDC + create account + project
helius loginAuthenticate with existing wallet
helius projectsList all projects
helius project [id]Get project details
helius apikeys [project-id]List API keys for project
helius apikeys create [project-id]Create new API key
helius usage [project-id]Show credits usage
helius rpc [project-id]Show RPC endpoints

Exit Codes

CodeMeaningAgent Action
0SuccessProceed to next step
1General errorLog error and inform user
10Not logged inRun helius login
11Keypair not foundRun helius keygen
20Insufficient SOLRequest 0.001 SOL to wallet
21Insufficient USDCRequest 1 USDC to wallet
30No projects foundProjects list is empty
31Project not foundInvalid project ID
40API errorRetry with backoff

Complete Agent Workflow

# 1. Generate keypair
helius keygen
# Save the wallet address from the output

# 2. Wait for user to fund wallet (1 USDC + ~0.001 SOL)

# 3. Signup and create account
helius signup --json

# 4. Get projects and API keys
helius projects --json
helius apikeys <project-id> --json

# 5. Get RPC endpoints
helius rpc <project-id> --json
Always use the --json flag when calling commands programmatically. Parse the JSON response for reliable data extraction.

Keypair Management

The CLI stores files in ~/.helius-cli/:
~/.helius-cli/
├── config.json    # JWT authentication token
└── keypair.json   # Solana keypair (if generated)
Override the default keypair path with -k:
helius login -k /path/to/custom/keypair.json
helius signup -k /path/to/custom/keypair.json

Example Agent Prompts

Use these prompts with an AI tool connected to the Helius MCP server:
  • “Help me set up a new Helius account using the CLI”
  • “What commands do I need to get an API key for my agent?”
  • “Show me the full workflow for autonomous Helius signup”
  • “How do I check my remaining credits using the Helius CLI?”
  • “What exit codes should I handle when using helius signup?”

Resources