Hermes Agent
Hermes CLI commands by task
Updated 29 November 2026
Type hermes in your terminal to open a conversation. To see what else your installation can do, run hermes --help at the shell prompt. Once you are talking to the agent, type /help at the chat prompt. These lists answer different questions: the first covers running and managing Hermes, the second covers actions you can take during a conversation.
We checked Nous Research’s Hermes Agent 0.23.5 documentation and source on 28 November 2026, including the CLI command reference, slash commands, terminal guide and CLI implementation. The hosted workspace details come from ReadyHermes product information checked the same day.
Install Hermes and check your first conversation
On Linux, macOS or WSL2, the source installer requires Git, curl, tar and a SHA-256 utility. Run the command below. On macOS, install the Command Line Tools if prompted.
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bashOn native Windows, run the PowerShell installer:
iex (irm https://hermes-agent.nousresearch.com/install.ps1)- Open a new terminal after installation. In Bash, you can reload the current shell with
source ~/.bashrc. In Zsh, usesource ~/.zshrc. Then runhermes --versionto check the installed release. The installer URLs do not pin 0.23.5. - If you skipped model provider setup during installation, run
hermes setupnow. - Run
hermes, send a short question and check that you get a reply. Type/helpfor commands grouped by category. To browse skills, use/help skillsin the classic CLI or/skillsin the full-screen interface. Type/quitto return to the shell.
Start a chat or get one answer and exit
The 0.23.5 terminal guide calls a query non-interactive. The command reference and the code that handles the prompt describe how it works in the classic CLI. With both input and output attached to a terminal, -q submits the first message and leaves the chat open for a follow-up. Redirect either stream and Hermes answers and exits.
If hermes chat opens the full-screen interface, add --cli immediately after chat when using --oneshot or --query-file.
- Keep chatting.
hermes chat -q "Summarize the latest PRs"starts with that request at your terminal. - Finish after the reply.
hermes chat --oneshot -q "Summarize the latest PRs"returns you to the shell even at an interactive terminal. - Capture a reply in a script.
hermes -z "What's the capital of France?"writes the reply to standard output. Use this mode only for tasks you trust to run unattended, because it can approve tool actions automatically. A failed run can still print text. Check for exit status 0 before using the reply as a completed answer. - Read a prompt from disk.
hermes chat --query-file prompt.txtpasses the contents literally, including any quotes or backticks in the file.
Choose a provider and check the model’s context window
Run hermes model to select a provider and default model. For a single run with OpenRouter, the reference gives the command below. To see which credentials Hermes has for that provider, run hermes auth list openrouter.
hermes chat --provider openrouter --model anthropic/claude-sonnet-4.6Inside a conversation, /model opens the picker for providers you have already configured. To add a provider, return to the shell and run hermes model.
If startup reports a context window below 64,000 tokens, check the window your server actually serves. For a local server, increase its runtime window if it supports that size, or select a model with sufficient context. For local Ollama, Hermes takes the larger of its detected window and its configured runtime context. If a hosted server reports too small a window and you have verified that it serves at least 64,000 tokens, set model.context_length in config.yaml to the verified size.
The quickstart describes a 64,000-token minimum. The startup check accepts a smaller window for the lmstudio provider if you explicitly set model.context_length to a positive integer.
Connect a messaging channel and verify the gateway
Run hermes gateway setup to configure your messaging platform. Check the gateway with hermes gateway status. If the shared gateway is stopped, run hermes --profile default gateway run in a separate terminal and leave it open.
Add your account to the platform’s allowed-user list. If direct-message pairing is enabled, you can instead message the bot to get a code. As the bot owner, run hermes pairing approve <platform> <code> in another terminal, using the platform name and the code from your own chat. Once your account is authorised, send a test message and check for a reply.
In 0.23.5, a running gateway watches .env and config.yaml for each profile it serves, including its primary profile. It can start the new platform connection without restarting the whole gateway. Saving messaging settings in Dashboard or Desktop requests an immediate change. If the connection is still pending or fails, read hermes logs gateway -n 100 for the last 100 gateway log lines. If the gateway says it cannot load the platform’s dependencies, install any that are missing, then restart the gateway. See the gateway restart guide.
Schedule a prompt or run a script on its own
To give the agent a recurring task, run hermes cron create "every 2h" "Check server status". Each run starts a fresh session, so replace “Check server status” with a prompt that names the server and says how to tell whether it is healthy. Run hermes cron list to find the job ID. To read a saved reply, open the Markdown file for that run under cron/output/ in the active profile’s Hermes directory. Look in the folder named after the job ID. Check scheduler health with hermes cron status. Keep the gateway running for scheduled prompts. If you started it in the foreground, leave that terminal open.
When a script already produces the message you want, use --no-agent with --script. The scheduler can send the script’s output directly, with surrounding whitespace removed. A successful run with empty output sends nothing.
Create the active profile’s scripts folder first. For the default Linux profile, run mkdir -p ~/.hermes/scripts. Follow the project’s Linux watchdog example to save memory-watchdog.sh there and make it executable. For a named profile, use its scripts folder wherever the example uses ~/.hermes/scripts.
The command below sends alerts to your Telegram home chat. Send /sethome in the chat you want only if other jobs using Telegram home delivery should also post there. To choose a chat for this job alone, replace --deliver telegram with --deliver telegram:123456, using your chat ID in place of 123456.
hermes cron create "every 5m" --no-agent --script memory-watchdog.sh --deliver telegram --name "memory-watchdog"For delivery setup and missed runs, see Hermes Agent cron jobs.
Pick a profile, resume a session and review usage
If you use several profiles, first run hermes profile list. A diamond (◆) marks the active profile. hermes profile use work selects an existing profile named work for subsequent commands. To select a profile for one command, put -p and its name after hermes, as in hermes -p personal skills list. See the profiles guide for setup.
- Return to a conversation. Run
hermes sessions listto find recent sessions, then resume by title, for examplehermes --resume "my thread". - Find a conversation by workspace. Run
hermes --resume latest --in ./dir, replacing./dirwith an existing directory. The CLI starts there and looks for a recent session in that workspace, using the whole repository if the directory is inside a Git repository. If it finds no match, it resumes the most recent eligible session across workspaces. The agent keeps the working directory saved with that session. Use a session ID to open a specific conversation. - Review activity.
hermes insightssummarises token and tool use over the past 30 days by default. It estimates costs where pricing is available and gives separate counts for sessions covered by a subscription and sessions with unknown costs. Use--daysfor a different period or--sourceto filter by platform.
Find skills, plugins and MCP servers
- Skills. Search the registries with
hermes skills search kubernetes, replacing the keyword with your topic. Install the selected skill withhermes skills install <identifier>. For a third-party skill, review the installed instructions and scripts before using it. Check installed skills withhermes skills list. - Plugins. Use the catalog name in
hermes plugins install <name>. Read what the plugin can do at the install prompt, and review its code before giving it credentials. Answer yes to “Enable now?” or runhermes plugins enable <name>later. Check whether it is enabled withhermes plugins list. - MCP servers. To add DeepWiki from the catalog, run
hermes mcp install deepwiki. If a checklist appears, select the tools you want and press Enter. Check for DeepWiki inhermes mcp list, then start a new conversation. If its tools are missing, runhermes mcp test <name>withdeepwikiin place of the name to see whether the server responds.
Diagnose a failure, read logs and preview maintenance
Run hermes doctor when setup or a connection fails. It checks Python, required packages, certificates, configuration files and outdated settings, provider authentication, API connectivity, gateway supervision, available tools, and the session and cron stores. It reports exit status 0 when no reported problems remain and 1 when any remain.
hermes doctor --fix attempts supported repairs. Doctor cannot enlarge a model’s context window. For a context-window error, first check the size your server actually serves. hermes doctor --live makes time-limited, read-only checks against services your tools use. These requests can use a small amount of provider quota. The command reference’s synopsis shows only --fix, so we follow the release parser here.
- Watch a failure. Run
hermes logs listto find the available logs orhermes logs -fto follow the agent log as you retry. - Update a source checkout. Use
hermes update --checkto see whether the selected channel has an update. Runhermes update --planto see which services are affected, then runhermes updatewhen your messaging bots can go offline. See the update guide. - Remove a source installation. If you plan to keep your data, preview removal with
hermes uninstall --dry-run. If you plan to delete it, preview withhermes uninstall --dry-run --full. Before deleting data, runhermes backup --keep 0to create an archive. Confirm the command finishes with exit status 0 and review which files it excluded. To keep earlier automatic backups or snapshots, copybackups/andstate-snapshots/outside the Hermes data folder before uninstalling. Keep the archive private because it contains credentials. Then runhermes uninstalland choose the option you previewed. For a packaged installation, follow the uninstall guide for your package manager or desktop app.
Hermes Agent on ReadyHermes
ReadyHermes runs your always-on assistant on a hosted Linux server. You can chat on the website or connect messaging services in Channels. Running a local command on your computer cannot launch the hosted assistant.
To use your own provider key, open the Model key panel and choose “Your own API key”. Select the provider that issued the key, paste it, pick a model and press “Switch to my key”. We test the key with a message, then restart your assistant. The restart takes about a minute.
The workspace does not expose Skills Hub commands, although the assistant can create and use skills. Catalog plugin installation is untested and unsupported on ReadyHermes. The workspace has no plugin installer or screen for adding custom MCP servers. The Apps panel and supported Tools catalog entries provide the available connections.
Questions
Which commands are available in the installed version of Hermes?
Run hermes --version to check the release and hermes --help for its shell commands. In a conversation, type /help for commands grouped by category. To browse skills, use /help skills in the classic CLI or /skills in the full-screen interface.
Why does hermes chat -q stay open after the first answer?
In the classic CLI, -q starts an interactive chat when input and output are both attached to a terminal. Add --oneshot to exit after the reply. If your default is the full-screen interface, also add --cli immediately after chat.
Does adding a messaging platform require a gateway restart?
A running 0.23.5 gateway can connect a new platform for a profile it serves. Send a test message from an authorised account. If the bot does not reply, check the gateway log. If the gateway cannot load the platform’s dependencies, install any that are missing, then restart it.
What does the Hermes doctor command check?
It checks Python and packages, certificates and configuration, credentials and API connectivity, gateway supervision, tools, and session and cron storage. Use --fix for supported repairs. With --live, Hermes also makes read-only requests to services your tools use. These can use a small amount of provider quota.
Can hermes doctor fix the 64K context error?
No. Check the window your server actually serves. If it is too small, increase it on the server or choose a model with enough context. If a hosted server underreports a verified window of at least 64,000 tokens, set model.context_length in config.yaml to the verified size. At startup, the lmstudio provider also accepts a smaller window if you explicitly set model.context_length to a positive integer.