Skip to main content

Prerequisites

  • Node.js 18 or later
  • npm, yarn, pnpm, or bun package manager
  • A Composio API key (get one at app.composio.dev)

Installation

Provider Packages

If you’re using a specific AI framework, install the corresponding provider:

Configuration

Environment Variables

Create a .env file in your project root:

Initialize the SDK

Verification

Verify your installation by listing available toolkits:

Platform Support

The Composio SDK works in multiple JavaScript environments:

Node.js

Full support for all features including file uploads and webhooks.

Cloudflare Workers

Lightweight runtime optimized for edge computing:

Deno

Import from npm specifiers:

Browser (Beta)

Use with caution - API keys should not be exposed in browser environments:

Configuration Options

All available configuration options:
string
Your Composio API key. Can also be set via COMPOSIO_API_KEY environment variable.
string
default:"https://backend.composio.dev"
Custom API endpoint. Useful for self-hosted deployments.
Provider
default:"OpenAIProvider"
The AI framework provider to use for tool formatting.
boolean
default:true
Enable anonymous usage analytics to help improve the SDK.
boolean
default:true
Automatically handle file uploads and downloads during tool execution.
object
Specify versions for toolkits. Omit to use latest.
boolean
default:false
Disable automatic SDK version checking.
object
Custom headers to include in all API requests.

Next Steps

Composio Class

Learn the main SDK class

Tools API

Work with tools

Providers

Choose your AI framework

Examples

Browse examples