Autonomous AI Agents for the Sui Agentic Economy
Kinetix is an autonomous Agentic Finance (AgentFi) and AI-native payment protocol custom-built for the Sui blockchain. By leveraging Sui's unique programmable object model and Programmable Transaction Blocks (PTBs), Kinetix executes multi-step machine-speed trading strategies, manages automated yield treasuries, and facilitates instantaneous machine-to-machine stablecoin micropayments with absolute financial safety.
- Intent-Driven Execution Engine - Converts natural language commands into complex on-chain execution paths via an off-chain LLM interpreter.
- Atomic Strategy Bundling - Uses Sui PTBs to chain up to 100 deep financial actions (swaps, flash loans, staking) into a single transaction that rolls back cleanly if any parameter fails.
- Sovereign Agent Objects - Every automated strategy runs inside an isolated, user-owned Sui Move object vault with custom risk thresholds, bypassing shared-contract vulnerabilities.
- TEE Secure Signing - Ephemeral session keys are isolated inside a Trusted Execution Environment (TEE) to handle continuous machine trading safely without exposing root seed phrases.
- Immutable Inference Audit Trails - Chronological logs of every AI trade decision and market analysis are directly pushed to the Walrus decentralized storage network for trustless user verification.
- zkLogin Onboarding - Zero-friction onboarding allowing Web2 users to generate secure agent infrastructure instantly using Google or Twitch OAuth.
- System Architecture
- Repository Structure
- Quick Start
- Development Workflow
- Testing
- Deployment
- Security
- Contributing
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β KINETIX SYSTEM ARCHITECTURE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Application Layer β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Next.js Web Dashboard (frontend-web) β β
β β β’ zkLogin / Wallet Adapter β’ Real-Time Portfolio Yields β β
β β β’ Intent Terminal UI β’ Bot Performance Tracking β β
β βββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ (Natural Language Intent JSON) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β API Gateway & AI Backend β β
β β FastAPI + LangChain Server (backend-ai) β β
β βββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Service Layer & Execution β β
β β βββββββββββββββββββ βββββββββββββββββββ ββββββββββββββββββ β β
β β β Intent Parser β β PTB Builder β β Secure Signer β β β
β β βββββββββββββββββββ€ βββββββββββββββββββ€ ββββββββββββββββββ€ β β
β β β Processes LLM β β Packages atomic β β TEE Enclave β β β
β β β market paths β β Move arguments β β signs sub-sec β β β
β β ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ ββββββββββ¬ββββββββ β β
β βββββββββββββΌββββββββββββββββββββΌββββββββββββββββββββΌββββββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Sui Blockchain Layer β β
β β ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ β β
β β β Smart Contracts (move) β β Core DeFi Ecosystem β β β
β β β β’ agent.move (Vaults) ββββββΊβ β’ DeepBook (CLOB DEX) β β β
β β β β’ policy_guard.move β β β’ Cetus / Scallop Poolsβ β β
β β β β’ registry.move β β β β β
β β ββββββββββ¬ββββββββββββββββ ββββββββββββββββββββββββββ β β
β β β
β βΌ (Immutable Log Streams) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Decentralized Audit Storage β β
β β β’ Walrus Storage System (Cryptographic inference tracking) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Web Dashboard (Next.js/TypeScript) - Elegant web client featuring an intuitive AI chat terminal for composing strategy intents, custom yield metric monitors, and native wallet tools.
- AI Engine Backend (Python/FastAPI) - Core brain compiling semantic user goals into optimized executable byte code, handling data pipelines, and managing machine enclaves.
- Smart Contracts (Sui Move 2024) - Immutable on-chain enforcement infrastructure maintaining state control, global protocol asset records, and run-time financial guardrails.
- Walrus Data Node - Secure decentralized streaming configuration mapping real-time operational decisions to public decentralization storage beds.
kinetix-monorepo/
βββ move/ # Sui Move Smart Contracts (Move 2024)
β βββ sources/
β β βββ agent.move # Defines the core autonomous 'Agent' object vault
β β βββ policy_guard.move # Rule-engine restricting transaction bounds (Slippage, caps)
β β βββ registry.move # Protocol global state tracking registered objects
β βββ tests/
β β βββ agent_tests.move # Local testing suite using sui::test_scenario
β βββ Move.toml # Manifest defining package and dependencies
β βββ Move.lock # Pin file for dependencies
β
βββ backend-ai/ # Off-Chain AI Intent Engine (Python)
β βββ src/
β β βββ interpreter.py # Parses user natural language into target structured JSON
β β βββ ptb_builder.py # Constructs raw binary Programmable Transaction Blocks
β β βββ secure_signer.py # TEE integration logic interacting with ephemeral keys
β β βββ walrus_logger.py # Custom worker streaming audit inferences to Walrus
β βββ main.py # FastAPI server entry point
β βββ requirements.txt # Engine dependencies (pysui, langchain, fastapi)
β βββ .env.example # RPC Endpoints, Enclave configurations, and AI keys
β
βββ frontend-web/ # Client Dashboard Interface (Next.js)
β βββ src/
β β βββ app/
β β β βββ page.tsx # Main Landing / Dashboard Overview
β β β βββ agents/ # Strategy Creation & Active Bot Monitoring UI
β β βββ components/
β β β βββ WalletConnect.tsx # Wrapper configuration for @mysten/dapp-kit
β β β βββ StrategyTerminal.tsx # Conversational strategy chat interface
β β β βββ AgentCard.tsx # Dynamic on-chain visual object renderer
β β βββ hooks/
β β β βββ useKinetix.ts # Custom React hooks parsing chain events
β β βββ utils/
β β βββ suiClient.ts # Initialized SuiClient instance
β βββ package.json # Next.js configurations
β βββ tailwind.config.js # Responsive design stylings
β
βββ docker-compose.yml # Local execution setups (Redis tracking, local testnets)
βββ package.json # Core workspace configuration entries
βββ README.md # This file
- Sui CLI (For contract building and local testing environments)
- Node.js 18+ with npm or yarn
- Python 3.10+
- Docker & Docker Compose (Optional, for Redis operational state tracking)
# Clone your fork of the project
git clone [https://github.com/<Your_Profile>/kinetix.git](https://github.com/<Your_Profile>/kinetix.git)
cd kinetix
# Launch local supporting databases
docker-compose up -d
# Initialize and run the Python AI Engine
cd backend-ai
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python main.py
# In a new terminal - Build and test Move smart contracts
cd ../move
sui move build
sui move test
# In a new terminal - Launch the web dashboard interface
cd ../frontend-web
npm install
npm run dev# Setup AI backend
cd backend-ai
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
copy .env.example .env
python main.py
# New terminal - Launch client app
cd ..\frontend-web
npm install
npm run devThe React web client provides deep portfolio control windows alongside real-time strategy creation boards.
Key Features
-
Full @mysten/dapp-kit Assembly β Smooth integration allowing immediate desktop connections alongside native zkLogin wrappers.
-
Dynamic Object Parsing β Bypasses central API mapping directly to individual on-chain Object tracking configurations.
-
Conversational Strategy Inputs β Simple natural language input processing panels handling live feedback streaming.
High-performance processing middleware engine mapping structural abstract user actions into raw target blockchain payloads.
Intent Processing Flow
[Natural Language Input] βββ (LangChain Parser) βββ [JSON Strategy Parameters]
β
βΌ
[Signed Transaction] βββ (TEE Session Keys) βββ (PTB Builder Mapping Engine)
| Method | Endpoint | Description | Auth |
|---|---|---|---|
| POST | /api/v1/agents/parse |
Compiles raw user text inputs into structural state parameters | JWT |
| POST | /api/v1/execution/build-ptb |
Combines parameters into valid structural execution blocks | API-Key |
| GET | /api/v1/analytics/logs/:id |
Queries historic cryptographic records from Walrus storage node | Public |
On-Chain Move Invariants
-
Hot Potato Receipts β Flash loans implement structural rules missing native capability definitions (drop, store), forcing exact atomic repayment steps before execution closure.
-
Policy Guard Assertions β Rigid hardcoded max-slippage limitations and daily volumetric output barriers run natively within contract blocks to check validity before transaction finality.
Operational Infrastructure
-
Enclave Processing Barriers β Signer services operate purely inside hardware-isolated structures preventing raw root phrase visibility across multi-party execution pipelines.
-
Auditable Operations Ledger β Complete performance traces exist outside database tables, using cryptographic commitments mapping records permanently into Walrus nodes.
- Fork the repository
- Create a specific feature branch (
git checkout -b feature/amazing-agent) - Commit code changes following semantic tracking norms (
git commit -m 'feat: add deepbook routing agent') - Push updates to your active branch (
git push origin feature/amazing-agent) - Open a comprehensive Pull Request
- Discord: Oluwaseyi89
- Twitter: @IsenewoE
- Email: isenewoephr2012@gmail.com
- GitHub Issues: Report bugs directly to our monorepo hub
Built with β€οΈ for the Sui and AI Agentic ecosystems.