Skip to main content Switch to mobile version agentarts-sdk 0.1.13 Huawei Cloud AgentArts SDK - Build, deploy and manage AI agents with cloud capabilities
pip install agentarts-sdk==0.1.13 Copy PIP instructions
Build, deploy and manage AI agents with Huawei Cloud capabilities.
Huawei Cloud AgentArts SDK is a comprehensive toolkit for developing, deploying, and managing AI agents. It provides seamless integration with Huawei Cloud services while supporting mainstream agent frameworks.
Framework Agnostic - Compatible with LangChain, LangGraph, AutoGen, CrewAI, Google ADK, and any custom agent framework
One-Click Deployment - Deploy agents to Huawei Cloud with a single command
Built-in Tools - Code interpreter sandbox, memory management, gateway support
Cloud Integration - Seamless integration with Huawei Cloud authentication, monitoring, and logging
CLI Toolkit - Complete command-line tools for project initialization, local development, and cloud deployment
Repository Structure
agentarts-sdk-python/ ├── src/agentarts/ │ ├── sdk/ # Core SDK modules │ │ ├── runtime/ # HTTP server runtime (AgentArtsRuntimeApp) │ │ ├── memory/ # Conversation memory management │ │ ├── tools/ # Built-in tools (Code Interpreter) │ │ ├── gateway/ # Gateway client │ │ ├── identity/ # Authentication & authorization │ │ ├── integration/ # Framework adapters (LangGraph, etc.) │ │ └── service/ # HTTP clients for cloud services │ └── toolkit/ # CLI toolkit │ ├── cli/ # Command-line interface │ ├── operations/ # CLI operation handlers │ ├── plugins/memory/ # Memory plugins │ │ ├── ai_agent/ # Platform assets (claude_code, codex, opencode, hermes) │ │ ├── installer/ # Unified installer │ │ ├── mcp/ # MCP server (local adapter) │ │ └── resources/ # Manifests + shared hook scripts │ └── utils/ # Utilities │ ├── runtime/ # Runtime utilities │ └── templates/ # Project templates ├── docs/ # Documentation │ └── cn/ # Chinese documentation │ ├── sdk_user_guide/ # SDK usage guides │ └── toolkit_user_guide/ # CLI usage guides ├── examples/ # Example projects └── tests/ # Test suites ├── unit/ # Unit tests mirroring src/ tree │ ├── sdk/ # SDK tests │ └── toolkit/ # Toolkit tests │ └── plugins/memory/ # Memory plugin tests └── integration/ # Integration tests Wrapping Your Agent as HTTP Server
The SDK provides AgentArtsRuntimeApp to wrap your agent logic as a standard HTTP server, exposing:
POST /invocations - Main agent invocation endpoint
GET /ping - Health check endpoint
WS /ws - WebSocket endpoint for streaming
Example: LangGraph Agent
# agent.py import os from typing import Dict, Any, TypedDict, Annotated from operator import add from agentarts.sdk import AgentArtsRuntimeApp, RequestContext app = AgentArtsRuntimeApp() class State(TypedDict): messages: Annotated[list, add] query: str response: str class LangGraphAgent: def __init__(self): self.model_name = os.environ.get("OPENAI_MODEL_NAME", "gpt-4o-mini") self._graph = None def _build_graph(self): from langgraph.graph import StateGraph, END from langchain_openai import ChatOpenAI from langchain_core.messages import HumanMessage, AIMessage llm = ChatOpenAI( model=self.model_name, api_key=os.environ.get("OPENAI_API_KEY"), base_url=os.environ.get("OPENAI_BASE_URL") ) async def process_node(state: State) -> Dict[str, Any]: query = state.get("query", "") messages = state.get("messages", []) or [HumanMessage(content=query)] response = await llm.ainvoke(messages) return { "messages": [AIMessage(content=response.content)], "response": response.content, } workflow = StateGraph(State) workflow.add_node("process", process_node) workflow.set_entry_point("process") workflow.add_edge("process", END) return workflow.compile() async def run(self, query: str) -> Dict[str, Any]: graph = self._graph or self._build_graph() self._graph = graph result = await graph.ainvoke({"messages": [], "query": query, "response": ""}) return {"response": result.get("response", "")} _agent = LangGraphAgent() @app.entrypoint async def handler(payload: Dict[str, Any], context: RequestContext = None) -> Dict[str, Any]: query = payload.get("message", "") return await _agent.run(query) if __name__ == "__main__": app.run() Key Points
Focus on Agent Logic - You only need to implement the agent logic; the SDK handles HTTP server, request parsing, and response formatting
Framework Agnostic - Works with any agent framework (LangChain, LangGraph, AutoGen, CrewAI, or custom implementations)
Simple Decorator - Use @app.entrypoint to mark your handler function
Context Support - Optional RequestContext parameter provides session info and request metadata
Configurable Model - Model name can be configured via environment variable (e.g., OPENAI_MODEL_NAME)
Python 3.10 or higher
pip or uv package manager
Create Virtual Environment (Recommended)
It is recommended to install the SDK in a virtual environment to avoid dependency conflicts.
# Create virtual environment python -m venv venv # Activate virtual environment .\venv\Scripts\Activate.ps1 # Or using Command Prompt .\venv\Scripts\activate.bat Linux/macOS:
pip install agentarts-sdk Linux/macOS:
pip install agentarts-sdk Install the standalone CLI binary (no Python required)
If you only need the agentarts CLI (not the SDK as a Python library), download a prebuilt standalone binary — it bundles its own Python interpreter and runs without a Python installation.
Linux / macOS — one-line install:
curl -fsSL https://raw.githubusercontent.com/huaweicloud/agentarts-sdk-python/main/install.sh | sh Windows (PowerShell) — one-line install:
irm https://raw.githubusercontent.com/huaweicloud/agentarts-sdk-python/main/install.ps1 | iex If execution policy blocks the pipe form, use:
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/huaweicloud/agentarts-sdk-python/main/install.ps1 | iex" The install scripts detect your platform, download the matching binary from the latest Release, and put agentarts on your PATH (Linux/macOS: ~/.local/bin, or /usr/local/bin under sudo; Windows: %LOCALAPPDATA%\Programs\agentarts). Overrides: AGENTARTS_BIN_DIR (install location), AGENTARTS_DOWNLOAD_URL (mirror / custom source).
Prefer a package-managed install? If you already use uv (itself a one-line install: curl -LsSf https://astral.sh/uv/install.sh | sh on Linux/macOS, irm https://astral.sh/uv/install.ps1 | iex on Windows), you can install the CLI as an isolated, upgradable tool:
uv tool install agentarts-sdk # install uv tool upgrade agentarts-sdk # upgrade later This installs the agentarts console script into an isolated environment and adds it to your PATH. It is the same cross-language CLI — it drives both Python agents (natively) and Java agents (via your local JDK + Maven).
Manual download (any platform): grab the archive for your platform from the Releases page, extract it, and put the agentarts binary on your PATH:
Note for Java agents: the binary bundles a Python interpreter but not a JVM. To run agentarts dev / agentarts deploy against a Java agent you still need a local JDK 17 and Maven on your PATH. Python agents need nothing extra (the interpreter is bundled).
Install with Optional Dependencies
# With LangChain support pip install agentarts-sdk[langchain] # With LangGraph support pip install agentarts-sdk[langgraph] # With MCP memory server support (required by `agentarts memory install`) pip install agentarts-sdk[mcp] # With all optional dependencies pip install agentarts-sdk[all] Install from Source
git clone https://github.com/huaweicloud/agentarts-sdk-python.git cd agentarts-sdk-python # Create and activate virtual environment python -m venv venv .\venv\Scripts\Activate.ps1 # Install in development mode pip install -e ".[dev]" Linux/macOS:
Set environment variables for Huawei Cloud authentication:
Windows (PowerShell):
$env:HUAWEICLOUD_SDK_AK = "your-access-key" $env:HUAWEICLOUD_SDK_SK = "your-secret-key" Windows (Command Prompt):
set HUAWEICLOUD_SDK_AK=your-access-key set HUAWEICLOUD_SDK_SK=your-secret-key Linux/macOS:
export HUAWEICLOUD_SDK_AK="your-access-key" export HUAWEICLOUD_SDK_SK="your-secret-key" Note: Get your AK/SK from Huawei Cloud Console -> My Credentials -> Access Keys.
For complete environment variable configuration, see Environment Variables Guide.
1. Initialize a New Project
# Create a new agent project with LangGraph template agentarts init -n my_agent -t langgraph # Available templates: basic, langchain, langgraph, google-adk This creates:
my_agent/ ├── agent.py # Agent implementation ├── requirements.txt # Python dependencies ├── .agentarts_config.yaml # Project configuration └── Dockerfile # Docker build file 2. Configure Environment
Edit .agentarts_config.yaml to set environment variables:
runtime: environment_variables: - key: OPENAI_API_KEY value: "your-openai-api-key" - key: OPENAI_MODEL_NAME value: "gpt-4o-mini" # Optional: gpt-4o, gpt-4-turbo, etc. - key: OPENAI_BASE_URL value: "" # Optional: custom API endpoint 3. Local Development
# Start local development server agentarts dev # Server runs at http://127.0.0.1:8080 # Endpoints: # POST /invocations - Invoke agent # GET /ping - Health check 4. Deploy to Huawei Cloud
# Configure region agentarts config set region cn-southwest-2 # Deploy to cloud agentarts deploy # Invoke deployed agent agentarts invoke '{"message": "Hello, AgentArts!"}' # Destroy deployment agentarts destroy CLI Commands Reference
The agentarts memory command provides two groups of subcommands.
Space Management (requires AK/SK authentication):
Plugin Installation & Local Server:
Limitations & Requirements
Minimum: Python 3.10
Recommended: Python 3.10 or 3.11
When using optional framework dependencies, ensure the following minimum versions:
Note: LangGraph 1.0+ introduces a new Checkpoint format with required fields (step, pending_sends, parents). The SDK's integration module is compatible with LangGraph 1.0 and above.
Docker is required for:
Building and deploying agents with agentarts deploy (alias: launch)
Docker Desktop for Windows
Docker Engine for Linux
Refer to Huawei Cloud AgentArts Documentation for resource quotas and limits.
SDK User Guides - Memory, Code Interpreter, Gateway
CLI User Guides - init, config, deploy, invoke, destroy
Contributing Guide - Development setup and guidelines
Architecture - System architecture overview
# Install development dependencies pip install -e ".[dev]" # Run tests pytest # Code formatting black . && isort . # Type checking mypy agentarts # Linting ruff check . License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Contributions are welcome! Please see CONTRIBUTING.md for details.
Issues: GitHub Issues
Documentation: https://support.huaweicloud.com/productdesc-agentarts/agentarts_03_0002.html
Email: hwagentartssdk@huawei.com
Released: Dec 1, 2026
Author/Maintainer: Huawei Cloud AgentArts Team
Apache Software License (Apache License)
all autogen crewai database docs google-adk huaweicloud langchain langgraph mcp monitoring tui vector-stores web
agent ai huawei-cloud sdk langchain langgraph autogen crewai
Development Status 3 - Alpha
Intended Audience Developers
License OSI Approved :: Apache Software License
Operating System OS Independent
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Libraries :: Python Modules
Release files for agentarts-sdk 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 600.6 kB
Release files / agentarts_sdk-0.1.13.tar.gz
Release files / agentarts_sdk-0.1.13-py3-none-any.whl
Security for agentarts-sdk 0.1.13
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.
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.
Release history Release notifications | RSS feed
Dec 1, 2026 2 release files No provenance
Nov 30, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Oct 31, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 27, 2026 2 release files No provenance
Oct 15, 2026 2 release files No provenance
Aug 28, 2026 2 release files No provenance
Aug 15, 2026 2 release files No provenance
Jul 17, 2026 2 release files No provenance
Jun 6, 2026 2 release files No provenance
May 11, 2026 2 release files No provenance
May 7, 2026 2 release files No provenance
Apr 18, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from a8e35ed











