ब्लॉग पर वापस जाएं

टूल्स और इंटीग्रेशनगाइड

Hermes Agent को CheapTokens से कैसे कनेक्ट करें

Nous Research के Hermes Agent को CheapTokens से कस्टम OpenAI-संगत endpoint के रूप में कनेक्ट करें — hermes model या config.yaml के साथ — और जाँचें कि यह जवाब देता है।

CheapTokens Team द्वाराप्रकाशित 2 मिनट का पाठ

CheapTokens API से कनेक्टेड Hermes Agent
इस पृष्ठ पर
  1. शुरू करने से पहले
  2. विकल्प 1. Interactive setup
  3. विकल्प 2. config.yaml संपादित करें
  4. जाँचें कि यह काम करता है

Nous Research का Hermes Agent किसी भी OpenAI-संगत API को कस्टम endpoint के रूप में सपोर्ट करता है। इसे CheapTokens का address, key और एक model दें, और agent तय per-token कीमतों पर open-weight models पर चलता है। ये चरण 15 अक्टूबर, 2026 तक के Hermes Agent documentation (Quickstart, AI Providers, Configuration) के अनुसार हैं; इन्हें अभी किसी live installation पर चलाया नहीं गया है।

शुरू करने से पहले#

  • Hermes Agent इंस्टॉल है।
  • आपके पास CheapTokens API key और positive balance है — देखें Your first API request।

विकल्प 1. Interactive setup#

hermes model चलाएँ, Custom endpoint (self-hosted / VLLM / etc.) चुनें और दर्ज करें:

  • API base URL: https://api.cheaptokens.dev/v1
  • API key: आपकी CheapTokens key
  • model name: deepseek-ai/DeepSeek-V4-Flash-0731

Hermes endpoint को ~/.hermes/config.yaml में सेव करता है।

विकल्प 2. config.yaml संपादित करें#

yaml
model:
  default: deepseek-ai/DeepSeek-V4-Flash-0731
  provider: custom
  base_url: https://api.cheaptokens.dev/v1

Key को YAML के बजाय ~/.hermes/.env में रखा जा सकता है; interactive setup इसे माँगता है। Hermes को agent काम के लिए बड़े context की ज़रूरत होती है; हमारे models में 200K–390K tokens हैं। अन्य models: zai-org/GLM-5.3-Flash, MiniMaxAI/MiniMax-M2.7 — देखें GLM vs DeepSeek vs MiniMax।

जाँचें कि यह काम करता है#

एक chat शुरू करें और एक छोटा सवाल पूछें। अगर Hermes खुलता है लेकिन जवाब खाली या टूटे हुए आते हैं, तो hermes model फिर से चलाएँ और address, model name और key जाँचें। Status codes को Connection errors and fixes में समझाया गया है।

डिफ़ॉल्ट रूप से Hermes side tasks — context compression, titles, image analysis — भी आपके main model को भेजता है, इसलिए उनका भी बिल लगता है। किसी agent का खर्च कैसे अनुमान लगाएँ: What an AI agent costs।