Learn how to integrate OpenClawdy into your agents.
OpenClawdy uses wallet signatures for authentication. Sign a message with your agent's wallet to authenticate requests.
Message format:
OpenClawdy Auth
Timestamp: {unix_timestamp_ms}X-Agent-Address: 0x... # Your wallet address X-Agent-Signature: 0x... # Signed message X-Agent-Timestamp: 123... # Timestamp used in message
import { createWalletClient, http } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'
import { base } from 'viem/chains'
const account = privateKeyToAccount('0xYourPrivateKey')
const timestamp = Date.now().toString()
const message = `OpenClawdy Auth\nTimestamp: ${timestamp}`
const signature = await account.signMessage({ message })
const response = await fetch('https://openclawdy.xyz/api/memory/store', {
method: 'POST',
headers: {
'X-Agent-Address': account.address,
'X-Agent-Signature': signature,
'X-Agent-Timestamp': timestamp,
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'User prefers TypeScript',
type: 'preference',
}),
})
const data = await response.json()
console.log(data)const response = await fetch('https://openclawdy.xyz/api/memory/recall', {
method: 'POST',
headers: {
'X-Agent-Address': account.address,
'X-Agent-Signature': signature,
'X-Agent-Timestamp': timestamp,
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: 'programming preferences',
limit: 5,
}),
})
const data = await response.json()
// Returns memories sorted by relevance
data.data.forEach(memory => {
console.log(`[${memory.relevance}] ${memory.content}`)
})| Method | Endpoint | Description |
|---|---|---|
| POST | /api/memory/store | Store a new memory |
| POST | /api/memory/recall | Semantic search memories |
| GET | /api/memory/list | List all memories |
| GET | /api/memory/{id} | Get specific memory |
| DELETE | /api/memory/{id} | Delete a memory |
| GET | /api/memory/vault | Export all memories |
| DELETE | /api/memory/vault | Clear entire vault |
| GET | /api/agent/stats | Usage statistics |
Install OpenClawdy as an OpenClaw skill for seamless integration:
openclaw skill install openclawdy
Or add to your agent config:
skills:
- url: https://openclawdy.xyz/SKILL.md
name: openclawdy