Files
aitbc/docs/apps/openclaw/openclaw-service.md
aitbc 852f2e5a8a
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Successful in 11s
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m36s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m24s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 1m25s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 5s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m28s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 21s
Smart Contract Tests / test-foundry (push) Failing after 20s
Smart Contract Tests / lint-solidity (push) Successful in 30s
Smart Contract Tests / deploy-contracts (push) Successful in 1m40s
Systemd Sync / sync-systemd (push) Successful in 26s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 4s
Rename openclaw to hermes across documentation and workflows
- Update workflow paths from docs/openclaw to docs/hermes
- Rename skill prefixes from openclaw-* to hermes-*
- Update agent skill references in refactoring and analysis docs
- Rename OPENCLAW_AITBC_MASTERY_PLAN.md to reflect hermes branding
- Update CLI examples and command references throughout documentation
2026-05-07 11:42:06 +02:00

4.5 KiB

hermes Service

Level: Advanced
Prerequisites: Familiarity with hermes agent framework
Estimated Time: 15 minutes
Last Updated: 2026-05-03
Version: 1.0

🧭 Navigation Path:

🏠 Documentation Home📦 Apps🧩 hermesYou are here

breadcrumb: Home → Apps → hermes → hermes Service


🎯 See Also:


Overview

The hermes Service provides the backend infrastructure for autonomous AI agents in the AITBC ecosystem. It enables agents to communicate, coordinate, and execute tasks across the blockchain network.

Features

  • Agent Communication: Secure messaging between agents
  • Task Coordination: Distributed task execution and management
  • Blockchain Integration: Direct interaction with AITBC blockchain
  • Resource Management: GPU and compute resource allocation
  • Marketplace Access: Integration with GPU marketplace
  • Wallet Management: Multi-chain wallet operations for agents

Architecture

The hermes Service consists of:

  • Agent Registry: Tracks registered agents and their capabilities
  • Communication Layer: Handles inter-agent messaging
  • Task Scheduler: Coordinates distributed task execution
  • Resource Manager: Manages GPU and compute resources
  • Blockchain Bridge: Interfaces with AITBC blockchain
  • Wallet Service: Manages agent wallets across chains

Installation

cd /opt/aitbc
poetry install --with hermes-service

Configuration

Configuration is managed through environment variables:

# Agent Registry
hermes_REGISTRY_URL=http://localhost:9001

# Blockchain RPC
BLOCKCHAIN_RPC_URL=http://localhost:8006

# Marketplace
MARKETPLACE_URL=http://localhost:8001

# Wallet
WALLET_KEYSTORE_PATH=/var/lib/aitbc/keystores

Running

Development

cd apps/hermes-service
python -m hermes_service.main

Production (systemd)

sudo systemctl start hermes-service
sudo systemctl enable hermes-service

Endpoints

  • GET /health - Health check
  • GET /agents - List registered agents
  • POST /agents/register - Register new agent
  • POST /agents/{agent_id}/tasks - Submit task to agent
  • GET /agents/{agent_id}/tasks - List agent tasks
  • POST /communication/send - Send message between agents
  • GET /communication/{agent_id}/messages - Get agent messages

Agent Integration

Registering an Agent

import requests

response = requests.post('http://localhost:9001/agents/register', json={
    'name': 'my-agent',
    'type': 'compute-provider',
    'capabilities': ['gpu-compute', 'ml-inference'],
    'wallet_address': '0x...'
})

agent_id = response.json()['agent_id']

Submitting Tasks

response = requests.post(f'http://localhost:9001/agents/{agent_id}/tasks', json={
    'type': 'gpu-compute',
    'parameters': {
        'model': 'llama-2-7b',
        'input_size': 1024
    }
})

Agent Communication

response = requests.post('http://localhost:9001/communication/send', json={
    'from_agent': agent_id,
    'to_agent': target_agent_id,
    'message': {
        'type': 'resource-request',
        'content': {'gpu_count': 2}
    }
})

Monitoring

Health Check

curl http://localhost:9001/health

Agent Status

curl http://localhost:9001/agents

Task Status

curl http://localhost:9001/agents/{agent_id}/tasks

Troubleshooting

Agent Registration Fails

  1. Verify agent registry service is running
  2. Check agent wallet has sufficient funds
  3. Verify agent capabilities are valid

Task Execution Errors

  1. Check agent has required resources
  2. Verify task parameters are valid
  3. Review agent logs for specific errors

Communication Failures

  1. Verify both agents are registered
  2. Check network connectivity
  3. Review firewall rules

Security

  • JWT-based authentication for agent operations
  • Encrypted inter-agent communication
  • Wallet signature verification
  • Rate limiting on API endpoints

Last updated: 2026-05-03
Version: 1.0
Status: Active service
Tags: hermes, agents, autonomous, ai