cred-crewai
CrewAI integration for Cred. OAuth2 credential delegation for AI agents.
Install
pip install cred-crewai
Quick Start
import os
from cred_crewai import CredTool
from crewai import Agent
# Create a pre-configured tool for Google Calendar
google_tool = CredTool(
agent_token=os.environ["CRED_AGENT_TOKEN"],
user_id="user_123",
service="google",
app_client_id="my_app_client_id",
scopes=["calendar.readonly"],
)
# Use with CrewAI agent
agent = Agent(
role="Calendar Manager",
goal="Manage user's calendar",
tools=[google_tool],
)
Key Differences from LangChain
LangChain integration (cred-langchain):
CredToolkitreturns 3 generic tools: delegate, status, revoke- Best for agents that need full credential management
CrewAI integration (cred-crewai):
CredToolis pre-configured for a single service- Tool name auto-generated:
cred_google_delegate,cred_github_delegate, etc. - Best for specialized agents (e.g., a "Calendar Manager" agent only needs Google tokens)
One CredTool per service per agent = clearer intent, smaller decision space for the LLM.
Handling Consent
When a user hasn't connected the service yet, _run() raises ConsentRequiredError.
Catch it and redirect the user to e.consent_url to complete the OAuth flow.
Cred Cloud (Coming Soon)
Managed cloud delegation is coming. Join the waitlist.
Metadata
Release files for cred-crewai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cred_crewai-0.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cred_crewai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / cred_crewai-0.1.0.tar.gz
| Download URL | cred_crewai-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3165a1a3b8731ec081b9fc5f47052ddf58dfe16fa1a249a8179f297c3ad41f92
|
|
BLAKE2b-256 checksum How to use checksums |
a649e3c8598dac7a6a5fd268d817fe03e4efd506a775fa9466bd94b7fdebe033
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / cred_crewai-0.1.0-py3-none-any.whl
| Download URL | cred_crewai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c010badc7be9a6428e4a3182d75d7512c313cf174e26ec57b5fbe28e74417efc
|
|
BLAKE2b-256 checksum How to use checksums |
2c6bd263e903a3a22ba739f738745199dea979d367d9141093c169d8288289d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|