Hermes 에이전트 설정 비용을 80% 절감하는 20가지 이상의 설정

원제 · This Finally Makes Our Hermes Agent Setup 90% Cheaper

13:083분 읽기AI LABS2026. 07. 01.컴퓨터/소프트웨어 · 경영/리더십 · AI/미래기술

핵심 요약

Hermes 에이전트의 백그라운드 작업과 컨텍스트 창을 최적화하고 모델을 작업별로 적절히 라우팅함으로써 에이전트 운영 비용을 80% 절감할 수 있습니다.

하이라이트

  • Hermes 에이전트의 워크플로우를 최적화하여 불필요한 토큰 소비를 줄이고 설정 비용을 80% 절감했습니다.

  • OpenRouter로 전환하여 토큰별 요금을 직접 확인하고 작업별 모델 라우팅을 통해 비용을 관리합니다.

  • 백그라운드 보조 작업(이미지 읽기, 스킬 검색 등)에 메인 모델 대신 저렴한 경량 모델을 할당하여 비용을 절감합니다.

  • 컨텍스트 창의 비대화를 막기 위해 압축 임계값을 50% 미만으로 조정하고, 사용하지 않는 도구와 스킬은 즉시 비활성화합니다.

  • 에이전트의 최대 턴 수를 기본 150에서 60으로 하향 조정하여 무한 루프와 불필요한 토큰 소비를 방지합니다.

  • 하드 정지 설정을 활성화하여 에이전트가 진전 없이 헛도는 작업을 자동으로 중단시킵니다.

타임라인

  1. 비용 증가의 원인 파악 및 분석

    다수의 사용자가 동시에 Hermes를 사용하면서 발생한 비용 문제를 해결하기 위해 분석을 진행했습니다. 데이터베이스 분석을 통해 실제 작업보다 잘못 설정된 반복 작업이 비용의 대부분을 차지함을 확인했습니다. 특히 에이전트가 24시간 내내 실행되며 스스로 스킬을 생성하고 메모리를 업데이트하는 과정에서 발생하는 토큰 소모가 핵심적인 비용 요인임을 파악했습니다.

    • Hermes는 항상 실행되므로 백그라운드 스킬 검색, 메모리 업데이트, MCP 도구 로드 등이 지속적으로 토큰을 소비합니다.
    • 토큰 소비 내역은 루트 폴더의 데이터베이스에 저장되며, insights 명령어를 통해 지난 30일간의 상세 비용과 활동 패턴을 확인할 수 있습니다.
    • 모든 스킬과 시스템 프롬프트, 도구 헤더는 매 메시지마다 컨텍스트에 포함되어 비용을 발생시킵니다.
  2. 모델 라우팅 및 최적화 전략

    가장 큰 비용을 차지하는 모델을 효율적으로 사용하기 위해 작업의 중요도에 따라 모델을 구분했습니다. 메인 모델은 복잡한 추론에만 사용하고, 이미지 인식이나 단순 스킬 검색과 같은 보조 작업은 더 낮은 등급의 모델로 처리하도록 설정했습니다. 이는 모델의 추론 능력이 필요한 작업과 단순 반복 작업 사이의 비용 격차를 이용하여 전체 예산을 줄이는 방식입니다.

    • 코드 구독 모델을 유지하되 OpenRouter를 통해 다양한 모델로 접근하고 비용을 관리합니다.
    • 작은 백그라운드 작업에는 메인 모델 대신 저렴한 보조 모델을 지정하여 비용을 최적화합니다.
    • 하위 에이전트 생성 시에도 저렴한 모델을 설정하여 비용 합산을 방지합니다.
  3. 컨텍스트 및 도구 관리 최적화

    대화 기록과 도구 정보가 컨텍스트 창에 쌓이는 문제를 해결하기 위해 압축 전략을 개선했습니다. 필요 없는 도구와 스킬을 제거하여 메시지 크기를 줄이고, MCP 도구 로드 설정을 auto로 바꾸어 정말 필요한 순간에만 도구가 로드되도록 했습니다. 이를 통해 매 턴마다 발생하는 고정 비용을 크게 낮췄습니다.

    • 컨텍스트 압축 임계값을 50% 미만으로 유지하여 메시지당 전송되는 데이터 양을 줄입니다.
    • 사용하지 않는 도구와 스킬은 tools disable 명령어를 사용해 비활성화합니다.
    • 일회성 지침은 컨텍스트 파일 대신 임시 시스템 프롬프트를 활용하여 공간을 확보합니다.
  4. 하드 제한 및 실행 루프 방지

    시스템 설정 내에서 에이전트의 작동 한계를 명확히 지정하여 안전장치를 마련했습니다. 특히 작업 수행 중 혼란에 빠진 에이전트가 컨텍스트를 반복적으로 재전송하며 턴을 낭비하는 상황을 60턴 제한으로 막았습니다. 하드 정지 설정을 통해 무의미하게 갈아대는 루프를 즉시 멈추게 함으로써 예측 가능한 비용 통제가 가능해졌습니다.

    • 에이전트의 최대 턴 수를 150에서 60으로 낮추어 루프 발생 시의 토큰 낭비를 차단합니다.
    • 하드 정지 설정을 true로 변경하여 진전 없는 작업의 반복을 강제 중단합니다.
    • cron 작업에도 턴 수 제한을 설정하여 백그라운드에서의 무제한 비용 발생을 방지합니다.

설명

This Hermes agent setup guide shows how we cut our Hermes agent bill without hurting output. New to Hermes agent install, wondering what is Hermes agent, weighing Hermes vs OpenClaw, or running a local AI agent? Start here. Try Luma at https://shr.pn/lumalabs-ai and start creating with AI agents that understand your entire workflow. You can get the comprehensive Hermes Starter Pack in Setup Under the Resource Area on our community AI Labs Pro: http://ailabspro.io The Roundup, our daily newsletter covering the AI stories that matter. Join now: https://www.theroundup.so/ Our whole team runs Hermes for AI automation, and once we moved off our OpenAI subscription onto OpenRouter, we could finally see the real cost per token, and it was far higher than we expected. Most of it wasn't even active use. It was background tasks, always-on runs, and bloated context. So we went through every setting to bring the bill down without touching quality. Unlike Claude Code, which you start once and let run, Hermes runs 24/7, so a big part of this Hermes agent desktop setup is controlling what happens in the background. We start with where the tokens actually go: the pre-installed skills, the self-evolving memory, MCP tools, hooks, and goals. If you've been searching how to setup Hermes agent the lean way, or comparing Hermes vs OpenClaw before you commit, this breaks down every lever. Here's what we cover and how we actually use each one: Model choice (the biggest lever) * The Hermes agent setup Codex route: run Hermes straight through a subscription you already pay for, with no extra cost on top. * What's on the free plan versus the paid Nous Research portal, so a Hermes agent setup free of surprise bills is doable. * The Pareto Router on OpenRouter, cheaper auxiliary and sub-agent models in config.yaml, and matching effort level to the task. Where it runs (your Hermes agent OS setup) * Because Hermes is always on, it lives on a local server or a VPS, so whether you want a Hermes AI agent for Mac mini setup or a rented server your whole team can reach, the same settings apply. * Context compression, the compression threshold and target ratio, ephemeral system prompts, trimming memory and agent files, and the Undo command. The tools * As with most AI tools, everything you connect gets sent with every message, so we show how to disable the tools and skills you never use. * The full MCP server setup Hermes agent workflow: disconnecting unused servers and setting tool search to Auto so tools only load when needed. The hard limits * Max output tokens, max turns, hard stop, Cron caps, and parallel job limits. That's the complete setup Hermes agent process we use to keep costs down without losing quality. Want the starter pack we built? It's in AI Labs Pro, our community, linked below. 00:00 – Intro 01:07 – What's eating your tokens 03:46 – Model settings 06:08 – Sponsor: Luma 07:01 – Trimming the context window 10:01 – Cutting tools, skills & MCP servers 11:19 – Hard limits #ai #claudecode #hermesagent #hermes #openclaw #aiautomation #aitools #hermesagentsetup

커뮤니티 글

모든 글 보기
이 영상에 대해 글쓰기