Skip to content
This repository was archived by the owner on Sep 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/agents/agent-delegation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: handshake

Use `agent-delegation` so an account can **approve what an agent is allowed to do**. Registration (`agent-identity`) alone does not grant those permissions.

In API payloads, the field name stays **`controllerWallet`** — that value is the **approving account** wallet (who signs this step). See [Agent concepts](./concepts).
In API payloads, the field name is **`controllerWallet`**. It represents the **approving account** wallet (the account that signs this step). See [Agent concepts](./concepts).

**Verifier ID:** `agent-delegation`

Expand Down
2 changes: 1 addition & 1 deletion docs/agents/agent-verification-flow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ When `neus_agent_link` (MCP) returns `status: "link_required"`, the default path
2. Finish the guided browser flow.
3. Call `neus_agent_link` again to confirm identity and access approval are both on file.

You do not need to build or manage the hosted URL yourself for the normal MCP path. The tool name is legacy; it checks **readiness**, not wallet linking.
You do not need to build or manage the hosted URL yourself for the normal MCP path. This tool is a **readiness check** (identity + permissions), not a wallet-linking flow.

## Related pages

Expand Down
20 changes: 10 additions & 10 deletions docs/cookbook/hub-integrator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: building
---

<Note>
**First time?** Complete **[Get started](../get-started)** (platform profile, **Apps** → Link app, credits, `appId`, sponsor). The sections below cover domain, org, VerifyGate, and sponsor grants in detail.
**First time?** Complete **[Get started](../get-started)** first. This guide then covers domain trust, organization checks, app attribution, VerifyGate, and sponsor grants in production.
</Note>

Use this guide when you are connecting a website, community, app, team, or partner flow to NEUS. After **[Get started](../get-started)**, you will use hosted verify, save proof receipt IDs, and reuse them across profile trust, gating, and attribution.
Expand Down Expand Up @@ -104,18 +104,18 @@ You typically do not need your own Google or Microsoft OAuth app to use the host

## 3. Link the app or site on the platform

Link your integration domain on the **NEUS platform** to receive attribution, usage tracking, and credit controls:
Link your integration domain on the **NEUS platform** so usage, attribution, and billing controls stay attached to the correct product:

| Step | Action |
|------|--------|
| 1 | Go to the [NEUS platform](https://neus.network/hub) → Profile → Apps |
| 1 | Open the [NEUS platform](https://neus.network/hub) and start app linking |
| 2 | Enter app domain, for example `app.example.com` or `https://app.example.com` |
| 3 | Set daily credit cap |
| 4 | Use `*` for any origin only in development |
| 5 | Send `X-Neus-App` and `Origin` headers from your approved domain |

<Card title="Platform" icon="globe" href="../platform/hub">
Explorer, profile tabs, and identity management.
Profile, app attribution, credits, and proof visibility.
</Card>

## 4. App Attribution (API)
Expand Down Expand Up @@ -146,17 +146,17 @@ You can combine these capabilities into one portable verified profile:
- public, private, and unlisted proof visibility
- proof pages and your platform profile

On the platform, the most common flows are:
Typical platform tasks include:

| Flow | Where | Notes |
|------|-------|------|
| Domain | Profile -> Identity -> Domains | Add DNS TXT at `_neus.<domain>` first |
| Organization | Profile -> Identity -> Organizations | Hosted NEUS verify for Google Workspace or Microsoft 365 |
| Username | Profile / Claim flows | Portable handle and namespace claims |
| Linked wallets | Profile identity flows | Multiple wallets as one linked identity |
| Domain | Identity settings | Add DNS TXT at `_neus.<domain>` first |
| Organization | Identity settings | Hosted NEUS verify for Google Workspace or Microsoft 365 |
| Username | Claim flows | Portable handle and namespace claims |
| Linked wallets | Identity settings | Multiple wallets as one linked identity |
| Privacy | Per proof | Public, private, or unlisted proof visibility |

Link the app first in Profile -> Apps, then connect whichever trust signals your product actually needs.
Link the app first, then connect only the trust signals your product needs.

## 6. Hosted Verify for Interactive Flows

Expand Down
13 changes: 7 additions & 6 deletions docs/cookbook/mcp.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
title: MCP Server
description: Hosted NEUS MCP — connect AI clients to verification tools.
description: Connect AI clients to NEUS verification tools and hosted verification flows.
icon: plug
---

- **[Get started](../get-started)** — platform + billing before heavy MCP use
- **[Overview](../mcp/overview)** — default flow (hosted links first)
- **[Setup](../mcp/setup)** — one JSON block
- **[Tools](../mcp/tools)** — parameter names
- **[Auth](../mcp/auth)** — Bearer when you need sign-in
This entry point has moved to the MCP section:

- **[MCP overview](../mcp/overview)** — end-to-end flow
- **[Setup](../mcp/setup)** — connection config
- **[Tools](../mcp/tools)** — tool selection and fields
- **[Auth](../mcp/auth)** — signed-in and public access patterns

Also: [API authentication](../api/authentication) · [VerifyGate](../widgets/verifygate) · [Verifiable agents](./verifiable-agents)
2 changes: 1 addition & 1 deletion docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"pages": ["api/overview", "api/authentication", "api/errors"]
},
{
"group": "Operations",
"group": "Production",
"pages": [
"platform/billing",
"platform/environments",
Expand Down
8 changes: 4 additions & 4 deletions docs/ecosystems/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Apps & Ecosystems
description: Build websites, communities, apps, partner flows, and agents on the same NEUS proof receipt model.
title: Ecosystems
description: Integration entry points for websites, communities, apps, partners, and agents.
icon: blocks
---

Integration docs for public apps, partner flows, communities, and agents.
This section maps common ecosystem integration goals to the right documentation path.

## Core Docs

Expand All @@ -13,7 +13,7 @@ Integration docs for public apps, partner flows, communities, and agents.
Match your use case to the right integration path.
</Card>
<Card title="Partner Setup" icon="building" href="../cookbook/hub-integrator">
Domain, app, and rollout setup for public integrations.
Production setup for apps, teams, and partner flows.
</Card>
<Card title="Verifier Catalog" icon="list-tree" href="../verification/verifiers">
Review the full capability catalog.
Expand Down
24 changes: 12 additions & 12 deletions docs/ecosystems/verifiers.mdx
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
---
title: Ecosystem Capability Index
description: Main public entry points for NEUS capabilities, partner onboarding, and ecosystem integrations.
description: Choose the right capability and guide for ecosystem integrations.
icon: diagram-project
---

Core entry points for verifier selection, partner setup, proof receipts, and integration guides.
Use this page to choose the right reference page for your integration outcome.

## Core Pages
## Choose by goal

<CardGroup cols={2}>
<Card title="Verifier Catalog" icon="list-tree" href="../verification/verifiers">
Capability list with use cases and completion types.
Select verifier IDs and required inputs by capability.
</Card>
<Card title="Partner Setup" icon="building" href="../cookbook/hub-integrator">
Production onboarding for websites, communities, apps, teams, and partner flows.
Production onboarding for apps, communities, and partner programs.
</Card>
<Card title="Proof Receipts" icon="receipt" href="../platform/receipts-and-results">
Learn what to save, how to reuse proof receipts, and what to show in your UI.
Learn what to store, what to display, and how to reuse proof receipts safely.
</Card>
<Card title="Use Cases" icon="sparkles" href="../cookbook/overview">
Implementation guides for gating, onboarding, agents, and portability.
Implementation guides for access, onboarding, and agent workflows.
</Card>
</CardGroup>

## Use Each Page For
## When to open each page

- Use Verifier Catalog to choose the right capability for your product.
- Use Partner Setup when connecting a website, app, team, or community flow.
- Use Proof Receipts when you need to store and reuse verification results.
- Use Use Cases for step-by-step implementation guides.
- Open **Verifier Catalog** when you need the right verifier IDs and payload fields.
- Open **Partner Setup** when you are preparing production onboarding and billing.
- Open **Proof Receipts** when you need a storage and lifecycle strategy.
- Open **Use Cases** when you want a guided implementation pattern.
64 changes: 33 additions & 31 deletions docs/get-started.mdx
Original file line number Diff line number Diff line change
@@ -1,51 +1,52 @@
---
title: Get started
description: NEUS platform profile, app linking, credits, sponsor grants, and your first integration.
description: Set up your NEUS account, app attribution, billing model, and first production integration.
icon: book
---

Follow this checklist when **shipping a product** that uses NEUS for verification, gating, or login. If you are **experimenting solo** with your own wallet, start with **[Quickstart](./quickstart)** and add platform setup when you publish an app.
Use this checklist when you are shipping a product that relies on NEUS for verification, gating, or login.
If you are experimenting with your own wallet, start with **[Quickstart](./quickstart)** and return here before production launch.

## 1. Create your NEUS profile
## 1. Create your account

1. Open the **[NEUS platform](https://neus.network/hub)** and sign in (passkey or wallet).
2. You will use **Profile** for app linking, **Credits** for balance, and **Identity** when you need domains or org proofs later.
1. Sign in to the **[NEUS platform](https://neus.network/hub)** with passkey or wallet.
2. Confirm the wallet that should own your integration and billing setup.

## 2. Link your app (Apps tab)
## 2. Register your integration and capture `appId`

This follows the **Link app** flow: domain, daily cap, and wallet signature.
Register the domain(s) your product will use, choose a daily credit cap, and complete the ownership signature step.

1. Go to **`https://neus.network/profile?tab=apps`** (Profile → **Apps**).
2. Open **Link app** / **Manage app**.
3. Enter your **app domain** (e.g. `acme.com` or `https://app.acme.com`).
4. Set a **daily credit cap** (protects you from runaway usage).
5. Complete the steps in the modal (wallet sign-in as needed).
When registration succeeds, NEUS issues an **`appId`** for that integration. Send it as **`X-Neus-App`** on API traffic (the SDK maps this automatically).

When linking succeeds, you get an **`appId`** to send as **`X-Neus-App`** on API traffic from that integration. The SDK maps this automatically:
Direct URL for the app registration surface:

`https://neus.network/profile?tab=apps`

SDK example:

```javascript
import { NeusClient } from '@neus/sdk';

const client = new NeusClient({
appId: 'your-app-id', // same value as X-Neus-App
appId: 'your-app-id', // same value sent as X-Neus-App
});
```

<Tip>
**`appId`** is for **attribution** (which product called NEUS). It does **not** by itself move every bill to your org. To **pay for users** from your balance, add a **sponsor grant** (step 4).
**`appId`** is an attribution identifier (which product made the request).
It does **not** by itself move charges to your organization wallet. Use sponsor grants when you want to pay on behalf of users.
</Tip>

## 3. Add credits (Credits tab)
## 3. Fund the wallet that will pay

1. On the platform, open **Credits** and keep a balance on the **wallet that should pay** for your integration.
2. If you only use **user self-pay** (each end user’s wallet pays), you still need credits on **their** side when they sign requests—see **[Billing](./platform/billing)**.
1. Keep credits on the wallet that should pay for your integration.
2. If users self-pay, they need their own credits for signed paid calls. See **[Billing](./platform/billing)**.

## 4. Sponsor users
## 4. Decide your billing model (`sponsorGrant` if you pay)

For products where end users should **not** manage NEUS credits:
If your product should pay verification costs for end users, issue short-lived sponsor grants and pass them to the SDK as **`sponsorGrant`** (maps to **`X-Sponsor-Grant`**).

1. Keep your org wallet funded (step 3).
2. Issue **short-lived sponsor grants** and pass them to the SDK as **`sponsorGrant`** (sends **`X-Sponsor-Grant`**).
If users should self-pay, do not send sponsor grants.

```javascript
const client = new NeusClient({
Expand All @@ -54,9 +55,9 @@ const client = new NeusClient({
});
```

Grant issuance and caps: **[Partner setup](./cookbook/hub-integrator)** (sponsor section) and **[Billing](./platform/billing)**.
Grant issuance and caps: **[Partner setup](./cookbook/hub-integrator)** and **[Billing](./platform/billing)**.

## 5. Choose an integration
## 5. Choose your integration path

| Option | When | Next step |
|---------|------|-----------|
Expand All @@ -68,17 +69,18 @@ Grant issuance and caps: **[Partner setup](./cookbook/hub-integrator)** (sponsor

Not sure? **[Choose an integration path](./choose-an-integration-path)**.

## 6. Production checklist
## 6. Production readiness checklist

- [ ] App linked on the platform with a realistic **daily cap**
- [ ] **Credits** on the wallet that should pay (you or users, per your model)
- [ ] **`appId`** on the client; **`sponsorGrant`** if **you** pay for metered calls
- [ ] **[Billing](./platform/billing)** understood (visibility vs who pays)
- [ ] If you see **402**, see **[x402](./platform/x402)** for pay-per-use retries
- [ ] Integration domain is registered with a realistic daily cap
- [ ] Paying wallet has credits (yours or users', based on your model)
- [ ] Client sends **`appId`** and uses **`sponsorGrant`** only when sponsoring
- [ ] Team understands **[Billing](./platform/billing)** and **[x402](./platform/x402)** behavior
- [ ] Verification receipts are stored and reused in your product logic

## Without a linked app

Use **[Quickstart](./quickstart)** and **[Hosted Verify](./cookbook/auth-hosted-verify)**. Add **Apps** and **sponsor grants** on the platform when you publish an app that should pay for others.
Use **[Quickstart](./quickstart)** and **[Hosted Verify](./cookbook/auth-hosted-verify)** for early testing.
Before launch, register your integration and add sponsor grants if your app will cover user costs.

## Related

Expand Down
21 changes: 3 additions & 18 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,15 @@ icon: house
Verify once, get a portable proof receipt, reuse it everywhere — gate access, attach proof to content, register agents, share results without exposing raw data. Private by default.

<CardGroup cols={3}>

## How it works

1. **Verify** — User completes verification (hosted UI, wallet, or social).
2. **Save** — You store the proof receipt ID.
3. **Reuse** — Same proof for login, gating, policy, and agents.

<CardGroup cols={2}>
<Card title="Quickstart" icon="code" href="./quickstart">
First proof in 5 minutes.
</Card>
<Card title="Get started" icon="rocket" href="./get-started">
Builders: platform, app link, billing, first integration.
</Card>
<Card title="Choose your path" icon="route" href="./choose-an-integration-path">
Pick Hosted Verify, Widgets, SDK, API, or MCP.
</Card>
<Card title="Quickstart" icon="code" href="./quickstart">
First proof in 5 minutes.
First proof with code.
</Card>
<Card title="Hosted Verify" icon="key" href="./cookbook/auth-hosted-verify">
No-code verification UI.
</Card>
<Card title="Get started" icon="book" href="./get-started">
Platform, billing, app setup.
</Card>
</CardGroup>

## How it works
Expand Down
4 changes: 2 additions & 2 deletions docs/mcp/agent-link.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Agent readiness (`neus_agent_link`)
description: Check agent wallet has identity + approved access (legacy tool name).
description: Check whether an agent wallet has identity + approved access.
icon: robot
---

**Readiness check** for **`agentWallet`**: identity and delegation on file?
`neus_agent_link` is a **readiness check** for **`agentWallet`**: are identity and delegation already on file?

- **`linked: true`** (compat) → treat as **ready**.
- **`link_required`** → open **`hostedVerifyUrl`** / follow **`nextSteps`**.
Expand Down
4 changes: 2 additions & 2 deletions docs/mcp/auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: When you need sign-in and what stays public.
icon: lock
---

**No API key** for the hosted MCP. **Hosted links** and **public lookups** cover the usual case. **`neus_me`** and **private** proof reads need the user **signed in**.
**No API key** for the hosted MCP. **Hosted verification links** and **public lookups** cover most use cases. **`neus_me`** and **private proof reads** require a signed-in session.

**URL-only MCP:** tools may return **`https://neus.network/verify`** — the user opens it. That does **not** sign the IDE into NEUS by itself.
If you connect using only the MCP URL, tools can still return **`https://neus.network/verify`** links for browser completion. That browser step does not automatically sign your IDE session into NEUS.

**Your app already has a NEUS session:** if the client supports headers, send the same **`Authorization: Bearer <token>`** you use for the API ([SDK Authentication](../sdks/authentication)) on MCP requests. Call **`neus_me`** to confirm.

Expand Down
2 changes: 1 addition & 1 deletion docs/mcp/me.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Signed-in NEUS user when MCP sends a session.
icon: user-circle
---

Needs **`Authorization: Bearer`** on the MCP connection ([Auth](./auth)). **URL-only** MCP → **`auth_required`** (expected).
Needs **`Authorization: Bearer`** on the MCP connection ([Auth](./auth)). If your MCP connection only includes the URL, the tool returns **`auth_required`** (expected).

For “verify me” without a session: **`neus_verify_or_guide`** + hosted link; lookups: **`neus_proofs_get`** when you have an id.

Expand Down
6 changes: 3 additions & 3 deletions docs/mcp/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ icon: plug

**Connection URL:** `https://mcp.neus.network/mcp`

Add it **once** in your MCP client—see **[Setup](./setup)** for the exact JSON. Nothing else is required to connect.
Add it **once** in your MCP client—see **[Setup](./setup)** for the configuration block. Nothing else is required to connect.

## Recommended workflow

1. **User verifies in the browser** — Have the assistant use **`neus_verify_or_guide`** (or **`neus_proofs_check`**). When a tool returns **`https://neus.network/verify`**, the user **opens that link**. Passkey or wallet happens inside NEUS—they should not need to paste crypto details into chat.
2. **Your product already logs users into NEUS** — Use the same **`Authorization: Bearer`** session on the MCP connection as in [SDK Authentication](../sdks/authentication). Then **`neus_me`** and private reads work—**[Auth](./auth)**.
3. **Look up public proof history** — Only when you **already have** an address or id from NEUS (or the user pasted it), use **`neus_proofs_get`**. Field names differ by tool—see **[Tools](./tools)**.

The URL-only install does **not** sign the chat into NEUS by itself.
Connecting with only the MCP endpoint URL does **not** sign the chat session into NEUS by itself.

| Goal | Tool |
|------|------|
Expand All @@ -36,7 +36,7 @@ Always **open** hosted URLs tools return—do not invent extra steps.
## Next

- **[Get started](../get-started)** — platform + billing before scale
- **[Setup](./setup)** — one copy-paste config
- **[Setup](./setup)** — quick configuration block
- **[Tools](./tools)** — parameter names
- **[Auth](./auth)** — sessions and privacy
- **[Hosted Verify](../cookbook/auth-hosted-verify)** — browser verification flow
Loading
Loading