Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 GitHub - riglr/riglr: Rust framework for building high-performance blockchain AI agents with real-time event streaming, multi-chain support, and enterprise-grade reliability
Nothing Special   »   [go: up one dir, main page]

Skip to content
/ riglr Public

Rust framework for building high-performance blockchain AI agents with real-time event streaming, multi-chain support, and enterprise-grade reliability

License

Notifications You must be signed in to change notification settings

riglr/riglr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riglr Logo

riglr: Production-Ready AI Agents for Blockchain

CI Crates.io Documentation License: MIT

⚠️ Under Heavy Development: This project is being actively developed. APIs may change. Use with caution in production.

What is riglr?

riglr (pronounced "riggler") transforms the powerful rig AI framework from a tool-calling "brain" into a complete "body and nervous system" for production-grade blockchain AI agents.

While rig provides the core LLM-to-tool pipeline, riglr adds the enterprise-grade infrastructure, security patterns, and blockchain-specific tooling needed to build, deploy, and scale real-world AI agents that interact with blockchains securely and efficiently.

📚 Read the full documentation for detailed guides, tutorials, and API references.

Key Features

  • 🔒 Secure by Design: The SignerContext pattern ensures cryptographic keys are never exposed to the LLM reasoning loop, with complete multi-tenant isolation.
  • High Performance: Built for >10,000 events/second throughput with parallel workers, backpressure handling, and circuit breakers.
  • 🔧 Zero Boilerplate: The #[tool] macro transforms a simple Rust function into a production-ready tool, eliminating 30+ lines of boilerplate.
  • 🏗️ Production Patterns: Clean dependency injection (ApplicationContext), fail-fast configuration, and intelligent two-level error handling with automatic retries.
  • 🌐 Multi-Chain Native: First-class support for Solana, Ethereum, and any EVM-compatible chain. Add new chains with a single environment variable.
  • 🤖 Multi-Agent Coordination: Build "swarms" of specialized agents that collaborate on complex tasks with intelligent, capability-based routing.

Quick Start

The fastest way to get started is with our official project generator.

# 1. Install the generator
cargo install create-riglr-app

# 2. Create a new agent project
create-riglr-app my-trading-bot

# 3. Configure and run!
cd my-trading-bot
cp .env.example .env 
# Edit .env with your API keys and RPC URLs
cargo run -- --interactive

A Glimpse of the Code

riglr is designed for an exceptional developer experience. Here's how you can define a complex, secure blockchain operation with almost no boilerplate:

// 1. Define a tool with a single macro.
// Doc comments are automatically used for the AI's understanding.
#[tool]
/// Transfers SOL to a specified address.
async fn transfer_sol(
    context: &ApplicationContext,  // For shared, read-only clients (e.g., RPC)
    to_address: String, 
    amount_sol: f64
) -> Result<String, ToolError> {
    // 2. Securely access the signer for this specific request.
    // The key is never passed as a parameter or exposed to the LLM.
    let signer = SignerContext::current_as_solana().await?;
    
    // 3. Use injected clients and the isolated signer to execute.
    let rpc_client = context.solana_client()?;
    // ... transaction logic using rpc_client and signer ...
    
    Ok("transaction_signature".to_string())
}

// 4. Build an agent that can use this tool.
let agent = AgentBuilder::new(model)
    .tool(transfer_sol_tool()) // The macro creates this helper function!
    .build();

// 5. Execute in a secure, isolated context for a user.
SignerContext::with_signer(user_signer, async {
    agent.prompt("Send 0.1 SOL to alice.sol").await
}).await?;

Documentation

Our comprehensive documentation is the best place to learn everything about riglr.

Contributing

We welcome contributions of all kinds! Please see CONTRIBUTING.md for guidelines on how to get involved.

Community

License

This project is licensed under the MIT License.

About

Rust framework for building high-performance blockchain AI agents with real-time event streaming, multi-chain support, and enterprise-grade reliability

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0