Complete reference for Kora command-line interface, including commands and flags.
Installation
--locked uses the dependency versions Kora was released with; without it, the
install needs Rust 1.89 or later.
Basic Usage
Common CLI Commands
| Command | Description |
|---|---|
kora config validate | Validate configuration file (fast, no RPC calls) |
kora config validate-with-rpc | Validate configuration with onchain account verification |
kora rpc start | Start the RPC server |
kora rpc initialize-atas | Initialize ATAs for all payment tokens |
Kora Flags
Customize Kora’s behavior with these global command-line flags after thekora
command:
| Flag | Description | Default | Example |
|---|---|---|---|
--config | Path to Kora configuration file (TOML format) | kora.toml | kora --config path/to/kora.toml |
--rpc-url | Solana RPC endpoint URL | http://127.0.0.1:8899 | kora --rpc-url https://api.devnet.solana.com |
--help | Print help information | - | kora --help |
--version | Print version information | - | kora --version |
RPC Server Flags
Configure the RPC server with these flags (used withkora rpc start):
| Flag | Description | Default | Example |
|---|---|---|---|
--signers-config | Path to multi-signer configuration file (TOML) | Required* | --signers-config signers.toml |
--no-load-signer | Skip signer initialization | false | --no-load-signer |
-p, --port | HTTP port for RPC requests | 8080 | --port 3000 |
--logging-format | Output format for logs (standard or json) | standard | --logging-format json |
--api-key | API key clients must send in x-api-key | None | --api-key <API_KEY> |
--hmac-secret | Secret for HMAC request signatures | None | --hmac-secret <HMAC_SECRET> |
--help | Print help information | - | kora rpc start --help |
--no-load-signer
Note: In Korav2.0.5,--api-keyand--hmac-secretare listed inkora rpc start --helpbut have no effect: the server starts without authentication. Set theKORA_API_KEYandKORA_HMAC_SECRETenvironment variables, orapi_keyandhmac_secretin[kora.auth], instead. The flags take effect fromv2.2.0-beta.8. See Authentication.
ATA Initialization Flags
Configure ATA initialization with these flags (used withkora rpc initialize-atas):
| Flag | Description | Default | Example |
|---|---|---|---|
--signers-config | Path to multi-signer configuration file | Required* | --signers-config signers.toml |
--fee-payer-key | Public key of signer to use as fee payer (must be in signers.toml) | First signer | --fee-payer-key "pubkey123..." |
--compute-unit-price | Priority fee in micro-lamports | None | --compute-unit-price 1000 |
--compute-unit-limit | Compute unit limit for transactions | None | --compute-unit-limit 200000 |
--chunk-size | Number of ATAs to create per transaction | None | --chunk-size 10 |
Common Usage Examples
Starting the RPC Server
Configuration Validation
validate-with-rpc command performs additional onchain verification:
- Program accounts: Verifies all allowed programs exist and are executable
- Token mints: Confirms all allowed tokens exist as valid mint accounts
- Payment tokens: Validates all SPL paid tokens are valid mints
- Payment address ATAs: Checks if payment address has ATAs for all allowed tokens
- Account types: Ensures accounts have the expected type (program vs mint)
Managing ATAs
Environment Variables
These environment variables can be used instead of command-line flags:| Variable | Description | Flag Equivalent |
|---|---|---|
RPC_URL | Solana RPC endpoint | --rpc-url |
KORA_API_KEY | API key for authentication (overrides api_key in kora.toml) | --api-key |
KORA_HMAC_SECRET | HMAC secret for authentication (overrides hmac_secret in kora.toml) | --hmac-secret |
See Also
- Operators Guide - Overview of Kora operators
- Configuration Guide - Detailed configuration options
- Signers Guide - Signer types and configuration
- Authentication Guide - Setting up API authentication
- Quick Start Guide - Getting started with Kora