BlockRun
Integrations / GOAT SDK

Combine GOAT SDK on-chain tools with BlockRun models in TypeScript

Use GOAT SDK for cross-chain execution and the @blockrun/llm client for reasoning: every model in the catalog from one client, no provider keys, priced per call.

How it works

GOAT SDK gives an agent typed on-chain tools across chains. The BlockRun TypeScript client sits beside it as the model layer: it creates or adopts a wallet, signs x402 payments per request and returns typed results, so one agent both acts on-chain and pays for its own inference from one balance.

There is no official GOAT plugin for BlockRun yet; the pairing is the two packages used side by side, with the LLM client called from the agent loop. When the plugin ships it will replace the glue, not the wallet.

Behind it is the BlockRun catalog: 78 chat models plus image, video, music and speech generation, search, market data and multi-chain RPC, priced per call. 6 open-weight models are free and need no wallet.

Setup

1. Install

npm install @goat-sdk/core @blockrun/llm

2. Side by side

import { getOnChainTools } from '@goat-sdk/adapter-vercel-ai';
import { LLMClient } from '@blockrun/llm';
const llm = new LLMClient();

Questions

Is there a GOAT plugin?
Not yet. The docs show the two SDKs used together; that is the supported path today.
Which wallet pays for models?
The one the BlockRun client creates or the key you pass it — it can be the same key GOAT uses.

Two ways to run this

Get an API key

Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.

Get an API key 

Or let your agent pay per call, in USDC

No account, no API key. Three steps, and the last one is the request this page is about.

  1. 01
    Point your agent at BlockRun

    Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.

    curl -fsSL https://blockrun.ai/ClawRouter-update | bash
  2. 02
    Fund a wallet with USDC

    Send USDC to a wallet on Base or Solana. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.

  3. 03
    Use BlockRun from GOAT SDK

    The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.

    npm install @goat-sdk/core @blockrun/llm