Composio
Verified
We've verified that the organizationComposioHQ controls the domain:
- composio.dev
- 681 followers
- United States of America
- http://composio.dev
- @composiohq
- company/composio-dev
- hello@composio.dev
This repository contains the official Software Development Kits (SDKs) for Composio, providing seamless integration capabilities for Python and Typescript Agentic Frameowrks and Libraries.
# Using npmnpm install @composio/core# Using yarnyarn add @composio/core# Using pnpmpnpm add @composio/core
import{Composio}from'@composio/core';// Initialize the SDKconstcomposio=newComposio({// apiKey: 'your-api-key',});
npm install @composio/openai-agents @openai/agents
import{Composio}from'@composio/core';import{OpenAIAgentsProvider}from'@composio/openai-agents';import{Agent,run}from'@openai/agents';constcomposio=newComposio({provider:newOpenAIAgentsProvider(),});constuserId='user@acme.org';consttools=awaitcomposio.tools.get(userId,{toolkits:['HACKERNEWS'],});constagent=newAgent({name:'Hackernews assistant',tools:tools,});constresult=awaitrun(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.
# Using pippip install composio# Using poetrypoetry add composio
fromcomposioimportComposiocomposio=Composio(# api_key="your-api-key",)
pip install composio_openai_agents openai-agents
importasynciofromagentsimportAgent,RunnerfromcomposioimportComposiofromcomposio_openai_agentsimportOpenAIAgentsProvider# Initialize Composio client with OpenAI Agents Providercomposio=Composio(provider=OpenAIAgentsProvider())user_id="user@acme.org"tools=composio.tools.get(user_id=user_id,toolkits=["HACKERNEWS"])# Create an agent with the toolsagent=Agent(name="Hackernews Agent",instructions="You are a helpful assistant.",tools=tools,)# Run the agentasyncdefmain():result=awaitRunner.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.
To update the OpenAPI specifications used for generating SDK documentation:
# Pull the latest API specifications from the backendpnpm api:pullThis command pulls the OpenAPI specification fromhttps://backend.composio.dev/api/v3/openapi.json (defined infern/scripts/pull-openapi-spec.sh) and updates the local API documentation files.
This is pulled automatically with build step.
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 theTypeScript SDK Documentation.
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 thePython SDK Documentation.
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 tobuild a custom provider to integrate with any AI framework.
| Package | Version |
|---|---|
| TypeScript | |
| @composio/core | |
| Python | |
| composio |
| Package | Version |
|---|---|
| @composio/json-schema-to-zod | |
| @composio/ts-builders |
if you are looking for the older sdk, you can find themhere
Rube 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.
We welcome contributions to both SDKs! Please read ourcontribution guidelines before submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions about the SDKs:
- Open an issue in this repository
- Contact oursupport team
- Check ourdocumentation
PinnedLoading
Repositories
- composio-base-py Public
Uh oh!
There was an error while loading.Please reload this page.
ComposioHQ/composio-base-py’s past year of commit activity - awesome-claude-skills Public
A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
ComposioHQ/awesome-claude-skills’s past year of commit activity Uh oh!
There was an error while loading.Please reload this page.
ComposioHQ/langchain-docs’s past year of commit activity - reelsgenerator Public
ComposioHQ/reelsgenerator’s past year of commit activity
Top languages
Loading…
Uh oh!
There was an error while loading.Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading.Please reload this page.
