Python SDK — Architecture
Source Paths
packages/sdk-python
Modules
| Module | Purpose | Paths |
|---|---|---|
| client | Sidecar socket client and token handling | packages/sdk-python/safekeys |
| tools | LangChain / 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.