# Authentication for agents

This website needs no credentials. Its two MCP servers, `/ask`, `/a2a` and the contact API are public: send no token, no API key and no cookie. This file is https://agenticintelligencesystems.com/auth.md, last updated 2026-11-10.

The AIS products are a different system. An agent reaches them through the AIS hub at `https://app.agenticintelligencesystems.com/mcp`, which signs agents in with OAuth 2.1. The rest of this file says how, using the hub's own published metadata. It follows the section order of the auth.md convention so an agent can walk it step by step.

## Discover

There are two surfaces, and they answer differently.

| Surface | Address | Sign in |
|---|---|---|
| This website | `https://agenticintelligencesystems.com/mcp`, `/docs-mcp`, `/ask`, `/a2a`, `/api/subscribe`, `/api/sections` | None |
| AIS products (the hub) | `https://app.agenticintelligencesystems.com/mcp` | OAuth 2.1 bearer token |

This website publishes no `/.well-known/oauth-protected-resource` file, because nothing here is protected. A request here never gets a 401.

The hub does publish one. A request to the hub without a token gets `401` with a `WWW-Authenticate: Bearer` header whose `resource_metadata` value points at it.

- Protected resource metadata (RFC 9728): `https://app.agenticintelligencesystems.com/.well-known/oauth-protected-resource/mcp`
- Authorization server (issuer): `https://id.agenticintelligencesystems.com/api/auth`
- Authorization server metadata (RFC 8414): `https://id.agenticintelligencesystems.com/.well-known/oauth-authorization-server/api/auth`
- Guide for people and agents: `https://app.agenticintelligencesystems.com/connect.md`

The hub's metadata has no `agent_auth` block. It has no `identity_endpoint`, `claim_endpoint` or `events_endpoint`, and it does not accept `identity_assertion` (ID-JAG, `urn:ietf:params:oauth:token-type:id-jag`), `service_auth` or `anonymous` registration. An agent signs in for a person with OAuth, or with the hub's own device approval flow. Both are described below with the hub's real endpoints.

## Pick a method

- To read this website, search it or send a message to the founders, use no credential.
- To use an AIS product for a person in a client that can open a browser, use the OAuth authorization code flow with PKCE.
- To use an AIS product from a machine with no browser, or from a client without OAuth, use the hub's device approval flow. The agent shows the person one link, the person approves, and the agent receives a token.

Every hub method needs an AIS account. There is no self sign up. A person gets an account from an AIS founder, and early access is requested through this website.

## Register

Nothing to register for this website.

For the hub with OAuth, a client does not register by hand. The authorization server supports Client ID Metadata Documents (`client_id_metadata_document_supported` is true), so a client identifies itself with a URL it controls. Most MCP clients do this for you when you add `https://app.agenticintelligencesystems.com/mcp` as a remote server.

For the hub with device approval, the agent starts a request for itself.

```
POST https://id.agenticintelligencesystems.com/api/auth/agent/device/code
Content-Type: application/json

{"label": "<agent> on <machine>", "workspaces": {"*": "editor"}}
```

The answer holds `device_code`, `verification_uri_complete` and `interval`. Add `"scopes": ["home:decide", "home:guest"]` only when the person wants the agent to have them. This endpoint takes POST only.

## Claim

There is no claim ceremony on this website and no `claim_endpoint` on the hub.

The step where a person takes part is consent. An agent acts for one person and at most at that person's own role.

- With OAuth, the person signs in at `https://id.agenticintelligencesystems.com` as their AIS email and chooses Allow. The consent page lists what the agent may do.
- With device approval, the agent shows the person `verification_uri_complete`. The person opens it on any phone or computer within 10 minutes, signs in and chooses Approve. They can narrow what the agent gets and never widen it.

## Exchange

With OAuth, the client exchanges the authorization code for tokens at the token endpoint.

- Authorization endpoint: `https://id.agenticintelligencesystems.com/api/auth/oauth2/authorize`
- Token endpoint: `https://id.agenticintelligencesystems.com/api/auth/oauth2/token`
- Grant types: `authorization_code`, `refresh_token`, `client_credentials`
- PKCE: use it, with `S256`, the only challenge method the server lists
- Resource to request: `https://app.agenticintelligencesystems.com/mcp`

Scopes the hub's MCP server publishes:

| Scope | What it allows |
|---|---|
| `home:read` | Read what the person can see |
| `home:propose` | Prepare changes for the person to approve |
| `home:decide` | Accept proposals for the person, only when they grant it |
| `home:guest` | Make guest links for clients, only when they grant it |
| `home:fill_address` | Fill in an address on a draft |
| `offline_access` | Stay connected with a refresh token |

Ask for the smallest set the task needs. The current list is always the `scopes_supported` value in the protected resource metadata.

With device approval, the agent polls for its token every `interval` seconds.

```
POST https://id.agenticintelligencesystems.com/api/auth/agent/device/token
Content-Type: application/json

{"device_code": "<device_code>"}
```

`authorization_pending` means keep waiting, and `slow_down` means wait 5 seconds longer. Once the person approves, the answer holds `access_token`. It is shown once.

## Use the access_token

Send the token to the hub only, in the `Authorization` header.

```
POST https://app.agenticintelligencesystems.com/mcp
Authorization: Bearer <access_token>
Content-Type: application/json
Accept: application/json, text/event-stream
```

Never send a hub token to this website. Nothing here reads it. Store the token where only that person's account can read it, and keep it out of chats and repositories.

## Errors

- `401` from the hub with `WWW-Authenticate: Bearer error="invalid_token"` means there is no token, or it expired. Read `resource_metadata` from that header and sign in again, or use the refresh token.
- This website never answers 401 or 403 for a missing credential. Its errors are listed at https://agenticintelligencesystems.com/developers.md.

## Revocation

- Revocation endpoint (RFC 7009): `https://id.agenticintelligencesystems.com/api/auth/oauth2/revoke`
- A person can end an agent's access at `https://app.agenticintelligencesystems.com/me`, in the panel Your agents. It stops at once.

This website holds no tokens, so it has nothing to revoke.
