xulei123/HermesFace2
<div align="center">
π± HermesFace
Your always-on, self-improving AI assistant β free, no server needed
No Mac Mini? No problem. Get a fully-featured AI assistant running 24/7 on HuggingFace's free tier β 2 vCPU, 16 GB RAM, 50 GB storage, zero cost.
<sub>Telegram Β· Discord Β· Slack Β· WhatsApp Β· Signal Β· WeChat Β· 16+ channels Β· Self-improving skills Β· Persistent memory</sub>
        
</div>
What you get
In about 5 minutes, you'll have a free, always-on, self-improving AI assistant connected to Telegram, Discord, Slack, WhatsApp, and 16+ other channels β no server, no subscription, no hardware required.
Powered by [Hermes Agent](https://github.com/NousResearch/hermes-agent) β Nous Research's open-source, self-improving AI assistant that normally requires your own machine. HermesFace makes it run for free on HuggingFace Spaces by adding data persistence via HF Dataset sync.
Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β HuggingFace Space (Docker, cpu-basic) β
β β
β ββββββββββββββββ ββββββββββββββββββββββββββββββ β
β β sync_hf.py βββββΆβ Hermes Agent β β
β β (persistence β β ββ Web Dashboard (:7860) β β
β β manager) β β ββ Gateway (messaging) β β
β β β β ββ Skills Engine β β
β ββββββββ¬ββββββββ β ββ Memory System β β
β β β ββ Cron Scheduler β β
β βΌ β ββ 47 Tools β β
β ββββββββββββββββ ββββββββββββββββββββββββββββββ β
β β HF Dataset β βββ Auto-sync every 60s β
β β (private) β Config, skills, memories β
β ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββQuick Start
1. Duplicate this Space
Click Duplicate this Space on the HermesFace Space page.
2. Set Secrets
Go to Settings β Repository secrets and add the following. The only two you must set are HF_TOKEN and one API key.
Data Persistence
HermesFace syncs /opt/data (conversations, skills, memories, config) to a private HuggingFace Dataset repo so your data survives every restart.
Option A β Auto mode (recommended)
- Set
AUTO_CREATE_DATASET=truein your Space secrets - Set
HF_TOKENwith write permission - Done β on first startup, HermesFace automatically creates a private Dataset repo named
your-username/SpaceName-data. Each duplicated Space gets its own isolated dataset.
Option B β Manual mode
- Go to huggingface.co/new-dataset and create a private Dataset repo (e.g.
your-name/HermesFace-data) - Set
HERMES_DATASET_REPO=your-name/HermesFace-datain your Space secrets - Set
HF_TOKENwith write permission - Done β HermesFace will sync to this repo every 60 seconds
Environment Variables
Fine-tune persistence and performance. Set these as Repository Secrets in HF Spaces, or in .env for local Docker.
For the full list (including all Hermes Agent variables), see `.env.example`.
3. Open the Dashboard
Visit your Space URL. The Hermes Agent web dashboard provides:
- Status Page β agent status and session activity
- Config Page β dynamic configuration editor
- Env Page β API key management
Messaging integrations (Telegram, Discord, WhatsApp) can be configured through the dashboard or via environment variables.
Configuration
HermesFace supports all Hermes Agent environment variables β it passes the entire environment to the Hermes process (env=os.environ.copy()), so any variable from the Hermes Agent docs works out of the box in HF Spaces. This includes:
- API Keys β
OPENROUTER_API_KEY,OPENAI_API_KEY,ANTHROPIC_API_KEY,NOUS_API_KEY,GOOGLE_API_KEY,MISTRAL_API_KEY - Messaging β
TELEGRAM_BOT_TOKEN,DISCORD_BOT_TOKEN,SLACK_BOT_TOKEN - Terminal β
TERMINAL_BACKEND,TERMINAL_TIMEOUT - Browser β
BROWSERBASE_API_KEY,BROWSERBASE_PROJECT_ID
HermesFace adds its own variables for persistence and deployment: HF_TOKEN, HERMES_DATASET_REPO, AUTO_CREATE_DATASET, SYNC_INTERVAL, etc. See `.env.example` for the complete reference.
Connecting Messaging Platforms
Set the appropriate bot token as a Space Secret:
Local Docker
git clone https://github.com/democra-ai/HermesFace.git
cd HermesFace
cp .env.example .env # Edit with your API keys
docker build -t hermesface .
docker run -p 7860:7860 --env-file .env hermesfaceAcknowledgments
- [Hermes Agent](https://github.com/NousResearch/hermes-agent) by Nous Research β the self-improving AI assistant framework
- [HuggingFace Spaces](https://huggingface.co/spaces) β free Docker hosting for ML apps
License
MIT
