Skip to main content
The Simple AI SDK (@simple-ai-lab/sdk) is a typed TypeScript client for the Simple AI API. It works in two places:
  • Inside code actions — bundled when you save and authenticated automatically; just import it.
  • In your own applications — install it from npm and authenticate with an API key.
  • In an Agent repository — define action-first agents and publish them with the simple CLI.

Inside a Code Action

No installation or keys are needed. Simple bundles the SDK when you save the Action, and the handler’s client is ready to use:

In Your Own Application

Create an API key in the dashboard under Settings → API Keys, then:

Error Handling

Every non-2xx API response throws a SimpleAIError with the HTTP status, a machine-readable code when available, and the parsed response body:

What’s Included Today