Developer Resources

Build Powerful
AI Agents on TON

Everything you need to create, deploy, and manage autonomous AI agents. Comprehensive SDK, REST API, and developer tools at your fingertips.

Open Source TypeScript & Python SDKs Active Community
1,000+
Active Developers
500+
Integrations Built
50+
API Endpoints
99.9%
API Uptime

Powerful SDK Libraries

Build AI agents in your favorite language. Type-safe, well-documented, and battle-tested.

TypeScript SDK

Full TypeScript support with comprehensive type definitions. Perfect for Node.js and browser environments.

npm install @tonaiagent/sdk

Python SDK

Pythonic interface with async support. Ideal for data science, ML integration, and backend services.

pip install tonaiagent

Type Safety

Full type definitions and autocomplete support for faster development.

Async Support

Native async/await patterns for optimal performance in concurrent operations.

Auto-Retry

Built-in retry logic with exponential backoff for resilient applications.

RESTful API

A comprehensive REST API for complete control over your AI agents. Authenticate, configure, execute, and monitor - all via simple HTTP requests.

Authentication

API key and JWT token authentication with fine-grained permissions.

Agent Management

Create, configure, start, stop, and monitor your AI agents.

Strategy Execution

Deploy and manage trading strategies with real-time execution.

Analytics & Monitoring

Real-time metrics, performance tracking, and detailed logs.

Explore API Reference
api-example.sh
# Create a new agent
curl -X POST https://api.tonaiagent.tonbankcard.com/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Trading Agent",
    "strategy": "momentum",
    "config": {
      "risk_level": "medium",
      "max_position_size": 1000
    }
  }'

# Response
{
  "id": "agent_abc123",
  "status": "active",
  "created_at": "2024-01-15T10:30:00Z"
}

Get Started in 5 Minutes

From zero to your first AI agent in four simple steps. No prior blockchain experience required.

1

Install SDK

Install the SDK in your preferred language using npm or pip.

2

Get API Key

Generate your API key from the developer dashboard or via CLI.

3

Write Code

Initialize the client and create your first agent with a few lines of code.

4

Deploy & Monitor

Deploy your agent and watch it execute in real-time via the dashboard.

Code Examples

Learn by Example

Explore real-world examples and templates to accelerate your development. From simple trading bots to complex multi-agent systems.

Simple trading bot with stop-loss
DCA (Dollar Cost Averaging) strategy
Arbitrage detection agent
Portfolio rebalancing automation
Telegram notification integration
Custom strategy with AI signals
Browse All Examples

Trading Bot

Basic trading agent with market orders

Analytics

Portfolio tracking and reporting

Multi-DEX

Cross-exchange arbitrage detection

Alerts

Price and event notifications

Examples
1,000+
Active Developers
5,000+
Discord Members
200+
GitHub Contributors
50+
Community Plugins

The SDK is incredibly well-designed. I was able to build a custom trading strategy in just a few hours. The TypeScript types are comprehensive and the docs are excellent.

M
Maria Santos Blockchain Developer

Coming from traditional finance, I was amazed how easy it was to get started. The API is intuitive and the community support on Discord is fantastic.

D
David Kim Quantitative Developer

The Python SDK integrates perfectly with my ML pipeline. I can train models and deploy them as agents seamlessly. Best developer experience in DeFi.

S
Sarah Chen ML Engineer

Ready to Start Building?

Join 1,000+ developers building the future of autonomous finance. Get started in minutes with our comprehensive SDK and documentation.

Comprehensive docs Open source Active community