# Quick start

One line installs the newest release on Linux and macOS (amd64 and arm64). It checks the
binary against the release's `SHA256SUMS`, puts it in `~/.local/bin` and never uses sudo.
Add `-s -- --claude` after `sh` to register ahto in Claude Code as well:

```sh
curl -fsSL https://ahto.dev/install.sh | sh
```


Then crawl a repository, ask it a question and start the gateway:

```sh
ahto crawl https://github.com/golang/example
ahto query sql "select author_name, count(*) as commits
                from commits group by 1 order by 2 desc limit 10"
ahto serve      # then open http://127.0.0.1:8080: the web app, with the API also below /api
```

`ahto upgrade` later replaces the binary with the newest release, with the same checksum
check. To build from source you need Git 2.42.0 or newer, a C compiler (ahto uses cgo for
DuckDB and the parsers) and [mise](https://mise.jdx.dev):


In the checkout, `mise install` is the only setup step: it installs the pinned tools, builds
ahto and puts it in `~/.local/bin`. [Getting started](/docs/getting-started) walks through
each step, and [Development](/docs/development) covers building and testing.