goat

goat

The open-source framework for connecting AI agents to any onchain app

Stars: 182

Visit
 screenshot

GOAT (Great Onchain Agent Toolkit) is an open-source framework designed to simplify the process of making AI agents perform onchain actions by providing a provider-agnostic solution that abstracts away the complexities of interacting with blockchain tools such as wallets, token trading, and smart contracts. It offers a catalog of ready-made blockchain actions for agent developers and allows dApp/smart contract developers to develop plugins for easy access by agents. With compatibility across popular agent frameworks, support for multiple blockchains and wallet providers, and customizable onchain functionalities, GOAT aims to streamline the integration of blockchain capabilities into AI agents.

README:

Go out and eat some grass.

Docs | Examples | Discord

GOAT is free software, MIT licensed, sponsored by Crossmint

Goat 🐐

GOAT 🐐 (Great Onchain Agent Toolkit) is an open-source framework for adding blockchain tools such as wallets, being able to hold or trade tokens, or interacting with blockchain smart contracts, to your AI agent.

Problem:

Making agents perform onchain actions is tedious. The ecosystem is heavily fragmented, spanning 5+ popular agent development frameworks, multiple programming languages, and dozens of different blockchains and wallet architectures. For developers without blockchain expertise, finding clear instructions to perform simple actions - like sending USDC payments or placing Polymarket bets - is nearly impossible.

Solution:

GOAT solves this by providing an open-source, provider-agnostic framework that abstracts away all these combinations.

  • For agent developers: GOAT offers an always-growing catalog of ready made blockchain actions (sending tokens, using a DeFi protocol, ...) that can be imported as tools into your existing agent. It works with the most popular agent frameworks (Langchain, Vercel's AI SDK, Eliza, etc), Typescript and Python, 30+ blockchains (Solana, Base, Polygon, Mode, ...), and many wallet providers.

  • For dApp / smart contract developers: develop a plug-in in GOAT, and allow agents built with any of the most popular agent develoment frameworks to access your service.

Key features

  1. Works Everywhere: Compatible with Langchain, Vercel’s AI SDK, Eliza, and more.
  2. Wallet Agnostic: Supports all wallets, from your own key pairs to Crossmint Smart Wallets and Coinbase.
  3. Multi-Chain: Supports EVM chains and Solana (more coming 👀).
  4. Customizable: Use or build plugins for any onchain functionality (sending tokens, checking wallet balance, etc) and protocol (Polymarket, Uniswap, etc).

goat

How it works

GOAT plugs into your agents tool calling capabilities adding all the functions your agent needs to interact with the blockchain.

High-level, here's how it works:

Configure the wallet you want to use

// ... Code to connect your wallet (e.g createWalletClient from viem)
const wallet = ...

const tools = getOnChainTools({
  wallet: viem(wallet),
})

Add the plugins you need to interact with the protocols you want

const wallet = ...

const tools = getOnChainTools({
  wallet: viem(wallet),
  plugins: [
    sendETH(),
    erc20({ tokens: [USDC, PEPE] }),
    faucet(),
    polymarket(),
    // ...
  ],
})

Connect it to your agent framework of choice

// ... Code to connect your wallet (e.g createWalletClient from viem)
const wallet = ...

const tools = getOnChainTools({
  wallet: viem(wallet),
  plugins: [ 
    sendETH(),
    erc20({ tokens: [USDC, PEPE] }), 
    faucet(), 
    polymarket(), 
    // ...
  ],
})

// Vercel's AI SDK
const result = await generateText({
    model: openai("gpt-4o-mini"),
    tools: tools,
    maxSteps: 5,
    prompt: "Send 420 ETH to ohmygoat.eth",
});

See here for more examples.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for goat

Similar Open Source Tools

For similar tasks

For similar jobs