Looking for the beta? See
Beta Installation for Docker images and
kora-cli@2.2.0-beta.8.
Get started with Kora by installing the CLI tool for operating a Kora node or
the TypeScript SDK for client applications interacting with a Kora node.
System Requirements
For CLI (Server)
- Rust: Version 1.89 or higher,
or any version from 1.88 if you install with
--locked(not required for Docker)
For TypeScript SDK (Client)
- Node.js: Version 20.18 or higher
- TypeScript: Version 5.4 or
higher (required by
@solana/kit6)
Optional Dependencies
- Solana CLI: Helpful for key generation and testing
- Docker: For containerized deployments
Kora CLI
The Kora CLI is the primary way to run and manage Kora nodes. Choose your preferred installation method:Option 1: Install from Cargo
Install directly from crates.io using Cargo:--locked builds with the dependency versions Kora v2.0.5 was released with.
Without it, Cargo picks the newest compatible dependency releases, and those
need Rust 1.89: on Rust 1.88 the install fails with
rustc 1.88.0 is not supported by the following packages.
Option 2: Build from Source
Clone and build the latest stable version from source:Note: Thev2.0.5tag uses a Makefile (make install,make build,make test). Itsmake runtarget doesn’t start a server onv2.0.5; runkora --config <kora.toml> rpc start --signers-config <signers.toml>instead (see Running the Server). Thejustrecipes (for examplejust installandjust test) only exist onmainand the beta tags.
Note: Kora’s main branch is an integration branch and may contain
unreleased or beta changes. Always checkout the latest stable release tag. See
the releases page for
the latest stable version.
This will build and install the kora binary to your local Cargo bin directory.
Option 3: Docker
Pull the official Docker image from GitHub Container Registry:kora, so the arguments
must start with kora. The CLI reads the RPC endpoint from the RPC_URL
environment variable (it falls back to 127.0.0.1:8899 if the variable is
unset), so pass it with -e RPC_URL=<SOLANA_RPC_URL>. kora.toml is only read
when you pass --config /app/kora.toml. Replace <SOLANA_RPC_URL> with your
Solana RPC endpoint and set the environment variables your signers.toml references (for
example KORA_PRIVATE_KEY).
Verify Installation
Verify the Kora CLI is installed correctly:TypeScript SDK
Install the Kora TypeScript SDK for client applications:Peer Dependencies
@solana/kora 0.2.x declares @solana/kit ^6.1 and several Kit plugin
packages as peer dependencies. Install them with the version ranges above so the
peers resolve to supported releases.
Kit 7 and later are not supported by @solana/kora 0.2.x. Stay on
@solana/kit 6.x. You get an unsupported Kit when:
- your project already depends on
@solana/kit7 or later:npm installstops with anERESOLVEpeer dependency conflict - you install with
--legacy-peer-deps(orlegacy-peer-deps=truein.npmrc): npm skips the peers, so the latest Kit is installed and@solana/korafails to load withERR_MODULE_NOT_FOUNDfor@solana-program/token - you use pnpm without pinning
@solana/kit: pnpm installs the latest Kit, only warns about the peer conflict, and importing@solana/korafails withdoes not provide an export named 'getMinimumBalanceForRentExemption'. Pin the same versions as the npm command above.
npm install @solana/kora @solana/kit also resolves
Kit 6, because npm installs the peers for you. The pinned command records each
peer in your package.json, which keeps a later install from moving them to an
unsupported version.
Version Requirements
@solana/kora 0.2.x requires @solana/kit ^6.1 (6.1 or later, below 7) and
TypeScript 5.4 or later for all three clients: KoraClient, koraPlugin(),
and createKitKoraClient(). With @solana/kit 5, npm install fails with an
ERESOLVE peer dependency conflict.
See the JSON-RPC API Overview for detailed
client usage examples.
Verify SDK Installation
Verify your SDK installation with a simple connection test:Troubleshooting
CLI Issues
“kora: command not found”: Ensure~/.cargo/bin is in your PATH:
SDK Issues
Peer dependency warnings: Install the pinned Solana dependencies listed above (@solana/kit@^6.1 and the matching plugin and program packages).
TypeScript errors: Ensure your TypeScript version is 5.4+ and install type
definitions: