Skip to main content

boat-sdk

Use Boat from your application code.

Install

pip install boat-sdk

Flow

  1. Create an API key in the Boat dashboard.
  2. Create or resume a sandbox.
  3. Prompt the sandbox.
  4. Read events until the work is done.
  5. Open desktop access when you need browser or GUI visibility.
  6. Stop, resume, fork, or delete the sandbox according to your retention policy.

Notes

  • Put cleanup in finally: stop/archive or delete sandboxes you create for tests.
  • Treat API key secrets, Boat secrets, SSH keys, and desktop stream URLs as sensitive.
  • updateSecrets / update_secrets replaces the entire secret setup. Read the current setup first and send every env var and secret file that should remain.
  • rotateApiKey / rotate_api_key rotates the raw secret in place. Store the returned secret immediately; it is shown once.
  • Repository selection is idempotent. Selecting an already-selected repository updates its base branch.

Example

import os
import time

from boat_sdk import ApiClient, Configuration
from boat_sdk.api.boat_api import BoatApi
from boat_sdk.models.create_sandbox_request import CreateSandboxRequest
from boat_sdk.models.prompt_request import PromptRequest
from boat_sdk.models.update_sandbox_request import UpdateSandboxRequest

config = Configuration(
    host=os.getenv("BOAT_BASE_URL", "https://boat.dev/api/v1"),
    access_token=os.environ["BOAT_API_KEY"],
)

sandbox_id = None
with ApiClient(config) as client:
    sandbox = BoatApi(client)

    try:
        created = sandbox.create(CreateSandboxRequest(ttl_seconds=1800))
        sandbox_id = created.sandbox.id

        sandbox.update(sandbox_id, UpdateSandboxRequest(name="sdk-demo"))

        while sandbox.get(sandbox_id).sandbox.state not in {"ready", "idle"}:
            time.sleep(2)

        sandbox.prompt(
            sandbox_id,
            PromptRequest(
                provider="codex",
                prompt="Inspect the repository and summarize the test command.",
            ),
        )

        events = sandbox.events(sandbox_id)
        print(events.events)
    finally:
        if sandbox_id:
            sandbox.stop(sandbox_id)

License

This SDK is MIT licensed. Boat, the Boat API, the Boat CLI, and the sandbox product are proprietary.

Metadata

Release files for boat-sdk 1.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boat-sdk 1.9.1
File Size Uploaded Provenance Actions
boat_sdk-1.9.1.tar.gz 149.0 kB With provenance Details for boat_sdk-1.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boat-sdk 1.9.1
File Interpreter ABI Platform Actions
boat_sdk-1.9.1-py3-none-any.whl Python 3 none any Details for boat_sdk-1.9.1-py3-none-any.whl

Total release size: 465.2 kB

Release files / boat_sdk-1.9.1.tar.gz

Download URL boat_sdk-1.9.1.tar.gz
Size 149.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df5995392c66b42af2c7fe1c9efdc7d9c97a92766785a46e43c98bf612b7b859
BLAKE2b-256 checksum
How to use checksums
f53a75fafe9575a7ead501daff00640a7a98ab98e44cb943fd30f0ccf3fb1f9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / boat_sdk-1.9.1-py3-none-any.whl

Download URL boat_sdk-1.9.1-py3-none-any.whl
Size 316.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2eaf0b68b6e284d6ea708aed2e63b42a6b9e2a4482ce536399896fcc5e1fdff9
BLAKE2b-256 checksum
How to use checksums
7e9001c47c5a4a80009e809722e41cf2bd0dfb80a0727de7f64d32186b88e9c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Security for boat-sdk 1.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for boat_sdk-1.9.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page