Skip to main content

Python-only SDK for Synth containers, tunnels, pools, and Research

Project description

Synth AI SDK

PyPI version License Python versions

Python SDK and CLI for Synth infrastructure surfaces: tunnels, pools, and hosted containers.

Documentation: https://docs.usesynth.ai/sdk/overview

Installation

uv add synth-ai

Or install with pip:

pip install synth-ai

Authenticate

Set SYNTH_API_KEY before using the SDK or CLI:

export SYNTH_API_KEY="sk_..."

Local Workspaces

For local multi-repo development, synth-ai treats workspace resolution as a read-only overlay. .env and Synth home config may provide defaults and secrets; selecting a worktree must not rewrite those defaults.

Use SYNTH_WORKSPACE_MANIFEST or SYNTH_WORKSPACE_ROOT for command-scoped worktree resolution. The resolver in synth_ai.core.utils.workspace returns repo paths and a scoped env mapping for subprocesses without mutating .env.

Pass base_url when you need to pin a production, local, staging, or private backend explicitly:

from synth_ai import SynthClient

client = SynthClient(base_url="http://127.0.0.1:8000")

The CLI also reads SYNTH_BACKEND_URL and accepts --backend-url.

Quickstart

from synth_ai import SynthClient

client = SynthClient()

print(client.containers.list())
print(client.tunnels.health())
print(client.pools.list())

CLI

synth-ai --help
synth-ai containers list
synth-ai tunnels health
synth-ai pools list

Public Surface

Use SynthClient as the front door:

Surface Client namespace Use it for
Containers client.containers Hosted container records and lifecycle operations.
Tunnels client.tunnels Managed tunnel records, leases, health, and rotation.
Pools client.pools Container pools, tasks, rollouts, artifacts, usage, and events.
CLI synth-ai Terminal access to containers, tunnels, and pools.

Use Managed Research when you want hosted research workers, repo runs, evidence, checkpoints, MCP, or final reports.

Links

Local Development

Use uv run for Python tools:

uv sync --group dev
uv run ruff format --check .
uv run ruff check .
uv run ty check

Optional: install Lefthook and run lefthook install to run formatting, linting, and type checks on staged Python files.

SMR Handoff X thread — hand agent tasks to Managed Research from Cursor, Codex, or Claude Code (repo).

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synth_ai-0.11.2.tar.gz (401.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synth_ai-0.11.2-py3-none-any.whl (477.1 kB view details)

Uploaded Python 3

File details

Details for the file synth_ai-0.11.2.tar.gz.

File metadata

  • Download URL: synth_ai-0.11.2.tar.gz
  • Upload date:
  • Size: 401.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for synth_ai-0.11.2.tar.gz
Algorithm Hash digest
SHA256 3c2d1ec0a94f5e53c6322aec28eba52384c48d56fe301f5995003e18ac8cfb68
MD5 9ee41d77c2510e0a196f8a6e16aba164
BLAKE2b-256 9ff4660585582cf19479e159316d879a9e53a8a945969935d5ec316d0731e458

See more details on using hashes here.

File details

Details for the file synth_ai-0.11.2-py3-none-any.whl.

File metadata

  • Download URL: synth_ai-0.11.2-py3-none-any.whl
  • Upload date:
  • Size: 477.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for synth_ai-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82425e3eaea34b16e9f9443e23ad4c4ed84e5b92515a5c1cbc929834c53690b6
MD5 e26bf2203a006b72f13b6063e4117ddb
BLAKE2b-256 7eb82f55ac88c516d91f6839424f67f7d750bb728bcbf5b0767bfa6574ea1667

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page