Installation
Install OpenClaw with ArmorIQ from source
Installation
Learn how to install and set up OpenClaw with ArmorIQ from source.
Requirements
System Requirements
- Operating System: Linux, macOS, or Windows with WSL2
- Node.js: v20.0 or higher (tested with v25.2.1)
- pnpm: v8.0 or higher
- Git: Latest version
- Disk Space: ~2GB for dependencies and build
Account Requirements
- ArmorIQ Account: Get your API key from ArmorIQ Dashboard
- OpenAI or Gemini API Key: For LLM access
- Telegram Account: Optional, for bot integration
Why from source? OpenClaw with ArmorIQ is currently distributed as a fork with the ArmorIQ plugin pre-integrated. This ensures the best compatibility and allows you to customize the plugin configuration.
Installation Steps
Clone the Repository
Clone the OpenClaw repository with ArmorIQ plugin:
git clone https://github.com/armoriq/aiq-openclaw.git
cd aiq-openclawVerify clone:
ls -la
# Should see: extensions/, src/, package.json, etc.Install pnpm
If you don't have pnpm installed:
npm install -g pnpmbrew install pnpmcurl -fsSL https://get.pnpm.io/install.sh | sh -Verify installation:
pnpm --version
# Should show: 8.x.x or higherInstall Dependencies
Install all Node.js dependencies for OpenClaw:
pnpm installThis will install:
- TypeScript compiler
- OpenClaw core dependencies
- Plugin dependencies
- Build tools
Expected output:
Packages: +1234
+++++++++++++++++++++++++++++++++++++++
Progress: resolved 1234, reused 1200, downloaded 34
Done in 45sIf you see permission errors, do not use sudo. Fix ownership with: sudo chown -R $USER:$USER .
Install ArmorIQ SDK
The ArmorIQ plugin requires the @armoriq/sdk package. Install it globally or in the project:
npm install @armoriq/sdkVerify installation:
npm list @armoriq/sdkExpected output:
aiq-openclaw@2026.1.30 /path/to/aiq-openclaw
└── @armoriq/sdk@0.2.6The ArmorIQ SDK provides the client library for communicating with ArmorIQ's IAP and Backend services. It handles intent token requests, step verification, and policy management.
Build the Project
Compile TypeScript and build all components:
pnpm buildWhat happens:
- TypeScript compilation (
tsc) - Canvas/UI bundling
- Plugin builds (including ArmorIQ)
- Build metadata generation
Expected output:
> openclaw@2026.1.30 build
> pnpm canvas:a2ui:bundle && tsc -p tsconfig.json ...
A2UI bundle up to date; skipping.
[copy-hook-metadata] Copied boot-md/HOOK.md
[copy-hook-metadata] DoneBuild artifacts:
dist/- Compiled JavaScriptextensions/armoriq/dist/- ArmorIQ plugin build
Verify Installation
Check that everything is built correctly:
# Verify dist directory
ls -la dist/
# Should see: index.js, gateway/, plugins/, etc.
# Verify ArmorIQ extension
ls -la extensions/armoriq/
# Should see: index.ts, src/, openclaw.plugin.json
# Check Node version
node --version
# Should show: v20.x.x or higher
# Type check (should pass with no errors)
pnpm tsc --noEmitVerify Node.js Version
OpenClaw requires Node.js v20 or higher:
node --versionIf you have an older version, upgrade:
# Install nvm if not installed
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install Node 20
nvm install 20
nvm use 20curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsbrew install node@20
brew link node@20Troubleshooting
pnpm: command not found
Install pnpm globally:
npm install -g pnpmBuild fails with TypeScript errors
Clean and rebuild:
rm -rf dist/ node_modules/
pnpm install
pnpm build@armoriq/sdk not found
Ensure the SDK is installed:
npm install @armoriq/sdk
npm list @armoriq/sdkPermission denied errors
Fix file ownership (don't use sudo):
sudo chown -R $USER:$USER ~/.npm
sudo chown -R $USER:$USER .Out of memory during build
Increase Node memory limit:
export NODE_OPTIONS="--max-old-space-size=4096"
pnpm buildVerification Checklist
Before proceeding to configuration, ensure:
- Repository cloned successfully
- pnpm installed and version ≥ 8.0
-
pnpm installcompleted without errors -
@armoriq/sdkinstalled via npm -
pnpm buildcompleted successfully -
dist/directory exists with compiled code - Node.js version ≥ 20 (
node --version) - TypeScript check passes (
pnpm tsc --noEmit)
What's Installed?
After installation, your directory structure looks like:
aiq-openclaw/
├── dist/ # Compiled JavaScript
│ ├── gateway/ # Gateway components
│ ├── plugins/ # Plugin system
│ └── logging/ # Logging subsystems
├── extensions/
│ └── armoriq/ # ArmorIQ plugin
│ ├── index.ts # Plugin entry point
│ ├── src/ # Plugin source
│ └── openclaw.plugin.json # Plugin metadata
├── node_modules/ # Dependencies
│ └── @armoriq/
│ └── sdk/ # ArmorIQ SDK
├── src/ # OpenClaw source
├── scripts/ # Build and run scripts
└── package.json # Project manifestNext Steps
✅ Installation complete!
Proceed to Configuration to set up your API keys and connect services.