Skip to main content

Prerequisites

Before installing IronClaw, ensure you have the following:
  • PostgreSQL 15+ with pgvector extension
  • NEAR AI account (authentication handled via setup wizard)
  • Rust 1.85+ (only if building from source)
You can also use libSQL/Turso as an embedded database alternative. See the database configuration guide for details.

Download or build

Visit the Releases page to see the latest updates.
Run this command in PowerShell:
irm https://github.com/nearai/ironclaw/releases/latest/download/ironclaw-installer.ps1 | iex
The script will:
  • Download the latest release
  • Extract to %LOCALAPPDATA%\ironclaw
  • Add IronClaw to your PATH
Install with cargo, requires Rust installed:
# Clone the repository
git clone https://github.com/nearai/ironclaw.git
cd ironclaw

# Build
cargo build --release

# Run tests
cargo test
For full release (after modifying channel sources), run ./scripts/build-all.sh to rebuild channels first.

Verify installation

After installation, verify that IronClaw is in your PATH:
ironclaw --version
You should see output like:
ironclaw 0.1.0

Database setup

IronClaw requires PostgreSQL with the pgvector extension for persistent storage and semantic search.
1

Install PostgreSQL

brew install postgresql@15
brew services start postgresql@15
2

Install pgvector extension

brew install pgvector
3

Create database

# Create database
createdb ironclaw

# Enable pgvector extension
psql ironclaw -c "CREATE EXTENSION IF NOT EXISTS vector;"
If you encounter permission errors, you may need to run these commands as the postgres user:
sudo -u postgres createdb ironclaw
sudo -u postgres psql ironclaw -c "CREATE EXTENSION IF NOT EXISTS vector;"
4

Verify database connection

psql ironclaw -c "SELECT version();"
You should see PostgreSQL version information.
If you see an error about pgvector not being installed:
ERROR:  extension "vector" is not available
Ensure the pgvector extension is properly installed and restart PostgreSQL:
# macOS
brew services restart postgresql@15

# Ubuntu/Debian
sudo systemctl restart postgresql
Then re-run:
psql ironclaw -c "CREATE EXTENSION IF NOT EXISTS vector;"

Alternative: libSQL/Turso

If you prefer an embedded database, you can use libSQL (SQLite-compatible) or Turso (cloud SQLite):
No installation required. IronClaw will create a local database file at ~/.ironclaw/ironclaw.db automatically.Set the database backend during onboarding:
ironclaw onboard
Select libSQL when prompted for database backend.
Embedding dimension compatibility: The libSQL schema uses F32_BLOB(1536) which requires exactly 1536 dimensions. If using non-OpenAI embedding models with different dimensions, use PostgreSQL instead.

Next steps

Now that IronClaw is installed and your database is set up, proceed to the onboarding wizard:

Run onboarding

Configure IronClaw with the interactive setup wizard

Troubleshooting

The IronClaw binary is not in your PATH. Add it manually:
export PATH="$HOME/.ironclaw/bin:$PATH"
Add this to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make it permanent.
Ensure PostgreSQL is running:
brew services start postgresql@15
Install pgvector and restart PostgreSQL:
brew install pgvector
brew services restart postgresql@15
Then enable the extension:
psql ironclaw -c "CREATE EXTENSION IF NOT EXISTS vector;"
Ensure you have the latest Rust toolchain:
rustup update
If you’re building with custom features, ensure all dependencies are installed. Check the building tools guide for details.