Agentkit
Agentkit is a model-agnostic SDK that connects Large Language Models (LLMs) to the blockchain. It allows your AI agents to hold crypto balances, swap tokens, and send transactions on behalf of users or themselves.
Why connect Agents to blockchains?
Section titled “Why connect Agents to blockchains?”AI agents are excellent at reasoning, reading data, and planning. But until now, they couldn’t do anything monetary. They were read-only.
By giving an agent a 0xGasless Smart Account via Agentkit, you grant it the ability to:
- Pay for API services (via x402)
- Transfer ERC-20 tokens based on natural language commands
- Swap assets on decentralized exchanges
- Read smart contract state directly
How it works
Section titled “How it works”Agentkit acts as a translation layer between the LLM and the blockchain.
- The LLM knows what it wants to do (e.g., “send 5 USDC to Alice”).
- Agentkit provides the LLM with a highly specific formatting schema (Tools) for how to request that action.
- The LLM returns a structured JSON payload calling the tool.
- Agentkit takes that payload, translates it into an ERC-4337
UserOperation, signs it with the agent’s wallet, and submits it to the 0xGasless Bundler.
Model Agnostic
Section titled “Model Agnostic”Agentkit is designed to work with any major framework. Out of the box, we provide bindings for LangChain, meaning any model supported by LangChain (OpenAI, Anthropic, Gemini, local models) can use 0xGasless tools immediately.
Quickstart
Section titled “Quickstart”Ready to build your first on-chain agent? Head over to the Getting Started guide.