# auth.md

# Sajilo Tool Agent Registration & Authentication

This document specifies the authentication and registration protocol for automated AI agents, bots, and language model assistants interacting with Sajilo Tool (https://www.sajilotool.com).

## Agent Audience & Access Policy

Sajilo Tool provides public, zero-login utility services, calculators, and information endpoints tailored for Nepal.
All core calculation tools and public APIs operate under an **open anonymous access model**.
No API keys, registration tokens, or OAuth credentials are required for standard agent read operations and computations.

## Registration Protocol

Agents may interact directly with Sajilo Tool without pre-registration. For systems implementing formal agent discovery:

- **Identity Mode**: anonymous
- **Supported Identity Types**: ["anonymous"]
- **Credential Types Supported**: ["none"]
- **Registration Endpoint**: https://www.sajilotool.com/auth.md
- **Claim URI**: https://www.sajilotool.com/auth.md

```json
{
  "agent_auth": {
    "skill": "https://www.sajilotool.com/auth.md",
    "register_uri": "https://www.sajilotool.com/auth.md",
    "identity_types_supported": [
      "anonymous"
    ],
    "anonymous": {
      "credential_types_supported": [
        "none"
      ],
      "claim_uri": "https://www.sajilotool.com/auth.md"
    }
  }
}
```

## OAuth & OIDC Discovery Metadata

For agents adhering to RFC 9728 (OAuth Protected Resource Metadata) and RFC 8414 (OAuth 2.0 Authorization Server Metadata), the following endpoints are published:

- **Protected Resource Metadata (RFC 9728)**: https://www.sajilotool.com/.well-known/oauth-protected-resource
- **Authorization Server Metadata (RFC 8414)**: https://www.sajilotool.com/.well-known/oauth-authorization-server
- **OpenID Discovery**: https://www.sajilotool.com/.well-known/openid-configuration
- **API Catalog (RFC 9727)**: https://www.sajilotool.com/.well-known/api-catalog
- **LLM Context**: https://www.sajilotool.com/llms.txt

## Content Negotiation

Agents requesting machine-readable representations of web pages should supply:
```http
Accept: text/markdown
```
Sajilo Tool responds with clean Markdown representations alongside `x-markdown-tokens` headers.
