Share OAuth Auth Across Hermes Multi-Agent Profiles

Using multi-agent in Hermes, want to share OAuth authentication  

The two approaches I thought of before both require modifying Hermes's own code  
The changes are quite substantial  

I came up with another approach that doesn't modify Hermes code at all  
Still copy the default agent's auth.json to each profile agent's workspace  
But push back the time that prompts api key / token expiration in auth.json  

This way, each profile agent won't update the api key / token

Then write a small program and run it as a scheduled task. The content is the operation above
Copy the default agent's auth.json to each profile agent's workspace  
But push back the time that prompts api key / token expiration in auth.json  

Actually, with the information above, it's already enough for you to have a conversation with Hermes to implement the feature.

To prevent you from going astray, let me be a bit more verbose about the specifics.
The fields to modify in ~/.hermes/auth.json are those with the expire keyword: 
providers.nous.expires_at  OAuth token expiration
providers.nous.agent_key_expires_at Agent key expiration 
credential_pool.nous[].expires_at OAuth expiration in the pool
credential_pool.nous[].agent_key_expires_at Agent key expiration in the pool
There are also some time fields that are not expiration times, but acquisition times, so don't touch them.

I had Hermes summarize this into a skill
Github

See also


Comments