# Documentation

> Sign-in for people and the agents that act for them: a Go library, or a server with a TypeScript SDK for any other backend.

From `README.md`, `llms.txt`, `docs/guide-node.md` in tensile-tools/tensile-auth at commit `a4e7747` (v0.4.1-3-ga4e7747). The HTML page is https://auth.tensile.tools/docs.

tensile-auth signs people in with a passkey, or an email and a password, and gives each agent they delegate to its own narrower, shorter session. Every agent's session names the person it acts for, and revoking a session ends everything delegated from it at once.

## Two ways to run it

- **Embed the Go library.** One call, `authroutes.Mount`, serves every sign-in route, the browser client, and the drop-in elements. You add the service, the routes, and a page. Start with the [Go quickstart](/docs/get-started/quickstart-go).
- **Run the server.** For a Node, Bun, or Deno app, `tensile-auth-server` is the library as one binary. The app proxies `/auth/` to it, so sessions stay in `__Host-` cookies on the app's own origin, and checks each request with the server in one call, `POST /v1/check`. Start with the [Next.js quickstart](/docs/get-started/quickstart-nextjs).

## For coding agents

Every page here is also Markdown: add `.md` to its address. [`/llms.txt`](/llms.txt) lists every page, and a coding agent that reads it follows the library's tested recipe.
