alibabacloud-credentials
The alibabacloud credentials module of alibabaCloud Python SDK.
Decision gist · record as of 2026-08-14
Yes. This is the official credential provider for Alibaba Cloud's Python SDK ecosystem—actively maintained, permissively licensed, low install friction, and carrying zero known vulnerabilities. Install it if you are building applications that authenticate to Alibaba Cloud services; it is a required dependency for most Alibaba Cloud SDK packages.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or above; Alibaba Cloud account with valid credentials (AccessKey ID and secret, or equivalent auth method) must be obtained separately.
- Low friction: pure Python wheel with four runtime dependencies (APScheduler, aiofiles, alibabacloud-tea, alibabacloud-credentials-api).
- Active maintenance with a release 7 days ago and ongoing commits.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions, requiring only license and copyright notice preservation.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,027,926 downloads/mo, #1,671 on PyPI
Alternatives
Verify before relying
pip install alibabacloud-credentials
from alibabacloud_credentials.models import Config
from alibabacloud_credentials import Credentials
config = Config(
type='access_key',
access_key_id='YOUR_ACCESS_KEY_ID',
access_key_secret='YOUR_ACCESS_KEY_SECRET'
)
creds = Credentials(config)- Whether all credential types (access_key, sts, ram_role_arn, ecs_ram_role, oidc_role_arn, credentials_uri, bearer) are fully functional in version 1.0.11
- Performance characteristics when rotating credentials or handling token expiration
- Compatibility details with specific Alibaba Cloud service endpoints
What it is and what it does
This package provides credential management for the Alibaba Cloud Python SDK, handling the authentication layer between your application and Alibaba Cloud services. It abstracts away the complexity of multiple credential types—from simple access key pairs to temporary STS tokens, RAM role assumption, OIDC federation, and bearer tokens—into a unified Config and Credentials interface.
The package depends on alibabacloud-tea (the core Alibaba Cloud SDK transport layer), alibabacloud-credentials-api (the credential interface contract), APScheduler (likely for token refresh scheduling), and aiofiles (for async file operations, possibly for reading OIDC token files). It's actively maintained, supports Python 3.7 through 3.12, and carries no known security vulnerabilities. Use it when building applications that integrate with Alibaba Cloud services and need flexible, secure credential handling.
Use it for
- Initialize SDK clients for Alibaba Cloud services using stored or environment-based credentials without hardcoding secrets.
- Assume temporary RAM roles with session-based credentials for fine-grained access control in multi-tenant or federated environments.
- Integrate OIDC identity providers for Kubernetes or other federated identity systems accessing Alibaba Cloud.
- Rotate and refresh STS tokens automatically during long-running application lifecycles.
- Support multiple credential strategies (access keys, bearer tokens, credentials URIs) in a single codebase for different deployment scenarios.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is the official credential provider for Alibaba Cloud's Python SDK ecosystem—actively maintained, permissively licensed, low install friction, and carrying zero known vulnerabilities. Install it if you are building applications that authenticate to Alibaba Cloud services; it is a required dependency for most Alibaba Cloud SDK packages.
Install
alibabacloud-credentials on PyPI
Before you install
Low friction: pure Python wheel with four runtime dependencies (APScheduler, aiofiles, alibabacloud-tea, alibabacloud-credentials-api). Active maintenance with a release 7 days ago and ongoing commits.
Requires Python 3.7 or above; Alibaba Cloud account with valid credentials (AccessKey ID and secret, or equivalent auth method) must be obtained separately.
License in practice
Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions, requiring only license and copyright notice preservation.
Quickstart
pip install alibabacloud-credentials
from alibabacloud_credentials.models import Config
from alibabacloud_credentials import Credentials
config = Config(
type='access_key',
access_key_id='YOUR_ACCESS_KEY_ID',
access_key_secret='YOUR_ACCESS_KEY_SECRET'
)
creds = Credentials(config)
Verify before relying
- Whether all credential types (access_key, sts, ram_role_arn, ecs_ram_role, oidc_role_arn, credentials_uri, bearer) are fully functional in version 1.0.11
- Performance characteristics when rotating credentials or handling token expiration
- Compatibility details with specific Alibaba Cloud service endpoints
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesAPScheduleraiofilesalibabacloud-teaalibabacloud-credentials-api |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,027,926 / month, #1,671 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development |
Evidence: alibabacloud_credentials-1.0.11-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “alibaba cloud authentication”
- alibabacloud-credentialsManages authentication credentials for Alibaba Cloud services,…
- alibabacloud-credentials-apiProvides credential management interfaces and service provider…
- alibabacloud-tea-openapiProvides a Python SDK for calling Alibaba Cloud OpenAPI services,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also alibabacloud-credentials-api · alibabacloud-sts20150401 · alibabacloud-ram20150501 · aliyun-python-sdk-sts · git-credentials · alibabacloud-oss20190517 · alibabacloud-oss-util · docker-pycreds · volcengine · boto3-assume