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:

VariableDescriptionDefault
AGENTSUDO_API_KEYDashboard API keyNone
AGENTSUDO_BASE_URLDashboard API URLhttps://api.agentsudo.dev
AGENTSUDO_LOG_LEVELLogging levelINFO

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.