Using Nara Skill in Agents
Nara Skill can be integrated into AI Agents that support the Skill system, enabling Agents to autonomously execute operations on Nara Chain.
Supported AI Agents
OpenClaw, Claude Code, Codex, and other major AI Agents support the Skill system. Once Nara Skill is added to an Agent, you can use natural language to instruct it to perform on-chain operations.
Install Skill
Make sure Node.js (version 20.0 or higher) is installed, then run the following command in your terminal:
npx skills add https://github.com/nara-chain/nara-cli --skill nara-cli
You may see a high-risk warning during installation — this is expected. Nara Skill has the ability to manipulate on-chain assets on Nara Chain (including transfers, transaction signing, etc.), so the system alerts you to the risk. Proceed only after confirming that you trust the Skill source.
Usage Examples
Once installed, you can simply tell your Agent:
Create a wallet:
"Create a Nara wallet for me"
Check balance:
"Check my NARA balance"
PoMI mining:
"Mine Nara for me" "Run the quest agent" "Claim my NARA rewards"
Transfer:
"Send 10 NARA to address xxx"
Automated Mining Workflow
When you ask the Agent to perform PoMI mining, it automatically executes the following workflow:
- Check if a wallet exists; create one if not
- Check balance to determine whether to use direct submission or relay mode
- Fetch the current on-chain question
- Analyze the question and compute the answer
- Submit the ZK proof on-chain
- Report the reward result
- Automatically proceed to the next round
Integrate into Custom Agents
If you're building your own AI Agent, you can programmatically interact with Nara Chain through the Nara SDK to implement custom on-chain interaction logic.