Skip to main content
The Agether plugin is configured via ~/.openclaw/openclaw.json. All options are in the plugins.entries.agether.config block.

Full Configuration Reference

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

Options

OptionTypeRequiredDefaultDescription
privateKeystring✅ YesWallet private key for signing transactions. Marked as sensitive — never logged.
agentIdstringNoERC-8004 agent ID. Set automatically after agether_register.
rpcUrlstringNohttps://base-rpc.publicnode.comBase RPC endpoint.
backendUrlstringNohttp://95.179.189.214:3001Agether backend API URL.
autoDrawbooleanNofalseAuto-borrow from Morpho when USDC is insufficient for x402 payments.

Applying Configuration Changes

After editing openclaw.json, restart the gateway to apply changes:
openclaw gateway --force

Verifying the Plugin

openclaw plugins list
Expected output:
Agether Credit    @agether/agether    loaded    ✅
If status is error, check the OpenClaw logs:
openclaw gateway logs

Private Key Security

The privateKey field is marked as sensitive in the plugin manifest — it won’t appear in logs or UI displays. However, it’s stored in plain text in ~/.openclaw/openclaw.json.Protect it:
chmod 600 ~/.openclaw/openclaw.json
Never commit openclaw.json to source control.

Getting Collateral on Base

Before borrowing, you need collateral tokens on Base:
Bridge ETH from Ethereum via Base Bridge, or buy directly on any exchange that supports Base withdrawals.Wrap ETH to WETH on Uniswap (Base):
  • Token in: ETH
  • Token out: WETH (0x4200000000000000000000000000000000000006)
Swap on Uniswap (Base) using ETH or WETH, or bridge from Ethereum via the Lido bridge.
  • Contract: 0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452
Available on Coinbase directly or on Uniswap (Base).
  • Contract: 0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22

Custom RPC Endpoints

For better reliability, use a private RPC endpoint instead of the public default:
ProviderURL
Base publichttps://base-rpc.publicnode.com
Alchemyhttps://base-mainnet.g.alchemy.com/v2/YOUR_KEY
QuickNodehttps://YOUR_ENDPOINT.quiknode.pro/YOUR_KEY/
Infurahttps://base-mainnet.infura.io/v3/YOUR_KEY
{
  "config": {
    "privateKey": "0x...",
    "rpcUrl": "https://base-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_KEY"
  }
}

auto-Draw Configuration

When autoDraw: true, the plugin will automatically borrow USDC from Morpho Blue when the Safe account has insufficient balance for an x402 payment.
Auto-draw requires collateral to be deposited in Morpho Blue. Without collateral, the borrow will fail and the x402 payment will be rejected.
To set a spending limit alongside auto-draw, configure the X402Client directly in your code:
import { X402Client } from '@agether/sdk';

const x402 = new X402Client({
  privateKey: process.env.AGENT_PRIVATE_KEY!,
  rpcUrl: 'https://base-rpc.publicnode.com',
  backendUrl: 'http://95.179.189.214:3001',
  autoDraw: true,
  dailySpendLimitUsdc: '10',  // $10/day cap
  autoYield: false,             // Try withdrawing yield before borrowing
});

Uninstalling

openclaw plugins remove @agether/agether
openclaw gateway --force