Skip to main content

Cred CrewAI integration — pre-configured credential delegation tools for CrewAI agents

Project description

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):

  • CredToolkit returns 3 generic tools: delegate, status, revoke
  • Best for agents that need full credential management

CrewAI integration (cred-crewai):

  • CredTool is 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cred_crewai-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cred_crewai-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file cred_crewai-0.1.0.tar.gz.

File metadata

  • Download URL: cred_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for cred_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3165a1a3b8731ec081b9fc5f47052ddf58dfe16fa1a249a8179f297c3ad41f92
MD5 68e64279599c960848d1da475004ab0e
BLAKE2b-256 a649e3c8598dac7a6a5fd268d817fe03e4efd506a775fa9466bd94b7fdebe033

See more details on using hashes here.

File details

Details for the file cred_crewai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cred_crewai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for cred_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c010badc7be9a6428e4a3182d75d7512c313cf174e26ec57b5fbe28e74417efc
MD5 99b409245fde117178380355625230e2
BLAKE2b-256 2c6bd263e903a3a22ba739f738745199dea979d367d9141093c169d8288289d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page