Skip to main content
KRAIT

Getting Started

Install KRAIT and create your first self-evolving agent in five minutes.

Prerequisites

KRAIT requires Elixir 1.17+ and Erlang/OTP 27+. You also need Docker installed for the sandbox environment.

# Verify your Elixir version
elixir --version

# Verify Docker is running
docker info

Installation

The quickest way to install KRAIT is via the install script:

bash <(curl -fsSL https://raw.githubusercontent.com/postrv/kraitbot/main/install.sh)

This will:

  1. Download the latest KRAIT release
  2. Verify the SHA-256 checksum
  3. Install the krait binary to ~/.krait/bin
  4. Add it to your PATH

Creating Your First Agent

Initialize a new KRAIT project:

krait init my-agent
cd my-agent

This creates a project with the standard structure:

my-agent/
  config/
    krait.exs          # Agent configuration
    rules.exs          # Custom security rules (extends KRAIT-001 through KRAIT-007)
  skills/
    hello_world.ex     # Your first skill
  test/
    skills/
      hello_world_test.exs
  mix.exs

Running the Agent

Start the agent in development mode:

krait dev

The agent will start and connect to your configured LLM provider. You can interact with it via the built-in chat interface at http://localhost:4000.

Next Steps