Skip to main content
The Composio CLI is a powerful command-line tool for managing your Composio projects, authenticating with the platform, and generating type-safe code for TypeScript and Python projects.

What is the Composio CLI?

The Composio CLI provides a unified interface for:
  • Authentication - Securely log in and manage your Composio account
  • Code Generation - Generate type-safe toolkits, tools, and trigger definitions
  • Project Management - Manage organizations, projects, and connected accounts
  • Tool Discovery - Search and explore available tools and toolkits
  • Self-Management - Upgrade the CLI and check version information

Key Features

Type-Safe Code Generation

Automatically generate TypeScript or Python type definitions for:
  • Toolkits (collections of related tools)
  • Tools (individual functions like GITHUB_CREATE_REPO, GMAIL_SEND_EMAIL)
  • Triggers (event listeners for external services)

Multi-Language Support

The CLI auto-detects your project type and generates appropriate code:
  • TypeScript - Full type definitions with optional input/output schemas
  • Python - Type stubs for all toolkits and tools

Flexible Authentication

  • Interactive browser login - OAuth flow for easy authentication
  • Non-interactive login - API key support for CI/CD and automation
  • Multi-tenant support - Manage multiple organizations and projects

Performance & Offline Support

  • File-based caching - Cached API responses for faster subsequent runs
  • Offline mode - Generate code from cache when network is unavailable
  • Parallel execution - Concurrent API requests for improved performance

Architecture

The CLI is built with:
  • Effect.ts - Composable, type-safe runtime for TypeScript
  • Bun - Fast JavaScript runtime and bundler
  • @effect/cli - Command-line framework with Effect
  • @clack/prompts - Interactive terminal UI

Quick Start

# Install the CLI
curl -fsSL https://raw.githubusercontent.com/ComposioHQ/composio/main/install.sh | bash

# Login to Composio
composio login

# Generate types for your project
composio generate

# Check your account
composio whoami

Common Commands

CommandDescription
composio loginLog in to the Composio platform
composio whoamiDisplay your account information
composio generateAuto-detect project type and generate types
composio ts generateGenerate TypeScript type stubs
composio py generateGenerate Python type stubs
composio upgradeUpdate the CLI to the latest version
composio versionDisplay the current CLI version

Next Steps

Installation

Learn how to install the Composio CLI on your system

Login Command

Authenticate with the Composio platform

Generate Command

Generate type-safe code for your projects

Environment Variables

Configure the CLI with environment variables

Build docs developers (and LLMs) love