Skip to content

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.

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

Agentkit acts as a translation layer between the LLM and the blockchain.

  1. The LLM knows what it wants to do (e.g., “send 5 USDC to Alice”).
  2. Agentkit provides the LLM with a highly specific formatting schema (Tools) for how to request that action.
  3. The LLM returns a structured JSON payload calling the tool.
  4. 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.

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.

Ready to build your first on-chain agent? Head over to the Getting Started guide.