What you will build
By the end, you will have a Hermes Agent environment that can run long, judge-guided tasks from a terminal or server, with enough configuration to delegate practical work such as building an app, drafting a campaign, testing software, generating a slide deck, or backfilling records.
/goal with measurable acceptance criteria instead of a vague instruction.What /goal is — and why it matters
The video contrasts simple “agent loops” with a more useful goal loop. A basic loop keeps prompting an agent over and over; it may burn tokens, repeat itself, or continue after the work is done. Hermes /goal is more useful because the task is framed around an end state and progress can be judged against that end state.
Goal text
The desired outcome, not just an activity. Example: “A working reporting app with weekly submissions and a marketing blog integrated.”
Judge/check
A separate review step evaluates whether the agent is progressing and whether completion criteria are met.
Persistence
Long jobs can survive pauses, restarts, or steering. You can check status and resume instead of restarting from scratch.
Sub-goals
You can add refinements mid-run, such as a visual style, extra test, or changed deliverable, without throwing away prior progress.
/goal is only as good as the finish line you give it. “Build a great app” is not a goal. “Build a Next.js app where team members submit weekly wins, blockers, plans, and mood; include tests and a launch blog page” is a goal.Prerequisites and safety
- A local computer with a terminal, or a VPS you can SSH into.
- Basic comfort copying commands and reading terminal output.
- One model/provider path: OpenAI/Codex OAuth, OpenRouter API key, Anthropic API key, Nous Portal, Gemini, or another Hermes-supported provider.
- Optional: GitHub account if you want agents to create branches, issues, pull requests, or repositories.
- Optional: OpenRouter credits if using image generation or non-subscription API models.
hermes config set, hermes auth add, provider login, or environment files. Never place API keys in a guide, public repo, screenshot, or chat message.1. Prepare a VPS or local machine
The video uses a Hostinger VPS because it is a clean always-on environment. You can also run Hermes locally on macOS, Linux, Windows, or WSL2. The VPS route is helpful when you want long-running goals to continue while your laptop is closed.
- Create the server. Choose a Linux VPS close to your location. A small plan is enough for agent orchestration; larger plans are useful if you run local models, browsers, build tools, or many concurrent agents.
- Record access details securely. Save the SSH command, username, server IP, and password/key in a password manager.
- Connect by SSH.
ssh root@YOUR_SERVER_IPIf prompted about host authenticity, confirm only when the IP is the server you just created.
- Update the server.
apt update && apt upgrade -y
If using macOS locally, skip the VPS section and install Hermes directly in your terminal.
2. Install and launch Hermes Agent
The official quick-start command is:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
- Run setup.
hermes setupUse the setup wizard to choose a provider, model, terminal backend, and optional gateway/messaging configuration.
- Check health.
hermes doctorFix missing dependencies before starting a long
/goal. - Start a test chat.
hermesSend a simple message. If it responds, the model path is working.
- Learn the two key references.
hermes --help # then inside Hermes: /help
3. Configure model/provider access safely
The video demonstrates using a ChatGPT/Codex-style login and also mentions OpenRouter for image generation. Hermes supports many providers, so pick the one that matches your accounts and budget.
| Need | Recommended command/path | Notes |
|---|---|---|
| Interactive provider choice | hermes model or hermes setup model | Best first step if unsure. |
| OAuth login, where supported | hermes login --provider openai-codex | Use official Hermes provider names shown by your installed version. |
| Store an API key | hermes config set model.api_key YOUR_KEY or provider-specific config | Never paste the key into normal chat. |
| View config path | hermes config path | Useful for backup and troubleshooting. |
| Secret storage | hermes config env-path | Secrets belong in environment/config, not public docs. |
4. Add skills and reusable resources
The video shows Hermes creating a skill for image-generation slide decks. Skills are reusable playbooks that load when relevant, so the agent does not have to rediscover a process every time.
- List what you already have.
hermes skills list - Search or browse.
hermes skills search powerpoint hermes skills browse - Install or create a skill.
Install known skills from the hub, or ask Hermes to create one after it completes a repeatable workflow.
- Reload skills after adding them.
Inside Hermes, use
/reload-skillsor start a new session so the new skill appears in the system context.
5. Run /goal with a measurable finish line
Start /goal from an interactive Hermes session. The exact syntax can change by version, so run /help if needed. The durable pattern is:
/goal Build [specific deliverable].
Definition of done:
1. [Measurable outcome]
2. [Files/tests/URLs/evidence]
3. [Quality criteria]
4. [Stop when these are satisfied and summarize what changed.]
Prompt template for a coding goal
/goal Create a modern Next.js weekly reporting app.
Outcome:
- Team members can submit weekly wins, blockers, next-week plans, and mood.
- Managers can view a dashboard of all reports.
- Include one sample marketing blog post at /blog.
Definition of done:
- App builds successfully.
- At least one test or scripted verification passes.
- README explains how to run it.
- Changes are committed to a local git repo.
- Final response lists paths, commands run, and verification results.
Prompt template for business/outreach work
/goal Identify 20 likely local buyers for excess farm produce and draft a contact plan.
Definition of done:
- Produce a CSV with business name, contact method, reason they fit, and first-message draft.
- Do not send messages without explicit approval.
- Include a short prioritization summary and next-step checklist.
6. The CEO/CTO pattern: Hermes orchestrates, coding agents execute
The video’s most useful pattern is to make Hermes the “CEO” that owns the outcome and delegates focused work to coding agents such as Codex CLI-style subagents. The CEO keeps the big picture; the CTO agent builds; a marketing agent can write launch copy; the judge checks whether the deliverables satisfy the goal.
- State the roles. Tell Hermes it is responsible for orchestration and quality, not just coding.
- Delegate bounded work. Give each subagent a clear deliverable and avoid overlapping edits.
- Require integration. The final goal should not be “two agents produced files.” It should be “the outputs are integrated and verified.”
- Ask for evidence. Require paths, test output, screenshots, URLs, commit hashes, or checklists.
/goal You are the project CEO. Use available autonomous-agent/coding skills when helpful.
Project:
- Build a Next.js weekly reporting app.
- Create a B2B launch campaign with one blog post and two email drafts.
- Integrate the blog post into the app.
Definition of done:
- App runs locally and includes reporting form, dashboard, and /blog route.
- Marketing deliverables are saved in docs/marketing/.
- README includes run instructions.
- Verification commands are run and summarized.
- Do not stop until all deliverables exist and are integrated.
While the goal is running, use status and steering commands available in your Hermes version, such as /goal status, /goal pause, /goal resume, or sub-goal/steering commands shown by /help.
High-value use cases from the video
Slide decks
Give a style reference, outline, number of slides, and require editable text, not just flat images. Verify file opens before calling it done.
App testing
Define every feature to test, the emulator/browser target, and expected pass/fail output. Great for overnight regression checks.
Data backfills
Define record count, source, destination, idempotency, and audit report. Require a dry run before touching production data.
Business growth
Ask for researched leads, drafts, calendars, or landing-page improvement plans. Require approval before external messages are sent.
Codebase refactors
Define language/framework target, tests that must pass, migration constraints, and rollback plan.
Research packages
Ask for source notes, ranked options, costs, risks, and recommendation. A goal works best when the final artifact is concrete.
Troubleshooting and guardrails
Hermes does not start
- Run
hermes doctor. - Check your Python/node/system dependencies from the official docs.
- Restart your terminal after install so PATH changes apply.
Provider login fails
- Run
hermes modeland select the provider again. - For OAuth flows, copy the device code exactly and complete browser login.
- For API keys, store keys in config/env and verify no extra spaces were pasted.
/goal wanders or never finishes
- Add measurable completion criteria.
- Break the work into deliverables with file paths and tests.
- Use sub-goals/steering to narrow scope.
- Set budget or turn limits when appropriate.
Subagents edit over each other
- Assign separate folders, branches, or worktrees.
- Have Hermes integrate after subagents finish.
- Require a final diff/review before committing.
Long VPS jobs disconnect
- Use
tmuxor a durable background/service setup. - Keep credentials in environment/config, not in terminal scrollback.
- Periodically check
/goal statusrather than restarting.
Sources and related links
- Primary video: “Hermes /goal is insane… just watch” by David Ondrej
- Hermes Agent GitHub repository
- Hermes Agent documentation
- Hermes CLI commands reference
- Hermes slash commands reference
- Hermes AI providers guide
Creator-provided video description links include Hostinger, David Ondrej’s Hermes CEO resource page, New Society, Scale Software, Instagram, and X/Twitter. Treat sponsored services as optional examples; choose infrastructure and providers based on your security, budget, and reliability needs.