Skip to content

Python SDK — Architecture ​

Source Paths ​

  • packages/sdk-python

Modules ​

ModulePurposePaths
clientSidecar socket client and token handlingpackages/sdk-python/safekeys
toolsLangChain / LangGraph tool definitions (create_secret, resolve_for_tool)packages/sdk-python/safekeys/tools

Decisions ​

token-only-api [accepted] ​

Decision: The SDK API accepts and returns only tokens and folder paths — never plaintext values.

Rationale: Making plaintext unrepresentable in the type surface means an agent using the SDK cannot accidentally route a value through model context.