Open-source project
sendaifun/solana-agent-kit avatar
sendaifun/solana-agent-kit

Solana Agent Kit: 60 actions across five plugin packages, documented out of sync

connect any ai agents to solana protocols

1,773 stars906 forksTypeScriptApache-2.0

At a glance

What is it?
This is a TypeScript toolkit that lets an agent call Solana protocols, split into a core package and five plugin packages plus an MCP adapter. The protocol surface is broad and the packaging is disciplined, but the documentation links to v0, the quick start never constructs the agent its own examples call, and the environment file carries five signing secrets.
Who is it for?
Adopt the Solana Agent Kit when you want a broad set of Solana protocol calls already wrapped as agent tools, and when your agent runtime can be swapped between the Vercel AI SDK, LangChain and OpenAI through the same tool factory. Do not adopt it expecting the documentation to be current: the documentation link points at v0 while the default branch is v2, and the newest tag, v2.0.9, was published in July 2025 while the branch took its last push in May 2026.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 6 months ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • sendaifun/solana-agent-kit1,773 ★ · +64
Star history
Repository2026-09-112026-11-22
sendaifun/solana-agent-kit1.7k1.8k

64 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The documentation link points at v0 while the branch is v2

The installation instructions are current and the documentation link is not. Installation is one line, and the plugins are separate packages:

bash
npm install solana-agent-kit
bash
npm install @solana-agent-kit/plugin-token @solana-agent-kit/plugin-nft @solana-agent-kit/plugin-defi @solana-agent-kit/plugin-misc @solana-agent-kit/plugin-blinks

The full documentation, however, is linked at docs.sendai.fun/v0/introduction. The default branch of this repository is named v2, the newest tag is v2.0.9, and the README has a section explaining why V2 was built and pointing at MIGRATING.md for the upgrade from V1. So the tutorial a new user is sent to is the version that predates the plugins they just installed.

The release dates make the gap concrete. v2.0.9 was published on 2025-07-24, after v2.0.5 in May and v2.0.4 before that, and the last push to the branch was 2026-05-14. Roughly ten months of commits sit on the branch with no tag on top of them.

The quick start never builds the agent its own examples call

The snippet meant to get you running stops one step short of the thing the rest of the page needs:

typescript
import { SolanaAgentKit, createVercelAITools, KeypairWallet } from "solana-agent-kit"; // or import createLangchainTools if using langchain or createOpenAITools for OpenAI agents
import TokenPlugin from "@solana-agent-kit/plugin-token";
import NFTPlugin from "@solana-agent-kit/plugin-nft";
import DefiPlugin from "@solana-agent-kit/plugin-defi";
import MiscPlugin from "@solana-agent-kit/plugin-misc";
import BlinksPlugin from "@solana-agent-kit/plugin-blinks";

const keyPair = Keypair.fromSecretKey(bs58.decode("YOUR_SECRET_KEY"))
const wallet = new KeypairWallet(keyPair)

// Initia

Four things are off in those fourteen lines. Keypair and bs58 are used but never imported. SolanaAgentKit and createVercelAITools are imported but never used, so the heading above the block, initializing the wallet interface and agent with plugins, is only half delivered. The five plugins are imported and never registered. And the block ends on the partial word Initia.

Everything after this depends on the missing step. The deploy examples call agent.methods.deployToken and the collection example calls agent.methods.create3LandCollection, so the object those methods hang off is never created anywhere in the snippet.

deployToken takes the agent as an argument and deployToken2022 does not

Two adjacent examples for launching tokens disagree with each other on the call shape. The first passes the agent as the first positional argument:

typescript
const result = await agent.methods.deployToken(
  agent,
  "my ai token", // name
  "uri", // uri
  "token", // symbol
  9, // decimals

The Token2022 example passes the name first and drops the agent entirely. Both then supply the same options object, where the trailing comments state the defaults: mintAuthority null, freezeAuthority null and updateAuthority undefined are each described as defaulting to the deployer account, and isMutable false is commented as defaulting to true. The initial supply is 1000000 in both.

The 3Land example has the mirror problem. It declares isDevnet = false with the comment that without it the transaction takes place on mainnet, and priorityFeeParam = 1000000 with the comment that the default priority fee would be 50000. Neither declared value appears in the call it precedes, which passes only a collectionOpts object holding a name, a symbol, a description and a main image URL.

So the two defaults that matter most on that path, network and fee, are set in variables the example does not use.

Five signing secrets sit in one environment file, and one of them is a mnemonic

The .env.example in the repository root is short and worth reading line by line:

bash
SOLANA_PRIVATE_KEY=
JUPITER_REFERRAL_ACCOUNT=
JUPITER_FEE_BPS=
FLASH_PRIVILEGE= referral | nft | none

The Solana key is the one you expect. Below the OKX DEX block, under a comment reading Wormhole, there are three more chain credentials: SUI_MNEMONIC, APTOS_PRIVATE_KEY and ETH_PRIVATE_KEY. With the Solana key that is five secrets for four chains, and the Sui entry is a recovery phrase rather than a key, which is the item to protect most carefully.

Two other defaults deserve attention. FLASH_PRIVILEGE ships with a documented choice set of referral, nft or none, so the mode is a switch someone has to think about rather than a value that defaults to safe. LANGSMITH_TRACING=true is on in the example, with a LangSmith endpoint and key next to it, so tracing leaves the process unless you turn it off.

JUPITER_FEE_BPS is the opposite case: a variable with no default, no comment and no unit stated, on the same route as the referral account.

The environment file names protocols the feature list never mentions

Compare the capability list with the credentials it asks for and the lists do not match.

The README's feature list is built around token operations, NFT work on 3Land and Metaplex, DeFi protocols, Solana Blinks and market data. It names Jupiter, Raydium, Orca, Manifest, Meteora, Openbook, Jito, Pyth, Adrena, Drift, deBridge, Wormhole, Light Protocol, Helius, Lulo, PumpPortal and CoinGecko.

The environment file asks for FLEXLEND_API_KEY, HELIUS_API_KEY, ALLORA_API_KEY with ALLORA_API_URL and ALLORA_NETWORK, ELFA_AI_API_KEY, and a six-line OKX DEX block holding an API key, a secret, a passphrase, a project id, a Solana wallet address and a Solana private key. Flexlend, Allora, Elfa AI and the OKX DEX appear nowhere in the feature list.

Read together, the environment file is the more honest inventory of what the package can reach. It also explains the FLEXLEND_API_KEY: there is a lending integration that needs a key and no headline describing it.

None of these have defaults, which is right, but the mismatch means the size of the credential surface is larger than the documentation suggests.

Five plugin packages and an MCP adapter ship separately from the core

The package layout explains why the install line matters. The core is one package, solana-agent-kit, and each capability area is its own scoped package: plugin-token for SPL token work such as transferring, swapping, bridging and rug checking, plugin-nft for Metaplex minting, listing and metadata, plugin-defi for staking, lending, borrowing and spot and perpetual trading, plugin-misc for airdrops, price feeds, CoinGecko lookups and domain registration, and plugin-blinks for blink operations.

You can install any subset or the whole set, and the README is explicit that the full set is how you see the complete surface. That is a reasonable design for a toolkit whose users have wildly different needs, and it is also why the plugin list and the README's feature list can drift independently.

The build scripts mirror it one for one. The root manifest has a build:core filtered to solana-agent-kit, a build:plugin-token and one for each of the other four, plus build:adapter-mcp for @solana-agent-kit/adapter-mcp. The adapter is not in the README's plugin list of five, and the examples directory does include an mcp/ folder alongside defi/, embedded-wallets/, misc/, n8n-solana-agent/ and social/, so an MCP surface exists even though the README does not walk through it.

Publishing runs changesets through turbo, and one script makes a keypair

The root manifest is a private pnpm workspace over packages/* driven by turbo, with these scripts:

code
"test": "npx tsx test/index.ts",
"generate": "tsx src/utils/keypair.ts",
"version-packages": "changeset version",
"publish-packages": "turbo run build && changeset publish"

The generate script is the one to look at twice. It runs a file called keypair.ts, so the repository ships a utility whose job is producing a wallet key, and it sits next to the examples that decode YOUR_SECRET_KEY into one. That is convenient and it is also a script you want to know about before running anything from this tree.

Publishing builds every package through turbo and then runs changeset publish, with a separate changeset version step for applying pending changesets, which is the usual setup when packages are versioned independently. Engines are declared as node >=22.0.0 and pnpm >=8.0.0, linting is biome with a check and a check --write --unsafe pair, and the repository carries CITATION.cff for citation metadata, typedoc.json for API docs and docs.json for the documentation site.

Editorial conclusion

Adopt the Solana Agent Kit when you want a broad set of Solana protocol calls already wrapped as agent tools, and when your agent runtime can be swapped between the Vercel AI SDK, LangChain and OpenAI through the same tool factory. Do not adopt it expecting the documentation to be current: the documentation link points at v0 while the default branch is v2, and the newest tag, v2.0.9, was published in July 2025 while the branch took its last push in May 2026. Before you wire a key into it, read the environment file end to end. It asks for a Sui mnemonic, an Ethereum key, an Aptos key and a Solana key at the same time, and it turns LangSmith tracing on by default.

Frequently asked questions

How do I install the Solana Agent Kit and its plugins?

The core installs with npm install solana-agent-kit, and each capability area is a separate scoped package: plugin-token, plugin-nft, plugin-defi, plugin-misc and plugin-blinks. The README says you can install any subset or all five at once.

Which agent frameworks does the Solana Agent Kit support?

The quick start import line names three tool factories: createVercelAITools for the Vercel AI SDK, createLangchainTools for LangChain and createOpenAITools for OpenAI agents. The example wallet is a KeypairWallet, and the README also mentions embedded wallets through the Solana wallet adapter.

What credentials does the Solana Agent Kit environment example ask for?

Five chain credentials: SOLANA_PRIVATE_KEY, ETHEREUM_PRIVATE_KEY, ETH_PRIVATE_KEY, APTOS_PRIVATE_KEY and SUI_MNEMONIC, the last being a recovery phrase rather than a key. It also asks for provider keys for OKX DEX, Flexlend, Helius, Allora and Elfa AI.

Does the Solana Agent Kit ship an MCP server?

The build scripts include build:adapter-mcp filtered to @solana-agent-kit/adapter-mcp, and the examples directory includes an mcp/ folder. The README's plugin list names five plugins and does not include the MCP adapter.

What is the latest release of the Solana Agent Kit?

v2.0.9, published on 2025-07-24, after v2.0.5 and v2.0.4 earlier in 2025. The default branch is named v2 and its last push was on 2026-05-14, and the documentation link in the README points at a v0 path.

Official sources

  1. License: Apache-2.0
  2. Project website
  3. README
  4. Releases
  5. sendaifun/solana-agent-kit on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/sendaifun-solana-agent-kit.svg)](https://hysenlabs.com/projects/sendaifun-solana-agent-kit)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/sendaifun-solana-agent-kit.svg)](https://hysenlabs.com/projects/sendaifun-solana-agent-kit)

Was this useful?