build.md

Build on Maritime

SDK

Building on Maritime means giving every one of your users their own agent, sandbox or computer from your backend through the SDK. One call on sign-up spins up an isolated agent on Maritime's infrastructure; another sends it a message. You never touch a container. Maritime handles provisioning, per-customer isolation, sleep/wake, and billing.

Diagram: How the Maritime SDK fits: your backend calls maritime-sdk, which calls the Maritime API, which runs one isolated agent per customer. Your backend calls the SDK; Maritime runs an isolated agent for every one of your customers.

The whole thing: provision an agent for a customer, then chat with it. Real code, real agent, real reply. The same three lines in either language:

TypeScript

Recording: The Maritime TypeScript SDK provisioning an agent and getting a reply.

Python

Recording: The Maritime Python SDK provisioning an agent and getting a reply. provision() is idempotent: the same call on every sign-in returns the same agent.

Install

TypeScript

npm install maritime-sdk

Python

pip install maritime

Zero dependencies. TypeScript needs Node 18+ (or Bun / Deno / edge); Python needs 3.9+.

Explore the SDK

Note: Prefer raw HTTP, or another language?
Every SDK call maps 1:1 to the REST API. The
framework comparison covers the templates, and the SDK
source (with runnable examples) lives at
github.com/maritime-sh/maritime-sdk.