ironclaw onboard
Run the interactive onboarding wizard to configure IronClaw for first use. This command guides you through initial setup including authentication, channel configuration, and system validation.Syntax
Flags
--skip-auth
Skip authentication step and use existing session.
--channels-only
Reconfigure channels only, skip other setup steps.
Description
Theonboard command is typically the first command you run after installing IronClaw. It walks you through:
- Authentication - Setting up your NEAR AI session or API key
- Database Configuration - Choosing and configuring your database backend
- Secrets Encryption - Generating a master key for encrypting sensitive data
- Channel Setup - Configuring communication channels (Telegram, Slack, Discord, etc.)
- Validation - Checking that all dependencies are properly configured
Examples
First-Time Setup
Reconfigure Channels
Skip Authentication
What Happens During Onboarding
1. Authentication
You’ll be prompted to authenticate with NEAR AI. You can:- Use an existing NEAR AI session file
- Provide a NEAR AI API key
- Skip if
--skip-authis set
~/.nearai/session(default session file).envfile (if usingNEARAI_API_KEY)
2. Database Backend
Choose your database backend:- PostgreSQL - Production-ready, recommended for multi-user deployments
- libSQL - Local SQLite-compatible database, great for single-user setups
- Turso - Managed libSQL with replication
.env file:
3. Secrets Master Key
A master key is generated for encrypting secrets (API keys, tokens, etc.). This is saved to:4. Channel Configuration
Configure communication channels:- Telegram - Bot token and optional webhook settings
- Slack - App token and bot token
- Discord - Bot token
- CLI - Enabled by default
.env.
5. Validation
The wizard validates:- Database connectivity
- Session file or API key validity
- Directory permissions
- Required environment variables
Files Created
Onboarding creates/modifies:.env- Environment variables and configuration~/.nearai/session- NEAR AI session file (if not using API key)~/.ironclaw/- Base directory for data storage~/.ironclaw/ironclaw.db- libSQL database (if using libSQL backend)
Troubleshooting
”Session file not found”
You need to authenticate with NEAR AI:“Database connection failed”
Check your database is running:“Permission denied”
Ensure the IronClaw base directory is writable:Re-running Onboarding
You can safely re-run onboarding at any time. It will:- Preserve existing settings where possible
- Prompt before overwriting configuration
- Allow you to update specific settings
Next Steps
After onboarding:- Run diagnostics:
ironclaw doctor - Install tools:
ironclaw tool install <path> - Add MCP servers:
ironclaw mcp add <name> <url> - Start the agent:
ironclaworironclaw run
Related Commands
- doctor - Verify your configuration
- config - View and modify settings
- service install - Install as system service