# wuying-agentbay-sdk **Repository Path**: mirrors_aliyun/wuying-agentbay-sdk ## Basic Information - **Project Name**: wuying-agentbay-sdk - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-27 - **Last Updated**: 2025-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AgentBay SDK > The AgentBay SDK provides a comprehensive suite of tools for efficient interaction with AgentBay cloud environments, enabling you to create and manage cloud sessions, execute commands, operate files, and interact with user interfaces. ## 📦 Installation | Language | Install Command | Documentation | |----------|----------------|---------------| | Python | `pip install wuying-agentbay-sdk` | [Python Docs](python/README.md) | | TypeScript | `npm install wuying-agentbay-sdk` | [TypeScript Docs](typescript/README.md) | | Golang | `go get github.com/aliyun/wuying-agentbay-sdk/golang/pkg/agentbay` | [Golang Docs](golang/README.md) | ## 🚀 Prerequisites Before using the SDK, you need to: 1. Register an Alibaba Cloud account: [https://aliyun.com](https://aliyun.com) 2. Get APIKEY credentials: [AgentBay Console](https://agentbay.console.aliyun.com/service-management) 3. Set environment variable: - For Linux/MacOS: ```bash export AGENTBAY_API_KEY=your_api_key_here ``` - For Windows: ```cmd setx AGENTBAY_API_KEY your_api_key_here ``` ## 🚀 Quick Start ### Python ```python from agentbay import AgentBay # Create session and execute command agent_bay = AgentBay() session_result = agent_bay.create() session = session_result.session result = session.command.execute_command("echo 'Hello AgentBay'") print(result.output) # Hello AgentBay # Clean up agent_bay.delete(session) ``` ### TypeScript ```typescript import { AgentBay } from 'wuying-agentbay-sdk'; // Create session and execute command const agentBay = new AgentBay(); const sessionResult = await agentBay.create(); const session = sessionResult.session; const result = await session.command.executeCommand("echo 'Hello AgentBay'"); console.log(result.output); // Hello AgentBay // Clean up await agentBay.delete(session); ``` ### Golang ```go import "github.com/aliyun/wuying-agentbay-sdk/golang/pkg/agentbay" // Create session and execute command client, err := agentbay.NewAgentBay("", nil) if err != nil { fmt.Printf("Failed to initialize AgentBay client: %v\n", err) return } sessionResult, err := client.Create(nil) if err != nil { fmt.Printf("Failed to create session: %v\n", err) return } session := sessionResult.Session result, err := session.Command.ExecuteCommand("echo 'Hello AgentBay'") if err != nil { fmt.Printf("Failed to execute command: %v\n", err) return } fmt.Println(result.Output) // Hello AgentBay // Clean up _, err = client.Delete(session, false) if err != nil { fmt.Printf("Failed to delete session: %v\n", err) return } ``` ## 📚 Documentation **[Complete Documentation](docs/README.md)** - Full guides, tutorials, and API references ### 👋 Choose Your Learning Path **🆕 New Users** - If you're new to AgentBay or cloud development: - [Quick Start Tutorial](docs/quickstart/README.md) - Get started in 5 minutes - [Core Concepts](docs/quickstart/basic-concepts.md) - Understand cloud environments and sessions **🚀 Experienced Users** - Already familiar with browser automation, computer use, mobile testing, or cloud development environments: - Choose your environment: - 🌐 [Browser Automation](docs/guides/browser-use/README.md) - Web scraping, testing, form filling with stealth capabilities - 🖥️ [Computer/Windows Automation](docs/guides/computer-use/README.md) - Desktop UI automation and window management - 📱 [Mobile Automation](docs/guides/mobile-use/README.md) - Android UI testing and gesture automation - 💻 [CodeSpace](docs/guides/codespace/README.md) - Cloud-based code execution environments - [Feature Guides](docs/guides/README.md) - Complete feature introduction - API Reference - Core API quick lookup - [Python API Reference](python/docs/api/README.md) - [TypeScript API Reference](typescript/docs/api/README.md) - [Golang API Reference](golang/docs/api/README.md) - [Cookbook](cookbook/README.md) - Real-world examples and recipes ## 🔧 Core Features ### 🎛️ Session Management - **Session Creation & Lifecycle** - Create, manage, and delete cloud environments - **Environment Configuration** - Configure SDK settings, regions, and endpoints - **Session Monitoring** - Monitor session status and health validation ### 🛠️ Common Modules - **Command Execution** - Execute Shell commands in cloud environments - **File Operations** - Upload, download, and manage cloud files - **Data Persistence** - Save and retrieve data across sessions - **Context Management** - Synchronize data and maintain state ### 🎯 Scenario-Based Features - **Computer Use** - General automation and desktop operations - **Browser Use** - Web automation, scraping, and browser control - **CodeSpace** - Code execution and development environment - **Mobile Use** - Mobile device simulation and control ## 🆘 Get Help - [GitHub Issues](https://github.com/aliyun/wuying-agentbay-sdk/issues) ## 📄 License This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.