# Cody

```json
{
  "name": "Cody",
  "slug": "cody",
  "url": "https://composio.dev/toolkits/cody",
  "markdown_url": "https://composio.dev/toolkits/cody.md",
  "logo_url": "https://logos.composio.dev/api/cody",
  "categories": [
    "ai & machine learning",
    "productivity & project management"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-03-29T06:28:13.118Z"
}
```

![Cody logo](https://logos.composio.dev/api/cody)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Cody MCP or direct API to search company knowledge, summarize documents, answer business questions, and automate workflows through natural language.

## Summary

Cody is an AI assistant built for businesses, trained on your company's knowledge and data. It delivers instant answers and insights, tailored for your team.

## Categories

- ai & machine learning
- productivity & project management

## Toolkit Details

- Tools: 21

## Images

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

## Authentication

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

## Suggested Prompts

- Summarize key findings from Q2 reports
- Find policy details on employee benefits
- Draft onboarding checklist for new hires

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `CODY_CREATE_CONVERSATION` | Create Conversation | Tool to create a new conversation with a specified bot. Use when starting a new conversation thread with optional focus mode to limit bot's knowledge base to specific documents. |
| `CODY_CREATE_DOCUMENT` | Create Document | Tool to create a new document with text or HTML content in Cody AI. Use when you need to add documents to Cody's knowledge base with up to 768 KB of content. |
| `CODY_CREATE_DOCUMENT_FROM_FILE` | Create Document From File | Tool to create a document by uploading a file (up to 100 MB). Supports txt, md, rtf, pdf, ppt, pptx, pptm, doc, docx, docm formats. Use when you need to add file-based documents to Cody's knowledge base. The file is processed asynchronously. |
| `CODY_CREATE_DOCUMENT_FROM_WEBPAGE` | Create Document from Webpage | Tool to create a document from a publicly accessible webpage URL. Use when you need to import content from a webpage into Cody AI. The webpage must be accessible without login. If request fails, ensure the URL is publicly accessible and not blocked by a firewall. |
| `CODY_CREATE_FOLDER` | Create Folder | Tool to create a new folder in Cody AI for organizing content. Use when you need to create a folder to organize documents or conversations. |
| `CODY_DELETE_CONVERSATION` | Delete Conversation | Tool to delete a conversation by its ID. Use when you need to permanently remove a conversation from the system. |
| `CODY_DELETE_DOCUMENT` | Delete Document | Tool to delete a document by id. Use when removing a document that is no longer needed. |
| `CODY_GET_CONVERSATION` | Get Conversation | Tool to fetch a conversation by its ID from Cody AI. Use when you need to retrieve details about a specific conversation. Supports optional includes parameter to filter response to list document IDs. |
| `CODY_GET_DOCUMENT` | Get Document | Tool to retrieve a specific document by its identifier from Cody AI. Use when you need to get details about a particular document including its status, content URL, and metadata. |
| `CODY_GET_FOLDER` | Get Folder | Tool to retrieve a specific folder by its identifier. Use when you need to get details about a folder. |
| `CODY_GET_MESSAGE` | Get Message | Tool to fetch a specific message by its ID from Cody AI. Use when you need to retrieve details about a particular message, with optional includes for sources or usage metrics. |
| `CODY_GET_UPLOAD_SIGNED_URL` | Get Upload Signed URL | Tool to get an AWS S3 signed upload URL for file uploads. Use when you need to obtain a signed URL to upload a file to Cody's storage. |
| `CODY_LIST_BOTS` | List Bots | Tool to get all bots with optional keyword filtering. Use when you need to retrieve the list of available bots in a Cody account. |
| `CODY_LIST_CONVERSATIONS` | List Conversations | Tool to get all conversations with optional filtering by bot, keyword, or includes. Use when you need to retrieve conversation history, filter by bot, search by name, or get document associations. |
| `CODY_LIST_DOCUMENTS` | List Documents | Tool to retrieve all documents from Cody AI account with optional filtering. Use when you need to list documents by folder, conversation, or search by keyword. Returns document details including learning status and content URL. |
| `CODY_LIST_FOLDERS` | List Folders | Tool to retrieve all folders with optional keyword filtering. Use when you need to list or search for folders in the account. |
| `CODY_LIST_MESSAGES` | List Messages | Tool to retrieve a paginated list of messages from Cody, optionally filtered by conversation. Use when you need to list messages, with optional filtering by conversation_id and extra attributes (sources or usage). |
| `CODY_SEND_MESSAGE` | Send Message | Tool to send a message to Cody AI and receive an AI-generated response. Use when you need to send a user message to a conversation and get the AI's reply. |
| `CODY_SEND_MESSAGE_FOR_STREAM` | Send Message for Stream | Tool to send a message to Cody AI and receive a Server-Sent Events (SSE) stream URL for the AI response. Use when you need streaming responses instead of waiting for the complete message. The response contains a stream_url that can be used to connect to the SSE stream and receive the AI's response in real-time chunks. |
| `CODY_UPDATE_CONVERSATION` | Update Conversation | Tool to update a conversation by its ID including name, bot_id, and document_ids. Use when you need to modify an existing conversation's properties. |
| `CODY_UPDATE_FOLDER` | Update Folder | Tool to update a folder by its ID. Use when you need to modify an existing folder's name. |

## 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 Cody Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute Cody actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Search company handbook for remote work policy.'
  }]
)
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: 'Search company handbook for remote work policy.'
  }],
});
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 for Python or TypeScript
```python
pip install composio claude-agent-sdk
```

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

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

Import and initialize the Composio client, then create a Tool Router session for Cody
```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' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
```

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

Use the MCP server with your AI agent (Anthropic Claude or Mastra)
```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 Cody tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Summarize our latest product update docs.')
        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 } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.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: 'Summarize our latest product update docs.'
  }],
  maxSteps: 5,
});

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

## Why Use Composio?

### 1. AI Native Cody Integration

- Supports both Cody MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your Cody data

### 2. Managed Auth

- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke Cody access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Cody
- Scoped, least privilege access to Cody resources
- Full audit trail of agent actions to support review and compliance

## Use Cody with any AI Agent Framework

Choose a framework you want to connect Cody with:

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

## Related Toolkits

- [Google Sheets](https://composio.dev/toolkits/googlesheets) - Google Sheets is a cloud-based spreadsheet tool for real-time collaboration and data analysis. It lets teams work together from anywhere, updating information instantly.
- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.
- [Notion](https://composio.dev/toolkits/notion) - Notion is a collaborative workspace for notes, docs, wikis, and tasks. It streamlines team knowledge, project tracking, and workflow customization in one place.
- [Airtable](https://composio.dev/toolkits/airtable) - Airtable combines the flexibility of spreadsheets with the power of a database for easy project and data management. Teams use Airtable to organize, track, and collaborate with custom views and automations.
- [Asana](https://composio.dev/toolkits/asana) - Asana is a collaborative work management platform for teams to organize and track projects. It streamlines teamwork, boosts productivity, and keeps everyone aligned on goals.
- [Google Tasks](https://composio.dev/toolkits/googletasks) - Google Tasks is a to-do list and task management tool integrated into Gmail and Google Calendar. It helps you organize, track, and complete tasks across your Google ecosystem.
- [Linear](https://composio.dev/toolkits/linear) - Linear is a modern issue tracking and project planning tool for fast-moving teams. It helps streamline workflows, organize projects, and boost productivity.
- [Composio search](https://composio.dev/toolkits/composio_search) - Composio search is a unified web search toolkit spanning travel, e-commerce, news, financial markets, images, and more. It lets you and your apps tap into up-to-date web data from a single, easy-to-integrate service.
- [Jira](https://composio.dev/toolkits/jira) - Jira is Atlassian’s platform for bug tracking, issue tracking, and agile project management. It helps teams organize work, prioritize tasks, and deliver projects efficiently.
- [Clickup](https://composio.dev/toolkits/clickup) - ClickUp is an all-in-one productivity platform for managing tasks, docs, goals, and team collaboration. It streamlines project workflows so teams can work smarter and stay organized in one place.
- [Monday](https://composio.dev/toolkits/monday) - Monday.com is a customizable work management platform for project planning and collaboration. It helps teams organize tasks, automate workflows, and track progress in real time.
- [Perplexityai](https://composio.dev/toolkits/perplexityai) - Perplexityai delivers natural, conversational AI models for generating human-like text. Instantly get context-aware, high-quality responses for chat, search, or complex workflows.
- [Browser tool](https://composio.dev/toolkits/browser_tool) - Browser tool is a virtual browser integration that lets AI agents interact with the web programmatically. It enables automated browsing, scraping, and action-taking from any AI workflow.
- [Addressfinder](https://composio.dev/toolkits/addressfinder) - Addressfinder is a data quality platform for verifying addresses, emails, and phone numbers. It helps you ensure accurate customer and contact data every time.
- [Agiled](https://composio.dev/toolkits/agiled) - Agiled is an all-in-one business management platform for CRM, projects, and finance. It helps you streamline workflows, consolidate client data, and manage business processes in one place.
- [Ai ml api](https://composio.dev/toolkits/ai_ml_api) - Ai ml api is a suite of AI/ML models for natural language and image tasks. It provides fast, scalable access to advanced AI capabilities for your apps and workflows.
- [Aivoov](https://composio.dev/toolkits/aivoov) - Aivoov is an AI-powered text-to-speech platform offering 1,000+ voices in over 150 languages. Instantly turn written content into natural, human-like audio for any application.
- [All images ai](https://composio.dev/toolkits/all_images_ai) - All-Images.ai is an AI-powered image generation and management platform. It helps you create, search, and organize images effortlessly with advanced AI capabilities.
- [Anthropic administrator](https://composio.dev/toolkits/anthropic_administrator) - Anthropic administrator is an API for managing Anthropic organizational resources like members, workspaces, and API keys. It helps you automate admin tasks and streamline resource management across your Anthropic organization.
- [Api labz](https://composio.dev/toolkits/api_labz) - Api labz is a platform offering a suite of AI-driven APIs and workflow tools. It helps developers automate tasks and build smarter, more efficient applications.

## Frequently Asked Questions

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

Yes, Cody 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)
