---
title: "Solana Agent Kit vs GOAT vs ElizaOS：該選哪個框架？"
description: "比較 Solana Agent Kit、GOAT 與 ElizaOS：Solana 原生深度、多鏈廣度，或完整的 agent runtime。附程式碼範例與選擇依據。"
---

# Solana Agent Kit vs GOAT vs ElizaOS：該選哪個框架？

<ImageBlock
  src="https://media.alchemy.com/1769377861-how-to-build-solana-ai-agents.png"
  alt="Solana 代理框架比較用的 AI 代理插畫頭像"
  width={5760}
  height={2700}
  priority
/>

每一份 Solana AI agent 指南都會提到三個框架：Solana Agent Kit、GOAT，以及 ElizaOS。三者都是開源的，都圍繞外掛系統打造，也都承諾能讓你的 agent 轉移代幣。選錯框架，就會在第三週把地基整個拆掉重來，因為才發現它根本不適合你要做的東西。

本指南會拆解這三個框架各自是什麼、誰在用它出貨正式產品、各自的不足之處，以及該如何選擇。框架決定你的 agent 能做什麼，基礎設施決定它在正式環境中能不能跑得動。如果你已經選好框架，想看完整的建置流程，可以參考[分步 Solana AI agent 建置指南](https://www.alchemy.com/blog/how-to-build-solana-ai-agents-in-2026)，裡面涵蓋錢包設定、RPC 整合，以及完整的 [Jupiter](https://www.alchemy.com/dapps/jupiter) swap 流程。

## 什麼是 Solana Agent Kit？

[Solana Agent Kit by SendAI](https://github.com/sendaifun/solana-agent-kit) 是一個開源的 TypeScript 工具套件，讓任何 LLM agent 都能直接存取 Solana 協議。[專案首頁](https://kit.sendai.fun/)的說法很直接：「任何 agent、使用任何模型，都能自主執行 60 種以上的 Solana 操作。」它採用 Apache-2.0 授權，是 Solana 原生 agent 事實上的參考實作。正式使用者包括 SEND [Arcade](https://www.alchemy.com/dapps/arcade) 的鏈上遊戲（透過 Blinks 外掛）、[3land NFT 鑄造流程](https://www.npmjs.com/package/@3land/minting)，以及 SendAI 自家的 [Solana MCP server](https://github.com/sendaifun/solana-mcp)，將這套工具的操作能力暴露給 Claude Desktop 和 Cursor 使用。

從架構上看,它是一個工具函式庫，而不是 agent runtime。核心 `SolanaAgentKit` 類別包裝了一個錢包和一個 [RPC](https://www.alchemy.com/rpc-api) 連線，你可以呼叫 `.use(...)` 來註冊外掛。這個套件內建五個官方外掛，涵蓋代幣、NFT、DeFi、雜項資料，以及 Solana Blinks。agent 迴圈要自己準備，通常是透過內建的轉接器輔助函式，搭配 [LangChain、LangGraph 或 Vercel AI SDK](https://github.com/sendaifun/solana-agent-kit)。

<CodeSnippet
  language="typescript"
  code={`const agent = new SolanaAgentKit(wallet, "YOUR_RPC_URL", {
  OPENAI_API_KEY: "YOUR_OPENAI_API_KEY"
})
.use(TokenPlugin)
.use(NFTPlugin)
.use(DefiPlugin)
.use(MiscPlugin)
.use(BlinksPlugin);`}
/>

它的優勢在於對 Solana 的深度支援。開箱即用就能操作正式 Solana agent 最終都會用到的協議：DEX 與聚合器（Jupiter、Raydium、Orca、Meteora DLMM）、價格資訊源（Pyth、Switchboard）、MEV 防護（Jito Bundles）、永續合約（Drift）、[迷因幣發行](https://pump.fun)（Pump）、流動性質押（Marinade、Sanctum）、跨鏈橋（Wormhole、[deBridge](https://www.alchemy.com/dapps/debridge)）、ZK 壓縮（[Light Protocol](https://www.alchemy.com/dapps/light-protocol)）。[v2 版本說明](https://github.com/sendaifun/solana-agent-kit/releases)顯示這份目錄在 2025 年持續擴張，並透過 Turnkey、Privy 和 Phantom 加入嵌入式錢包支援。

`@solana-agent-kit/plugin-misc` 內建兩家供應商作為一級外掛：Helius 和 Alchemy。兩者都將 Solana RPC、優先費、webhook 和精選資料讀取暴露為原生 agent 操作，可以從任何 agent 迴圈直接呼叫，中間不需要額外的膠水程式碼。兩者的差異在於涵蓋範圍：Helius 只支援 Solana；而我們在 Solana 之外還支援 EVM 鏈（Ethereum、Base、Arbitrum、Polygon 等）。如果你的 agent 會呼叫 EVM 合約，或是需要追蹤使用者在不同生態系間的足跡，這一點就很重要。

它的不足之處：在框架層面僅限 Solana。沒有原生的 EVM agent 介面，也沒有一級的 Eclipse 或其他 SVM 支援，更沒有內建的 agent runtime、記憶功能或社群平台客戶端。Python 移植版（`solana-agent-kit-py`）沒有正式發布版本，所有外掛功能都落後於 TypeScript 版本。標記版本的釋出節奏也不穩定：[GitHub 上最新的標記版本](https://github.com/sendaifun/solana-agent-kit/releases)是 2025 年 7 月 24 日發布的 v2.0.9，不過 `v2` 分支持續在合併實質性的貢獻。

適合的情況：只做 Solana，想要內建一級的 Helius 或 Alchemy 基礎設施，且自己掌控 agent 迴圈。

## 什麼是 GOAT？

[GOAT SDK by Crossmint](https://github.com/goat-sdk/goat)（Great Onchain Agent Toolkit 的縮寫）是一個框架無關、支援多鏈的 agent SDK。[最初的發布公告](https://www.crossmint.com/announcement/introducing-goat-great-onchain-agent-toolkit)是這樣描述的：「一個單一、統一的鏈上操作函式庫，可用於 5 種 agent 框架、兩種程式語言、任何錢包架構，橫跨 30 多條鏈。」採用 MIT 授權。

其架構是一個乾淨的三軸矩陣：框架轉接器 × 錢包 × 外掛。你帶入一個錢包（viem、Solana [web3.js](https://www.alchemy.com/dapps/web3-js)、[Crossmint](https://www.alchemy.com/dapps/crossmint) 智慧錢包、Lit、Safe 等），用對應的 `@goat-sdk/wallet-*` 套件包裝它，掛上外掛，再把結果傳給你所用框架的工具介面。同一個外掛可以在底層鏈支援的任何錢包上運作。

<CodeSnippet
  language="typescript"
  code={`import { getOnChainTools } from "@goat-sdk/adapter-vercel-ai";
import { viem } from "@goat-sdk/wallet-viem";

const tools = await getOnChainTools({
wallet: viem(walletClient),
plugins: [],
});`}
/>

錢包套件涵蓋 EVM、Solana、Aptos、Chromia、Cosmos、Fuel、Lit、Radix、Safe、Starknet、Sui、Zilliqa、MultiversX，還有 EVM 和 Solana 版本的 Crossmint 智慧錢包。外掛涵蓋 DEX swap（Uniswap、Jupiter、0x、Orca、[Balancer](https://www.alchemy.com/dapps/balancer)）、借貸（Aave、[Lulo](https://www.alchemy.com/dapps/lulo)、Renzo）、預測市場（Polymarket）、跨鏈橋（deBridge、Mayan）、NFT（OpenSea、[Magic Eden](https://www.alchemy.com/dapps/magic-eden)、Tensor）、資料（CoinGecko、Dexscreener、BirdEye、Nansen、Allora），以及透過 Crossmint 的商務通路。ElizaOS 官方將 GOAT 視為透過 [ElizaOS GOAT 外掛](https://www.npmjs.com/package/@elizaos/plugin-goat)為角色新增鏈上能力的標準做法，[LangChain 的工具文件](https://docs.langchain.com/oss/javascript/integrations/tools/goat)也將它列為一級整合。

開發進度已經停滯。[GOAT 儲存庫](https://github.com/goat-sdk/goat)的 `main` 分支自 2025 年 8 月 19 日後就沒有更新過，[npm](https://www.npmjs.com/package/@goat-sdk/core) 上最新的 `@goat-sdk/core` 版本是 2025 年 5 月 13 日發布的 0.5.0。Solana 方面的支援也比 Solana Agent Kit 淺：GOAT 提供 Jupiter、Orca、Tensor 和 Magic Eden，但跳過了許多 Solana 原生協議（Pump 迷因幣發行、Meteora DLMM、Drift 永續合約、Marinade、Sanctum、Light Protocol）。

適合的情況：正在打造多鏈（特別是 EVM 加 Solana）應用，並且重視乾淨的錢包與外掛抽象，勝過對 Solana 的原生深度支援。若選擇這條路，要有維護分叉版本的心理準備。

## 什麼是 ElizaOS？

[ElizaOS by Eliza Labs](https://github.com/elizaOS/eliza) 屬於不同類別的工具。Solana Agent Kit 和 GOAT 是你匯入自己 agent 程式碼中的 SDK。ElizaOS 則是一套完整的 agent runtime：它掌管訊息迴圈、記憶、模型路由、社群平台客戶端整合，以及多 agent 協調。你只需要提供角色檔案，其他一切都由它處理。

這個專案於 2024 年 10 月由 Shaw Walters 以 ai16z 之名推出，[2025 年 1 月底更名為 elizaOS](https://www.theblock.co/post/337614/ai-agent-platform-ai16z-officially-rebrands-to-elizaos)，並轉移到 Eliza Labs 旗下。截至 2026 年 5 月，它在 GitHub 上已有 18,400 多顆星，採用 MIT 授權，且 [v2 GA 已於 2026 年 5 月發布](https://github.com/elizaOS/eliza/releases)（最新版本 v2.0.3，發布週期間 36 小時內連續推出三個標記版本）。ElizaOS 是這三個框架中維護最活躍的一個。

Agent 由角色檔案（JSON 或 TypeScript）定義，宣告個性、外掛和模型設定。以下是[ElizaOS 角色介面文件](https://docs.elizaos.ai/agents/character-interface)中的一個最小範例：

<CodeSnippet
  language="typescript"
  code={`import { Character } from '@elizaos/core';

export const character: Character = {
  name: 'Eliza',
  bio: ["An advanced AI assistant powered by elizaOS"],
  plugins: [
    '@elizaos/plugin-sql',
    '@elizaos/plugin-bootstrap',
    ...(process.env.OPENAI_API_KEY ? ['@elizaos/plugin-openai'] : []),
    ...(process.env.DISCORD_API_TOKEN ? ['@elizaos/plugin-discord'] : []),
  ],
  settings: { model: 'gpt-4', temperature: 0.7 }
};`}
/>

這個 runtime 與模型無關（支援 OpenAI、Anthropic、Gemini、Llama、Grok、本地模型），並內建 Discord、X/Twitter、Telegram、Farcaster、Slack、WhatsApp 和 Bluesky 的官方客戶端。RAG 與持久性記憶都是內建功能。區塊鏈支援則透過外掛實現：`@elizaos/plugin-solana` 直接涵蓋 Solana 代幣操作，而 [`@elizaos/plugin-goat`](https://github.com/elizaos-plugins/plugin-goat) 和 `plugin-solana-agent-kit` 讓 Eliza 角色可以借用 GOAT 的多鏈廣度或 Solana Agent Kit 的 Solana 深度，而不需要重寫 runtime。

它的不足之處：ElizaOS 的建置成本比把 SDK 直接放進現有 agent 程式碼要高。它以 TypeScript 為主，沒有一級的 Python 或 Rust 路徑。而且因為鏈的支援是透過外掛而非核心實現的，原始的 Solana 操作在 Solana Agent Kit 中會更直接。

適合的情況：你想要一個開箱即用、具備人格設定、記憶功能和社群平台客戶端的可部署自主 agent。

## 這些框架如何比較？

<EmbeddedTable
  table={{
    columns: [
      { key: "dimension", width: 180, title: "Dimension", dataType: "object" },
      {
        key: "solanaAgentKit",
        width: 250,
        title: "Solana Agent Kit",
        dataType: "object",
      },
      { key: "goat", width: 250, title: "GOAT", dataType: "object" },
      { key: "elizaos", width: 250, title: "ElizaOS", dataType: "object" },
    ],
    data: [
      {
        dimension: { title: "Best for", tooltip: "", icon: "" },
        solanaAgentKit: {
          title: "Solana-native agents with deep DeFi coverage",
          tooltip: "",
          icon: "",
        },
        goat: {
          title: "Multi-chain agents spanning EVM and Solana",
          tooltip: "",
          icon: "",
        },
        elizaos: {
          title: "Autonomous agents with persona and social clients",
          tooltip: "",
          icon: "",
        },
        id: 0,
      },
      {
        dimension: { title: "Type", tooltip: "", icon: "" },
        solanaAgentKit: { title: "SDK (tool library)", tooltip: "", icon: "" },
        goat: { title: "SDK (tool library)", tooltip: "", icon: "" },
        elizaos: { title: "Full agent runtime", tooltip: "", icon: "" },
        id: 1,
      },
      {
        dimension: { title: "Chains", tooltip: "", icon: "" },
        solanaAgentKit: { title: "Solana only", tooltip: "", icon: "" },
        goat: {
          title: "EVM, Solana, Aptos, Sui, Starknet, Cosmos, 9+ more",
          tooltip: "",
          icon: "",
        },
        elizaos: {
          title: "Any (via plugins, including the other two)",
          tooltip: "",
          icon: "",
        },
        id: 2,
      },
      {
        dimension: { title: "Languages", tooltip: "", icon: "" },
        solanaAgentKit: {
          title: "TypeScript (Python lags)",
          tooltip: "",
          icon: "",
        },
        goat: { title: "TypeScript and Python", tooltip: "", icon: "" },
        elizaos: { title: "TypeScript", tooltip: "", icon: "" },
        id: 3,
      },
      {
        dimension: { title: "Agent loop", tooltip: "", icon: "" },
        solanaAgentKit: { title: "Bring your own", tooltip: "", icon: "" },
        goat: { title: "Bring your own", tooltip: "", icon: "" },
        elizaos: { title: "Built in", tooltip: "", icon: "" },
        id: 4,
      },
      {
        dimension: { title: "Runtime extras", tooltip: "", icon: "" },
        solanaAgentKit: { title: "None", tooltip: "", icon: "" },
        goat: { title: "None", tooltip: "", icon: "" },
        elizaos: {
          title:
            "Memory, RAG, Discord/X/Telegram/Farcaster/Slack/WhatsApp, multi-agent",
          tooltip: "",
          icon: "",
        },
        id: 5,
      },
      {
        dimension: { title: "First-class RPC + infra", tooltip: "", icon: "" },
        solanaAgentKit: {
          title: "Helius and Alchemy",
          tooltip: "",
          icon: "",
        },
        goat: { title: "None native", tooltip: "", icon: "" },
        elizaos: { title: "Via Solana plugins", tooltip: "", icon: "" },
        id: 6,
      },
    ],
  }}
/>

## 該如何選擇？

下面這張決策表把常見的建置需求對應到各框架。

<EmbeddedTable
  table={{
    columns: [
      {
        key: "buildProfile",
        width: 300,
        title: "If you are building...",
        dataType: "object",
      },
      { key: "pick", width: 220, title: "Pick", dataType: "object" },
      { key: "why", width: 360, title: "Why", dataType: "object" },
    ],
    data: [
      {
        buildProfile: {
          title: "Solana-only agent with deep DeFi coverage",
          tooltip: "",
          icon: "",
        },
        pick: { title: "Solana Agent Kit", tooltip: "", icon: "" },
        why: {
          title:
            "Jupiter, Raydium, Drift, Pump, Marinade, Meteora and more ship as native actions; Helius and Alchemy are now first-class plugins",
          tooltip: "",
          icon: "",
        },
        id: 0,
      },
      {
        buildProfile: {
          title: "Multi-chain agent across EVM and Solana",
          tooltip: "",
          icon: "",
        },
        pick: { title: "GOAT", tooltip: "", icon: "" },
        why: {
          title:
            "One wallet abstraction, plugins per chain, the cleanest multi-chain shape on the market",
          tooltip: "",
          icon: "",
        },
        id: 1,
      },
      {
        buildProfile: {
          title: "Autonomous agent with persona and social clients",
          tooltip: "",
          icon: "",
        },
        pick: { title: "ElizaOS", tooltip: "", icon: "" },
        why: {
          title:
            "Brings the runtime, character files, memory, and Discord/X/Telegram out of the box",
          tooltip: "",
          icon: "",
        },
        id: 2,
      },
      {
        buildProfile: {
          title:
            "An agent on top of LangChain or Vercel AI SDK you already wrote",
          tooltip: "",
          icon: "",
        },
        pick: { title: "Solana Agent Kit or GOAT", tooltip: "", icon: "" },
        why: {
          title:
            "Drop the SDK into your existing code; the adapters do the rest",
          tooltip: "",
          icon: "",
        },
        id: 3,
      },
      {
        buildProfile: {
          title: "Most active maintenance",
          tooltip: "",
          icon: "",
        },
        pick: { title: "ElizaOS", tooltip: "", icon: "" },
        why: {
          title:
            "The only one currently shipping new tagged releases as of May 2026 (v2 GA in May)",
          tooltip: "",
          icon: "",
        },
        id: 4,
      },
    ],
  }}
/>

除了這張決策表以外，還有三個細節值得留意。

這些框架可以互相組合。ElizaOS 可以把 Solana Agent Kit（`@elizaos/plugin-solana-agent-kit`）或 GOAT（`@elizaos/plugin-goat`）掛載為外掛，所以現在選定的 SDK 並不會讓你之後無法使用某個 runtime。先從符合你鏈範圍需求的選項開始，等真正需要 runtime 時再疊加上去。

維護的活躍程度並不平均。ElizaOS 於 2026 年 5 月發布了 v2 GA（最新版本 v2.0.3，發布週間 36 小時內推出三個修補版本）。Solana Agent Kit 標記的最新版本是 2025 年 7 月的 v2.0.9，但 `v2` 分支仍持續合併實質性的貢獻。GOAT 自 2025 年 8 月起就沒有任何提交紀錄。

星數只是一個參考指標，不代表品質高低。ElizaOS 有 18,400 多顆星，是因為它是完整的 runtime、受眾範圍更廣。Solana Agent Kit 和 GOAT 本來就是為較窄的受眾設計，並不代表品質較低。

## 底層的基礎設施是什麼？

這三個框架都透過 RPC 供應商傳送交易，而這個供應商決定你的 agent 能不能快速上線、穩定運行。讀取操作需要深度歷史資料和 gRPC 串流；寫入操作需要快速、可靠的交易上鏈。當你的 agent 需要在正式環境中連續運行數小時，多區域覆蓋就變得很重要。

如果你使用 Solana Agent Kit，我們就不只是底層的基礎設施供應商。我們作為 `@solana-agent-kit/plugin-misc` 中的一級外掛，把 Solana RPC、優先費估算、代幣價格（依 symbol、依地址、歷史資料）、多鏈投資組合讀取、Notify webhook，以及一個端點輔助工具，全都暴露為原生 agent 工具。

託管的 [Solana agent 骨架產生器](https://www.solana.new/)會把兩家供應商都接進每個新專案，因此新建立的骨架專案已內建 RPC 選項。我們現在也是技能目錄和 RPC 供應商指南中的一級選項。到 [solana.new](https://www.solana.new/) 就能建立一個預先接好我們外掛的 agent。

使用 [Alchemy CLI](https://www.alchemy.com/docs/alchemy-cli) 進行 Alchemy 帳號驗證、錢包 session 管理、x402 付款，以及跨鏈 API 查詢：

<CodeSnippet
  language="bash"
  code={`npm i -g @alchemy/cli@latest
alchemy auth
npx skills add alchemyplatform/skills --yes
alchemy --json --no-interactive solana rpc getSlot -n solana-mainnet
alchemy --json --no-interactive prices symbol SOL,ETH`}
/>

使用 `alchemy agent-prompt` 把完整的 CLI 指令樹放進 coding agent 的 system prompt 中。完整的技術堆疊請參考 [Alchemy for agents](https://www.alchemy.com/agents)。

如果你還在挑選整體建置流程，可以參考 [Solana AI agent 建置指南](https://www.alchemy.com/blog/how-to-build-solana-ai-agents-in-2026)，裡面完整說明了框架選擇、RPC 設定、錢包安全，以及一個可運作的 Jupiter swap 範例。先選出符合你鏈範圍與 runtime 需求的框架，再把它接上底層的基礎設施。框架決定你的 agent 能做什麼，基礎設施決定它在正式環境中能不能跑得動。
