Home
cd ../playbooks
Developer ToolsAdvanced

Composio SDK with Claude Code: Connect 250+ APIs in Minutes

Connect Claude Code to 250+ APIs using Composio SDK. Build AI agents that send emails, create GitHub issues, and post to Slack — not just generate text.

15 minutes
By ComposioSource
#composio#sdk#ai-agents#integrations#tools#api#gmail#slack#github#automation

You want Claude to actually send emails, create GitHub issues, and post to Slack — not just tell you what to type. But building API integrations for every tool means weeks of auth flows, error handling, and rate limiting.

Who it's for: developers building AI agents that interact with real tools, automation engineers connecting AI to business workflows, indie hackers building AI-powered products, teams integrating Claude into existing toolchains, AI application developers

Example

"Build an AI agent that monitors GitHub PRs and posts review summaries to Slack" → Working agent with Composio SDK connecting Claude to GitHub and Slack APIs, handling auth, and executing real actions — not just generating text

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add composio-sdk
# Composio SDK

Build AI agents and applications with access to 200+ external tools. Composio provides two primary approaches for integration.

## Two Development Approaches

### Tool Router (Agent Development)

For chat-based or autonomous agents that need access to external tools like Gmail, Slack, and GitHub.

**Features:**
- Session-based user isolation

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Build AI agents and applications with access to 200+ external tools like Gmail, Slack, GitHub, and more. Choose between Tool Router for agent development or Direct Execution for traditional applications.


Quick Start

Step 1: Create a Composio Project

mkdir -p ~/Projects/composio-agent

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Projects/composio-agent/

Step 3: Start Building

cd ~/Projects/composio-agent
claude

Then say: "Help me build an AI agent that can send emails and create GitHub issues"


Two Approaches

Approach Best For Features
Tool Router AI Agents Session isolation, auto-auth, MCP-compatible
Direct Execution Traditional Apps Manual control, CRUD operations, webhooks

Tool Router (Agent Development)

For chat-based or autonomous agents:

  • Session-based user isolation
  • Dynamic toolkit configuration
  • Automatic authentication management
  • MCP-compatible server URLs
  • Real-time event handling with triggers

Direct Execution (App Development)

For traditional applications:

  • Manual tool execution control
  • CRUD operations for accounts
  • Custom tool creation
  • Pre/post-execution hooks
  • Event-driven workflows

Supported Integrations

Category Examples
Communication Gmail, Slack, Discord, Teams
Development GitHub, GitLab, Jira, Linear
Productivity Notion, Google Docs, Confluence
CRM Salesforce, HubSpot, Pipedrive
Storage Google Drive, Dropbox, OneDrive

Example Prompts

  • "Create an agent that monitors GitHub PRs and posts to Slack"
  • "Build a workflow that syncs Notion with Google Sheets"
  • "Set up an agent to auto-respond to Gmail inquiries"
  • "Create a multi-tool agent with calendar and email access"

Key Concepts

User Sessions

  • Isolate tool access per user
  • Manage authentication flows
  • Handle multi-tenant scenarios

Triggers

  • React to external events
  • Webhook-based notifications
  • Real-time event handling

Tips

  • Start with Tool Router: Easier for agent development
  • Handle auth flows: First-time users need OAuth
  • Use session isolation: Keep user data separate
  • Check rate limits: External APIs have constraints

Frequently Asked Questions

What is the Composio SDK for Claude Code?

Composio SDK is an integration layer that connects Claude Code to 200+ external tools like Gmail, Slack, GitHub, Notion, Salesforce, and more. It lets you build AI agents that automate workflows across multiple apps from a single CLAUDE.md configuration.

How do I connect Claude Code to Gmail, Slack, or GitHub using Composio?

Download the Composio SDK CLAUDE.md template, place it in your project folder, and launch Claude Code. Then tell Claude what you want to build — for example, "Create an agent that monitors GitHub PRs and posts to Slack." Composio handles the OAuth authentication flows automatically.

What is the difference between Tool Router and Direct Execution in Composio?

Tool Router is designed for AI agent development with features like session isolation, auto-authentication, and MCP compatibility. Direct Execution is for traditional applications where you need manual control over tool execution, CRUD operations, and webhook-based workflows.

$Related Playbooks

Developer Tools

Auth & Authorization Patterns

A battle-tested checklist for implementing authentication and authorization correctly — password hashing, short-lived JWTs with refresh tokens, OAuth2 Authorization Code + PKCE, the four token claims to always validate, RBAC/ABAC at the service layer, and session-fixation and cookie-flag defenses, each with the why behind it.

5 minutes
Intermediate
Developer Tools

Android Restore Credentials

Implement Android's Restore Credentials feature with androidx.credentials — the two-tier background/foreground restoration architecture, the createCredential fallback for devices without end-to-end encryption, sign-in and deletion flows with real Kotlin code, and the backend guidelines a client-side implementation must hand off to the developer, not implement itself.

10 minutes
Intermediate
Developer Tools

Autonomous Skill Optimizer

Evaluate and iteratively improve SKILL.md files with a research-grounded 9-dimension rubric and a critical insight most self-improvement loops miss: absolute LLM-judge scores are too noisy (±8 points on unchanged text) for keep/revert decisions — only a same-judge, same-call paired comparison between two versions cancels that noise out reliably.

15 minutes
Advanced
Developer Tools

Automated PR Code Review

High-signal automated PR review using parallel agents with a validation pass that filters out false positives before anything gets posted.

10 minutes
Advanced
Developer Tools

Auto Repo Setup

Turn Claude Code into an environment doctor that diagnoses, fixes, and verifies a codebase so non-technical teammates can run it without understanding the stack.

10 minutes
Intermediate
Developer Tools

Artifacts Builder

Create elaborate multi-component HTML artifacts using React, Tailwind CSS, and shadcn/ui components with professional bundling.

15 minutes
Advanced
Developer Tools

Claude Code Cost Optimizer

A static audit of a project's Claude Code setup for the handful of well-known token-cost leaks — oversized CLAUDE.md prepended every turn, bloated memory files, never-invoked skills loaded into the index, unscoped subagent fan-out, and the cache-killing hook that silently ~10x's cost — each with a PASS/WARN/FAIL check and a concrete fix, ranked by biggest win per effort.

5 minutes
Beginner
Developer Tools

Cinematic GSAP + Lenis Motion System

Build a connected, premium web motion language with GSAP, ScrollTrigger, and Lenis smooth scroll — a full token system for eases/durations/staggers, Lenis-driven-by-the-GSAP-ticker setup, a reusable data-attribute markup API for text reveals and parallax, and reduced-motion handling built in from the start, not bolted on after.

15 minutes
Advanced
Developer Tools

CEO-Mode Plan Review

Review a technical or product plan the way a great CEO would — pick a mode (expand scope, cherry-pick expansions, hold scope, or cut ruthlessly), then apply nine prime directives and eleven cognitive patterns to catch every silent failure, missing edge case, and unnamed error before it ships.

10 minutes
Advanced
Developer Tools

Claude Code Project Architecture

A setup guide for structuring a Claude Code project's full toolkit — layered CLAUDE.md context, slash commands, sub-agents, skills, hooks, and plugins — each used for what it's actually good at instead of one mechanism for everything.

20 minutes
Intermediate
Developer Tools

Claude Model Migration Assistant

Migrate code and prompts between Claude models — update model strings, remove incompatible beta headers, and adjust prompts only for reported behavioral differences.

5 minutes
Beginner
Developer Tools

Claude Code Plugin Builder

End-to-end guided workflow for building Claude Code plugins — structure, commands, agents, skills, hooks, and MCP integration — with a validation checklist before you distribute.

15 minutes
Advanced

Browse all Developer Tools playbooks →