Use cases

Pick the problem you have.

Each page below starts from a concrete job, explains the path through theAuth, and ends in code checked against the package source. Start with the one closest to what you are building.

How these are written

Source first, docs second.

The snippets are checked against the package source and types, not copied from marketing pages. Where the published docs and the source disagree, the guides follow the source and say so.

Something here does not match what you see in your version? Open a thread in GitHub Discussions. For the full reference, the docs cover every module.

Get started

Give your first agent an identity.

Install the package, create an agent with scoped permissions, and read its first audit record. The core runs on Postgres, SQLite, MySQL or D1, and the Go module needs a single go get.

  • npm install @glinr/theauth
  • go get github.com/glincker/theauth-go
Or skip hosting with theAuth Cloud