base on Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling 
<div align="center">
<img src="https://raw.githubusercontent.com/ComposioHQ/composio/next/public/cover.png" alt="Composio Logo" width="auto" height="auto" style="margin-bottom: 20px;"/>
# Composio SDK
Skills that evolve for your Agents
[π Website](https://composio.dev) β’ [π Documentation](https://docs.composio.dev)
[](https://github.com/ComposioHQ/composio/stargazers)
[](https://pypi.org/project/composio/)
[](https://www.npmjs.com/package/@composio/core)
[](https://discord.gg/composio)
</div>
This repository contains the official Software Development Kits (SDKs) for Composio, providing seamless integration capabilities for Python and Typescript Agentic Frameworks and Libraries.
## Getting Started
### TypeScript SDK Installation
```bash
# Using npm
npm install @composio/core
# Using yarn
yarn add @composio/core
# Using pnpm
pnpm add @composio/core
```
#### Quick start:
```typescript
import { Composio } from '@composio/core';
// Initialize the SDK
const composio = new Composio({
  // apiKey: 'your-api-key',
});
```
#### Simple Agent with OpenAI Agents
```bash
npm install @composio/openai-agents @openai/agents
```
```typescript
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, run } from '@openai/agents';
const composio = new Composio({
  provider: new OpenAIAgentsProvider(),
});
const userId = '
[email protected]';
const tools = await composio.tools.get(userId, {
  toolkits: ['HACKERNEWS'],
});
const agent = new Agent({
  name: 'Hackernews assistant',
  tools: tools,
});
const result = await run(agent, 'What is the latest hackernews post about?');
console.log(JSON.stringify(result.finalOutput, null, 2));
// will return the response from the agent with data from HACKERNEWS API.
```
### Python SDK Installation
```bash
# Using pip
pip install composio
# Using poetry
poetry add composio
```
#### Quick start:
```python
from composio import Composio
composio = Composio(
  # api_key="your-api-key",
)
```
#### Simple Agent with OpenAI Agents
```bash
pip install composio_openai_agents openai-agents
```
```python
import asyncio
from agents import Agent, Runner
from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider
# Initialize Composio client with OpenAI Agents Provider
composio = Composio(provider=OpenAIAgentsProvider())
user_id = "
[email protected]"
tools = composio.tools.get(user_id=user_id, toolkits=["HACKERNEWS"])
# Create an agent with the tools
agent = Agent(
    name="Hackernews Agent",
    instructions="You are a helpful assistant.",
    tools=tools,
)
# Run the agent
async def main():
    result = await Runner.run(
        starting_agent=agent,
        input="What's the latest Hackernews post about?",
    )
    print(result.final_output)
asyncio.run(main())
# will return the response from the agent with data from HACKERNEWS API.
```
For more detailed usage instructions and examples, please refer to each SDK's specific documentation.
### Open API Specification
To update the OpenAPI specifications used for generating SDK documentation:
```bash
# Pull the latest API specifications from the backend
pnpm api:pull
```
This command pulls the OpenAPI specification from `https://backend.composio.dev/api/v3/openapi.json` (defined in `fern/scripts/pull-openapi-spec.sh`) and updates the local API documentation files.
This is pulled automatically with build step.
## Available SDKs
### TypeScript SDK (/ts)
The TypeScript SDK provides a modern, type-safe way to interact with Composio's services. It's designed for both Node.js and browser environments, offering full TypeScript support with comprehensive type definitions.
For detailed information about the TypeScript SDK, please refer to the [TypeScript SDK Documentation](/ts/README.md).
### Python SDK (/python)
The Python SDK offers a Pythonic interface to Composio's services, making it easy to integrate Composio into your Python applications. It supports Python 3.10+ and follows modern Python development practices.
For detailed information about the Python SDK, please refer to the [Python SDK Documentation](/python/README.md).
## Provider Support
The following table shows which AI frameworks and platforms are supported in each SDK:
| Provider | TypeScript | Python |
|----------|:----------:|:------:|
| OpenAI | β
 | β
 |
| OpenAI Agents | β
 | β
 |
| Anthropic | β
 | β
 |
| LangChain | β
 | β
 |
| LangGraph | β
* | β
 |
| LlamaIndex | β
 | β
 |
| Vercel AI SDK | β
 | β |
| Google Gemini | β
 | β
 |
| Google ADK | β | β
 |
| Mastra | β
 | β |
| Cloudflare Workers AI | β
 | β |
| CrewAI | β | β
 |
| AutoGen | β | β
 |
\* *LangGraph in TypeScript is supported via the `@composio/langchain` package.*
> **Don't see your provider?** Learn how to [build a custom provider](https://docs.composio.dev/sdk/typescript/custom-providers) to integrate with any AI framework.
## Packages
### Core Packages
| Package | Version |
|---------|---------|
| **TypeScript** | |
| [@composio/core](https://www.npmjs.com/package/@composio/core) |  |
| **Python** | |
| [composio](https://pypi.org/project/composio/) |  |
### Provider Packages
| Package | Version |
|---------|---------|
| **TypeScript** | |
| [@composio/openai](https://www.npmjs.com/package/@composio/openai) |  |
| [@composio/openai-agents](https://www.npmjs.com/package/@composio/openai-agents) |  |
| [@composio/anthropic](https://www.npmjs.com/package/@composio/anthropic) |  |
| [@composio/langchain](https://www.npmjs.com/package/@composio/langchain) |  |
| [@composio/llamaindex](https://www.npmjs.com/package/@composio/llamaindex) |  |
| [@composio/vercel](https://www.npmjs.com/package/@composio/vercel) |  |
| [@composio/google](https://www.npmjs.com/package/@composio/google) |  |
| [@composio/mastra](https://www.npmjs.com/package/@composio/mastra) |  |
| [@composio/cloudflare](https://www.npmjs.com/package/@composio/cloudflare) |  |
| **Python** | |
| [composio-openai](https://pypi.org/project/composio-openai/) |  |
| [composio-openai-agents](https://pypi.org/project/composio-openai-agents/) |  |
| [composio-anthropic](https://pypi.org/project/composio-anthropic/) |  |
| [composio-langchain](https://pypi.org/project/composio-langchain/) |  |
| [composio-langgraph](https://pypi.org/project/composio-langgraph/) |  |
| [composio-llamaindex](https://pypi.org/project/composio-llamaindex/) |  |
| [composio-crewai](https://pypi.org/project/composio-crewai/) |  |
| [composio-autogen](https://pypi.org/project/composio-autogen/) |  |
| [composio-gemini](https://pypi.org/project/composio-gemini/) |  |
| [composio-google](https://pypi.org/project/composio-google/) |  |
| [composio-google-adk](https://pypi.org/project/composio-google-adk/) |  |
### Utility Packages
| Package | Version |
|---------|---------|
| [@composio/json-schema-to-zod](https://www.npmjs.com/package/@composio/json-schema-to-zod) |  |
| [@composio/ts-builders](https://www.npmjs.com/package/@composio/ts-builders) |  |
_if you are looking for the older sdk, you can find them [here](https://github.com/ComposioHQ/composio/tree/master)_
## Rube
[Rube](https://rube.app) is a Model Context Protocol (MCP) server built with Composio. It connects your AI tools to 500+ apps like Gmail, Slack, GitHub, and Notion. Simply install it in your AI client, authenticate once with your apps, and start asking your AI to perform real actions like "Send an email" or "Create a task." 
It integrates with major AI clients like Cursor, Claude Desktop, VS Code, Claude Code and any custom MCPβcompatible client. You can switch between these clients and your integrations follow you.
## Contributing
We welcome contributions to both SDKs! Please read our [contribution guidelines](https://github.com/ComposioHQ/composio/blob/next/CONTRIBUTING.md) before submitting pull requests.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
## Support
If you encounter any issues or have questions about the SDKs:
- Open an issue in this repository
- Contact our [support team](mailto:
[email protected])
- Check our [documentation](https://docs.composio.dev/)
", Assign "at most 3 tags" to the expected json: {"id":"11074","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"