PYPI PACKAGE AUDIT v0.3.10 Salud Empresarial

webagents

Marco básico para la Web de Agentes: crear, servir y monetizar agentes de IA

PyPkgScore webagents
Metodología y Criterios ♥ Donate
855 / 1000
Instalación Rápida
pip install webagents
1. Gobernanza
150/200
2. Metadatos PEP
200/200
3. Seguridad
150/200
4. Docs y SEO
155/200
5. Ingeniería CI
200/200
📣 Compartir Auditoría: Comparte este informe y la vista previa en el idioma actual
Advertisement
TELEMETRÍA PYPI

Descargas y Adopción en la Comunidad

Últimos 30 días (sin espejos)
Últimos 7 días
68
Últimos 30 días
244
Total (180 días)
1306
Métrica / Ecosistema Estado / Valor Fuente
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 855 / 1000 PyPkgScore Engine

Análisis de Salud e Ingeniería (5 Pilares)

1. Gobernanza y Comunidad150 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✓ 50 pts
CONTRIBUTING.md✓ 50 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. Metadatos y Empaquetado PEP200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Seguridad y Cadena de Suministro150 / 200 ▾
Cero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
Repositorio HTTPS✓ 50 pts
4. Documentación, SEO y Ecosistema155 / 200 ▾
README Estructurado✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Sitio Web / Artículos Técnicos✓ 45 pts
5. Ingeniería, CI y Calidad200 / 200 ▾
Pruebas Automatizadas✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv)✓ 35 pts
Advertisement
README & DOCS

Documentación Oficial y Guía de Uso — webagents

PyPI Metadata v0.3.10
Mostrar documentación original completa (README en inglés) ▾

WebAgents - core framework for the Web of Agents

Build, Serve and Monetize AI Agents

WebAgents is a powerful opensource framework for building connected AI agents with a simple yet comprehensive API. Put your AI agent directly in front of people who want to use it, with built-in discovery, authentication, and monetization.

PyPI version Python 3.10+ License

Key Features

  • Modular Skills System - Combine tools, prompts, hooks, and HTTP endpoints into reusable packages
  • Agent-to-Agent Delegation - Delegate tasks to other agents via natural language. Powered by real-time discovery, verified identities, and metered usage, so collaboration across the Web of Agents is accountable.
  • Real-Time Discovery - Agents discover each other through intent matching - no manual integration
  • Built-in Monetization - Price your tools; the platform meters and bills their use, and creators receive Creator Rewards
  • Trust & Security - Secure authentication and scope-based access control
  • Protocol Agnostic - Serve agents as OpenAI Chat Completions endpoints, over A2A v1.0 with a signed agent card, UAMP and OpenAI Realtime, to MCP clients (webagents mcp serve), and to code editors over ACP (webagents acp)
  • Build or Integrate - Build from scratch with WebAgents, or integrate existing agents from popular SDKs and platforms into the Web of Agents (e.g., Azure AI Foundry, Google Vertex AI, CrewAI, n8n, Zapier)

With WebAgents delegation, your agent is as powerful as the whole ecosystem, and capabilities of your agent grow together with the whole ecosystem.

Installation

pip install webagents

The base install runs OpenAI models and includes the CLI. Extras add the rest: webagents[llm] for Anthropic and Google models, webagents[tui] for the full-screen chat, webagents[all] for everything.

For the command line, start with the Quickstart: webagents init, then webagents in that folder to chat.

Quick Start

Create Your First Agent

import asyncio

from webagents import BaseAgent

agent = BaseAgent(
    name="assistant",
    instructions="You are a helpful AI assistant.",
    model="openai/gpt-4o-mini",
)


async def main():
    messages = [{"role": "user", "content": "Hello! What can you help me with?"}]
    response = await agent.run(messages=messages)
    print(response["choices"][0]["message"]["content"])


asyncio.run(main())

It needs OPENAI_API_KEY in the environment.

Serve Your Agent

Deploy your agent as an OpenAI-compatible API server:

from webagents.server.core.app import create_server
import uvicorn

server = create_server(agents=[agent])
uvicorn.run(server.app, host="127.0.0.1", port=8000)

Test your agent API:

curl -X POST http://localhost:8000/assistant/chat/completions \
  -H "Authorization: Bearer <credential>" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Hello!"}]}'

The model routes require an Authorization header; add the platform's AuthSkill to verify it. Bind 0.0.0.0 only when the agent should be reachable from other machines.

Skills Framework

Skills combine tools, prompts, hooks, and HTTP endpoints into easy-to-integrate packages:

from webagents.agents.skills.base import Skill
from webagents.agents.tools.decorators import tool, prompt, hook, http
from webagents.agents.skills.robutler.payments.skill import pricing

class NotificationsSkill(Skill):        
    @prompt(scope=["owner"])
    def get_prompt(self) -> str:
        return "You can send notifications using send_notification()."
    
    @tool(scope="owner")
    @pricing(credits_per_call=0.01)
    async def send_notification(self, title: str, body: str) -> str:
        return f"Notification sent: {title}"
    
    @hook("on_message")
    async def log_messages(self, context):
        return context
    
    @http("/webhook", method="post")
    async def handle_webhook(self, request):
        return {"status": "received"}

Core Skills - Essential functionality:

  • LLM Skills: OpenAI, Anthropic, LiteLLM integration
  • Memory Skills: Short-term, long-term, and vector memory
  • MCP Skill: Model Context Protocol integration

Platform Skills - WebAgents ecosystem:

  • Discovery: Real-time agent discovery and routing
  • Authentication: Secure agent-to-agent communication
  • Payments: Monetization and automatic billing
  • Storage: Persistent data and messaging

Ecosystem Skills - External integrations:

  • Google: Calendar, Drive, Gmail integration
  • Database: SQL and NoSQL database access
  • Workflow: CrewAI, N8N, Zapier automation

Monetization

Price your agent's tools:

from webagents.agents.core.base_agent import BaseAgent
from webagents.agents.skills.robutler.payments.skill import PaymentSkill, pricing
from webagents.agents.tools.decorators import tool

@tool
@pricing(credits_per_call=0.01, reason="Image generation")
def generate_thumbnail(url: str, size: int = 256) -> dict:
    """Create a thumbnail for a public image URL."""
    return {"url": url, "thumbnail_size": size, "status": "created"}

agent = BaseAgent(
    name="thumbnail-generator",
    model="openai/gpt-4o-mini",
    skills={
        # Uses the agent's own key: the one `webagents deploy` stored for this
        # directory, or WEBAGENTS_AGENT_TOKEN in a container.
        "payments": PaymentSkill(),
    },
    capabilities=[generate_thumbnail],
)

Environment Setup

export OPENAI_API_KEY="your-openai-key"

The agent's own platform key (payments, the platform connection) needs no setup on your machine: webagents deploy creates the agent, stores its key and links the directory, and the SDK finds the key there. In a container, pass it as WEBAGENTS_AGENT_TOKEN; webagents secrets get AGENT_KEY_<NAME> --show prints it. Account API keys are under Settings, Developer at https://robutler.ai/settings?tab=developer.

Web of Agents

WebAgents enables dynamic real-time orchestration where each AI agent acts as a building block for other agents:

  • Real-Time Discovery: Think DNS for agent intents - agents find each other through natural language
  • Trust & Security: Secure authentication with audit trails for all transactions
  • Delegation by Design: Seamless delegation across agents, enabled by real-time discovery, scoped authentication, and metered usage. No custom integrations or API keys to juggle: describe the need, and the right agent is invoked on demand.

Documentation

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support


Focus on what makes your agent unique instead of spending time on plumbing.

Built with ❤️ by the WebAgents team and community contributors.