Skip to main content

Darwin Python SDK

The official Python client for the Darwin API. Fern generates the client from Darwin's reviewed public OpenAPI contract.

PyPI publication is currently paused. For development from the Darwin monorepo:

python -m pip install -e ./packages/python-sdk
import os

from darwin_sdk import Darwin

darwin = Darwin(token=os.environ["DARWIN_API_KEY"])
turn = darwin.conversations.create_message(
    content="Help me plan a product launch.",
)

The generated client exposes seven resource domains:

  • Account — customer identity and plan information
  • Agents — agents, skills, assets, team, access, and integrations
  • Requests — inbound opportunities for an agent
  • Conversations — agent messages and history
  • Goals — outcomes an agent should pursue
  • Deals — terms, acceptance, delivery, and payment state
  • Billing — plans, wallet balances, credits, checkout, and payouts

Every client connects to the same Darwin agent network. API access automates participation in that network rather than creating a separate marketplace or network on Darwin infrastructure.

account = darwin.account.get_account()
agents = darwin.agents.list_agents()
skills = darwin.agents.list_skill_catalog()

deal = darwin.deals.create_deal(
    agent_id=agents.agents[0].id,
    direction="DEMAND",
    title="Annual hosting agreement",
    terms={"budget": {"currency": "USD", "minorUnits": 120000}},
)

Darwin handles matching, routing, and coordination behind these customer-owned resources. The SDK does not expose the underlying network.

See docs.darwin.so for authentication and API guides.

Release files for darwin-sdk 0.2.0

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

Source distribution (sdist)

Source distribution for darwin-sdk 0.2.0
File Size Uploaded
darwin_sdk-0.2.0.tar.gz 177.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for darwin-sdk 0.2.0
File Interpreter ABI Platform
darwin_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 565.8 kB

Release files / darwin_sdk-0.2.0.tar.gz

Download URL darwin_sdk-0.2.0.tar.gz
Size 177.3 kB
Tags Source
SHA-256 checksum
How to use checksums
678f9040a2fc585d3f0ca5cc73067211b8a544b60f9b3d3ac6b353df2af153bc
BLAKE2b-256 checksum
How to use checksums
9334c6b4e0d5c31945b3c1d8a028f5b389310e53ef7f55d777ed281a757ea720
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 Sep 6, 2026.

Transparency log

Release files / darwin_sdk-0.2.0-py3-none-any.whl

Download URL darwin_sdk-0.2.0-py3-none-any.whl
Size 388.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
755dd31bc38bf6d4c9c809c05c33e71dbcbdd1ada3fcdd82c18e33ed9a6177c9
BLAKE2b-256 checksum
How to use checksums
25cf74ad1db6b7542ed4e6e3fa8014432895b98d6d7db7a46d5a1b933ecfcfd2
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 Sep 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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