> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bettertoken.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Hermes Agent सेटअप: इंस्टॉलेशन, API key, Base URL और कस्टम मॉडल

> Hermes Agent इंस्टॉल करें, BetterToken Base URL और API key कॉन्फ़िगर करें, संगत provider मॉडल चुनें और सामान्य त्रुटियां ठीक करें।

Hermes Agent को BetterToken से कनेक्ट करने के लिए API key तैयार करें, नीचे दिया Base URL भरें और model plaza से वर्तमान Model ID चुनें।

## मुख्य सेटिंग्स

| फ़ील्ड   | मान                                                                            |
| -------- | ------------------------------------------------------------------------------ |
| API Key  | BetterToken API key                                                            |
| Base URL | `https://www.bettertoken.ai/v1`                                                |
| मॉडल     | <a href={"https://bettertoken.ai/pricing"}>model plaza</a> से वर्तमान Model ID |

## आवश्यकताएं

* टूल का वर्तमान संस्करण इंस्टॉल है
* BetterToken API key: <a href={"https://bettertoken.ai/register"}>रजिस्टर करें और प्राप्त करें</a>
* <a href={"https://bettertoken.ai/pricing"}>model plaza</a> से Model ID

### अतिरिक्त आवश्यकताएं

* चुनी गई Model ID **supported provider** से है
* macOS, Linux, or Windows WSL2

## इंस्टॉल करें

### Hermes Agent इंस्टॉल करें

<Tabs>
  <Tab title="macOS / Linux / WSL2">
    ```bash theme={null}
    curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
    ```
  </Tab>

  <Tab title="Windows">
    Windows पर पहले WSL2 चुनें। Native PowerShell समर्थन आपके वर्तमान Hermes Agent संस्करण पर निर्भर है। Native Windows इस्तेमाल करने पर इंस्टॉल किए संस्करण के installer prompt का पालन करें।
  </Tab>
</Tabs>

### फ़ीचर त्वरित संदर्भ

| फ़ीचर           | उपयोग                                                  |
| --------------- | ------------------------------------------------------ |
| Terminal UI     | terminal में agent से सीधे chat करें                   |
| Skills          | दोहराए कार्यों के लिए पुनः उपयोग योग्य workflow सहेजें |
| MCP             | local या remote tool क्षमता जोड़ें                     |
| Scheduled tasks | समयबद्ध job और आवर्ती workflow चलाएं                   |
| Subagents       | जटिल काम को केंद्रित agent में बांटें                  |
| Message gateway | agent को अधिक message entry point से जोड़ें            |

## मैन्युअल सेटअप

interactive Hermes Agent मॉडल सेटअप को मुख्य तरीका मानें। command और environment-variable विकल्प वैकल्पिक रूप में उपलब्ध हैं।

| फ़ील्ड   | मान                                                                            |
| -------- | ------------------------------------------------------------------------------ |
| API Key  | BetterToken API key                                                            |
| Base URL | `https://www.bettertoken.ai/v1`                                                |
| मॉडल     | <a href={"https://bettertoken.ai/pricing"}>model plaza</a> से वर्तमान Model ID |

### सेटअप

<Tabs>
  <Tab title="Interactive setup">
    <Steps>
      <Step title="मॉडल selector चलाएं">
        ```bash theme={null}
        hermes model
        ```
      </Step>

      <Step title="OpenAI या OpenAI Compatible provider चुनें">
        provider सूची से **OpenAI** या **OpenAI Compatible** चुनें।
      </Step>

      <Step title="BetterToken config भरें">
        भरें:

        * **Base URL**: `https://www.bettertoken.ai/v1`
        * **API Key**: आपकी BetterToken API Key
        * **Model**: <a href={"https://bettertoken.ai/pricing"}>model plaza</a> से कॉपी की **किसी समर्थित provider की मॉडल ID**
      </Step>

      <Step title="Hermes Agent रीस्टार्ट करें">
        config अपडेट करने के बाद मौजूदा Hermes Agent session बंद करें और फिर शुरू करें।
      </Step>

      <Step title="Hermes Agent शुरू करें">
        ```bash theme={null}
        hermes
        ```
      </Step>
    </Steps>
  </Tab>

  <Tab title="CLI config">
    यदि आप copy-paste command पसंद करते हैं, तो Hermes Agent config सीधे लिखें।

    ```bash theme={null}
    hermes config set llm.provider openai
    hermes config set llm.base_url "https://www.bettertoken.ai/v1"
    hermes config set llm.api_key "YOUR_API_KEY"
    hermes config set llm.model "YOUR_MODEL_ID"
    ```

    `YOUR_API_KEY` को अपनी BetterToken API Key से और `YOUR_MODEL_ID` को <a href={"https://bettertoken.ai/pricing"}>model plaza</a> की समर्थित provider मॉडल ID से बदलें।

    फिर Hermes Agent शुरू करें:

    ```bash theme={null}
    hermes
    ```
  </Tab>

  <Tab title="Environment variables">
    API Key को Hermes Agent config में न रखना हो तो इसे मौजूदा shell में export करें।

    ```bash theme={null}
    export OPENAI_API_BASE="https://www.bettertoken.ai/v1"
    export OPENAI_API_KEY="YOUR_API_KEY"
    export HERMES_MODEL="YOUR_MODEL_ID"
    hermes
    ```

    ये variable केवल मौजूदा shell session पर लागू होते हैं। नए terminal में फिर export करें या अपने shell profile में जोड़ें।
  </Tab>
</Tabs>

### OpenClaw से माइग्रेट करें

यदि आप पहले से OpenClaw इस्तेमाल करते हैं, तो पहले जांचें कि वर्तमान Hermes Agent संस्करण migration command देता है या नहीं। बदलाव से पहले dry run चलाएं।

```bash theme={null}
hermes claw migrate --dry-run
```

output की पुष्टि के बाद migration चलाएं:

```bash theme={null}
hermes claw migrate
```

migration के बाद भी Hermes Agent **Base URL**, API Key और मॉडल ID जांचें। वे `https://www.bettertoken.ai/v1`, आपकी BetterToken API Key और समर्थित provider मॉडल ID से मेल खाने चाहिए।

## कनेक्शन सत्यापित करें

छोटे test prompt भेजें। यदि टूल बिना authentication या Model ID त्रुटि के उत्तर देता है, तो कनेक्शन काम कर रहा है। configuration बदलने के बाद टूल को पूरी तरह रीस्टार्ट करें।

## मॉडल बदलें

मॉडल selector खोलें या configuration में `Model` फ़ील्ड बदलें। <a href={"https://bettertoken.ai/pricing"}>model plaza</a> से सटीक Model ID उपयोग करें, फिर मौजूदा session रीस्टार्ट करें।

## सामान्य त्रुटियां

| त्रुटि                  | क्या जांचें                                              |
| ----------------------- | -------------------------------------------------------- |
| `401` या `Unauthorized` | BetterToken API key जांचें और शुरुआत/अंत के space हटाएं। |
| `404`                   | Base URL जांचें और कोई विशिष्ट endpoint path न जोड़ें।   |
| `model not found`       | model plaza से वर्तमान Model ID कॉपी करें।               |
| बदलाव लागू नहीं होते    | configuration सहेजें और टूल पूरी तरह रीस्टार्ट करें।     |

### समस्या निवारण

* यदि अनुरोध विफल हो या उत्तर न मिले, तो पुष्टि करें कि **Base URL** ठीक `https://www.bettertoken.ai/v1` है। इस फ़ील्ड में `/chat/completions` न जोड़ें।
* यदि Hermes बताए कि मॉडल मौजूद नहीं है, तो पुष्टि करें कि **Model** <a href={"https://bettertoken.ai/pricing"}>model plaza</a> से समर्थित provider की मॉडल ID है।
* authentication विफल होने पर कॉपी किए गए space जांचें और पुष्टि करें कि चुनी Model ID **supported provider** से है।
* बदलाव के बाद Hermes अब भी पुराना मॉडल उपयोग करे तो मौजूदा Hermes Agent session बंद करके `hermes` फिर चलाएं।
* BetterToken को सामान्यतः अतिरिक्त `User-Agent` या custom header की जरूरत नहीं होती। header केवल तब जोड़ें जब आपका custom gateway, tenant routing, observability या caching layer स्पष्ट रूप से मांगे।

<Note>
  असली API Key को repository में commit न करें। टीम के साझा सेटअप के लिए environment variable या local config उपयोग करें।
</Note>

### संबंधित FAQ

* [MCP बनाम API Key और Base URL](/hi/faq/concepts/mcp-vs-api-key-base-url)
* [model\_provider, base\_url और wire\_api क्या हैं?](/hi/faq/codex/model-provider-base-url-wire-api)
* [Cline में OpenAI-compatible API कैसे कॉन्फ़िगर करें](/hi/faq/cline/openai-compatible-api)
* [OpenClaw BetterToken सेटअप गाइड](/hi/ai-tools/openclaw)

## उन्नत सेटअप

### समर्थित provider

| Provider | स्थिति         |
| -------- | -------------- |
| Claude   | समर्थित नहीं   |
| GPT      | मैन्युअल सेटअप |
| Kimi     | मैन्युअल सेटअप |
| GLM      | मैन्युअल सेटअप |

<Note>ये स्थितियां केवल इस पेज पर बताए गए BetterToken सेटअप पर लागू होती हैं।</Note>

<Accordion title="सेटअप के तरीकों का अर्थ">
  * **मैन्युअल सेटअप**: API Key, Base URL और Model दर्ज करें।
  * **समर्थित नहीं**: सीधे सेटअप का कोई सत्यापित तरीका अभी उपलब्ध नहीं है।
</Accordion>

## तकनीकी विवरण

<Accordion title="Protocol, endpoint और आंतरिक provider फ़ील्ड">
  यह सेटअप `https://www.bettertoken.ai/v1` उपयोग करता है। टूल OpenAI-compatible endpoint path जोड़ता है। जब तक कोई विशेष फ़ील्ड स्पष्ट रूप से न मांगे, `/chat/completions` या `/responses` न जोड़ें।
</Accordion>
