composio-openai
Use Composio to get an array of tools with your OpenAI Function Call.
What it is and what it does
composio-openai is a provider adapter that connects Composio's tool catalog to OpenAI's function calling interface. It exports two providers: OpenAIResponsesProvider for the Responses API and OpenAIProvider for Chat Completions. Both operate in a non-agentic loop: the model returns tool calls, you execute them via handle_tool_calls, and feed results back to the API until the model responds with text.
The package handles the translation between Composio's tool definitions and OpenAI's function-calling schema, managing session state and tool execution across multiple API rounds. It depends on openai and composio at runtime, requiring both an OpenAI API key and a Composio API key for operation.
Use it for:
- Build an LLM agent that sends emails, manages calendars, or performs other SaaS actions by routing OpenAI function calls through Composio's integration library.
- Implement a multi-turn conversation where an LLM autonomously decides which tools to invoke and processes their results without manual intervention.
- Prototype rapid integrations between OpenAI's chat models and third-party APIs by leveraging Composio's pre-built tool connectors.
- Create a customer support bot that uses OpenAI to understand intent and Composio tools to fetch account data, create tickets, or send notifications.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Bridges Composio's tool ecosystem to OpenAI's function calling APIs, enabling LLM-driven tool execution through both the Responses API and Chat Completions.
Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a clear integration problem—connecting OpenAI function calling to Composio's tool ecosystem. It has no known vulnerabilities. Install if you need to route OpenAI function calls through Composio's integrations.
Install
composio-openai on PyPI
pip
pip install composio-openaiuv
uv add composio-openaipoetry
poetry add composio-openaiInstalling composio-openai
Before you install
Low install friction with a pure-Python wheel. Actively maintained—last commit 2026-08-14, released 2026-08-11—and backed by a well-starred repository. Requires Python 3.10 or later.
License in practice
Licensed under Apache Software License (permissive), imposing no significant restrictions on use or redistribution.
Quickstart
pip install composio composio-openai openai
from composio_openai import OpenAIResponsesProvider
from composio import Composio
from openai import OpenAI
composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()
session = composio.create(user_id="user_123")
tools = session.tools()
response = client.responses.create(model="gpt-5.2", tools=tools, input=[...])
Requires COMPOSIO_API_KEY and OPENAI_API_KEY environment variables to be set.
Verify before relying
- Whether the package supports OpenAI models other than those mentioned in the quickstart example.
- Performance characteristics when handling large numbers of concurrent tool calls.
- Compatibility guarantees with future OpenAI API versions.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — openai, composio |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,989/month — #13,118 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: composio_openai-0.19.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
composio-openai-agentsBridges Composio's tool catalog to OpenAI's…
permissive · top 15,000 on PyPI
llm-openai-pluginA plugin that extends LLM to access OpenAI…
permissive · top 15,000 on PyPI
ogx_open_clientProvides an OpenAPI-generated Python client for…
permissive · top 15,000 on PyPI
composioComposio provides a Python SDK that connects AI…
permissive · top 5,000 on PyPI
composio-langchainBridges Composio's 1000+ app integrations into…
permissive · top 15,000 on PyPI
agent-framework-openaiProvides OpenAI and Azure OpenAI integration…
permissive · top 5,000 on PyPI
composio-coreComposio-core bridges AI agents to external…
permissive · top 15,000 on PyPI
openaiProvides a Python client library for the OpenAI…
permissive · top 1,000 on PyPI
llama-index-llms-openaiIntegrates OpenAI's language models into…
permissive · top 1,000 on PyPI
vlmrunPython SDK for the VLM Run API platform,…
permissive · top 15,000 on PyPI