Skip to main content

assistableai (Python)

Official Python SDK and MCP server for the Assistable AI v3 API, generated from spec/openapi.json — the same source of truth as the TypeScript SDK, CLI, and MCP server.

  • SDK — typed operation functions + models (openapi-python-client: attrs + httpx) with a thin auth wrapper.
  • MCP server — every v3 operation as an MCP tool, via FastMCP's from_openapi (optional [mcp] extra).

Install

pip install assistableai            # SDK only
pip install 'assistableai[mcp]'     # SDK + MCP server

SDK usage

import assistableai
from assistableai.api.assistants import list_assistants, get_assistant
from assistableai.api.contacts import create_contact
from assistableai.models import ContactCreate  # example model

client = assistableai.configure(
    api_key="ask_live_…",
    subaccount_id="<subaccount-id>",   # sent as X-Subaccount-Id (optional)
)

# Every op exposes sync / sync_detailed / asyncio / asyncio_detailed.
# Responses are the full {data, error, request_id} envelope (a typed model).
envelope = list_assistants.sync(client=client.raw, limit=2)

# Need status codes / headers? Use *_detailed:
resp = get_assistant.sync_detailed("<assistant-id>", client=client.raw)
print(resp.status_code, resp.parsed)

# Per-call subaccount override:
list_assistants.sync(client=client.raw, x_subaccount_id="<other-subaccount>")

Credentials resolve from explicit args, then the environment (ASSISTABLE_API_KEY, ASSISTABLE_SUBACCOUNT_ID, ASSISTABLE_BASE_URL). Default base URL is https://api.assistable.ai.

configure() stores a process-global client (assistableai.get_client()); for multiple credentials, construct assistableai.AssistableAI(...) instances directly and pass .raw.

MCP server

ASSISTABLE_API_KEY=ask_live_… ASSISTABLE_SUBACCOUNT_ID=<id> assistableai-mcp
# or: python -m assistableai.mcp

Add to an MCP client (e.g. Claude Desktop):

{
  "mcpServers": {
    "assistableai": {
      "command": "assistableai-mcp",
      "env": {
        "ASSISTABLE_API_KEY": "ask_live_…",
        "ASSISTABLE_SUBACCOUNT_ID": "<subaccount-id>"
      }
    }
  }
}

Develop

uv sync --all-extras          # create the dev venv
uv run python scripts/generate.py   # regenerate assistableai._client from the spec
uv build                      # build wheel + sdist

The generated client (src/assistableai/_client) and the bundled spec (src/assistableai/spec/openapi.json) are committed; regenerate them whenever spec/openapi.json changes.

Metadata

Release files for assistableai 0.4.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 assistableai 0.4.0
File Size Uploaded Provenance Actions
assistableai-0.4.0.tar.gz 120.1 kB With provenance Details for assistableai-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assistableai 0.4.0
File Interpreter ABI Platform Actions
assistableai-0.4.0-py3-none-any.whl Python 3 none any Details for assistableai-0.4.0-py3-none-any.whl

Total release size: 587.3 kB

Release files / assistableai-0.4.0.tar.gz

Download URL assistableai-0.4.0.tar.gz
Size 120.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a1e2ad8eff52d0f3e680adcd315871ef4d1ee8497751c47678c2494cbd116307
BLAKE2b-256 checksum
How to use checksums
188e57b2cae11c83229d9afc4290e292669b10c326c3e65afd6cb75510ad5be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Aug 6, 2026.

Transparency log

Release files / assistableai-0.4.0-py3-none-any.whl

Download URL assistableai-0.4.0-py3-none-any.whl
Size 467.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e02ef06cf2dcf4e0057a1186b9e4a0221bc42c3c3afcaf19b90c84dc7ba38d62
BLAKE2b-256 checksum
How to use checksums
c89bdb64c37265b5e3f60ddac7ce420c6d5480b3598b966eab64877944bde66a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Aug 6, 2026.

Transparency log

Security for assistableai 0.4.0

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 assistableai-0.4.0.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 Aug 6, 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