Skip to main content
The @agether/agether plugin exposes all of Agether’s functionality as natural language tools for AI agents running on OpenClaw. Instead of writing code, your agent can say:
“Deposit 0.1 WETH and borrow $100 USDC”
…and the plugin handles everything: market discovery, batch transaction construction, and onchain execution.

Prerequisites

  • OpenClaw installed (npm i -g openclaw)
  • A Telegram bot (or any other OpenClaw channel)
  • A wallet private key with ETH on Base (chain ID 8453) for gas

Installation

openclaw plugins install @agether/agether

Quick Start

1

Install the plugin

openclaw plugins install @agether/agether
2

Add config to openclaw.json

Edit ~/.openclaw/openclaw.json:
{
  "plugins": {
    "entries": {
      "agether": {
        "enabled": true,
        "config": {
          "privateKey": "0xYourWalletPrivateKey",
          "rpcUrl": "https://base-rpc.publicnode.com",
          "backendUrl": "http://95.179.189.214:3001",
          "autoDraw": false
        }
      }
    }
  }
}
3

Restart the gateway

openclaw gateway --force
4

Verify installation

openclaw plugins list
You should see Agether Credit with status loaded.
5

Start using it

Open Telegram and message your bot:
“What is my balance?” “Register me as an agent on Agether” “Deposit 0.05 WETH and borrow $50 USDC”

How It Works

The plugin translates natural language into typed tool calls. Each tool call maps to a specific SDK operation:
User: "Borrow $100 USDC using my WETH"


OpenClaw AI interprets → morpho_deposit_and_borrow tool


@agether/sdk → MorphoClient.depositAndBorrow('WETH', autoAmount, '100')


Safe7579 executeBatch([
  WETH.transferFrom, WETH.approve, Morpho.supplyCollateral, Morpho.borrow
])


Single transaction on Base → Reply with TX hash + new balances

Tools Overview

The plugin registers 24 tools across five categories:

Identity & Account

Balance checks, agent registration, and agentId management.

Morpho Lending

Deposit, borrow, repay, withdraw, supply, market discovery.

Scoring & Payments

Credit scores, wallet funding, and x402 paid API calls.

KYA & Wallet

KYA status/configuration and token/ETH withdrawals from Safe account.

Health & Diagnostics

Comprehensive health checks and preflight diagnostics.
See Plugin Tools for the full reference.

Slash Commands

Quick commands that work without AI processing:
CommandDescription
/balanceInstantly show ETH and USDC balances (EOA + Safe account)
/morphoInstantly show all Morpho positions
/healthComprehensive health check (balances + positions + risk)
/ratesCurrent supply/borrow APY for all markets

Error Handling

The plugin translates Solidity revert codes into human-readable messages:
Revert CodeMessage
0xda04aeccExceedsMaxLtv — collateral too low for this borrow amount
0xfeca99cbExecutionFailed — inner contract call reverted
0xa920ef9fPositionNotActive — no collateral deposited
Never share your privateKey. It’s marked as sensitive in the plugin manifest but remains in your local openclaw.json. Ensure the file has restricted permissions (chmod 600 ~/.openclaw/openclaw.json).

AgentId Persistence

When your agent registers, the plugin automatically saves the agentId to ~/.openclaw/openclaw.json. This ensures the agent ID survives gateway restarts. You can also set it manually with the agether_set_agent tool.