solagent.rs

connect any ai agents to solana protocols in Rust.

Bridging the Gap Between AI and Solana protocols

An open-source Rust library designed to streamline the integration of AI agents with Solana protocols. Built upon the rig framework, solagent.rs empowers developers to construct portable, modular, and lightweight full-stack AI agents capable of interacting with the Solana blockchain.

This powerful toolkit simplifies agent-to-blockchain communication, offering a comprehensive suite of functions for tasks such as token operations, trading, and more. By leveraging solagent.rs, developers can seamlessly connect their AI agents to the Solana ecosystem, unlocking a world of possibilities for on-chain automation and intelligent decision-making.

Installation

cargo add solagent@=0.1.7

solagent = "=0.1.7"

use std::sync::Arc;
use solagent::create_solana_tools;
#[tokio::main]
async fn main() {
let agent = Arc::new(SolAgent::new("private_key_bs58",
"rpc_url",
AgentProvider::OpenAI("key".into())));
let toolset = create_solana_tools(agent);
}

Key Features

Powerful tools and capabilities to enhance your AI agent development

Rig based

Rig is a Rust library for building scalable, modular, and ergonomic LLM-powered applications

Rust Native

Built for Rust developers with familiar APIs and patterns

Fast Integration

Quick and easy integration with existing blockchain applications

Mutiple Protocols

Support multiple protocols on solana ecosystem

AI-First Architecture

OpenAI and Gemini and more

Flexible Workflows

Customize and extend functionality to meet your needs

Projects built with solagent.rs

FictionX
TheMachine

TheMachine

More comming soon

Ready to Get Started?

Join thousands of developers building the future of AI-powered blockchain applications