kora-cli

Crates.iokora-cli
lib.rskora-cli
version2.2.0-beta.3
created_at2025-06-26 00:44:40.945787+00
updated_at2026-01-21 20:39:16.156692+00
descriptionCLI for Kora gasless relayer
homepage
repository
max_upload_size
id1726733
size217,638
(solana-foundation-tech)

documentation

README


Kora

Kora: Solana Signing Infrastructure


Rust Tests Coverage Ask DeepWiki Crates.io npm License: MIT



Branch Update (Jan 6, 2025): We migrated pre-release features to release/2.2.0. The main branch now only contains audited releases plus minor hotfixes/docs. See v2.0.1 for the latest stable release.

Kora is your Solana signing infrastructure. Enable gasless transactions where users pay fees in any token—USDC, BONK, or your app's native token—or handle any transaction signing that requires a trusted signer.

Why Kora?

  • Better UX: Users never need SOL
  • Revenue Control: Collect fees in USDC, your token, or anything else
  • Production Ready: Secure validation, rate limiting, monitoring built-in
  • Easy Integration: JSON-RPC API + TypeScript SDK
  • Flexible Deployment: Railway, Docker, or any cloud platform

Architecture

  • Language: Rust with TypeScript SDK
  • Protocol: JSON-RPC 2.0
  • Signers: Solana Private Key, Turnkey, Privy
  • Authentication: API Key, HMAC, or none
  • Deployment: Flexible deployment options (Docker, Railway, etc.)

Features

  • Configurable validation rules and allowlists
  • Full Token-2022 support with extension filtering
  • Redis caching for improved performance
  • Rate limiting and spend protection
  • Secure key management (Turnkey, Privy, Vault)
  • HMAC and API key authentication
  • Prometheus metrics and monitoring
  • Enhanced fee payer protection policies

Quick Start

Install Kora:

cargo install kora-cli

Basic usage:

kora rpc [OPTIONS] # --help for full list of options

→ Full Documentation - Learn how Kora works

→ Quick Start Guide - Get Kora running locally minutes

→ Node Operator Guide - Run a paymaster

TypeScript SDK

Kora provides a simple JSON-RPC interface:

// Initialize Kora client
import { KoraClient } from '@solana/kora';
const kora = new KoraClient({ rpcUrl: 'http://localhost:8080' });

// Sign transaction as paymaster
const signed = await kora.signTransaction({ transaction });

→ API Reference

Local Development

Prerequisites

  • Just (command runner)
  • Rust 1.86+
  • Solana CLI 2.2+
  • Node.js 20+ and pnpm (for SDK)

Installation

git clone https://github.com/solana-foundation/kora.git
cd kora
just install

Build

just build

Running the Server

Basic usage:

kora rpc [OPTIONS]

Or for running with a test configuration, run:

just run

Local Testing

And run all tests:

just test-all

Repository Structure

kora/
├── crates/                   # Rust workspace
│   ├── kora-lib/             # Core library with RPC server (signers, validation, transactions)
│   └── kora-cli/             # Command-line interface and RPC server
├── sdks/                     # Client SDKs
│   └── ts/                   # TypeScript SDK
├── tests/                    # Integration tests
├── docs/                     # Documentation
│   ├── getting-started/      # Quick start guides
│   └── operators/            # Node operator documentation
├── justfile                  # Build and development commands
└── kora.toml                 # Example configuration

Security Audit

Kora has been audited by Runtime Verification. View the audit report. (Audited up to commit 8c592591)

Note: Kora uses the solana-keychain package which has not been audited. Use at your own risk.

Community & Support

Other Resources


Built and maintained by the Solana Foundation.

Licensed under MIT. See LICENSE for details.

Commit count: 0

cargo fmt