Installation

Get started with ClawLayer SDK to enhance your OpenClaw AI agents with enterprise-ready features.

Prerequisites

Before installing ClawLayer, ensure you have:

  • Node.js (v20.x or higher)

  • npm, yarn, or pnpm (package manager)

  • OpenClaw installed in your project

Verify Prerequisites

node --version  # Should be v20.x or higher
npm --version   # Should be 9.x or higher

Installation Methods

Option 1: npm

npm install @clawlayer/sdk openclaw

Option 2: yarn

yarn add @clawlayer/sdk openclaw

Option 3: pnpm

Required Dependencies

ClawLayer integrates seamlessly with OpenClaw. Ensure you have both installed:

Environment Configuration

Create a .env file in your project root with the required API keys:

Optional: Self-Hosted Setup

If you prefer to self-host ClawLayer's infrastructure:

1. Clone the Repository

2. Install Dependencies

3. Configure Environment

4. Start Services

Verify Installation

Create a simple test file to verify your installation:

Run it:

Expected output:

TypeScript Configuration

If using TypeScript, add these compiler options to your tsconfig.json:

Package Exports

ClawLayer SDK exports the following modules:

Next Steps

Now that ClawLayer is installed, proceed to the Quickstart guide to build your first enhanced OpenClaw agent!

Troubleshooting

Installation Issues

Error: Cannot find module '@clawlayer/sdk'

Make sure you've installed the package:

Error: Peer dependency openclaw not found

Install OpenClaw alongside ClawLayer:

TypeScript errors

Ensure your TypeScript version is 5.0 or higher:

Platform-Specific Issues

macOS M1/M2 Users

Some native dependencies may require Rosetta:

Windows Users

Ensure you have Visual Studio Build Tools installed for native dependencies:

Need Help?

Last updated