Skip to content

NFTopia-Foundation/kinetix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 

Repository files navigation

Kinetix Protocol

Autonomous AI Agents for the Sui Agentic Economy

Sui Move Python Backend Next.js Web Walrus Storage

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.

🌟 Key Features

  • 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.

πŸ“‹ Table of Contents

  1. System Architecture
  2. Repository Structure
  3. Quick Start
  4. Development Workflow
  5. Testing
  6. Deployment
  7. Security
  8. Contributing

πŸ—οΈ System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        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) β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Core Components

  • 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.

πŸ“ Repository Structure

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

πŸš€ Quick Start

Prerequisites

  • 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)

One-Line Setup (macOS/Linux)

# 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

Windows Setup

# 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 dev

πŸ“± Web Dashboard (frontend-web)

The 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.


πŸ”§ AI Backend Core (backend-ai)

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)

Key API Endpoints

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

πŸ”’ Security & Guardrails

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.


🀝 Contributing

  1. Fork the repository
  2. Create a specific feature branch (git checkout -b feature/amazing-agent)
  3. Commit code changes following semantic tracking norms (git commit -m 'feat: add deepbook routing agent')
  4. Push updates to your active branch (git push origin feature/amazing-agent)
  5. Open a comprehensive Pull Request

πŸ“ž Contact & Support

  • 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.

About

Autonomous AI agents for the Sui agentic economy. Kinetix powers automated DeFi execution, machine-to-machine micropayments, and intent-driven trading strategies. Built with Sui's unique programmable object model, secure session-key signing via TEEs, and atomic multi-step execution using Programmable Transaction Blocks. Uncompromising Web3 security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors