Smarter SDKs

The Smarter SDKs give your own software typed, complete access to a Smarter platform, yours or platform.smarter.sh, on your laptop or on Kubernetes. Each one covers every resource kind through the same manifest API as the Smarter CLI, prompts and streamed chats with LLMClients, each resource’s own actions, and typed models of every manifest kind.

SDK

What it is

Smarter Python SDK

A Python library, pip install smarter-api, for applications, services, notebooks, tests and automation. The reference implementation of every Smarter SDK.

Smarter Node.js SDK

A TypeScript library for Node.js, npm install @smarter.sh/api, for web back ends, serverless functions, services and automation.

Smarter Go SDK

A Go module, go get github.com/smarter-sh/smarter-golang, for services, Kubernetes operators, infrastructure tooling and automation.

The SDKs follow the same design, whatever their language. The Python SDK was the first of them, and is the reference implementation: the Node.js and Go SDKs have its features, resources, verbs and errors, number their architecture decisions as it does, and are tested against the same recorded responses of the platform. Each is a client of the OpenAPI contract, and nothing else, so none of them has access to the platform that your own software doesn’t have.

They authenticate with a Smarter API key, and read the CLI’s configuration file, ~/.smarter/config.yaml, and the same SMARTER_API_KEY and SMARTER_BASE_URL environment variables, so a developer who has run smarter configure needs no other setup. The design goals that they share with the Smarter API, and how to write an SDK for another language, are in Smarter APIs, SDKs and Integrations.