Metadata-Version: 2.5
Name: neuforge-crewai
Version: 1.0.1
Summary: NeuForge x402 Token Metering for CrewAI
Project-URL: Documentation, https://github.com/titansignal/neuforge-crewai#readme
Project-URL: Issues, https://github.com/titansignal/neuforge-crewai/issues
Project-URL: Source, https://github.com/titansignal/neuforge-crewai
Author-email: Gary Chen <gchen12016@gmail.com>
License-Expression: Apache-2.0
Keywords: crewai,metering,neuforge,x402
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.10
Requires-Dist: crewai>=0.30.0
Requires-Dist: neuforge-langchain>=0.1.0
Description-Content-Type: text/markdown

# NeuForge Pay for CrewAI (`neuforge-crewai`)

A CrewAI wrapper that enforces the NeuForge x402 Token Metering protocol across all agents in a crew.

> **⚠️ Pricing & Metering Disclosure**
> This SDK requires an active API key from [neuforge.app](https://neuforge.app). 
> It acts as a cloud-metered gateway that tracks your LLM token usage and synchronizes it synchronously with the NeuForge backend via HTTP. 
> 
> **Important:** If your NeuForge account balance drops below zero or your budget is exceeded, this SDK will intentionally halt your execution by throwing an `HTTP 402 Payment Required` exception. You must manage your billing on neuforge.app to ensure uninterrupted service.

## Usage

```python
from neuforge_crewai import secure_crew
from crewai import Crew, Agent, Task

# Create your agents and crew normally
my_crew = Crew(agents=[...], tasks=[...])

# Wrap your crew with your NeuForge API Key
secured_crew = secure_crew(my_crew, api_key="nf_live_your_api_key_here")

# Execution is metered and synced with the cloud.
# If your budget is exceeded, the crew halts natively!
result = secured_crew.kickoff()
```
