Connect a Hermes agent to Civic using its native MCP support. Hermes is a Python CLI agent framework that supports multiple LLM providers (including Anthropic, OpenAI, and others) and MCP for external tool access — pair it with Civic’s MCP gateway to give your agent secure access to Gmail, Google Calendar, and 80+ other services.Documentation Index
Fetch the complete documentation index at: https://docs.civic.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Python 3.11+
- A Civic account at app.civic.com with a configured toolkit
- A Civic token (generate from Install → MCP URL)
- An API key for your chosen LLM provider (e.g., Anthropic, OpenAI)
Installation
Install the Hermes agent with MCP support using uv:Environment Variables
Get Your Credentials
How to generate a Civic token and configure toolkit URL parameters
Configuration
Create aconfig.yaml that points Hermes at your Civic MCP gateway:
Running the Agent
Telegram Bot
Hermes also supports running as a Telegram bot. Add your bot token to.env:
Production Configuration
Lock to a Toolkit
For production agents, always lock to a specific toolkit using theprofile URL parameter:
Multi-Account Setup
For organization accounts, include theaccountId parameter:
Pre-load Skills
Load specific Skills at session start using theskills parameter:
Reference Implementation
A complete reference implementation including CLI agent and Telegram bot is available at: github.com/civicteam/hermes-reference-implementation-civicNext Steps
Agent Deployment
Production deployment guide: profile locking, URL params, authentication
Guardrails
Constrain what tools your Hermes agent can use
Audit Trail
Query what your agent did via Civic Chat
Get Credentials
Token generation and URL parameter reference

