Skip to content

Durasi: 15 menit | Block: 4


๐Ÿš€ Opsi Install โ€‹

bash
# Install Hermes CLI
npm install -g @hermes-ai/cli

# atau
npx @hermes-ai/cli spawn

Kelebihan:

  • No setup server
  • Auto-update
  • Langsung bisa pakai
  • Free tier tersedia

Kekurangan:

  • Data di cloud pihak ketiga
  • Customization terbatas

Option B: Self-Host โ€‹

bash
# Clone & setup
git clone https://github.com/hermes-ai/hermes.git
cd hermes
cp .env.example .env

# Edit .env โ€” isi API keys
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...

# Run
docker-compose up -d

Kelebihan:

  • Full control
  • Data di server sendiri
  • Unlimited customization

Kekurangan:

  • Perlu server
  • Perlu maintenance
  • Setup lebih complex

๐Ÿฅ Hermes Doctor (Health Check) โ€‹

bash
hermes doctor

# Expected output:
# โœ… Hermes CLI installed (v2.x.x)
# โœ… API key configured
# โœ… Model accessible
# โœ… Tools available: web, file, browser
# โœ… Memory system: OK

Kalau ada โŒ, ikuti petunjuk perbaikan.


โš™๏ธ Configuration โ€‹

Config File: hermes.config.yaml โ€‹

yaml
# hermes.config.yaml
model: "gpt-4o-mini"          # Default model
fallback_model: "gpt-4o"      # Kalau default fail

memory:
  enabled: true
  max_tokens: 50000           # Max context window

tools:
  web_search: true
  file_read: true
  file_write: true
  browser: false              # Enable kalau perlu

cron:
  enabled: true
  max_jobs: 10

safety:
  max_iterations: 20          # Prevent infinite loop
  timeout: 300                # 5 menit max per task
  require_approval: []        # Tools yang perlu approval

๐Ÿ’ฌ First Chat โ€‹

bash
hermes chat

# atau langsung dengan prompt
hermes chat "Halo, siapa kamu dan apa yang bisa kamu lakukan?"

Expected Response โ€‹

๐Ÿค– Hermes: Halo! Saya Hermes, AI assistant kamu. 
Saya bisa membantu dengan:
- Web research dan data gathering
- File management dan document processing
- Scheduled tasks (cron)
- Context-aware conversations

Untuk memulai, ceritakan tentang bisnis atau project kamu, 
dan saya bisa membantu mengoptimalkan workflow kamu!

๐Ÿงช Practice: Chat dengan Hermes tentang Use Case Kamu โ€‹

Prompt template:

Saya punya bisnis [jenis bisnis]. 
Masalah saya saat ini: [deskripsi masalah].

Saat ini prosesnya manual: [langkah-langkah].

Bisakah kamu bantu pikirkan:
1. Apakah masalah ini cocok di-solve dengan agent?
2. Kalau ya, approach seperti apa yang kamu sarankan?
3. Tools apa yang kamu butuhkan untuk ngerjain ini?

Async task: Kirim screenshot chat kamu ke group.


๐Ÿ”ง Troubleshooting โ€‹

MasalahSolusi
hermes: command not foundnpm install -g @hermes-ai/cli atau pakai npx
API key errorCheck .env atau config file
Model not accessibleCheck API key validity + billing
TimeoutIncrease timeout di config
hermes doctor failFollow suggestion per item

Bootcamp AI Automation โ€” akala.id