Coinbase AgentKit Strands Agents extension
Project description
AgentKit Strands Agents Extension
Strands Agents extension of AgentKit. Enables agentic workflows to interact with onchain actions.
Setup
Prerequisites
- CDP API Key
- Amazon Bedrock Models
- Configure AWS Credentials OR use Amazon Bedrock API keys alternatively for Amazon Bedrock model access with Strands Agents.
- Set up Amazon Bedrock
NOTE: Strands Agents is model provider agnostic
Installation
pip install coinbase-agentkit coinbase-agentkit-strands-agents
Environment Setup
Set the following environment variables:
export CDP_API_KEY_ID=<your-cdp-api-key-id>
export CDP_API_KEY_SECRET=<your-cdp-api-key-secret>
export CDP_WALLET_SECRET=<your-cdp-wallet-secret>
export AWS_ACCESS_KEY_ID=<your-aws-access-key-id>
export AWS_SECRET_ACCESS_KEY=<your-aws-secret-access-key>
export AWS_REGION=<your-aws-region>
⚠ Note: If using Bedrock API keys instead of AWS credentials, set AWS_BEARER_TOKEN_BEDROCK instead of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environment variable for Bedrock model access. Also make sure the AWS_REGION aligns with the AWS region the Bedrock access key was created in.
Usage
Basic Setup
from coinbase_agentkit import AgentKit
from coinbase_agentkit_strands_agents import get_strands_tools
from strands.models import BedrockModel
from strands import Agent
agentKit = AgentKit()
tools = get_strands_tools(agentKit)
llm = BedrockModel(
model_id="us.amazon.nova-pro-v1:0",
region_name='us-east-1' ## set to the appropiate region with model access
)
agent = Agent(
model=llm,
tools=tools,
)
For AgentKit configuration options, see the Coinbase Agentkit README.
For Strands Agents configuration options, see the Strands Agents Documentation.
For a full example, see the chatbot example.
Contributing
See CONTRIBUTING.md for detailed setup instructions and contribution guidelines.
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 coinbase_agentkit_strands_agents-0.2.0.tar.gz.
File metadata
- Download URL: coinbase_agentkit_strands_agents-0.2.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cce318a375bcb82c9369b4ec54803cd9aad5f1878801f5a1c5d266bbd271221f
|
|
| MD5 |
957016895514bd9cd9fbfd1e37ec6473
|
|
| BLAKE2b-256 |
5f2eea430553e346e54192a6bca1e73ff6189dad2b2e0b3356e5165887783990
|
Provenance
The following attestation bundles were made for coinbase_agentkit_strands_agents-0.2.0.tar.gz:
Publisher:
publish_pypi_coinbase_agentkit_strands_agents.yml on coinbase/agentkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coinbase_agentkit_strands_agents-0.2.0.tar.gz -
Subject digest:
cce318a375bcb82c9369b4ec54803cd9aad5f1878801f5a1c5d266bbd271221f - Sigstore transparency entry: 477067867
- Sigstore integration time:
-
Permalink:
coinbase/agentkit@8f8c76ac49d2275cf02be949e027e0ea1ed0fa80 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/coinbase
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi_coinbase_agentkit_strands_agents.yml@8f8c76ac49d2275cf02be949e027e0ea1ed0fa80 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl.
File metadata
- Download URL: coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.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 |
458208d2df6d86506af409f48449f9333b955fb5cf2472bf571b8bc1c92a8094
|
|
| MD5 |
c40bae54a208e8bb7abb30ec391ccaf7
|
|
| BLAKE2b-256 |
b456858aede566b036792541316a575aa60443b1b1100c1d8324170510701591
|
Provenance
The following attestation bundles were made for coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl:
Publisher:
publish_pypi_coinbase_agentkit_strands_agents.yml on coinbase/agentkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coinbase_agentkit_strands_agents-0.2.0-py3-none-any.whl -
Subject digest:
458208d2df6d86506af409f48449f9333b955fb5cf2472bf571b8bc1c92a8094 - Sigstore transparency entry: 477067907
- Sigstore integration time:
-
Permalink:
coinbase/agentkit@8f8c76ac49d2275cf02be949e027e0ea1ed0fa80 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/coinbase
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi_coinbase_agentkit_strands_agents.yml@8f8c76ac49d2275cf02be949e027e0ea1ed0fa80 -
Trigger Event:
workflow_dispatch
-
Statement type: