SDK & Tools
The CLI, client libraries, and infrastructure tools for Keycard.
The CLI, client libraries, and infrastructure tools that connect your agents and tools to Keycard.
With the Keycard SDK & CLI, you can:
- Secure any coding agent with
keycard run— JIT credentials, policy enforcement, full audit - Add OAuth authentication to MCP servers in a few lines of code
- Use low-level OAuth primitives for custom authorization flows
- Build agent-to-agent delegation chains with traced, scoped access
- Manage Keycard infrastructure as code with the Terraform provider
CLI
The fastest way to secure your coding agents.
SDKS
Client libraries for building with Keycard. Pick the package that matches your use case.
MCPOAuth authentication for MCP servers — the most common starting point. Python, TypeScript & Go.OAuthLow-level OAuth 2.0 primitives — discovery, token exchange, JWT, PKCE. Python, TypeScript & Go.AgentsAgent-to-agent delegation via the A2A protocol. Python.Terraform ProviderManage Keycard zones, applications, and resources as infrastructure-as-code.
# MCP server auth (most common)pip install keycardai-mcp
# FastMCP integrationpip install keycardai-mcp-fastmcp
# OAuth primitives onlypip install keycardai-oauth
# Agent-to-agent delegationpip install keycardai-agents# MCP server auth (most common)npm install @keycardai/mcp
# OAuth primitives onlynpm install @keycardai/oauth
# Or install everythingnpm install @keycardai/sdk# MCP server auth (most common)go get github.com/keycardai/credentials-go/mcp
# OAuth primitives onlygo get github.com/keycardai/credentials-go/oauthSource on GitHub — Python, TypeScript, and Go →