You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not every AgentKeys consumer speaks MCP. Custom GPTs, Claude Code skills, raw Python scripts, internal vendor tooling — these need an SDK that wraps the broker / signer / worker APIs without requiring MCP-protocol literacy.
The Python SDK is the first SDK (TypeScript is #120). Python wins as the first choice because:
Most agentic frameworks (LangChain, LlamaIndex, etc.) are Python-first
Anthropic's MCP reference implementation is Python
Vendor data-science teams write Python for prototype integrations
Per milestones-roadmap.md §4, SDKs are M3 deliverables — they widen the integration surface beyond MCP hosts.
Scope (M3)
SDK design
Async-first client built on httpx or aiohttp — modern Python (3.10+); typed with pydantic v2
Example notebook: "Integrate AgentKeys into a custom Claude Code skill" — full walkthrough since this is one of the primary M3 use cases
Example script: AgentKeys as a credential broker for a Python script that hits a 3rd-party API
Out of scope (defer)
Synchronous (blocking) API surface — async-only for M3; sync wrapper if user demand surfaces in M4
Plugin system for custom auth providers (M4)
CLI binary (M4 — pip install is enough for the SDK; CLI is a separate concern)
Auto-generated stubs from an OpenAPI spec (M4 — hand-written types in M3 for clarity)
Acceptance criteria
pip install agentkeys succeeds on Python 3.10, 3.11, 3.12
A Python script using the SDK can: mint a cap-token, write to memory, read it back filtered by namespace, append an audit row — full happy path in ≤30 lines
Context
Not every AgentKeys consumer speaks MCP. Custom GPTs, Claude Code skills, raw Python scripts, internal vendor tooling — these need an SDK that wraps the broker / signer / worker APIs without requiring MCP-protocol literacy.
The Python SDK is the first SDK (TypeScript is #120). Python wins as the first choice because:
Per
milestones-roadmap.md§4, SDKs are M3 deliverables — they widen the integration surface beyond MCP hosts.Scope (M3)
SDK design
httpxoraiohttp— modern Python (3.10+); typed withpydanticv2client.identity.whoami(actor)client.memory.get(actor, namespace)/client.memory.put(...)client.permission.check(actor, scope, params)client.cap.mint(...)/client.cap.revoke(cap_id)client.audit.append(...)Packaging
agentkeysExamples
Out of scope (defer)
pip installis enough for the SDK; CLI is a separate concern)Acceptance criteria
pip install agentkeyssucceeds on Python 3.10, 3.11, 3.12Risks
pip installuser expects synchronous API and gets async surpriseclient_syncwrapper documented as roadmap if demand existsReferences
docs/spec/plans/milestones-roadmap.md§4 (M3 scope — SDKs for non-MCP paths)docs/research/agent-iam-strategy.md§5 Phase 3 (runtime neutrality)Effort
~1 week. Sequencing:
Pickup notes for the next agent / developer
httpxoveraiohttp— better Python typing + simpler tracing hooks--strictfrom day one; will save grief later/agentkeys-issue-createskill for follow-up issues (e.g., sync wrapper, CLI, examples gallery)