skillfed

composio-openai

Use Composio to get an array of tools with your OpenAI Function Call.

composio-openai v0.19.0 98.0K downloads/30d#13,118 on PyPI29,690
Permissive license Active released

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-openai

uv

uv add composio-openai

poetry

poetry add composio-openai

Installing 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

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

openai function calling toolscomposio openai integrationllm tool execution frameworkopenai api tool adaptercomposio provider for openai
llm-integrationtool-callingopenai-adapter

More Artificial Intelligence packages