> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Kora

> Solana Signing Infrastructure

**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:

```bash
cargo install kora-cli --locked
```

Basic usage:

```bash
# Run `kora rpc start --help` for the full list of options
kora --config kora.toml rpc start --signers-config signers.toml [OPTIONS]
```

**[→ Quick Start Guide](/developers/docs/tools/kora/getting-started/quick-start)** - Get
Kora running locally in minutes

**[→ Node Operator Guide](/developers/docs/tools/kora/operators)** - Run a paymaster

## TypeScript SDK

Kora provides a simple JSON-RPC interface. The TypeScript SDK offers three
clients (`KoraClient`, `createKitKoraClient`, and the `koraPlugin` for an
existing Kit client); two are shown here:

```typescript
// Option 1: Standalone client
import { KoraClient } from "@solana/kora";
const kora = new KoraClient({ rpcUrl: "http://localhost:8080" });
const signed = await kora.signTransaction({ transaction });

// Option 2: Kit client (recommended) — handles planning, fees, signing, and sending
import { createKitKoraClient } from "@solana/kora";
import { address } from "@solana/kit";
const client = await createKitKoraClient({
  endpoint: "http://localhost:8080",
  rpcUrl: "https://api.mainnet.solana.com",
  feeToken: address("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),
  feePayerWallet: userSigner,
});
```

**[→ API Reference](/developers/docs/tools/kora/json-rpc-api)** - JSON-RPC methods and
TypeScript SDK

## Local Development

### Prerequisites

- Rust 1.89+
- Solana CLI 2.2+
- Node.js 20.18+ and npm (for the SDK, which builds on `@solana/kit`)

### Installation

```bash
git clone https://github.com/solana-foundation/kora.git
cd kora
git checkout v2.0.5
make install
```

The `v2.0.5` tag uses a Makefile. On `main` and the beta tags, use the `just`
equivalents instead (`just install`, `just build`, `just run`, and `just test`).

### Build

```bash
make build
```

### Running the Server

Basic usage:

```bash
kora --config path/to/kora.toml rpc start --signers-config path/to/signers.toml [OPTIONS]
```

To run with the repository's test configuration, start Kora from the
repository root. The signer reads its key from the `KORA_PRIVATE_KEY`
environment variable, and Kora connects to a local validator at
`http://127.0.0.1:8899` unless you set `RPC_URL`:

```bash
kora --config tests/src/common/fixtures/kora-test.toml rpc start \
  --signers-config tests/src/common/fixtures/signers.toml
```

Don't use `make run` on `v2.0.5`: it passes an empty `--signers-config`, and the
root `kora.toml` it loads fails validation with
`When fees are enabled, allowed_spl_paid_tokens cannot be empty`.

### Local Testing

And run all tests:

```bash
make test
```

## Community & Support

- **Questions?** Ask on
  [Solana Stack Exchange](https://solana.stackexchange.com/) (use the `kora`
  tag)
- **Issues?** Report on
  [GitHub Issues](https://github.com/solana-foundation/kora/issues)

## Other Resources

- [Kora CLI Crates.io](https://crates.io/crates/kora-cli) - Rust crate for
  running a Kora node
- [@solana/kora NPM Package](https://www.npmjs.com/package/@solana/kora) -
  TypeScript SDK for interacting with a Kora node

## Source

- [GitHub Repository](https://github.com/solana-foundation/kora)

Built and maintained by the [Solana Foundation](https://solana.org).

Licensed under MIT. See
[LICENSE](https://github.com/solana-foundation/kora/blob/main/LICENSE.md) for
details.
