Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 1.91 KB

File metadata and controls

67 lines (58 loc) · 1.91 KB

Quick Start

This guide will help you run Hercules locally in just a few minutes.

1. Requirements

  • .NET 10 SDKdotnet --version should show 10.x
  • Node.js 20+ — only if you need the web interface
  • Access to at least one LLM provider:
    • YandexGPT (key + Yandex Cloud folderId), or
    • Ollama Cloud (API key), or
    • Ollama Local (ollama serve on localhost:11434)

2. Clone and Build

git clone https://github.com/<owner>/hercules.git
cd hercules
dotnet restore
dotnet build Hercules.slnx

3. Configure the Provider

Open appsettings.json and set the active provider and keys. Example for local Ollama:

{
  "Llm": {
    "Provider": "ollama-local",
    "OllamaLocal": { "Endpoint": "http://localhost:11434/v1", "Model": "llama3.1" }
  }
}

It's best to pass secrets via environment variables:

export HERCULES_Llm__Provider=yandexgpt
export HERCULES_Llm__YandexGpt__ApiKey=*** 
export HERCULES_Llm__YandexGpt__FolderId=***

4. Run the CLI (primary mode)

dotnet run --project Hercules

Enter a query in the REPL. Repeat the same query 3 times — the agent will propose creating a skill.

5. Run the Web API + Frontend (optional)

# Terminal 1 — backend (port :5000)
dotnet run --project Hercules.WebApi

# Terminal 2 — frontend (port :4321)
cd hercules-web
npm install
cp .env.example .env   # adjust PUBLIC_API_BASE / PUBLIC_API_KEY if needed
npm run dev

Open http://localhost:4321.

6. Run the Telegram Bot (optional)

export HERCULES_Telegram__Enabled=true
export HERCULES_Telegram__BotToken=<token from @BotFather>
dotnet run --project Hercules -- --telegram

What's Next