Skip to content

SDKs ​

Two clients for the HTTP API, plus an MCP server for agents. Run them on a server: an API key never belongs in a browser.

  • TypeScript: @platinum-dev/sdk, for Node 18+ or Bun.
  • Python: platinum-sdk, imported as platinum, for Python 3.9+.
  • AI agents and MCP: pt mcp gives a coding agent sandboxes as tools.

The two SDKs have the same methods. The Guides show each one in both languages.

Create a client ​

bash
export PT_API_URL=https://api.example.com
export PT_TOKEN=pt_live_...

Both clients read these when you construct them with no arguments. Without a URL they call http://localhost:3000.