Connect any AI agents to SUI Network.
npm install sui-agent-kit
const agent = new SuiAgent({
model: "deepseek-chat",
openAiApiKey: "sk-",
walletPrivateKey:
"suiprivkey",
network: "testnet",
baseUrl: "https://api.deepseek.com",
});
// // Call different functions
const resp = await agent.transfer({
to: "0x1",
amount: "0.1",
symbol: "SUI",
});
console.log(resp);
// // or, execute commands in natural language
const chatResp = await agent.execute("Send 0.1 SUI to 0x1");
console.log(chatResp);
const resp = await agent.getBalance({
walletAddress: agent.getAddress(),
assetSymbol: "SUI",
});
console.log(resp);
const chatResp = await agent.execute("What is my SUI Balance?");
console.log(chatResp);