agentex-client
The official Python REST client for the Agentex API
What it is and what it does
Agentex-client is an officially maintained Python REST client for the Agentex API, generated using Stainless. It wraps the Agentex REST API with full type annotations for all request parameters and response fields, powered by httpx for HTTP transport and pydantic for response modeling. The library supports both synchronous and asynchronous usage patterns, allowing developers to choose blocking or non-blocking I/O based on their application architecture.
The client handles common API concerns automatically: it retries certain errors (connection failures, timeouts, rate limits, and 5xx responses) with exponential backoff, provides detailed error types for different HTTP status codes, and includes built-in support for debugging temporal projects during local development. Type definitions enable IDE autocomplete and catch errors early, while helper methods on response objects simplify serialization to JSON or dictionaries.
Use it for:
- Build agent orchestration workflows that list, create, or manage tasks via the Agentex API with full type safety.
- Integrate Agentex into async Python services (FastAPI, aiohttp apps) using AsyncAgentex for non-blocking API calls.
- Debug local agent execution with built-in temporal project debugging via CLI commands with configurable debug ports.
- Develop CLI tools or batch scripts that interact with Agentex agents and schedules using the synchronous client.
- Handle API errors gracefully with specific exception types (RateLimitError, AuthenticationError, etc.) for retry logic.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a typed Python REST client for the Agentex API with both synchronous and asynchronous interfaces, automatically generated with full request and response type definitions.
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It is the official client for Agentex and provides a modern, typed interface with both sync and async support. Install it if you are building on the Agentex platform.
Install
agentex-client on PyPI
pip
pip install agentex-clientuv
uv add agentex-clientpoetry
poetry add agentex-clientInstalling agentex-client
Before you install
Low friction: pure Python wheel with six lightweight runtime dependencies (anyio, distro, httpx, pydantic, sniffio, typing-extensions). Active maintenance—released 2 days ago with last commit 2026-08-14.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and redistribution with minimal restrictions; suitable for most projects.
Quickstart
pip install agentex-client
import os
from agentex import Agentex
client = Agentex(api_key=os.environ.get("AGENTEX_SDK_API_KEY"))
tasks = client.tasks.list()
Requires Python 3.11 or later; API key must be set via AGENTEX_SDK_API_KEY environment variable or passed explicitly.
Verify before relying
- Whether the library's automatic retry logic (2 times by default for connection/timeout/5xx errors) is configurable per-request type.
- Performance characteristics of the async client with httpx versus the optional aiohttp backend under high concurrency.
- Completeness of type coverage for all Agentex API endpoints and response schemas.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — anyio, distro, httpx, pydantic, sniffio, typing-extensions |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,623/month — #14,608 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agentex_client-0.24.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
kernelProvides a Python client library for the Kernel…
permissive · top 15,000 on PyPI
knockapiProvides a typed Python client library for the…
permissive · top 5,000 on PyPI
letta-clientProvides a Python client library for the Letta…
permissive · top 15,000 on PyPI
opencode-aiProvides a Python client library for the…
permissive · top 15,000 on PyPI
openlayerProvides a typed Python client for the…
permissive · top 15,000 on PyPI
parallel-webProvides a Python client library for the…
permissive · top 5,000 on PyPI
telnyxProvides a Python client library for the Telnyx…
permissive · top 15,000 on PyPI
runwaymlProvides a Python client library for the…
permissive · top 15,000 on PyPI
metronome-sdkProvides a Python client library for the…
permissive · top 15,000 on PyPI
hiddenlayer-sdkProvides a typed Python client for the…
permissive · top 15,000 on PyPI