# OpenClaw Framework

> The AI agent execution framework powering Haven.

***

## What is OpenClaw?

OpenClaw is the AI agent framework that Haven is built on. It provides the infrastructure for tool-calling, multi-step reasoning, and cross-chain execution that makes autonomous yield management possible.

Developers can use OpenClaw to build their own AI-powered DeFi applications, leveraging Haven's yield and risk infrastructure as a skill layer via [HavenSkill](/haven-ai-docs/core-products/havenskill.md).

{% hint style="info" %}
Haven is an official OpenClaw integration partner. HavenSkill is available in the OpenClaw skill registry and is maintained by the Haven team.
{% endhint %}

***

## OpenClaw + Haven Architecture

```
User Intent (Natural Language)
          ↓
OpenClaw Agent (reasoning + planning)
          ↓  calls skills
    ├── HavenSkill.query_yield_paths()
    ├── HavenSkill.score_protocol()
    └── HavenSkill.execute_strategy()
          ↓
HavenClaw Execution Engine
          ↓
On-chain smart contract execution
```

***

## Why OpenClaw?

| Capability           | Description                                                              |
| -------------------- | ------------------------------------------------------------------------ |
| Tool-calling         | Agents can call external APIs and on-chain functions as structured tools |
| Multi-step reasoning | Complex strategies broken into sequential, verifiable steps              |
| State awareness      | Agent maintains context across multi-turn interactions                   |
| Composable skills    | Modular skill registry — add Haven, remove Haven, combine with others    |
| Cross-chain support  | Native awareness of multi-chain execution environments                   |

***

## Building on OpenClaw + Haven

Any developer can build AI-native DeFi applications using OpenClaw as the agent layer and HavenSkill as the yield/risk data source.

**Use cases:**

* Autonomous treasury management for DAOs
* Yield-optimizing trading bots
* AI-driven portfolio rebalancers
* Risk-aware lending automation

→ See [HavenSkill](/haven-ai-docs/core-products/havenskill.md) for installation and usage\
→ See [API Reference](/haven-ai-docs/integration/api.md) for direct REST API access

***

## Related

* [HavenSkill — OpenClaw skill module](/haven-ai-docs/core-products/havenskill.md)
* [API Reference](/haven-ai-docs/integration/api.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://haven-11.gitbook.io/haven-ai-docs/integration/openclaw.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
