Skip to main content

MOSS cryptographic signing integration for CrewAI

Project description

moss-crewai

MOSS signing integration for CrewAI. Unsigned output is broken output.

PyPI

Installation

pip install moss-crewai

Quick Start: Explicit Signing (Recommended)

Sign task outputs, crew results, and agent outputs:

from crewai import Crew, Agent, Task
from moss_crewai import sign_task_output, sign_crew_result, sign_agent_output

# Run your crew
crew = Crew(agents=[...], tasks=[...])
result = crew.kickoff()

# Sign the crew result
signed = sign_crew_result(result, agent_id="research-crew")
print(f"Signed: {signed.signature[:20]}...")

# Sign individual task outputs
for task_output in result.tasks_output:
    signed = sign_task_output(task_output, agent_id="research-crew", task="research")

Enterprise Mode

Set MOSS_API_KEY for automatic policy evaluation:

import os
os.environ["MOSS_API_KEY"] = "your-api-key"

from moss_crewai import sign_crew_result, enterprise_enabled

print(f"Enterprise: {enterprise_enabled()}")  # True

result = sign_crew_result(
    crew_output,
    agent_id="finance-crew",
    context={"user_id": "u123", "department": "finance"}
)

if result.blocked:
    print(f"Blocked by policy: {result.policy.reason}")

Verification

from moss_crewai import verify_envelope

verify_result = verify_envelope(result.envelope)
if verify_result.valid:
    print(f"Signed by: {verify_result.subject}")

All Functions

Function Description
sign_task_output() Sign a task's output
sign_task_output_async() Async version
sign_agent_output() Sign an agent's output
sign_agent_output_async() Async version
sign_crew_result() Sign full crew kickoff result
sign_crew_result_async() Async version
verify_envelope() Verify a signed envelope

Legacy API

The old auto-signing API is still available:

from moss_crewai import enable_moss, moss_wrap

enable_moss("moss:myteam:crewai")  # Global auto-signing
agent = moss_wrap(agent, "moss:team:researcher")  # Per-agent signing

Enterprise Features

Feature Free Enterprise
Local signing
Offline verification
Policy evaluation -
Evidence retention -
Audit exports -

Links

License

This package is licensed under the Business Source License 1.1.

  • Free for evaluation, testing, and development
  • Free for non-production use
  • Production use requires a MOSS subscription
  • Converts to Apache 2.0 on January 25, 2030

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

moss_crewai-1.0.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

moss_crewai-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file moss_crewai-1.0.0.tar.gz.

File metadata

  • Download URL: moss_crewai-1.0.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moss_crewai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 04b3d3ed6ab3484e936ba8ee2c76437c209ef4ff62c3f428e8c8564c53fb7047
MD5 672ff71aab5d6bae5ef8c984c7b12716
BLAKE2b-256 b7ccff6bda225cf16f0db98459550c7b562ae71bd8293a71cc3ea5a937321762

See more details on using hashes here.

Provenance

The following attestation bundles were made for moss_crewai-1.0.0.tar.gz:

Publisher: publish.yml on mosscomputing/moss-crewai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moss_crewai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: moss_crewai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for moss_crewai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75bb0053bf7f4ffbdb14b48e39e2400bb48a6ed0e513513b4538a1bac1ab139d
MD5 3cafa657a98b33a3a02a18e1b4a3deb8
BLAKE2b-256 c663110ca9fdb7829a0e845a605657641767f7a493fd8565cbd5ceb462d9636b

See more details on using hashes here.

Provenance

The following attestation bundles were made for moss_crewai-1.0.0-py3-none-any.whl:

Publisher: publish.yml on mosscomputing/moss-crewai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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