Metadata-Version: 2.4
Name: tyga-crewai
Version: 0.1.2
Summary: Safety shield for CrewAI — screen agent tool calls before execution
Author-email: Joe Wee <joe@tyga.cloud>
License: SEE LICENSE IN LICENSE
Project-URL: Homepage, https://a2ainfrastructure.com/quickstart/crewai
Project-URL: Documentation, https://a2ainfrastructure.com/docs
Keywords: crewai,safety,firewall,ai-agents,a2a
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: crewai>=0.80
Dynamic: license-file

# tyga-crewai

Safety shield for CrewAI. Drop-in `SafeShellTool` that screens commands before execution.

## Install

```bash
pip install tyga-crewai
```

## Quick Start

```python
from crewai import Agent, Task, Crew
from tyga_crewai import SafeShellTool

agent = Agent(
    role="DevOps Engineer",
    goal="Monitor and maintain server health",
    tools=[SafeShellTool()],
)

task = Task(
    description="Check disk usage and running services.",
    expected_output="Summary of system health.",
    agent=agent,
)

crew = Crew(agents=[agent], tasks=[task])
crew.kickoff()

# Safe commands (df -h, systemctl status) run normally
# Dangerous commands (rm -rf, chmod 777) are blocked
```

## How it works

1. **Gate 1** (local): Regex denylist screens commands in <5ms. Free, no API key needed.
2. **Gate 2** (cloud): Set `A2A_API_KEY` env var to enable LLM judge evaluation via a2ainfrastructure.com.

## Get an API key

Sign up free at [a2ainfrastructure.com](https://a2ainfrastructure.com/auth/signup). 500 evaluations/month on the free tier.

## Links

- [Quick Start Guide](https://a2ainfrastructure.com/quickstart/crewai)
- [API Docs](https://a2ainfrastructure.com/docs)

## License

Proprietary — Tyga.Cloud Ltd. See LICENSE file.
