agentkit
Skill1 starsChanged 24 days agoMITView on GitHub
Coinbase AgentKit gives an AI agent its own crypto wallet plus onchain tools (transfer, ERC-20, swap, faucet, price feeds) for LangChain, the Vercel AI SDK or an MCP server. Use when a hacker says AgentKit, @coinbase/agentkit, create-onchain-agent, onchain agent, AI agent wallet, CDP wallet for an agent, getLangChainTools, getVercelAITools, getMcpTools, action provider, request_faucet_funds, or wants an LLM agent that sends transactions.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- InnovationMachineTeam/skillstheir own version, first seen Aug 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- InnovationMachineTeam/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- aaveSkill
- alchemySkill
- backboardSkill
- biconomySkill
- blockscoutSkill
- daimoSkill
- duneSkill
- dynamicSkill
- easSkill
- ensoSkill
- envioSkill
- fetch-aiSkill
- goldskySkill
- hardhatSkill
- litSkill
- livepeerSkill
- morphoSkill
- namespace-53d629Skill
- neynarSkill
- olasSkill
- onramp-moneySkill
- openzeppelinSkill
- pimlicoSkill
- pinataSkill
- ponderSkill
- privySkill
- pushSkill
- quicknodeSkill
- reclaimSkill
- reownSkill
- requestSkill
- safeSkill
- scaffold-ethSkill
- signSkill
- sponsor-chainsSkill
- superfluidSkill
- tenderlySkill
- the-graphSkill
- thirdwebSkill
- track-0gSkill
- track-1inchSkill
- track-arcSkill
- track-arkivSkill
- track-chainlinkSkill
- track-definitiveSkill
- track-efSkill
- track-ensSkill
- track-hederaSkill
- track-uniswapSkill
- track-whitechainSkill
- track-worldSkill
- transakSkill
- web3authSkill
- xmtpSkill
- zerodevSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Create keys in the CDP Portal: a Secret API key (https://portal.cdp.coinbase.com/api-keys/secret) and a Wallet Secret …
- Very specific: line 60
Run: npx tsx agent.ts. The agent calls CdpApiActionProvider_request_faucet_funds and WalletActionProvider_get_wallet_details.
- Very specific: line 82
Check versions first: npm view @coinbase/agentkit version and npm view @coinbase/agentkit-langchain peerDependencies dependencies.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Coinbase AgentKit
AgentKit (TypeScript, from Coinbase Developer Platform) gives an LLM agent a wallet and a set of "actions" it can call as tools: check balance, send ETH or ERC-20, swap, faucet, Pyth prices, plus your own actions. Pick it for a server-side agent that does onchain things by itself. Skip it if you only want Claude or Cursor to use your wallet (Coinbase now points to Wallet MCP / CDP MCP for that: https://docs.cdp.coinbase.com/ai-agents/overview), or for a browser dapp with user login (use a wallet SDK). Know this first: the AgentKit pages were removed from docs.cdp.coinbase.com (old links 404, Oct 2026). The docs now live in the GitHub READMEs. The last npm release is 0.10.4 (Dec 2025); its plugins need the older LangChain 0.3, AI SDK 4 and zod 3. The pins below work together.
Quickstart
- Create keys in the CDP Portal: a Secret API key (https://portal.cdp.coinbase.com/api-keys/secret) and a Wallet Secret (https://portal.cdp.coinbase.com/wallets/non-custodial/security). You also need an OpenAI API key.
- Install (Node 22+):
npm init -y && npm pkg set type=module npm i @coinbase/agentkit@0.10.4 @coinbase/agentkit-langchain@0.3.0 @langchain/core@0.3.80 @langchain/langgraph@0.4.10 @langchain/openai@0.6.17 viem@2.38.3 zod@3.25.76 dotenv@17.2.3 npm i -D tsx@4.23.15 typescript@5.9.3 @types/node@22 .env:CDP_API_KEY_ID=<YOUR_CDP_API_KEY_ID>,CDP_API_KEY_SECRET=<YOUR_CDP_API_KEY_SECRET>,CDP_WALLET_SECRET=<YOUR_CDP_WALLET_SECRET>,OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>. Later addADDRESS=<THE_PRINTED_ADDRESS>to reuse the same wallet.agent.ts:import "dotenv/config"; import { AgentKit, CdpEvmWalletProvider, walletActionProvider, erc20ActionProvider, cdpApiActionProvider } from "@coinbase/agentkit"; import { getLangChainTools } from "@coinbase/agentkit-langchain"; import { createReactAgent } from "@langchain/langgraph/prebuilt"; import { MemorySaver } from "@langchain/langgraph"; import { ChatOpenAI } from "@langchain/openai"; import { HumanMessage } from "@langchain/core/messages"; const walletProvider = await CdpEvmWalletProvider.configureWithWallet({ networkId: "base-sepolia", // reads CDP_API_KEY_ID / CDP_API_KEY_SECRET / CDP_WALLET_SECRET address: process.env.ADDRESS as `0x${string}` | undefined, // omit: a new wallet is created }); const agentkit = await AgentKit.from({ walletProvider, actionProviders: [walletActionProvider(), erc20ActionProvider(), cdpApiActionProvider()], }); const agent = createReactAgent({ llm: new ChatOpenAI({ model: "gpt-4o-mini" }), tools: await getLangChainTools(agentkit), checkpointSaver: new MemorySaver(), prompt: "You are an onchain agent on Base Sepolia. Get wallet details before your first action.", }); console.log("Wallet:", walletProvider.getAddress()); const res = await agent.invoke( { messages: [new HumanMessage("Get test ETH from the faucet, then tell me my balance.")] }, { configurable: { thread_id: "demo" } }, ); console.log(res.messages.at(-1)?.content);- Run:
npx tsx agent.ts. The agent callsCdpApiActionProvider_request_faucet_fundsandWalletActionProvider_get_wallet_details. - Want a ready-made Next.js chat UI or an MCP server instead?
npm create onchain-agent@0.5.7(see recipe 1; its Next.js build needs a one-line config fix).
Full walkthrough: references/quickstart.md.
Common tasks
- Scaffold a project with create-onchain-agent (Next.js + LangChain or Vercel AI SDK, or MCP)
- Pick and add action providers; call an action without an LLM
- LangChain agent with memory (chat loop)
- Vercel AI SDK: generateText + Next.js route
- Custom action (your contract as a tool)
- Testnet funds with the faucet action
- Sponsor chains / any EVM chain with ViemWalletProvider
- Python version (pointer only)
- AgentKit as an MCP server for Claude Code / Cursor, plus the CDP docs MCP: references/mcp.md
- Errors and gotchas: references/errors.md · Chains: references/chains.md
Before you write more code
- AgentKit docs now live on GitHub: https://github.com/coinbase/agentkit and the package README https://github.com/coinbase/agentkit/tree/main/typescript/agentkit (lists every action provider).
mainis ahead of npm (0.11.0, LangChain 1 / AI SDK 6 / zod 4, not published as of 19 Oct 2026), so if you read code onmain, check it against what you installed. The 0.10.4 README ships insidenode_modules/@coinbase/agentkit/README.md. - For CDP keys, wallets and faucets: https://docs.cdp.coinbase.com/llms.txt (open the linked
.mdpages). - Check versions first:
npm view @coinbase/agentkit versionandnpm view @coinbase/agentkit-langchain peerDependencies dependencies. If a newer release has come out, the pins here may be outdated. - Type-check with
tsc. Some README snippets do not compile on 0.10.4 (errors.md #4). When this skill and the official docs disagree, the docs win, unless the installed package's types say otherwise.
At ETHGlobal Mumbai
- AgentKit's own network list (Base, Ethereum, Arbitrum, Optimism, Polygon, Solana) has none of the sponsor chains. World Chain, Unichain, Hedera, Arc, 0G and Whitechain work only through
ViemWalletProviderwith your own private key; tested 19 Oct 2026 (reads + signing, no transactions). CDP server wallets and the faucet do not work there. Details: references/chains.md; deeper chain facts:npx skills add 0xvikram/backboard-skills --skill sponsor-chains. - AgentKit may help with tracks that want an AI agent acting onchain, e.g. 0G, Arc, Hedera, World or Uniswap Foundation, on their chains via the viem route. Check the rules yourself: https://ethglobal.com/events/mumbai/prizes
- Help: CDP Discord https://discord.gg/CDP (linked from the AgentKit repo), issues https://github.com/coinbase/agentkit/issues
About
Hand-written for Backboard (https://backboard.0xvikram.me), an independent project not affiliated with ETHGlobal or Coinbase. Tested 2026-10-19 with @coinbase/agentkit@0.10.4, @coinbase/agentkit-langchain@0.3.0, @coinbase/agentkit-vercel-ai-sdk@0.1.0, @coinbase/agentkit-model-context-protocol@0.2.0, create-onchain-agent@0.5.7, viem@2.38.3, zod@3.25.76.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

