Skip to content
Last Updated: 2025-08-25
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

CommandDescription
kora config validateValidate configuration file (fast, no RPC calls)
kora config validate-with-rpcValidate configuration with onchain account verification
kora rpc startStart the RPC server
kora rpc initialize-atasInitialize ATAs for all payment tokens

​Kora Flags

Customize Kora’s behavior with these global command-line flags after the kora command:
FlagDescriptionDefaultExample
--configPath to Kora configuration file (TOML format)kora.tomlkora --config path/to/kora.toml
--rpc-urlSolana RPC endpoint URLhttp://127.0.0.1:8899kora --rpc-url https://api.devnet.solana.com
--helpPrint help information-kora --help
--versionPrint version information-kora --version

​RPC Server Flags

Configure the RPC server with these flags (used with kora rpc start):
FlagDescriptionDefaultExample
--signers-configPath to multi-signer configuration file (TOML)Required*--signers-config signers.toml
--no-load-signerSkip signer initializationfalse--no-load-signer
-p, --portHTTP port for RPC requests8080--port 3000
--logging-formatOutput format for logs (standard or json)standard--logging-format json
--api-keyAPI key clients must send in x-api-keyNone--api-key <API_KEY>
--hmac-secretSecret for HMAC request signaturesNone--hmac-secret <HMAC_SECRET>
--helpPrint help information-kora rpc start --help
*Required unless using --no-load-signer
Note: In Kora v2.0.5, --api-key and --hmac-secret are listed in kora rpc start --help but have no effect: the server starts without authentication. Set the KORA_API_KEY and KORA_HMAC_SECRET environment variables, or api_key and hmac_secret in [kora.auth], instead. The flags take effect from v2.2.0-beta.8. See Authentication.

​ATA Initialization Flags

Configure ATA initialization with these flags (used with kora rpc initialize-atas):
FlagDescriptionDefaultExample
--signers-configPath to multi-signer configuration fileRequired*--signers-config signers.toml
--fee-payer-keyPublic key of signer to use as fee payer (must be in signers.toml)First signer--fee-payer-key "pubkey123..."
--compute-unit-pricePriority fee in micro-lamportsNone--compute-unit-price 1000
--compute-unit-limitCompute unit limit for transactionsNone--compute-unit-limit 200000
--chunk-sizeNumber of ATAs to create per transactionNone--chunk-size 10

​Common Usage Examples

​Starting the RPC Server

​Configuration Validation

The 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:
VariableDescriptionFlag Equivalent
RPC_URLSolana RPC endpoint--rpc-url
KORA_API_KEYAPI key for authentication (overrides api_key in kora.toml)--api-key
KORA_HMAC_SECRETHMAC secret for authentication (overrides hmac_secret in kora.toml)--hmac-secret

​See Also