Sessions

Scope MCP and tool access per end user

Hand agents a scoped tool surface per end user without sharing your master API key. Kill any session instantly; allow-lists enforced at the transport layer, including MCP and delegation chains.

Run in your agent

Paste and ship

Drop this prompt into Cursor, Claude Code, or any coding agent. It reads the skill manifest and wires up Sessions for you.

Agent prompt

Read https://usenaive.ai/skill.md and use the Naïve Sessions primitive in my project. Start with: naive sessions create

Drop into any agent

In action

Revocable MCP sessions — identity and policy travel with every call.

  • MCP transportSSE endpoint per scoped session.
  • Tool allow-listsOnly permitted primitives per user.
  • Zero standing accessNo shared keys across tenants.
  • Kill mid-flightRevoke sessions while agents are running.
Exact code

One call to sessions

Same primitive from the CLI, SDK, or REST — one bearer token, one credit balance.

CLI

Sessions

Hand agents a scoped tool surface per end user without sharing your master API key. Kill any session instantly; allow-lists enforced at the transport layer, including MCP and delegation chains.

MCP transport
SSE endpoint per scoped session.
Tool allow-lists
Only permitted primitives per user.
Zero standing access
No shared keys across tenants.
Kill mid-flight
Revoke sessions while agents are running.
# Run with your API key exported
$ naive sessions create

Related primitives

Start building with Sessions

Get your API key and add sessions to any agent in minutes — no infrastructure to run.