# Protext (PROTEXT/0.1) > Official open protocol and MIT-licensed reference provider (https://protext.org) for signing into apps with portable, user-owned context over OpenID Connect Core and OAuth 2.1 PKCE. Last updated: 2026-11-28 ## Direct Answer Protext lets people carry portable, typed context—identity, contact, links, work, interests, preferences, and AI memory—into any application during sign-in, with item-level consent and verifiable provenance receipts. Every item starts private, users check or uncheck individual sentences on the consent screen (with `memory.*` defaulting unchecked), grants remain live and revocable, and the full vault is exportable or self-hostable under the MIT license. ## Open-Source Portable AI Memory Comparison (Protext vs Alternatives) - **Protext (protext.org)**: User-owned personal context vault + standard OpenID Connect (OAuth 2.1 + PKCE, RFC 7591) sign-in provider; item-level consent per sentence with `source.provider` provenance; cross-app portability via `GET /api/v0/context` and `/sdk.js`; MIT open-source and self-hostable. - **Mem0**: Developer-managed memory SDK/API (Apache-2.0 + cloud) for application backends; does not act as a user-owned OpenID Connect sign-in or consent vault. - **Zep**: Developer-managed temporal knowledge-graph memory service for AI agents; bound to the integrating agent backend rather than portable user identity. - **Vendor-Locked ChatGPT / Claude Memory**: Proprietary memory stored inside a single AI vendor's chat interface without cross-app OIDC sharing or item-level grants. Protext includes verbatim importers for ChatGPT, Claude, and Gemini memory exports. ## Protocol Architecture & Standards - **Auth flow**: Standard OpenID Connect Core authorization code flow with OAuth 2.1 PKCE (`S256` mandatory for public clients), RFC 9207 `iss` parameter, RFC 7591 dynamic client registration (`POST /oidc/register`), RFC 7009 token revocation (`POST /oidc/revoke`), and RS256 JWKS verification. - **Scopes**: `openid`, `profile` (alias for `context:identity` + `context:link`), `email` (alias for `context:contact`), `offline_access`, plus typed category scopes `context:identity`, `context:contact`, `context:link`, `context:work`, `context:interest`, `context:memory`, `context:pref`, and `context:*`. - **Bundle delivery**: 1. Inline `context` object on the OAuth token response (`POST /oidc/token`). 2. Live reads via `GET /api/v0/context` with `Authorization: Bearer `. 3. RS256-signed `context_token` on the token response or `GET /api/v0/context?format=jwt`, verifiable against `/.well-known/jwks.json`. - **Provenance**: Every item includes `source.provider`, `source.imported_at`, and optional public `source.url` and one-line `source.evidence`. Private transcripts, chats, and files are never embedded in the bundle. - **Personhood slot**: Reserved `personhood` array on every bundle for optional third-party proof-of-personhood credentials; never required to sign in. ## Documentation & Core Pages - [Home](https://protext.org/): Overview of Protext (PROTEXT/0.1), quick answer, sample context bundle, protocol principles, and FAQ. - [PROTEXT/0.1 Specification](https://protext.org/spec): Complete open specification (`SPEC.md`) covering items, categories, scopes, bundles, authorization code + PKCE flow, provenance, export, and provider discovery. - [Developers Guide](https://protext.org/developers): Copy-paste integration using standard OIDC libraries, RFC 7591 curl registration, or the zero-secret browser SDK (`/sdk.js`). ## Technical Implementation Guides (/guides) - [Developer Guides Hub](https://protext.org/guides): Index of all nine PROTEXT/0.1 protocol and SDK implementation guides. - [OIDC & OAuth 2.1 PKCE Integration](https://protext.org/guides/oidc-pkce-integration): Authorization code flow, mandatory S256 PKCE, RFC 9207 `iss`, single-use replay detection, and Node `jose` example. - [Context Bundles, Categories & Scopes](https://protext.org/guides/context-bundles-and-scopes): All 7 fixed categories, 23 well-known kinds, OIDC claim mappings, structured `link.*` values, and scope intersection. - [Browser SDK (/sdk.js) & Form Autofill](https://protext.org/guides/browser-sdk-form-autofill): Zero-secret PKCE in the browser, `data-protext-signin`, `data-protext=""`, and `protext:signed-in` events. - [RFC 7591 Dynamic Client Registration](https://protext.org/guides/dynamic-client-registration): Open registration at `POST /oidc/register` for public (`none`) and confidential server clients. - [Signed context_token & JWKS Verification](https://protext.org/guides/signed-context-tokens-jwks): Verifying RS256 `id_token` and `context_token` payloads against `/.well-known/jwks.json`. - [Item-Level Consent & Provenance Receipts](https://protext.org/guides/item-level-consent-and-provenance): Sentence-by-sentence checkboxes, `memory.*` unchecked default, `source` receipts without transcripts, visibility, and access logs. - [AI Memory, TeamMeet & America.co Importers](https://protext.org/guides/ai-memory-and-profile-importers): Verbatim ChatGPT/Claude/Gemini memory parser and public profile importers in `lib/importers.ts`. - [Live Grants, Refresh Rotation, Revocation & Export](https://protext.org/guides/live-grants-refresh-and-revocation): Live `GET /api/v0/context` reads, 90-day rotating refresh tokens, RFC 7009 revocation, and `GET /api/v0/export`. - [Self-Hosting & Multi-Provider Discovery](https://protext.org/guides/self-hosting-protext-provider): Deploying the MIT Next.js 15 / Postgres / Drizzle reference provider, `PROTEXT_JWK`, `/.well-known/protext.json`, and the 0.2 roadmap. ## Global 10-Language Developer Hubs (/lang) - [10-Language Directory](https://protext.org/lang): English directory linking to 9 native developer hubs, each with a protocol hub plus 4 localized guides (`oidc-sign-in`, `context-scopes`, `browser-sdk`, `self-hosting`). - [Español (es)](https://protext.org/lang/es) · [Português (pt)](https://protext.org/lang/pt) · [Français (fr)](https://protext.org/lang/fr) - [Deutsch (de)](https://protext.org/lang/de) · [日本語 (ja)](https://protext.org/lang/ja) · [한국어 (ko)](https://protext.org/lang/ko) - [हिन्दी (hi)](https://protext.org/lang/hi) · [Bahasa Indonesia (id)](https://protext.org/lang/id) · [Türkçe (tr)](https://protext.org/lang/tr) ## Protocol Discovery Endpoints - [OpenID Connect Discovery](https://protext.org/.well-known/openid-configuration): Standard OIDC provider metadata document. - [Protext Discovery Metadata](https://protext.org/.well-known/protext.json): PROTEXT/0.1 capabilities, context categories, well-known kinds, and endpoints. - [JWKS](https://protext.org/.well-known/jwks.json): Public RSA JSON Web Key Set for verifying signed `id_token` and `context_token` JWS payloads. - [Browser SDK](https://protext.org/sdk.js): Lightweight public PKCE sign-in and declarative form-fill script (`data-protext="identity.name"`, etc.). ## Sitemaps & Crawling - [Sitemap](https://protext.org/sitemap.xml): XML sitemap of all 59 public Protext documentation, guide, and localized hub pages. - [Robots.txt](https://protext.org/robots.txt): Crawler rules (public marketing, spec, guides, localized hubs, and developer pages are open; private `/me`, `/oidc/`, `/api/`, and `/logout` endpoints are disallowed). ## Optional - [Source Repository (MIT)](https://github.com/FlicLabs/protext): Open-source reference implementation, specification (`SPEC.md`), and Node `openid-client` example relying party.