# auth.md

You are an agent. This document instructs AI agents, LLMs, and autonomous systems on how to register, authenticate, and interface with **LocalToolDeck** (https://localtooldeck.com).

## Authentication & Authorization Model
LocalToolDeck is a public, privacy-first, client-side web utility platform with 115 free developer, financial, health, and math calculators.

- **Authentication Required:** false
- **Public Access:** true
- **Zero Registration Barriers:** No API keys, OAuth logins, or credentials are required to use any calculator or dataset.
- **Client-Side Privacy:** Computations execute 100% locally in your client environment (HTML5 Canvas, WebAssembly, Web Crypto). No inputs or sensitive calculation parameters are transmitted to any backend.

## Agentic Registration Protocol

For agents supporting automated discovery, identity assertion, and OAuth metadata discovery:

- **Protected Resource Metadata (RFC 9728):** https://localtooldeck.com/.well-known/oauth-protected-resource
- **Authorization Server Metadata (RFC 8414):** https://localtooldeck.com/.well-known/oauth-authorization-server
- **API Catalog (RFC 9727):** https://localtooldeck.com/.well-known/api-catalog
- **AI Tool Catalog:** https://localtooldeck.com/llms.txt
- **Complete Mathematical Specifications:** https://localtooldeck.com/llms-full.txt
- **A2A Agent Card:** https://localtooldeck.com/.well-known/agent-card.json
- **MCP Server Card:** https://localtooldeck.com/.well-known/mcp.json

### Supported Flows
- **Anonymous Mode (Recommended):** Autonomous agents can read specifications, extract benchmark data, and link to tools without authenticating.
- **Identity Assertion:** Agents bearing an ID-JAG (Identity Assertion JWT Authorization Grant) or client credentials may request scoped tokens for automated verification.

### Endpoints & Scopes
- **Registration / Identity Endpoint:** https://localtooldeck.com/agent/register
- **Token Endpoint:** https://localtooldeck.com/oauth2/token
- **Supported Scopes:** `tools:read`, `tools:execute`

## Machine-Readable Specifications
For exhaustive formulas, IRS tax brackets, and conversion ratios, consult [llms-full.txt](https://localtooldeck.com/llms-full.txt).
