Pick a Keycard SDK based on what you build. Most teams start with the MCP package to add OAuth to MCP servers. Other packages cover edge runtimes, custom OAuth flows, and agent-to-agent delegation.
Build MCP servers
Section titled “Build MCP servers”BUILD MCP SERVERS
Add OAuth to MCP servers. The most common Keycard use case.
Durable workflows
Section titled “Durable workflows”DURABLE WORKFLOWS
Per-execution credentials for durable execution frameworks.
Agent frameworks
Section titled “Agent frameworks”AGENT FRAMEWORKS
Give an agent framework’s tool calls a Keycard token per call, under the identity the run acts for.
Pydantic AIOne capability on the agent, the identity on the run’s deps, a token per tool call. Consent pauses, MCP toolsets, and served agents. Python.LangChainOne middleware on the agent, the identity on the run’s context, a token per tool call. LangGraph interrupts for sign-in and consent, and per-caller auth for a served agent. Python and TypeScript.eveA Zone token verifier in the channel’s auth walk, connection auth at the tool-call boundary, and interactive authorization that parks the turn until the user consents. TypeScript.Cursor Agent SDKA Zone token verifier for the channel’s bearerAuth policy, and connection auth that acts as the agent, on behalf of the caller, or for a mapped User. TypeScript.
Custom auth flows
Section titled “Custom auth flows”CUSTOM AUTH FLOWS
Build custom OAuth flows and agent-to-agent delegation.