Socket
Book a DemoInstallSign in
Socket

coinbase-agentkit-openai-agents-sdk

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinbase-agentkit-openai-agents-sdk

Coinbase AgentKit OpenAI Agents SDK extension

0.6.0
pipPyPI
Maintainers
3

AgentKit OpenAI Agents SDK Extension

OpenAI Agents SDK extension of AgentKit. Enables agentic workflows to interact with onchain actions.

Setup

Prerequisites

  • CDP API Key
  • OpenAI API Key

Installation

pip install coinbase-agentkit coinbase-agentkit-openai-agents-sdk

Environment Setup

Set the following environment variables:

export OPENAI_API_KEY=<your-openai-api-key>
export CDP_API_KEY_ID=<your-cdp-api-key-id>
export CDP_API_KEY_PRIVATE=<your-cdp-api-key-private>

Usage

Basic Setup

from coinbase_agentkit import AgentKit
from coinbase_agentkit_openai_agents_sdk import get_openai_agents_sdk_tools
from agents import Agent

agentKit = AgentKit()

tools = get_openai_agents_sdk_tools(agentKit)

agent = Agent(
    name="CDP Agent",
    instructions="You are a helpful agent that can interact with the blockchain using AgentKit tools.",
    tools=tools
)

For AgentKit configuration options, see the Coinbase Agentkit README.

For a full example, see the chatbot example.

Contributing

See CONTRIBUTING.md for detailed setup instructions and contribution guidelines.

Keywords

agent

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.