AgentCore SDK for AgentRun Compatibility
agentcore-sdk-agentrun-compat is a compatibility SDK for users migrating
Python applications from the original AgentRun SDK to AgentCore. It preserves
the agentrun import namespace and forwards supported operations to the
AgentCore implementation.
It is not the official AgentCore SDK. Its distribution name makes the migration purpose explicit, while existing application imports can remain unchanged.
Install
Remove the original AgentRun package before installing the compatibility SDK:
python -m pip uninstall -y agentrun-sdk
python -m pip install agentcore-sdk-agentrun-compat
The SDK requires Python 3.10 or newer. Initial release validation builds and
installs both distributions on Python 3.10. Python 3.12 can be added to the
validation matrix later without publishing another wheel, because both
distributions are py3-none-any.
For applications that use AgentRunServer, install the server dependencies:
python -m pip install "agentcore-sdk-agentrun-compat[server]"
The package automatically installs
agentcore-sdk-agentrun-compat-core; users do not need to install the core
wheel separately.
Keep existing imports
Typical AgentRun imports do not need to change:
from agentrun.agent_runtime import AgentRuntimeClient
from agentrun.agent_runtime.model import AgentRuntimeCreateInput
from agentrun.utils.config import Config
The SDK currently targets the public interface baseline of AgentRun SDK
0.0.53. The compatibility package version and agentrun.__version__ describe
different things: the former versions this migration SDK, while the latter
reports the AgentRun interface baseline being emulated.
Connect to AgentCore
Configure the AgentCore workspace and Alibaba Cloud credentials before running the application:
export AGENTCORE_WORKSPACE_ID="<workspace-id>"
export ALIBABA_CLOUD_ACCESS_KEY_ID="<access-key-id>"
export ALIBABA_CLOUD_ACCESS_KEY_SECRET="<access-key-secret>"
Optional settings include:
AGENTCORE_ENDPOINT: AgentCore control-plane endpoint.AGENTCORE_REGION_ID: region used to derive the default endpoint.AGENTCORE_API_VERSION: AgentCore OpenAPI version sent by the SDK.ALIBABA_CLOUD_SECURITY_TOKEN: STS security token.
Legacy AgentRun credential variable names are accepted only as a migration aid and emit a deprecation warning. AgentRun control-plane endpoints are not reused; the SDK connects to AgentCore.
Migration boundary
The compatibility surface covers the AgentRun-style APIs that can be mapped to AgentCore, including Agent Runtime management, models, credentials, MCP, tools, toolsets, skills, SuperAgent resources, and the local server package. Some operations have platform-specific prerequisites or narrower input support. Capabilities that AgentCore does not provide are not simulated silently; the SDK reports an explicit unsupported-capability or migration error.
In particular, packaging and deployment inputs must follow AgentCore's artifact model. Existing business ZIP files and runtime state are deployment artifacts, not Python package installation sources. Store application artifacts in the location required by AgentCore and keep persistent application state in the storage service selected for the migrated workload.
Do not install this package together with agentrun-sdk, because both packages
provide the same agentrun import namespace.
Metadata
Release files for agentcore-sdk-agentrun-compat 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentcore_sdk_agentrun_compat-0.1.0.tar.gz | 8.2 kB | Without provenance | Details for agentcore_sdk_agentrun_compat-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentcore_sdk_agentrun_compat-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agentcore_sdk_agentrun_compat-0.1.0-py3-none-any.whl |
Total release size: 16.8 kB
Release files / agentcore_sdk_agentrun_compat-0.1.0.tar.gz
| Download URL | agentcore_sdk_agentrun_compat-0.1.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5d0c67eaf34577fd7e9f4d9379702166e2b57a61d860efa75b33d504f1ebaab
|
|
BLAKE2b-256 checksum How to use checksums |
b9b7cb12b20d6f865100d3265060c2ea5956f7ad6310c34f4e04ba97a92e7abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / agentcore_sdk_agentrun_compat-0.1.0-py3-none-any.whl
| Download URL | agentcore_sdk_agentrun_compat-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20faf04ea4339fac819ff1a113841fce08a685c7f0a3eb593168c7b9c625a1fb
|
|
BLAKE2b-256 checksum How to use checksums |
af67872dda29ee63b4be9bf057bf86f78f00e265bd28a23b24d5c888d5b66a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for agentcore-sdk-agentrun-compat 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.