Hermes Agent
How to connect Hermes Agent to Microsoft Teams
Updated 29 November 2026
If you run Hermes yourself, register a Teams bot and give it a public HTTPS address where it can reach your gateway. Test it with a direct message before adding it to a channel. If your agent runs in Nous Portal, you can link it from a personal Teams chat. ReadyHermes does not offer a Teams channel.
Sources read on 28 November 2026 include the Hermes Agent 0.23.5 Teams setup guide, its bundled Teams adapter (1.0.0) and meeting plugin guide (plugin 0.1.0). Account requirements come from Microsoft Learn, hosted setup from the Nous Portal instructions, and ReadyHermes availability from its Channels panel.
Link an agent you already have in Nous Portal
The connector supports members of your organisation only. In Teams, open Apps and add Hermes Agent. Your organisation must allow the app. If an administrator set up your agent, open your invitation email.
To link your own agent, open its settings in Nous Portal, turn on Team Gateway, then choose Teams and Link Teams. The code links your account, so keep it private. Send the displayed command in the app’s personal chat within ten minutes, then send a follow-up message to check the connection.
On 18 November, Nous announced that employees could assign work to Hermes Enterprise in Teams and review the result in the same conversation. The announcement also covered Hermes Desktop for Windows in the Microsoft Store and running agent workloads in Azure Container Apps Sandboxes. For organisations with strict data residency, security or procurement requirements, Nous says it can deploy Hermes Enterprise in the customer’s Azure tenant. Its Enterprise page lists private cloud and custom deployments for organisations with more than 500 people, and offers assisted onboarding by enquiry. See the Nous announcement and Enterprise offering.
Prepare a self-hosted agent and sign in to Teams
Start with a working Hermes Agent installation and a configured model. If you use Azure Foundry for inference, hermes model lets you select azure-foundry. The gateway still needs its own Teams bot registration to receive messages.
For a source install, open the checkout prepared by Hermes’s package manager. From its root, activate the Hermes environment with source ./activate in Bash, source ./activate.fish in fish or . .\activate.ps1 in PowerShell. Run the Python command below to add the Teams SDK, then run your activation command again and restart Hermes.
python -c "import pm; pm.sync_venv(['teams'], explicit=True)"Use a Microsoft 365 work or school account with permission to install custom apps in a tenant that allows uploads. The CLI checks access at sign-in. If uploads are disabled, ask your Microsoft 365 administrator to enable them. Microsoft’s quickstart installs the CLI without a version tag. Hermes 0.23.5 uses the preview tag. Install Node.js with npm first. The Teams CLI preview checked for this guide requires Node.js 22.12.0 or later.
npm install -g @microsoft/teams.cli@preview
teams login
teams status --verboseCopy your account’s AAD object ID from the status output. Hermes uses it to identify you as an allowed sender.
Expose the message endpoint and register the bot
Teams needs a public HTTPS address. The Hermes listener speaks HTTP on port 3978 by default. For local development with Microsoft Dev Tunnels, install the Dev Tunnels CLI for your operating system, then sign in and start the tunnel.
devtunnel user login
devtunnel create hermes-bot --allow-anonymous
devtunnel port create hermes-bot -p 3978 --protocol http
devtunnel host hermes-botKeep the tunnel running and copy the public address for that port. The guide also supports ngrok http 3978 or cloudflared tunnel --url http://localhost:3978. If you changed the listener port with TEAMS_PORT, forward to that port.
Run the Teams CLI command below in another terminal. Replace the tunnel placeholder with the public hostname and keep /api/messages at the end.
teams app create --name "Hermes" --endpoint "https://<tunnel>/api/messages"Save the Teams App ID and installation link. For the Hermes setup wizard, also save the client ID, client secret and tenant ID. The secret is shown once.
For a permanent installation, use your domain with a valid TLS certificate. If the reverse proxy runs on the gateway host, set TEAMS_HOST to 127.0.0.1 in ~/.hermes/.env and forward the public HTTPS message endpoint to http://127.0.0.1:3978. This keeps the HTTP listener behind the proxy. To update the registration, enter your Teams App ID and domain as shown in the Teams CLI reference.
teams app update <teamsAppId> --endpoint "https://your-domain.com/api/messages"Give Hermes the bot credentials and choose who can use it
Run hermes gateway setup and choose Microsoft Teams. Enter the client ID, client secret and tenant ID. Choose to restrict access, then enter your own AAD object ID. To admit colleagues, add their user object IDs separated by commas. For manual setup, including a Docker container you have yet to start, put the following entries in ~/.hermes/.env and replace the placeholders.
TEAMS_CLIENT_ID=<your-client-id>
TEAMS_CLIENT_SECRET=<your-client-secret>
TEAMS_TENANT_ID=<your-tenant-id>
TEAMS_ALLOWED_USERS=<your-aad-object-id>On Linux or macOS, run chmod 600 ~/.hermes/.env to restrict file access to its owner. On Windows, use the file permissions to limit access to the account running Hermes and your system administrators. If you previously declined the access restriction, check for TEAMS_ALLOW_ALL_USERS before testing. The wizard saves it as true in that case, which grants access even when you later add user IDs. Remove that grant if you intend to restrict access.
The Teams guide warns that an empty list opens the bot. The 0.23.5 gateway checks other grants, including approved pairing and gateway-wide access, and denies a sender who has none. That is why the empty list alone cannot tell you who has access. See the gateway access checks.
Start the gateway and test a DM and a channel mention
For an installed service, restart the gateway with hermes gateway restart. To run it in the foreground, use hermes gateway run. For Docker, run the commands in this guide from the Hermes v0.23.5 checkout. Its Compose file defines a gateway service that uses host networking. On Docker Desktop 4.34 or later, sign in to your Docker account. Open Settings → Resources → Network, select Enable host networking, then Apply and restart. Run the command below in Bash.
HERMES_UID=$(id -u) HERMES_GID=$(id -g) docker compose up -d gatewayIf the container is already running and you edited ~/.hermes/.env, run docker compose restart gateway to load the changes. On a Docker-only installation, prefix Hermes CLI commands with docker compose exec gateway to run them inside the running container.
- On the gateway host, run
curl http://localhost:3978/health. If you changed the Teams listener port, replace3978with that port. The listener returnsok. - Open the installation link from registration, or retrieve it with
teams app get <teamsAppId> --install-link. Install the app in Teams. - From an allowed account, send the bot a question in a personal chat. A reply tests the public endpoint, sender access and model together. In a group chat or channel where the bot has been added, mention it by name and ask another question.
Personal chats need no mention. In groups and channels Teams normally sends the bot messages that mention it. Resource-specific consent can broaden what Teams sends. For channel messages the permission is ChannelMessage.Read.Group, and for group chats it is ChatMessage.Read.Chat.
The Hermes filter TEAMS_REQUIRE_MENTION defaults to false. If the app has that broader consent, set TEAMS_REQUIRE_MENTION=true to accept only messages that mention the bot or reply to one of its tracked messages outside personal chats. For scheduled messages, TEAMS_HOME_CHANNEL identifies the destination conversation and TEAMS_HOME_CHANNEL_NAME gives it a display name.
Find where a Teams message stops
- “Can’t find a suitable configuration file”. Compose needs the checkout containing
docker-compose.yml. On a native service install, usehermes gateway restart. - “Teams SDK missing” or “No adapter available for teams”. For a source install, repeat the activation and SDK installation steps above. With the v0.23.5 Compose file, run
docker compose exec gateway hermes pm install --extra teams, thendocker compose restart gateway. - Health returns ok but Teams stays silent. Check the tunnel is running. Compare the registered hostname and message path with the current tunnel address. Update the registration if the address changed.
- “UNKNOWN / HTTP/1.0” 400. The listener is receiving TLS traffic. End TLS at the tunnel or reverse proxy and forward plain HTTP to the Hermes port.
- “[teams] Failed to connect”. Read the error that follows. For an authentication error, check the bot’s client ID and secret, then confirm that the tenant matches the account used for
teams login. If the address is already in use, free the listener port or changeTEAMS_PORTand update the tunnel or proxy to match. - Hermes receives a message but ignores it. Check your user object ID against the allowlist.
- “No inference provider configured”. Run
hermes modelto configure your provider. For Microsoft Foundry, choose the authentication method your deployment uses, either an API key or Microsoft Entra ID. - “This bot is not responding”. Inspect the error with
hermes gateway status -lor, in Docker,docker logs hermes.
Receive meeting transcripts and deliver summaries
A working chat bot can answer a DM. For post-meeting summaries, Hermes needs a separate notification from Microsoft Graph. The meeting plugin looks for a transcript first. To use a recording when the transcript is unavailable, grant recording access, install ffmpeg to extract the audio and enable a working speech-to-text provider in Hermes.
- Run
hermes plugins enable teams_pipeline. In Hermes 0.23.5, you configure meeting summaries manually. Follow the Graph app registration guide to register a single-tenant app just for meeting summaries. If you share the app, the renewal command below can also renew its unrelated subscriptions. Ask an administrator to consent toOnlineMeetings.Read.AllandOnlineMeetingTranscript.Read.Allfor transcripts. Recording access usesOnlineMeetingRecording.Read.All. For webhook jobs, Hermes can read the organiser’s Entra user ID from the notification. GrantCallRecords.Read.Allonly if you have a call-record ID and want the additional details from that record. - Have the administrator grant an application access policy for the intended meeting organisers. Hermes describes this as optional. Microsoft requires the policy for the covered meeting APIs when using application permissions. Follow Microsoft’s policy instructions. Allow up to 30 minutes for a new policy to take effect.
- Put the Graph credentials and listener settings below in
~/.hermes/.env. Copy the client secret’s Value from the registration. Choose a random shared secret for the notification listener and use it again when creating the subscription.
MSGRAPH_TENANT_ID=<tenant-id>
MSGRAPH_CLIENT_ID=<client-id>
MSGRAPH_CLIENT_SECRET=<client-secret>
MSGRAPH_WEBHOOK_ENABLED=true
MSGRAPH_WEBHOOK_PORT=8646
MSGRAPH_WEBHOOK_CLIENT_STATE=<random-shared-secret>
MSGRAPH_WEBHOOK_ACCEPTED_RESOURCES=users/<organizer-id>Replace <organizer-id> with the organiser’s Entra user ID. For several organisers, separate their users/<organizer-id> entries with commas. Use those same IDs when you subscribe to meeting events below. See Microsoft’s notification examples.
Check that your Power Automate licence covers the premium When an HTTP request is received trigger and that your Teams administrator allows the Workflows app. Choose a named group chat or a standard channel whose members may read every summary the flow receives. The posting action does not support private channels.
Create a flow with that HTTP trigger. Select Anyone because Hermes sends the request without an authentication token. Set the request body to accept a JSON object with a string field named text. In the Teams Post a message in a chat or channel action, use that field as the message for your chosen destination. Save the flow and copy its URL into incoming_webhook_url below. Keep the URL private. See Microsoft’s HTTP trigger settings and Teams posting instructions.
For a tunnel or proxy on the gateway host, merge both entries below under platforms in ~/.hermes/config.yaml. Keep any existing Teams bot settings. The Graph listener then accepts connections from the local tunnel or proxy.
platforms:
msgraph_webhook:
enabled: true
extra:
host: 127.0.0.1
teams:
enabled: true
extra:
delivery_mode: "incoming_webhook"
incoming_webhook_url: "https://..."To send summaries to an existing chat through Graph, set delivery_mode to graph and set chat_id. Supply an access_token for a work or school user with delegated ChatMessage.Send permission. Hermes cannot refresh that token. For recurring summaries, replace it before it expires or use the Power Automate flow above. In v0.23.5, hermes teams-pipeline validate can report a missing team ID for this chat setup even though the writer accepts the chat ID alone. See Microsoft’s chat permissions.
For Graph delivery to a channel, clear chat_id and unset TEAMS_CHAT_ID if present. Graph delivery uses the chat whenever a chat ID is set. Set delivery_mode to graph and supply both team_id and channel_id. Channel posting needs separate permission from transcript access. Microsoft lists ChannelMessage.Send for sending on behalf of a signed-in user and Teamwork.Migrate.All for migration. An app can also post to a specific team’s channels with that team’s consent to ChannelMessage.Send.Group. See Microsoft’s send-message permission table and team-specific permissions.
Subscribe to meeting events and check the first expiry
Route the public HTTPS path /msgraph/webhook through your proxy to the local Graph listener on port 8646. Restart the gateway and run curl http://localhost:8646/health. Confirm that your tenant allows Graph to access transcripts and that the organiser’s Teams licence and meeting policy allow transcription.
Create a transcript subscription for each organiser before transcription starts. In the one-hour test below, replace {userId} with the same Entra user ID you entered in the listener settings. Run the example in Bash. In that session, set MSGRAPH_WEBHOOK_CLIENT_STATE to the listener’s shared secret. Replace the example notification URL with your public HTTPS URL.
Replace <subscription-file> with the full path to a separate, private file. Use that same path for every subscription command, including scheduled renewals. Even listing subscriptions writes to disk. Sharing the gateway’s file can overwrite meeting jobs or subscription records. In Docker, choose a path under /opt/data in the container.
hermes teams-pipeline subscribe \
--resource "users/{userId}/onlineMeetings/getAllTranscripts" \
--change-type created \
--store-path "<subscription-file>" \
--notification-url https://ops.example.com/msgraph/webhook \
--client-state "$MSGRAPH_WEBHOOK_CLIENT_STATE"For recording events, repeat the command for each organiser using --resource "users/{userId}/onlineMeetings/getAllRecordings". Keep --change-type created for both subscriptions. Check the configuration, credentials and subscription expiry with these commands.
hermes teams-pipeline validate
hermes teams-pipeline token-health --force-refresh
hermes teams-pipeline subscriptions --store-path "<subscription-file>"If the token check reports “AADSTS7000215: Invalid client secret”, create a new secret and copy its Value into MSGRAPH_CLIENT_SECRET. Restart the gateway, then run hermes teams-pipeline token-health --force-refresh. Check that last_refresh_succeeded is true before deleting the old secret. For “AADSTS700016: Application not found”, check that MSGRAPH_CLIENT_ID and MSGRAPH_TENANT_ID come from the same registration.
For recurring notifications, include --lifecycle-notification-url when you create the subscription. Use a separate endpoint that answers Graph’s validation challenge and handles reauthorizationRequired events. The meeting listener above rejects those events. If you already created the one-hour test without a lifecycle URL, delete that subscription and create its replacement with the URL. See Microsoft’s lifecycle instructions.
Before the subscription with the lifecycle URL expires, run the renewal command below. Check the new expiry with the subscription listing command above, then schedule the renewal and check the expiry after its first run.
hermes teams-pipeline maintain-subscriptions --store-path "<subscription-file>"Once the subscription is active, have an organiser included in your listener settings start transcription in a new scheduled meeting outside a private channel. When the transcript is available, run hermes teams-pipeline list to find the job. For details, run hermes teams-pipeline show <job-id>. Leave both commands on the gateway’s default store. Check the chosen chat or channel for the summary. If the list is empty, check the notification URL, organiser ID, shared secret and subscription expiry. If the job lacks a transcript, check that the Graph app can read it.
By default, Hermes saves the full transcript in ~/.hermes/teams_pipeline_store.json. After successful delivery through Power Automate, the file also contains the private flow URL. Restrict access to the file and its backups. The model receives only the first 18,000 characters of transcript text, so check decisions from later in a long meeting against the transcript.
Microsoft Teams on ReadyHermes
ReadyHermes does not offer Microsoft Teams in its Channels panel. The available connections are Telegram, WhatsApp, Discord, WeChat, Lark and Hermes Desktop. ReadyHermes has no plugin installer, and installing catalog plugins on a hosted assistant is untested and unsupported.
Questions
How does a Nous Portal agent connect to Microsoft Teams?
Members of your organisation can add Hermes Agent in Teams. If an administrator set up your agent, open your invitation email. For your own agent, turn on Team Gateway in its Portal settings and choose Teams, then Link Teams. Keep your code private and send the displayed command in the app’s personal chat within ten minutes.
What endpoint does a self-hosted Hermes Teams bot need?
Register the public HTTPS address ending in /api/messages. The tunnel or reverse proxy forwards plain HTTP to the listener on port 3978 by default. If the proxy runs on the gateway host, set TEAMS_HOST to 127.0.0.1 to keep that port local.
Why does Hermes answer a DM but ignore a Teams channel message?
Teams normally delivers channel messages that mention the bot. Add the bot to the channel and mention it from an allowed account. If the app has broader message-read consent, TEAMS_REQUIRE_MENTION=true still filters for mentions and replies to tracked bot messages.
Does connecting the Teams bot also enable meeting summaries?
Meeting summaries need the teams_pipeline plugin, Graph credentials, a notification listener and a delivery destination. Create a transcript subscription for each organiser before transcription starts. Once the transcript is available, run hermes teams-pipeline list to find the job and check the chosen chat or channel for its summary.
Does ReadyHermes offer Microsoft Teams as a channel?
No. Its Channels panel offers Telegram, WhatsApp, Discord, WeChat, Lark and Hermes Desktop.