Context URL

Encode sources and a prompt in a URL.
Paste it into any AI.

docs
links
chats
Your AI
with context
Their AI
new context

How it works

A Context URL encodes sources and a prompt in a single URL.

https://contexturl.ai/v1/?q=allrecipes.com|budgetbytes.com!suggest+easy+dinners

Why not just share a prompt?

Because context matters. Grounding AI in sources cuts hallucination rates from 66% to 10%. But the world’s private data is a million times larger than the public web — and a prompt can only carry what you paste into it. Context URLs can use both, even private data an AI user isn’t allowed to directly see (see below for details).

Examples

allrecipes.com|budgetbytes.com!suggest+easy+dinners

Fetches two recipe sites and suggests dinner ideas.

owl.purdue.edu/owl/general_writing/the_writing_process!help+me+write+a+cover+letter

Uses the Purdue writing guide to help draft a cover letter.

react.dev|stackoverflow.com/questions/tagged/react!explain+hooks

Combines official React docs with Stack Overflow answers to explain hooks.

irs.gov/publications/p17!how+do+i+file+taxes+as+a+freelancer

Points the AI at the actual IRS publication and asks a specific tax question.

Types What a ๐ŸฅŒ can be

cURLs are agents

Each agent is backed by the world's leading sources in its field, with a prompt that defines its expertise. A single ๐ŸฅŒ becomes a shareable, grounded specialist.

https://contexturl.ai/v1/?q=allrecipes.com|foodnetwork.com|seriouseats.com!you+are+a+chef

๐Ÿณ Chef

Backed by AllRecipes, Food Network, and Serious Eats.

๐Ÿฅ— Nutritionist

Backed by USDA Nutrition, Academy of Dietetics, and Harvard Nutrition.

๐Ÿ”’ Security Auditor

Backed by OWASP Top 10, Cheat Sheet Series, and CWE/MITRE.

โšก Performance

Backed by Web Vitals, Chrome DevTools, and MDN Performance.

๐Ÿ“ก Wire Reporter

Backed by Reuters, Associated Press, and BBC News.

๐Ÿ“Š Analyst

Backed by The Economist, The Atlantic, and Foreign Affairs.

๐Ÿ’ฐ Value Investor

Backed by Buffett's Letters, Bogleheads, and Investopedia.

๐ŸŽฐ Growth Investor

Backed by WallStreetBets, Seeking Alpha, and ARK Invest.

โœ๏ธ Style Editor

Backed by Plain Language, Google Style Guide, and Strunk & White.

๐Ÿ“ Grammar Editor

Backed by Purdue OWL, Chicago Manual, and Grammarly.

๐ŸŽ“ Tutor

Backed by Khan Academy, MIT OpenCourseWare, and Coursera.

๐Ÿงฉ Quiz Coach

Backed by Brilliant, Quizlet, and OpenStax.

More agents โ†’

cURLs are swarms

Wrap each agent in brackets and they form a swarm โ€” each grounded in its own sources, debating from its own expertise. The recursive structure means every agent can also exist independently.

https://contexturl.ai/v1/?q=[allrecipes.com|seriouseats.com!chef]|[nutrition.gov|eatright.org!nutritionist]!debate+dinner

๐Ÿฝ๏ธ Dinner Debate

Pick your recipe sources โ€” each a top food site โ€” and let them debate.

More in Swarm Builder โ†’

๐Ÿ–ฅ๏ธ Code Review

Pick your reviewers โ€” each backed by leading sources โ€” and let them audit your code.

More in Swarm Builder โ†’

๐Ÿ“ฐ News Roundtable

Pick your outlets โ€” each a leading newsroom โ€” and let them debate.

More in Swarm Builder โ†’

๐Ÿ“ˆ Investment Panel

Pick your sources โ€” each a top finance site โ€” and let them debate.

More in Swarm Builder โ†’

โœ๏ธ Writing Workshop

Pick your style guides โ€” each a leading reference โ€” and let them critique.

More in Swarm Builder โ†’

๐Ÿ“– Study Group

Pick your courses โ€” each backed by top resources โ€” and build your study group.

More in Swarm Builder โ†’

cURLs are custom swarms

Give each agent in a swarm its own persona. The inner prompt after ! tells each bracketed agent how to behave — turning generic sources into opinionated experts that debate from their own perspective.

contexturl.ai/v1/?q=[allrecipes.com!you+are+a+comfort+food+chef]|[seriouseats.com!you+are+kenji+lopez+alt]|[nutrition.gov!you+are+a+strict+dietitian]!debate+what+to+cook+tonight

๐Ÿณ Dinner Debate

Pick sources and give each a cooking persona โ€” they debate from that perspective.

๐Ÿ–ฅ๏ธ Code Review

Pick your reviewers and give each an audit focus โ€” they critique from different angles.

๐Ÿ“ฐ News Analysis

Pick your outlets and give each an editorial voice โ€” they analyze from different angles.

๐Ÿ“– Study Group

Pick your resources and give each a teaching style โ€” they tutor from different approaches.

cURLs are group avatars

Unlike a swarm, a group avatar merges many perspectives into one voice. Each source gets a weight โ€” dial the sliders to shape the blend. This is broad listening.

https://contexturl.ai/v1/?q=0.3*reuters.com|0.3*bbc.com|0.4*nytimes.com!what+is+the+consensus+view+on+today+news

๐Ÿ“ฐ News Consensus

Pick your outlets and dial their influence โ€” they merge into one voice.

๐Ÿ’ฐ Investment Committee

Weight your advisors โ€” conservative or aggressive โ€” and get one recommendation.

โœ๏ธ Team Styleguide

Blend style authorities into a single editorial voice for your team.

๐ŸŽ“ Study Consensus

Weight your textbooks and course materials โ€” they merge into one tutor.

cURLs are webpages

The output of a ๐ŸฅŒ is the webpage. Ask the AI to generate interactive HTML with JavaScript, dynamically synthesized from your sources.

https://contexturl.ai/v1/?q=allrecipes.com/recipe/23600/worlds-best-lasagna!generate+an+interactive+shopping+list+as+html
Interactive recipe shopping list

๐Ÿฝ๏ธ Recipe Dashboard

A lasagna recipe becomes a clickable shopping list with serving multiplier.

Interactive security audit dashboard

๐Ÿ–ฅ๏ธ Code Audit Dashboard

OWASP cheat sheets become an interactive security audit with pass/fail checklist.

Interactive news digest dashboard

๐Ÿ“ฐ News Digest

Wire services become an interactive news digest with category filters and timeline.

cURLs are web worlds

When a generated page contains links that are themselves Context URLs, each click generates the next page. Add &browser=claude to open all links through Claude. It's an infinite, AI-generated web โ€” each page synthesized on demand from sources.

https://contexturl.ai/v1/?q=en.wikipedia.org/wiki/Portal:Contents!generate+a+homepage+where+each+link+is+a+contexturl&browser=claude

๐ŸŒ Knowledge Portal

Wikipedia becomes an infinite AI-generated encyclopedia โ€” every link spawns a new page.

Knowledge portal โ€” sub-page 1
Knowledge portal โ€” sub-page 2
Knowledge portal โ€” sub-page 3

๐Ÿ“š Developer Docs

MDN docs become a browsable interconnected reference โ€” each API page generated on demand.

Developer docs โ€” sub-page 1
Developer docs โ€” sub-page 2
Developer docs โ€” sub-page 3

Everything together

Weighted group avatars with custom personas, debating as a swarm, generating a web world. Select sources, adjust weights, edit personas — the URL updates live.

Recipe Expert
20%
Nutritionist
15%
World Cuisine
15%
Web Designer
25%
Budget Coach
10%
Fitness
15%
Outer prompt
But the best data isn't public

Everything above uses the open web. But the world's most valuable data — your medical records, your company's docs, your unpublished research — is private. Context URLs work at every privacy level. No matter how sensitive your data, there's a way to use it with AI without giving up control.

Public
open web
Unlisted
secret link
Proxied
revocable link
Soft gate
policy signals
Hard gate
proxy enforced
Confidential
trusted hardware
E2E Encrypted
full enclave
Structured Transparency
differential privacy

Public

Public cURLs use sources on the open web. Everything above is a public ๐ŸฅŒ.

contexturl.ai/v1/?q=allrecipes.com|budgetbytes.com!suggest+easy+dinners

Unlisted

Your data lives at a URL that isn't indexed — the URL itself is the secret. You already have these. And some are live — edit the document and the AI sees the latest version every time.

contexturl.ai/v1/?q=docs.google.com/document/d/EXAMPLE_DOC/export?format=txt|docs.google.com/spreadsheets/d/EXAMPLE_SHEET/export?format=csv|etherpad.wikimedia.org/p/contexturl-demo/export/txt|hackmd.io/EXAMPLE_NOTE/download|andrewtrask.substack.com/p/example-post/preview|medium.com/@andrewtrask/example-post-abc123|andrewtrask.ghost.io/p/example-post/preview|andrewtrask.wordpress.com/?p=123&preview=true|telegra.ph/Context-URL-Demo-01-01|gist.githubusercontent.com/iamtrask/EXAMPLE_GIST/raw|gitlab.com/-/snippets/EXAMPLE_SNIPPET/raw|pastebin.com/raw/EXAMPLE_PASTE|dpaste.org/EXAMPLE_DPASTE/raw|rentry.co/contexturl-demo/raw|ix.io/EXAMPLE_IX|dl.dropboxusercontent.com/s/EXAMPLE_DROP/notes.txt?raw=1|drive.google.com/uc?export=download&id=EXAMPLE_DRIVE!list+and+summarize+each+source+in+one+sentence
Andrew Trask

Hi, my name is Andrew. I'm ok using my private data (unlisted URLs) for this tutorial.

Live (edits propagate to AI)
Publishing
Code & text
Files
17 sources selected

Proxied

An unlisted link works until someone leaks it. A proxied link goes through a relay you control. Turn the proxy off and the link stops working — even if someone saved the URL. Revocable access with zero configuration.

contexturl.ai/v1/?q=136.114.196.12:5000/mta3q3m6!summarize+the+top+stories

This is a proxy to Hacker News. The owner can revoke it anytime — the real URL is never exposed.

Create your own

Soft gate

You publish content on the open web but declare rules about how AI can use it. These are machine-readable signals — text you add to your website that tells crawlers and AI systems what's allowed.

The web already has a growing ecosystem of these protocols. None of them are enforced by code — they rely on AI companies choosing to comply. But they establish intent, and increasingly, legal standing.

File-based (add a file to your site)
robots.txt User-Agent: GPTBot
Disallow: /
The original. Block specific AI crawlers by user-agent. Now supports 30+ AI bots including GPTBot, ClaudeBot, PerplexityBot, Google-Extended.
tdmrep.json /.well-known/tdmrep.json W3C community standard. Declares text and data mining reservations in a structured JSON file. Machine-readable rights for who can mine what.
Also checked (demos coming soon)
ai.txt Placed at site root: /ai.txt Spawning's protocol. Declares AI training preferences per-URL or sitewide.
RSL (Really Simple Licensing) <link rel="license" type="application/rsl+xml" href="license.xml"> Open XML standard for machine-readable licensing. Declares per-URL policies for ai-train, ai-input, and search.
noai / noimageai meta tag <meta name="robots" content="noai, noimageai"> Originated by DeviantArt. Page-level opt-out from AI training. Also works as HTTP header: X-Robots-Tag: noai.
IETF AIPREF Content-Usage Content-Usage: ai-train=disallow Formal IETF standard (in progress). Separates acquisition from usage — allow crawling but restrict how content is used.
C2PA Content Credentials Cryptographic metadata embedded in images, video, audio Coalition for Content Provenance and Authenticity. Includes training preference assertions that survive re-uploads.
CC Signals Creative Commons framework, builds on IETF AIPREF A social contract between data stewards and AI developers. Emphasizes reciprocity, recognition, and sustainability.
Cloudflare Content Signals Managed robots.txt with search, ai-input, ai-train signals One toggle protects ~20% of the internet. Blocks AI training crawlers while preserving SEO.
Google-Extended User-Agent: Google-Extended in robots.txt Google's opt-out for Gemini training. Separate from Googlebot so search still works.
ACAP Automated Content Access Protocol (2008) The publishing industry's early attempt at machine-readable content rights. Predates the AI era.

Hard gate

Soft gates ask nicely. Hard gates enforce. A gatekeeper proxy sits between your data and the AI — checking every request against your policy before touching your content. You share the gatekeeper's URL. Your actual data URL stays secret.

The gatekeeper is a proxy with judgment. "Only answer cooking questions." "Only for educational use." "Block queries about personal information." Your rules, enforced on every request.

contexturl.ai/v1/?q=gate.contexturl.ai/your-source-id!what+topics+does+this+cover
Your data
unlisted URL
Gatekeeper
checks policy
Their AI
sees content

Confidential

Multiple experts debating based on their private experience — to answer your question. Each source's data is fetched inside a hardware enclave. The AI processes the combined data, but the AI company can't see who asked or which sources contributed.

This is multi-party computation. The same | that joins public sources now joins private ones — each inside its own enclave, contributing to one answer. Same URL syntax. Radically different infrastructure.

private.contexturl.ai/v1/?q=source-a.com|source-b.com!analyze+combined+insights
Source A
private data
Source B
private data
CPU Enclave
calls cloud AI
Result only
no raw data

End-to-end encrypted

You don't trust anyone — not even the AI company. A CPU enclave fetches each source's private data. A GPU enclave runs an open-source model. Nobody outside the enclaves ever sees plaintext. The room is made of math.

Slower than Confidential, but mathematically airtight. The model itself runs inside auditable hardware. No human — not the user, not the source owners, not the model operator, not the cloud provider — can observe the computation.

e2e.contexturl.ai/v1/?q=source-a.com|source-b.com!analyze+combined+insights
Source A
IP-restricted
Source B
IP-restricted
CPU Enclave
fetches data
GPU Enclave
open-source model
Result only
no raw data

Structured transparency

Multiple sources contribute to a single answer, but no one — not even the user — can reverse-engineer any individual source's data from the output. Differential privacy adds calibrated noise so the result is useful but each source is protected.

This is the endgame: sources that would never share data with each other can safely contribute to the same computation. A hospital and a pharma company. Competing banks. Rival labs. The math guarantees that joining the query doesn't leak more than staying out of it.

st.contexturl.ai/v1/?q=source-a.com|source-b.com!analyze+combined+insights
Source A
private data
Source B
private data
Enclave
model + DP noise
DP Result
ε-private output
Spec The formal definition

Syntax

The formal grammar of a Context URL.

context-url  = base-url "?q=" spec
spec         = source-list "!" prompt
source-list  = source *( "|" source )
source       = [ weight "*" ] ( url | "[" spec "]" )
weight       = float                          ; 0.0 to 1.0
prompt       = token *( "+" token )

base-url โ€” The resolver endpoint. Default: https://contexturl.ai/v1/

spec โ€” One or more sources followed by a prompt, separated by !

source โ€” A URL, optionally preceded by a weight, optionally wrapped in brackets

weight โ€” A float from 0.0 to 1.0. Controls context allocation and declares attribution share

prompt โ€” Words joined by +. Spaces are encoded as +

Sources

Sources are URLs separated by | (pipe). Each source is fetched and its content is placed in the AI's context window. Sources are presented in order โ€” first source listed is first in context.

| โ€” Source separator. a.com|b.com means both sources.

Sources MUST be valid URLs. The resolver fetches each source and extracts its text content.

Sources MAY require authentication. See the Security chapter for access levels.

Weights

The number before each source controls influence and declares attribution. Weights also determine revenue splits when sources require payment.

https://contexturl.ai/v1/?q=0.7*react.dev|0.3*stackoverflow.com/questions/tagged/react!help+me+learn+react

Prompts

The prompt follows ! and tells the AI what to do with the sources. Words are joined by +. A spec without sources (just !prompt) is valid โ€” it's a pure instruction with no context.

! โ€” Separator between sources and prompt. MUST appear exactly once per spec level.

+ โ€” Word separator within prompts. Decoded as spaces by the resolver.

Brackets

Wrap a source group in brackets to give it its own prompt. The inner spec is resolved first โ€” its output becomes a source for the outer spec. Brackets nest arbitrarily. Each bracketed group can exist as an independent ๐ŸฅŒ.

https://contexturl.ai/v1/?q=[allrecipes.com!list+ingredients]|[budgetbytes.com!list+ingredients]!combine+into+one+shopping+list

Code execution

Prompts can describe programs. LLMs with code execution will write and run them. No sources needed โ€” just a URL that computes.

https://contexturl.ai/v1/?q=!write+python+to+calculate+monthly+mortgage+payments+for+400000+at+7+percent

Encoding

The entire spec can be encoded as a sequence of 2-digit numeric codes. If the query value is all digits, the resolver decodes it. Otherwise the spec is interpreted as raw text. Both formats are accepted.

a=01   b=02   ...   z=26

.=27   /=28   :=29   -=30   _=31

?=32   ==33   |=34   *=35   !=36

[=37   ]=38   +=39   0=40   ...   9=49

Encoded format is preferred for sharing. Hero URLs on this page remain human-readable for clarity.

Trust Protection for everyone

Filter by trusted domains

Add &trust=domain.com to only allow sources from domains you trust. Any source from another domain is automatically rejected. Pre-filter before you even see the consent dialog.

contexturl.ai/v1/?q=...&trust=arxiv.org,github.com
Governance

Awareness

Every request to a source includes the full context: the prompt being answered, the source's weight, and what other sources are involved. Sources always know how they're being used.

your-data.com/api?prompt=summarize&weight=0.7&co_sources=other.com

Control

Sources can specify a free-text policy that AI agents must obey. Allowlists, blocklists, usage restrictions โ€” written in plain English. The AI reads the policy and follows it.

your-data.com/ai.txt โ†’ "Only use for research. Never for advertising."

Input privacy

Sources can require that requests only come from secure enclaves. Raw source data never travels to the AI user โ€” it stays inside hardware-encrypted memory. Only the final result leaves.

Your data
โ†’
๐Ÿ”’
Enclave
Data stays here
โ†’
Result only

Output privacy

Sources can require anonymization โ€” only participating in queries where they're part of a group. The output can't be reverse-engineered to reveal any individual source's contribution.

0.1*you|0.1*9 others!aggregate โ†’ group answer only

Enforcement

Sources can require that requests only come from enclaves that enforce their policies. Non-enclave IP addresses get blocked. The source doesn't have to trust โ€” the hardware guarantees compliance.

Try the enclave
Tradeoffs

Awareness vs. privacy

If a source wants to see and log prompts, the AI user must reveal them. But if the source prefers not to handle that data, an enclave can still enforce the source's policy โ€” without the source ever seeing the prompt.

Source sees prompt
Full awareness, can log
or
Enclave enforces policy
Source never sees prompt
Vision Things to think about

๐ŸฅŒs are webpages

Five years from now, will people still build webpages by hand to display content?

Or will end-users choose which data sources they trust — including design sources — and have a website synthesized for them in the moment?

If the latter: how do you get consistency? How do you find your way back to a page you trusted last week? How do you send it to someone else and know they'll see the same thing?

You bookmark the recipe, not the meal.

A ๐ŸฅŒ is that recipe. Same sources, same weights, same prompt — same result. Shareable. Bookmarkable. Reproducible. A permanent address for a synthesized experience.

๐ŸฅŒs are a rudimentary form of AI with
attribution-based control.

Built with ๐ŸฅŒ by

OpenMined OpenMined
โ˜