Skip to main content
The Helius CLI is a full-featured command-line interface for the Helius platform. It provides 95+ commands for account management, blockchain data queries, transaction sending, webhooks, real-time streaming, staking, ZK Compression, and more — with machine-readable JSON output for every command.
Using an MCP-compatible AI tool? The Helius MCP server is the recommended way for AI agents to interact with Helius — it provides 10 routed tools with structured inputs/outputs, including built-in account signup. Use the CLI for shell scripts, CI/CD pipelines, or when MCP is not available.

Installation

Quick Start — Existing Users

If you already have a Helius API key, just set it and go:
Get your key from dashboard.helius.dev. That’s it — skip the signup steps below.

Quick Start — New Users

All helius signup invocations require --email, --first-name, and --last-name — including the Agent plan.
1

Generate a keypair

Output:
The funding hint above only applies if you’ll use autopay — skip funding if you plan to pay via the hosted link.
2

Create account

Two payment modes: hosted link (pay from any wallet, nothing to fund) or autopay (pay USDC from the local keypair, which must hold ~0.001 SOL + the plan amount).
3

Get your API keys and endpoints

Your API key is sensitive information that grants access to your Helius account. Never expose it in client-side code, public repos, or browser-accessible areas.

Plans & Pricing

You can purchase any Helius shared plan directly through the CLI. Pass --plan during signup or use helius upgrade later:
The Agent plan (agent) is the default. It costs $1 (paid in USDC) to prevent abuse and gives you 1,000,000 credits. For higher rate limits and more credits, sign up with a paid plan or upgrade later.

Signup with a specific plan

Upgrade an existing account

Pay a renewal

When a subscription renewal is due (monthly or yearly), Helius creates a payment intent — a pending payment with a unique ID, amount, and expiration. You’ll receive the payment intent ID via email or the dashboard.
The command fetches the intent details, shows the amount and expiration, asks for confirmation, then sends the USDC payment from your keypair wallet.

Command Reference

The CLI provides 95+ commands across 14 categories. Every command supports --json for machine-readable output and --api-key <key> / --network <net> global overrides.

Full Command Reference

All 95+ commands — account management, blockchain queries, DAS API, wallet, webhooks, transaction sending, WebSockets, staking, ZK compression, and more

JSON Output Mode

Add --json to any command for machine-readable output:
Example:

Exit Codes

Agents should check exit codes for reliable automation:

Configuration

Config is stored in ~/.helius/:
Manage config with:

API Key Resolution Order

API keys are resolved in this order:
  1. --api-key <key> flag (per-command override)
  2. HELIUS_API_KEY environment variable
  3. ~/.helius/config.json (set via helius config set-api-key)

Global Options

All commands accept these flags:

Full Agent Workflow

Next Steps

Agents Overview

API guidance, workflows, and error handling for agents

Helius MCP

Connect AI tools directly to Helius APIs

View Plans

Understand Helius plans and upgrade options

Dashboard

Monitor your API usage and manage keys

Support

Discord Community

Join our Discord for real-time help and community support

Email Support

Contact our support team directly