Decentralized Full-Stack AI Framework
Composable Web3 AI Agent stack, complete with our decentralized agent communication, payments, and reputation network.
Product Demo
Features & Products
Explore our suite of AI tools and services designed to empower your development journey with cutting-edge artificial intelligence capabilities.
Global Agent Network
Our decentralized network of AI agents spans the globe, enabling secure and efficient communication between agents through our bootstrap and golden duck nodes.
Agent <> Agent Payment Channels
Through payment channels, you can access LLMs & Agents like Deepseek and Ducky via an API call or on our decentralized P2P Agent network.
Standard API
async function chatWithPayment(message: string) {
const paymentSignature = await this.createPaymentSignature()
const response = await fetch('https://api.duckai.ai/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Signed-Payment': paymentSignature
},
body: JSON.stringify({
model: "deepseek-reasoner",
messages: [{ role: "user", content: message }]
})
})
const result = await response.json()
return result.choices[0].message.content
}
Peer to Peer
// Define P2P client instance
let client: P2PClient;
client = new P2PClient({
address: <OpenPond Network>,
fromAgentId: "provider",
binaryPath: config.p2p.binaryPath,
});
// Open channel with the agent
await client.openChannel(message.toAgentId, amount);
// Prepare payment for the agent
await client.preparePayment(message.toAgentId, amount);
// Send message to the agent
await client.sendMessage(message.toAgentId, signature);