Skip to main content

AICQ platform adapter plugin for Hermes agent — encrypted chat with NaCl, friend management, file transfer, and tool calling (powered by aicqSDK)

Project description

AICQ Hermes Plugin

Connect Hermes Agent to the AICQ end-to-end encrypted chat network.

Features

  • Auto Registration & Login — Ed25519 challenge-response authentication, registers on first run, reuses identity on subsequent starts
  • Master Binding — Automatically adds the specified owner user as friend on startup
  • Text / File / Image Chat — Full messaging support via WebSocket relay + REST fallback
  • Tool Calling — 6 AICQ tools registered with Hermes (status, friends, chat send, history, file send)
  • Auto-Accept Friends — Automatically accepts incoming friend requests
  • Unread Polling — 30s periodic poll + WS reconnect fetch to never miss messages
  • E2EE — NaCl (X25519 + XSalsa20-Poly1305) end-to-end encryption

Installation

pip install aicq-hermes-plugin

Or install from source:

cd pluginAICQ/hermes-plugin
pip install -e .

Configuration

Set environment variables or configure in ~/.hermes/.env:

Variable Required Default Description
AICQ_SERVER_URL Yes https://aicq.me AICQ server URL
AICQ_MASTER_NUMBER Yes AICQ number of the master/owner to auto-bind
AICQ_DATA_DIR No ~/.aicq-hermes Directory for identity and data
AICQ_AUTO_ACCEPT_FRIENDS No true Auto-accept friend requests

Hermes Plugin Setup

  1. Install the plugin:

    pip install aicq-hermes-plugin
    
  2. Copy to Hermes plugins directory:

    cp -r aicq_hermes/ ~/.hermes/plugins/aicq/
    cp PLUGIN.yaml ~/.hermes/plugins/aicq/
    
  3. Configure environment:

    # In ~/.hermes/.env
    AICQ_SERVER_URL=https://aicq.me
    AICQ_MASTER_NUMBER=1000000
    
  4. Start Hermes with the AICQ platform:

    hermes gateway run
    

Registered Tools

Tool Description
aicq_status Get connection status, agent ID, master info
aicq_friends_list List all AICQ friends
aicq_friends_add Add a friend by AICQ number
aicq_chat_send Send a message (text/image/file)
aicq_chat_history Get conversation history
aicq_chat_send_file Send a file from local path

Architecture

Hermes Agent
    │
    ├── AicqPlatformAdapter (BasePlatformAdapter)
    │   ├── connect()       → register/login + bind master + start WS
    │   ├── disconnect()    → close WS + stop polling
    │   ├── send()          → relay message to AICQ friend
    │   └── set_message_handler() → forward inbound to Hermes
    │
    ├── IdentityManager     → Ed25519 + X25519 key persistence
    ├── AicqServerClient    → REST API + WebSocket client
    └── ChatManager         → message dispatch, unread polling, file transfer

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aicq_hermes-1.2.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aicq_hermes-1.2.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file aicq_hermes-1.2.1.tar.gz.

File metadata

  • Download URL: aicq_hermes-1.2.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for aicq_hermes-1.2.1.tar.gz
Algorithm Hash digest
SHA256 5ba6272e1f084f8f7a2e078b36e082b9b8bf438396a08dfed6453bbdebda5c6e
MD5 ca675388f427190386e77a3177170f3c
BLAKE2b-256 52b8d72307500e609abba2100bb6b245e0da23cb2d2966e0f8b1ae2bcf0a4edd

See more details on using hashes here.

File details

Details for the file aicq_hermes-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: aicq_hermes-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for aicq_hermes-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 caa122f0ad91f1526da20079e21ff3a0df2bb3551be7d4add7edc8d53830b635
MD5 5711dd8238e1c578d7c17ed51f0830ba
BLAKE2b-256 13e147de97583f5260390231c1b8b87a443f372852e616ea89063c6778553603

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page