Explore our growing ecosystem of DeAI applications in the awesome-aiforge repository.
Build sophisticated AI agents from pre-built templates or create custom agents from scratch. Our platform provides the tools and infrastructure to deploy autonomous agents that operate 24/7.
Automated DeFi trading and arbitrage
Social media management and engagement
Market analysis and data research
Smart contract monitoring and auditing
Select from pre-built agent templates or start from scratch
// List available templates
const templates = await aiforge.listTemplates()
// Create agent from template
const agent = await aiforge.createAgent({
template: 'defi-trading',
name: 'My Trading Bot',
description: 'Automated DeFi arbitrage agent'
})
Set up your agent's behavior, risk parameters, and operational settings
// Configure agent settings
await agent.configure({
// Trading parameters
maxInvestment: '1000 USDC',
riskLevel: 'moderate',
slippageTolerance: 0.5,
// Supported chains
chains: ['ethereum', 'polygon', 'arbitrum'],
// Monitoring settings
priceCheckInterval: 30000, // 30 seconds
minProfitThreshold: 0.2 // 0.2%
})
Implement custom strategies and decision-making logic
// Add custom strategy
agent.addStrategy('custom-arbitrage', {
async execute(opportunity) {
// Custom arbitrage logic
if (opportunity.profitPercent > this.minProfitThreshold) {
// Check gas costs
const gasCost = await this.estimateGasCost(opportunity)
const netProfit = opportunity.profit - gasCost
if (netProfit > 0) {
return await this.executeArbitrage(opportunity)
}
}
return null
}
})
Test your agent in simulation mode before deploying to mainnet
// Test agent in simulation
await agent.test({
mode: 'simulation',
duration: '24h',
initialBalance: { USDC: 1000 }
})
// Deploy to mainnet
const deployment = await agent.deploy({
network: '0g-mainnet',
initialFunding: { USDC: 1000 }
})
console.log('Agent deployed:', deployment.address)
Customize how your agent makes trading decisions
Configure risk parameters and safety mechanisms
Define how your agent executes trades and operations
Set up notifications and monitoring systems
Test your agent with historical data and virtual funds before going live.
Deploy to testnets for real-world testing without financial risk.
Deploy your agent to mainnet and start earning with real assets.