Installation
Install the AgentSudo Python SDK.
Requirements
- Python 3.9 or higher
- pip (Python package manager)
Install via pip
pip install agentsudo
Install from source
git clone https://github.com/xywa23/agentsudo.git
cd agentsudo
pip install -e .
Verify installation
import agentsudo
print(agentsudo.__version__)
Optional dependencies
For dashboard integration:
pip install agentsudo[dashboard]
For async support:
pip install agentsudo[async]
Environment variables
Configure AgentSudo using environment variables:
| Variable | Description | Default |
|---|---|---|
AGENTSUDO_API_KEY | Dashboard API key | None |
AGENTSUDO_BASE_URL | Dashboard API URL | https://api.agentsudo.dev |
AGENTSUDO_LOG_LEVEL | Logging level | INFO |
Example .env file:
AGENTSUDO_API_KEY=as_your_api_key_here
AGENTSUDO_LOG_LEVEL=DEBUG
💡
You can also pass the API key directly to the Agent constructor.