Skip to content

Quickstart

Get from nothing to a real answer and a real code review in about five minutes.

You need Node.js 24+ and an API key from one AI provider (or a local Ollama — see Local & free models if you don’t want to pay for one).

Terminal window
npm install -g gaunt-sloth@alpha

This gives you the gth command (with gsloth and gaunt-sloth as aliases — use whichever you like; this guide uses gth).

Export the key for the provider you have. For Anthropic:

Terminal window
export ANTHROPIC_API_KEY="sk-ant-..."

Other providers read their own variable — GEMINI_API_KEY, OPENAI_API_KEY, GROQ_API_KEY, OPENROUTER_API_KEY, and so on. The full list is in Providers.

From your project’s root:

Terminal window
gth init anthropic

This writes a .gsloth.config.json you can commit and tune later. The provider name is one of vertexai, anthropic, groq, deepseek, openai, google-genai, xai, openrouter, huggingface, ollama.

Prefer to be walked through it? Run gth init with no argument — it detects which providers have a key set, lets you pick a provider and model, and offers to store the config for this project or globally.

Terminal window
gth ask "what does this project do?" -f README.md

ask is a one-shot question. -f adds files as context (repeat it for more), and you can pipe input in:

Terminal window
cat error.log | gth ask "what is causing these errors?"

Reviews are stateless — nothing carries over between runs — so a review can’t be argued down, and a failing one exits non-zero, which is what makes it a CI gate.

Terminal window
git --no-pager diff | gth review

Working on a pull request? gth pr 42 reviews PR #42 and pulls its linked issue in as the requirements to check against.

  • Work interactivelyInteractive sessions: bare gth opens a coding session in your project; chat mode, slash commands, the TUI.
  • Do a specific jobGuides & Recipes: review PRs in CI, code against your own project rules, run a local model, script it non-interactively.
  • Tune the setupConfiguration: providers, tools, MCP servers, identity profiles.
  • Every command and flagCommands.