curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
source ~/.zshrc
hermes --version
Trên Windows, nên dùng WSL2.
npm install -g @tokencode/tokencode
tokencode
Chọn Hermes Agent hoặc chạy:
npx @tokencode/tokencode hm -k sk-your-api-key -m claude-sonnet-4-6
hermes config set model.provider custom
hermes config set model.base_url https://tokencode.dev
hermes config set model.api_mode anthropic_messages
hermes config set model.api_key sk-your-api-key
hermes config set model.default claude-sonnet-4-6
Kiểm tra bằng hermes chat -q "Hãy xác nhận kết nối trong một câu.". Nếu Hermes vẫn dùng OpenRouter, hãy chắc chắn model.provider là custom trong ~/.hermes/config.yaml. Ở chế độ anthropic_messages, không thêm /v1 vào URL.