QuDAG CLI
Comprehensive command-line interface for QuDAG - the darknet for agent swarms with quantum-resistant distributed communication, rUv token exchange, and business plan payouts.
Features
- Node Management: Start, stop, and manage QuDAG nodes
- Exchange Operations: rUv token transfers with dynamic fee models
- Business Plan: Automated payout distribution for contributors
- Dark Addressing: Anonymous .dark domain registration and routing
- MCP Server: Model Context Protocol integration for AI agents
- Quantum Crypto: ML-DSA signatures and ML-KEM encryption
- Password Vault: Quantum-resistant credential management
- P2P Networking: Onion routing and NAT traversal
Installation
Note: The CLI binary is named
qudagafter installation.
Quick Start
# Start a QuDAG node with exchange enabled
# Create an rUv token account
# Register your darknet domain
# Start MCP server for AI agent integration
# Check comprehensive status
Commands
Node Management
# Start a node
# Stop the node
# Get node status
# Restart node
Peer Operations
# List connected peers
# Add a peer
# Remove a peer
# Ban a peer
# Test connectivity
Dark Addressing
# Register a .dark domain
# Resolve a domain
# Create temporary shadow address
# Generate quantum fingerprint
# List your registered domains
Exchange Operations
Manage rUv tokens and business plan payouts:
# Account Management
# Token Transfers
# Fee Management
# Immutable Deployment
Business Plan Management
Configure and manage automated payout distribution:
# Enable Business Plan Features
# Check Status
# Configure Payouts
# Contributor Management
# View Payout History
MCP Server Operations
Model Context Protocol server for AI agent integration:
# Start MCP Server
# Server Management
# List Available Tools
# Configuration
Quantum Cryptography
Generate and manage quantum-resistant keys:
# Key Generation
# Signing Operations
# Encryption Operations
DAG Visualization
Generate and analyze DAG structure:
# Generate DAG visualization
# DAG Analysis
Password Vault
The QuDAG CLI includes a quantum-resistant password vault for secure credential management:
# Initialize a new vault
# Generate secure passwords
# Add password entries
# Retrieve passwords
# List vault entries
# Update existing entries
# Remove entries
# Vault management
# Configuration
Network Operations
# Show network statistics
# Test peer connectivity
# Monitor network events
# NAT Traversal
# Routing Configuration
Monitoring and Debugging
# Real-time monitoring
# Performance metrics
# Debug operations
# Benchmarking
# Health checks
Configuration
# Show current configuration
# Set configuration value
# Import/Export configuration
# Generate systemd service
Examples
Setting Up Your First Node
# 1. Start your node
# 2. Register your identity
# 3. Connect to the network (use bootstrap peers)
# 4. Check status
Creating a Private Network
# Node 1
# Node 2
# Node 3
Dark Domain System
# Register domains for different services
# Create temporary addresses for ephemeral communication
# Resolve any .dark domain to find peers
Exchange and Business Plan Workflow
# Initialize exchange with business plan
# Create accounts for participants
# Register contributors
# Configure payout thresholds
# Process transactions with automatic fee distribution
# Check payout history
MCP Server for AI Agents
# Start MCP server with full QuDAG integration
# In another terminal, list available tools for agents
# Example output:
# - vault_create: Create secure vaults
# - vault_unlock: Access vault contents
# - exchange_transfer: Send rUv tokens
# - dag_query: Query DAG structure
# - network_peer_info: Get peer information
# Check server status
Password Vault Setup
# Initialize your vault
# Generate and store service passwords
# Create organized structure
# Backup your vault
# Daily usage
Configuration File
QuDAG CLI uses a configuration file at ~/.qudag/config.toml:
[]
= 8000
= 9090
= "~/.qudag/data"
= "info"
[]
= 50
= [
"/ip4/bootstrap1.qudag.io/tcp/8000/p2p/12D3KooW...",
"/ip4/bootstrap2.qudag.io/tcp/8000/p2p/12D3KooW..."
]
[]
= true
= 3600
[]
= true
= true
[]
= "~/.qudag/vault.qdag"
= 300 # seconds
= 30 # seconds
= 3
= 65536 # KB
[]
= true
= "qudag-mainnet"
= 1
= false
[]
= 0.001 # 0.1%
= 0.01 # 1.0%
= 0.0025 # 0.25%
= 0.005 # 0.5%
= 30
= 10000
[]
= true
= true
= true
= true
= true
= 100
= 0.001
[]
= true
= 3000
= "127.0.0.1"
= "http" # http, stdio, or websocket
= true
= true
= true
= true
[]
= true
= 9091
= true
= "jaeger" # jaeger, otlp, or none
Output Formats
Many commands support different output formats:
# JSON output
# Table output (default)
# Raw output for scripting
Logging
# View logs
# Follow logs in real-time
# Filter by level
# Save logs to file
Systemd Integration
Generate systemd service files:
# Generate service file
# Enable and start
Environment Variables
QUDAG_CONFIG- Path to configuration fileQUDAG_DATA_DIR- Data directory overrideQUDAG_LOG_LEVEL- Log level (trace, debug, info, warn, error)QUDAG_PORT- Default port overrideQUDAG_RPC_PORT- RPC port overrideQUDAG_EXCHANGE_ENABLED- Enable/disable exchange (true/false)QUDAG_MCP_PORT- MCP server port overrideQUDAG_MCP_TRANSPORT- MCP transport (http, stdio, websocket)QUDAG_VAULT_PATH- Vault file path overrideQUDAG_NETWORK_NAME- Network name for exchangeQUDAG_CHAIN_ID- Chain ID for exchange
Exit Codes
0- Success1- General error2- Configuration error3- Network error4- Permission error5- Not found error
Shell Completion
Generate shell completion scripts:
# Bash
# Zsh
# Fish
Security Considerations
- All communication is quantum-resistant encrypted
- Private keys are stored securely in
~/.qudag/keys/ - Configuration supports file permissions verification
- Network traffic uses onion routing for anonymity
Troubleshooting
Common Issues
Node won't start
# Check if port is in use
|
# Check logs
Can't connect to peers
# Test network connectivity
# Check firewall settings
Permission errors
# Check data directory permissions
# Fix permissions
Exchange not working
# Check if exchange is enabled
# Verify configuration
|
# Check vault connectivity
MCP server issues
# Check if port is available
# Test MCP server
# View MCP logs
Business plan payout issues
# Check business plan status
# Verify contributor registration
# Check minimum thresholds
Documentation
- QuDAG CLI Documentation
- Exchange Core Documentation
- MCP Server Documentation
- QuDAG Project
- User Guide
- Exchange Business Plan
License
Licensed under either MIT or Apache-2.0 at your option.