# Open sea

```json
{
  "name": "Open sea",
  "slug": "open_sea",
  "url": "https://composio.dev/toolkits/open_sea",
  "markdown_url": "https://composio.dev/toolkits/open_sea.md",
  "logo_url": "https://logos.composio.dev/api/open_sea",
  "categories": [
    "e-commerce"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-05-12T10:20:45.461Z"
}
```

![Open sea logo](https://logos.composio.dev/api/open_sea)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Open sea MCP or direct API to search NFT collections, fetch asset details, track portfolio value, and monitor trending items through natural language.

## Summary

OpenSea is the world's first and largest NFT marketplace for digital collectibles and crypto assets. Instantly buy, sell, and explore NFTs across blockchains, all in one place.

## Categories

- e-commerce

## Toolkit Details

- Tools: 24

## Images

- Logo: https://logos.composio.dev/api/open_sea

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for OpenSea.
  - Setup:
    - Configure Api Key credentials for OpenSea.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- List my NFT for sale on OpenSea
- Show all active listings in Bored Ape collection
- Create an offer for a specific CryptoPunk
- Fetch my OpenSea profile details

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `OPEN_SEA_BUILD_CRITERIA_OFFER` | Build criteria offer | Build a portion of a criteria offer including the merkle tree needed to post an offer. |
| `OPEN_SEA_CANCEL_ORDER` | Cancel order | Offchain cancel a single order, offer or listing, by its order hash when protected by the SignedZone. Protocol and Chain are required to prevent hash collisions. Please note cancellation is only assured if a fulfillment signature was not vended prior to cancellation. |
| `OPEN_SEA_CREATE_CRITERIA_OFFER` | Create criteria offer | Create a criteria offer to purchase any NFT in a collection or which matches the specified trait. |
| `OPEN_SEA_CREATE_ITEM_OFFER` | Create item offer | Create an offer to purchase a single NFT (ERC721 or ERC1155). |
| `OPEN_SEA_CREATE_LISTING` | Create listing | List a single NFT (ERC721 or ERC1155) for sale on the OpenSea marketplace. |
| `OPEN_SEA_FULFILL_LISTING` | Fulfill listing | Retrieve all the information, including signatures, needed to fulfill a listing directly onchain. |
| `OPEN_SEA_FULFILL_OFFER` | Fulfill offer | Retrieve all the information, including signatures, needed to fulfill an offer directly onchain. |
| `OPEN_SEA_GET_ACCOUNT` | Get account | Get an OpenSea Account Profile including details such as bio, social media usernames, and profile image. |
| `OPEN_SEA_GET_ALL_LISTINGS_BY_COLLECTION` | Get all listings by collection | Get all active, valid listings for a single collection. |
| `OPEN_SEA_GET_ALL_OFFERS_BY_COLLECTION` | Get all offers by collection | Get all active, valid offers for the specified collection. This includes individual and criteria offers. |
| `OPEN_SEA_GET_BEST_LISTING_BY_NFT` | Get best listing by nft | Get the best listing for an NFT. |
| `OPEN_SEA_GET_BEST_LISTINGS_BY_COLLECTION` | Get best listings by collection | Get the cheapest priced active, valid listings on a single collection. |
| `OPEN_SEA_GET_BEST_OFFER_BY_NFT` | Get best offer by nft | Get the best offers for an NFT. |
| `OPEN_SEA_GET_COLLECTION` | Get collection | Get a single collection including details such as fees, traits, and links. |
| `OPEN_SEA_GET_COLLECTIONS` | Get collections | Get a list of OpenSea collections with optional filtering and pagination. |
| `OPEN_SEA_GET_COLLECTION_STATS` | Get collection stats | Get stats for a single collection on OpenSea. |
| `OPEN_SEA_GET_CONTRACT` | Get contract | Get a smart contract for a given chain and address. |
| `OPEN_SEA_GET_EVENTS` | Get events | Get a list of events from OpenSea based on various filters like timestamps and event types. |
| `OPEN_SEA_GET_LISTINGS` | Get listings | Get the complete set of active, valid listings. |
| `OPEN_SEA_GET_NFT` | Get nft | Get metadata, traits, ownership information, and rarity for a single NFT. |
| `OPEN_SEA_GET_ORDER` | Get order | Get a single order, offer or listing, by its order hash. Protocol and Chain are required to prevent hash collisions. |
| `OPEN_SEA_GET_PAYMENT_TOKEN` | Get payment token | Get a smart contract for a given chain and address. |
| `OPEN_SEA_GET_TRAITS` | Get traits | Get the traits in a collection. |
| `OPEN_SEA_REFRESH_NFT_METADATA` | Refresh nft metadata | Refresh metadata for a single NFT. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK
```python
pip install composio_openai
```

```typescript
npm install @composio/openai
```

#### Path 1, Step 2: Initialize Composio and Create Tool Router Session

Import and initialize Composio client, then create a Tool Router session
```python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
```

```typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
```

#### Path 1, Step 3: Execute Open sea Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute Open sea actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'List all active NFT listings for the Bored Ape Yacht Club collection'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
```

```typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'List all active NFT listings for the Bored Ape Yacht Club collection'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and Claude Agent SDK
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
```

#### Path 2, Step 2: Create Tool Router Session

Initialize the Composio client and create a Tool Router session
```python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
```

```typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
```

#### Path 2, Step 3: Connect to AI Agent

Use the MCP server with your AI agent
```python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Open sea tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get all listings for the Bored Ape Yacht Club collection')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Get all listings for the Bored Ape Yacht Club collection' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
```

## Why Use Composio?

### 1. AI Native Open sea Integration

- Supports both Open sea MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for searching, trading, and analyzing NFTs on Open sea

### 2. Managed Auth

- Handles Open sea API key setup and lifecycle management
- Central hub to manage, scope, and revoke Open sea API access
- Scoped, per-user credentials for safer integration—no more hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned for language model agents to fetch, list, and update NFT data flawlessly
- Comprehensive execution logs let you review every action and response

### 4. Enterprise Grade Security

- Fine-grained RBAC for controlling which agents and users access Open sea
- Least-privilege, scoped API key usage for every connection
- Full audit trail of agent actions for compliance and visibility

## Use Open sea with any AI Agent Framework

Choose a framework you want to connect Open sea with:

- [OpenAI Agents SDK](https://composio.dev/toolkits/open_sea/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/open_sea/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/open_sea/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/open_sea/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/open_sea/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/open_sea/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/open_sea/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/open_sea/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/open_sea/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/open_sea/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/open_sea/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/open_sea/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/open_sea/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/open_sea/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/open_sea/framework/autogen)

## Related Toolkits

- [Addresszen](https://composio.dev/toolkits/addresszen) - Addresszen is a real-time address autocomplete and verification service. It helps capture accurate, deliverable addresses with instant suggestions and validation.
- [Asin data api](https://composio.dev/toolkits/asin_data_api) - Asin data api gives you detailed, real-time product data from Amazon, including price, rank, and reviews. Perfect for e-commerce pros and data-driven marketers who need instant marketplace insights.
- [Baselinker](https://composio.dev/toolkits/baselinker) - BaseLinker is an all-in-one e-commerce management platform connecting stores, marketplaces, carriers, and more. It streamlines order processing, inventory control, and automates your sales operations.
- [Bestbuy](https://composio.dev/toolkits/bestbuy) - Best Buy is a leading retailer offering APIs for product, store, and recommendation data. Instantly access up-to-date retail insights for smarter shopping and decision-making.
- [Btcpay server](https://composio.dev/toolkits/btcpay_server) - BTCPay Server is a free, open-source, self-hosted Bitcoin payment processor. It lets merchants accept Bitcoin payments directly, cutting out middlemen and boosting privacy.
- [Cdr platform](https://composio.dev/toolkits/cdr_platform) - Cdr platform is an API for purchasing carbon dioxide removal services. It enables businesses to offset emissions by accessing verified carbon removal projects.
- [Cloudcart](https://composio.dev/toolkits/cloudcart) - CloudCart is an e-commerce platform for building and managing online stores. It helps businesses streamline product listings, orders, and customer engagement.
- [Countdown api](https://composio.dev/toolkits/countdown_api) - Countdown API gives you real-time, structured eBay product data, reviews, and seller feedback. Perfect for powering price monitoring, product research, or marketplace analytics workflows.
- [Dpd2](https://composio.dev/toolkits/dpd2) - Dpd2 is a robust email management platform for handling, sorting, and automating email workflows. Streamline your communications and boost productivity with advanced sorting, labeling, and response tools.
- [Finerworks](https://composio.dev/toolkits/finerworks) - FinerWorks is an online platform for fine art and photo printing services. Artists and photographers use it to order custom prints and manage print inventory efficiently.
- [Fingertip](https://composio.dev/toolkits/fingertip) - Fingertip is a business management platform for selling, booking, and customer engagement—all from a single link. It helps businesses streamline operations and connect with customers across social channels.
- [Fraudlabs pro](https://composio.dev/toolkits/fraudlabs_pro) - FraudLabs Pro is an online payment fraud detection service for e-commerce and merchants. It helps minimize chargebacks and revenue loss by detecting and preventing fraudulent transactions.
- [Gift up](https://composio.dev/toolkits/gift_up) - Gift Up! is a digital platform for selling, managing, and redeeming gift cards online. It streamlines promotions and gift card transactions for businesses and their customers.
- [Goody](https://composio.dev/toolkits/goody) - Goody is a gifting platform that lets users send gifts and physical products without handling logistics. It streamlines gifting by managing delivery, fulfillment, and recipient experience.
- [Gumroad](https://composio.dev/toolkits/gumroad) - Gumroad is a platform for selling digital products, physical goods, and memberships with a simple checkout and marketing tools. It streamlines creator payouts and helps you grow your audience effortlessly.
- [Instacart](https://composio.dev/toolkits/instacart) - Instacart is an online grocery delivery and pickup service platform. It lets you discover local retailers and create shoppable lists and recipes with ease.
- [Junglescout](https://composio.dev/toolkits/junglescout) - Junglescout is an Amazon product research and analytics platform for sellers. It delivers sales estimates, competitive insights, and optimization tools to boost your Amazon business.
- [Ko fi](https://composio.dev/toolkits/ko_fi) - Ko-fi is a platform that lets creators receive donations, memberships, and sales from fans. It helps creators monetize their work and grow their audience with minimal friction.
- [Lemon squeezy](https://composio.dev/toolkits/lemon_squeezy) - Lemon Squeezy is a payments and subscription platform built for software companies. It makes managing payments, taxes, and customer subscriptions effortless.
- [Loyverse](https://composio.dev/toolkits/loyverse) - Loyverse is a point-of-sale (POS) platform for small businesses, offering tools for sales, inventory, and customer loyalty. It helps streamline retail operations and boost customer engagement.

## Frequently Asked Questions

### Do I need my own developer credentials to use Open sea with Composio?

Yes, Open sea requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
