MOSS cryptographic signing integration for CrewAI
Project description
moss-crewai
MOSS signing integration for CrewAI. Unsigned output is broken output.
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
- moss-sdk - Core MOSS SDK
- mosscomputing.com - Project site
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b3d3ed6ab3484e936ba8ee2c76437c209ef4ff62c3f428e8c8564c53fb7047
|
|
| MD5 |
672ff71aab5d6bae5ef8c984c7b12716
|
|
| BLAKE2b-256 |
b7ccff6bda225cf16f0db98459550c7b562ae71bd8293a71cc3ea5a937321762
|
Provenance
The following attestation bundles were made for moss_crewai-1.0.0.tar.gz:
Publisher:
publish.yml on mosscomputing/moss-crewai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moss_crewai-1.0.0.tar.gz -
Subject digest:
04b3d3ed6ab3484e936ba8ee2c76437c209ef4ff62c3f428e8c8564c53fb7047 - Sigstore transparency entry: 854526293
- Sigstore integration time:
-
Permalink:
mosscomputing/moss-crewai@b8dd5d55d69ae1f70320581b486fbf6f2d561e3f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mosscomputing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b8dd5d55d69ae1f70320581b486fbf6f2d561e3f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75bb0053bf7f4ffbdb14b48e39e2400bb48a6ed0e513513b4538a1bac1ab139d
|
|
| MD5 |
3cafa657a98b33a3a02a18e1b4a3deb8
|
|
| BLAKE2b-256 |
c663110ca9fdb7829a0e845a605657641767f7a493fd8565cbd5ceb462d9636b
|
Provenance
The following attestation bundles were made for moss_crewai-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on mosscomputing/moss-crewai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moss_crewai-1.0.0-py3-none-any.whl -
Subject digest:
75bb0053bf7f4ffbdb14b48e39e2400bb48a6ed0e513513b4538a1bac1ab139d - Sigstore transparency entry: 854526294
- Sigstore integration time:
-
Permalink:
mosscomputing/moss-crewai@b8dd5d55d69ae1f70320581b486fbf6f2d561e3f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mosscomputing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b8dd5d55d69ae1f70320581b486fbf6f2d561e3f -
Trigger Event:
release
-
Statement type: