-
Notifications
You must be signed in to change notification settings - Fork 8.1k
docs: add 1Claw Tools integration #6976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
redbotster
wants to merge
1
commit into
crewAIInc:main
Choose a base branch
from
redbotster:add-1claw-crewai-tool
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+65
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| --- | ||
| title: 1Claw Tools | ||
| description: Give CrewAI agents secure, policy-scoped access to secrets, signing, and encrypted memory through 1Claw's HSM-backed vault | ||
| icon: shield-halved | ||
| mode: "wide" | ||
| --- | ||
|
|
||
| # `1claw-crewai-tools` | ||
|
|
||
| CrewAI agents need credentials and signing keys, but crew configs and shared `.env` files are not a safe place to store them. Hard-coded API keys end up in git, and shared env files break when you spin up parallel agents with different permissions. | ||
|
|
||
| [`1claw-crewai-tools`](https://pypi.org/project/1claw-crewai-tools/) wraps the [1Claw](https://1claw.xyz) API as CrewAI-compatible tools. Each tool fetches secrets at runtime, signs transactions server-side, and writes to encrypted agent memory. Access is policy-scoped, so an agent only sees the vault paths a human explicitly granted, and secrets are never persisted in the model's context window. | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| pip install 1claw-crewai-tools | ||
| ``` | ||
|
|
||
| ## Setup | ||
|
|
||
| Set your agent's API key. The agent and vault IDs are auto-resolved from it: | ||
|
|
||
| ```bash | ||
| export ONECLAW_AGENT_API_KEY="ocv_your_agent_key" | ||
| ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| Load all tools (vault, memory, signing, automations) at once: | ||
|
|
||
| ```python | ||
| import os | ||
| from crewai import Agent, Crew, Process, Task | ||
| from oneclaw_crewai import OneclawClient, get_all_tools | ||
|
|
||
| client = OneclawClient(api_key=os.environ["ONECLAW_AGENT_API_KEY"]) | ||
| tools = get_all_tools(client) # 11 tools | ||
|
|
||
| researcher = Agent( | ||
| role="Blockchain Researcher", | ||
| goal="Check wallet balances and sign transactions", | ||
| backstory="You use 1Claw tools for all credential and signing operations.", | ||
| tools=tools, | ||
| ) | ||
| ``` | ||
|
|
||
| Or import a single tool: | ||
|
|
||
| ```python | ||
| from oneclaw_crewai import OneclawVaultTool | ||
| ``` | ||
|
|
||
| ## Notes | ||
|
|
||
| - Secrets are fetched just-in-time and never written into crew configs, `.env` files, or the model context. | ||
| - Access is policy-scoped and audited per call; grants are revocable without rotating keys. | ||
| - Tools cover vault secrets, encrypted memory, multi-chain signing, and workflow automations. | ||
| - Requires a [1Claw](https://1claw.xyz) account and an agent API key. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: crewAIInc/crewAI
Length of output: 2783
🏁 Script executed:
Repository: crewAIInc/crewAI
Length of output: 22257
🏁 Script executed:
Repository: crewAIInc/crewAI
Length of output: 13670
Rewrite the toolkit and secret-handling claims.
get_all_tools()provides separate vault, memory, signing, and automation tools.OneclawVaultTool._run()returns decrypted values as tool output. Warn users not to log tool output and to setverbose=Falsein production. Remove guarantees that secrets never enter model context or are never persisted unless the integration enforces them. State only supported guarantees, such as private signing keys remaining in the HSM.🤖 Prompt for AI Agents