Skip to content
API Reference

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

Client libraries for building with Keycard. Pick the package that matches your use case.

Terminal window
# MCP server auth (most common)
pip install keycardai-mcp
# FastMCP integration
pip install keycardai-mcp-fastmcp
# OAuth primitives only
pip install keycardai-oauth
# Agent-to-agent delegation
pip install keycardai-agents