All Products
Search
Document Center

Alibaba Cloud Model Studio:Hermes Agent

Last Updated:Jun 26, 2026

Hermes Agent adalah terminal AI coding tool yang terhubung ke Alibaba Cloud Model Studio melalui pay-as-you-go, Coding Plan, atau Token Plan (Team Edition).

Install Hermes Agent

  1. Jalankan perintah berikut untuk menginstal Hermes Agent. Skrip ini secara otomatis menginstal dependensi seperti Python dan Git.

    curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
    Catatan

    Windows tidak mendukung instalasi native. Instal WSL2 terlebih dahulu, lalu jalankan perintah di atas di WSL2.

  2. Setelah instalasi, muat ulang lingkungan terminal.

    source ~/.bashrc    # Jika menggunakan zsh, ubah menjadi source ~/.zshrc
  3. Verifikasi instalasi. Nomor versi menandakan keberhasilan.

    hermes --version

Configure Access Credentials

Jalankan hermes config set untuk mengonfigurasi Base URL dan API Key sesuai rencana yang Anda pilih:

  • Token Plan (Team Edition): Langganan berbasis seat; konsumsi token memotong Credits.

  • Coding Plan: Langganan bulanan tetap, dihitung berdasarkan jumlah pemanggilan model.

  • Pay-as-you-go: Dibayar setelah pemakaian berdasarkan penggunaan aktual.

Token Plan (Team Edition)

Ganti YOUR_API_KEY dengan API Key Token Plan (Team Edition) Anda. Daftar model yang tersedia tercantum di supported models.

hermes config set model.provider custom
hermes config set model.base_url https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic
hermes config set model.api_mode anthropic_messages
hermes config set model.api_key YOUR_API_KEY
hermes config set model.default qwen3.7-max

Perintah-perintah ini menulis ke ~/.hermes/config.yaml. Anda juga dapat mengedit file tersebut secara langsung:

Contoh config.yaml

model:
  default: qwen3.7-max
  provider: custom
  base_url: https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic
  api_mode: anthropic_messages
  api_key: YOUR_API_KEY

Coding Plan

Ganti YOUR_API_KEY dengan API Key Coding Plan Anda. Daftar model yang tersedia tercantum di supported models.

hermes config set model.provider custom
hermes config set model.base_url https://coding-intl.dashscope.aliyuncs.com/apps/anthropic
hermes config set model.api_mode anthropic_messages
hermes config set model.api_key YOUR_API_KEY
hermes config set model.default qwen3.7-plus

Perintah-perintah ini menulis ke ~/.hermes/config.yaml. Anda juga dapat mengedit file tersebut secara langsung:

Contoh config.yaml

model:
  default: qwen3.7-plus
  provider: custom
  base_url: https://coding-intl.dashscope.aliyuncs.com/apps/anthropic
  api_mode: anthropic_messages
  api_key: YOUR_API_KEY

Pay-as-you-go

Ganti YOUR_API_KEY dengan Alibaba Cloud Model Studio API Key Anda. Daftar model yang tersedia tercantum di Anthropic compatible API. Atur base_url sesuai Wilayah Anda. API Key harus sesuai dengan Wilayah yang dipilih:

  • China North 2 (Beijing): https://dashscope.aliyuncs.com/apps/anthropic

  • Singapore: https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/apps/anthropic. Ganti WorkspaceId dengan Get the Workspace ID Anda yang sebenarnya.

hermes config set model.provider custom
hermes config set model.base_url https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/apps/anthropic
hermes config set model.api_mode anthropic_messages
hermes config set model.api_key YOUR_API_KEY
hermes config set model.default qwen3.7-max

Perintah-perintah ini menulis ke ~/.hermes/config.yaml. Anda juga dapat mengedit file tersebut secara langsung:

Contoh config.yaml

model:
  default: qwen3.7-max
  provider: custom
  base_url: https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/apps/anthropic
  api_mode: anthropic_messages
  api_key: YOUR_API_KEY

Verify Configuration

Kirim pesan uji untuk memverifikasi konfigurasi Anda:

hermes chat -q "Hello"

Tanggapan yang berhasil menandakan konfigurasi berfungsi. Untuk mengganti model, gunakan parameter -m:

hermes chat -m qwen3.7-max

FAQ

Error Codes

Untuk error konfigurasi, periksa FAQ sesuai rencana penagihan Anda:

Still connecting to OpenRouter after configuration

Hermes Agent secara default terhubung ke OpenRouter. Untuk menggunakan Model Studio, atur model.provider menjadi custom:

hermes config set model.provider custom