skillfed

agentex-client

The official Python REST client for the Agentex API

agentex-client v0.24.0 76.6K downloads/30d#14,608 on PyPI23
Permissive license Apache-2.0 Active released

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-client

uv

uv add agentex-client

poetry

poetry add agentex-client

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

agentex api client pythonrest api client libraryasync http clienttyped api wrapperpython sdk generationhttpx-based clientpydantic typed responses
api-clientasync-supporttype-hints

More Python Modules packages