Skip to content
DocsUnitley Docs home
Other agents

Hermes Agent

Connect Nous Research's Hermes Agent to Unitley with an access token in .env and one server entry in config.yaml, then test and reload.

Hermes Agent connects to Unitley directly over HTTP. You keep the token in Hermes's .env file and point config.yaml at it, so the token never sits in the config itself.

Set it up

  1. Create a token

    Open the Connect page and create a token for Hermes. Tick Let it log bets, settle them and save picks only if you want Hermes to use log_bet, settle_bet and save_recommendation. Unitley shows the token only once, and the Connect page fills it into the setup below while the page is open.

  2. Save the token in .env

    Add this line to ~/.hermes/.env, with your token in place of the placeholder:

    ~/.hermes/.env
    UNITLEY_TOKEN=YOUR_UNITLEY_TOKEN
  3. Add the server to config.yaml

    Add this to ~/.hermes/config.yaml. If the file already has an mcp_servers section, add only the unitley entry under it.

    ~/.hermes/config.yaml
    mcp_servers:
      unitley:
        url: "https://console.unitley.com/api/mcp"
        headers:
          Authorization: "Bearer ${UNITLEY_TOKEN}"

    Hermes replaces ${UNITLEY_TOKEN} with the value from your environment when it connects. You can also run hermes mcp add unitley --url https://console.unitley.com/api/mcp --auth header and paste the token when asked; Hermes saves it in .env as MCP_UNITLEY_API_KEY. The steps here use your own variable name, UNITLEY_TOKEN, instead.

  4. Test the connection

    Run in a terminal
    hermes mcp test unitley

    This reports what Unitley answered. A 401 means the token was refused: check that .env holds the whole token and that it has not expired or been revoked.

  5. Reload a running session

    If Hermes is already running, type /reload-mcp in the session. Hermes reloads its MCP servers from the config and refreshes the tool list.

Tool names in Hermes

Hermes prefixes every MCP tool with the server's name so it cannot collide with its own tools. Unitley's tools show up as mcp_unitley_ followed by the tool name, for example mcp_unitley_get_game_odds. The tool reference uses the names without the prefix.

Replace the token

  1. Create a new token on the Connect page.
  2. Put it in place of the old one in ~/.hermes/.env.
  3. Run hermes mcp test unitley, then /reload-mcp in any running session.
  4. Revoke the old token on the Connect page.

Remove it

Delete the unitley entry from config.yaml and the UNITLEY_TOKEN line from .env. Then revoke the token on the Connect page.

Learn more

21+ · Gambling problem? Call 1-800-GAMBLER or visit ncpgambling.org

Unitley is an analysis tool, not a sportsbook: it takes no bets and holds no money. Nothing in these docs is a guarantee or financial advice. Only bet where it is legal for you. Unitley is not affiliated with the NFL, its teams, or any sportsbook.

©︎ 2026 Unitley · Analysis, not a guarantee.