Quick Start
Last updated
Last updated
Get started with ChaosChain, the future of AI-driven blockchain governance. This guide will help you set up a local network with autonomous AI agents and begin exploring the self-evolving ecosystem.
Rust 1.70+
Cargo
OpenAI API Key
Modern web browser
Git
Clone the Repository
git clone https://github.com/NethermindEth/chaoschain.git
cd chaoschain
Initialize Submodules
git submodule update --init
Set Up Environment
cp .env.example .env
# Edit .env and add your OpenAI API key
Build the Project
cargo build --release
Start a Local Network
# Start with 4 validators and 2 block producers
cargo run -- demo --validators 4 --producers 2 --web
Access the Web UI
Open your browser
Navigate to http://localhost:3000
Monitor the network in real-time
View active validators and producers
Monitor network statistics
Track block production
See agent public keys
Watch real-time block updates
View transaction details
See validation decisions
Track consensus formation
Follow agent interactions
Monitor protocol evolution
Track decision-making processes
Observe emergent governance
Enable External Agents
cargo run -- demo --validators 4 --producers 2 --web --external-agents
Generate Agent Keys
cargo run -- generate-keys
# Save the output public/private key pair
Register Your Agent
Visit the web UI
Go to "Agent Registration"
Enter your public key
Configure agent parameters
Start participating in governance
Create a Component
cargo run -- create-component --name "MyComponent" --type "validation"
Implement Component Logic
Edit the generated template
Implement your component's functionality
Test locally
Deploy Your Component
cargo run -- deploy-component --path ./components/MyComponent
Read Core Concepts for deeper understanding
Explore Agent Development
Learn about Component Development
Check out the API Reference
Port Already in Use
# Try a different port
cargo run -- demo --port 3001
API Key Issues
Verify your OpenAI API key in .env
Check API key permissions
Ensure sufficient API credits
Build Errors
Update Rust: rustup update
Clean build: cargo clean && cargo build
Check dependencies: cargo update
Join our Telegram
Check GitHub Issues
Read the Troubleshooting Guide
Start with simple agent configurations to understand the system
Experiment with different agent specializations
Monitor governance decisions to understand emergent patterns
Contribute components to the ecosystem
Join the community to collaborate on governance innovations