July 21, 2025 - 3 min read

Blockchain offers powerful capabilities, but for many developers and users, interacting with it still involves complex tooling, manual commands, and a steep learning curve. This complexity often slows down experimentation and limits accessibility.
That’s where AI Agents come in.
AI Agents are designed to simplify how we interact with the blockchain. By combining automation with intelligent behavior, they can take over routine tasks, retrieve data, and execute actions across the network, without requiring users to manually write or run every command themselves.
Supra is building AI tools to support these use cases from the ground up. Supra enables AI Agents to operate directly on-chain or through trusted interfaces with the network.
In this guide, you’ll learn how to create and run your first AI Agent on Supra.
This agent will be able to:
By the end, you’ll have a fully functioning AI Agent that can communicate with the network and perform key actions, giving you a foundation to build more advanced, intelligent blockchain workflows.
Here’s what you’ll need:
Start by cloning the AI Agent example repository to your local machine. This will give you all the files you need to run and explore the agent’s functionality.
Use the following command:
git clone https://github.com/Supra-Labs/Supra-agents-hub.git
Use your terminal to move into the folder where your project was created.
Use the following command:
cd Supra-agents-hub
cd Agents
cd SurpaOnChainAgent
After navigating to the project directory, install all required packages to ensure the AI Agent runs properly.
Use the following command:
npm install
Now that everything is set up, you can launch the AI Agent.
Use the following command:
npx tsx agent.ts
A dashboard will pop up in your git bash terminal:
$ npx tsx agent.ts
*** Welcome to SupraOnChainAgent ***
Initializing Supra Client...
Connected to network with chain ID: _ChainId { value: 6 }
Loaded existing account from account.json
Your Supra Account Address: 0x26b58df6a3716bc16de96d6aa5fa60c1cf12e0854e8983b4a6d0a4a9548c218d
Available commands:
- 'what is the balance of my account' : Fetch account info & balance
- 'please fund my account' : Fund account via faucet
- 'show me transaction details for <TX_HASH>': Fetch transaction details
- 'what is my transaction history' : Retrieve transaction history
- 'show my account resources' : Fetch resource data
- 'help' : Show this help message
- 'exit' : Quit the agent
SupraOnChainAgent>
With the agent running, you can now interact with it directly through the terminal.
Try entering natural-language commands like:
please fund my account
You’ll receive a confirmation with a status: success once your account has been funded.
status: 'Success'
Then, check your balance by typing:
what is the balance of my account
You’ll see your updated balance returned from the network.
Feel free to explore other supported commands; the agent is built to handle various on-chain tasks. That’s how you can start using Supra’s AI Agent to simplify blockchain interactions.
RECENT POSTS
Daftarkan diri Anda ke newsletter Supra untuk mendapatkan berita terbaru, pembaruan, wawasan industri, dan informasi lainnya.
©2026 Supra | Entropy Foundation (Swiss: CHE.383.364.961). Seluruh Hak Cipta Dilindungi