← Back to Payloads
tutorial

Automate Your AI Stack with Composio + OpenClaw

How to wire Composio's tool registry into OpenClaw and execute authenticated API calls without leaving your agent loop.
Quick Access
Install command
$ mrt install composio
Browse related skills

The Problem

You're running an AI agent. It needs to do something useful — book a calendar, push a GitHub PR, query your Stripe dashboard. The model can reason about *what* to do. But actually *doing* it means hitting APIs, handling auth, managing rate limits. That's where most agent pipelines fall apart.

Composio gives you a managed registry of 250+ tool definitions with OAuth already handled. OpenClaw gives you the agent runtime with session memory, cron jobs, and multi-channel delivery. Together, they cover the full loop: think → act → report.

This post shows you how to connect them in practice.

Setting Up Composio CLI

First, install the Composio CLI:

Authenticate:

This opens a browser flow to connect your Composio account. Once done, you're ready to register tools.

Connecting an App Integration

Let's say you want your agent to interact with GitHub. Find the integration:

Install it:

Composio will walk you through the OAuth handshake. After that, the tool definitions are registered in your workspace. You can inspect what actions are available:

Using Tools in OpenClaw

OpenClaw has a skill for Composio CLI. Load it when you need to execute tool calls. The pattern is:

1. **Agent decides** which Composio tool to invoke

2. **You call** via exec

3. **Parse stdout** — Composio returns structured JSON

4. **Feed result back** to the agent for synthesis

Example: creating a GitHub issue.

Composio handles the auth token injection automatically. No env vars to manage, no token refreshing to code.

Inspecting Tool Schemas

Before running anything in an agent loop, inspect the exact input schema:

This is critical for reliable tool use — feeding an LLM the raw schema reduces hallucination on parameter names significantly.

Dry Run Mode

When building pipelines, use to validate the call without side effects:

Composio validates your inputs against the schema and returns a preview of what *would* happen.

The Combined Loop

Here's the full pattern in an OpenClaw agent task:

When to Use This

  • **Cron jobs** that need to act on external state (check Stripe, post to Slack)
  • **Trigger-based flows** via Composio's event listener ()
  • **Multi-step pipelines** where the agent needs to call several tools in sequence

What Composio Doesn't Do

It doesn't run your agent. It doesn't manage session state. That's OpenClaw's job. Composio is the tool execution layer — think of it as the equivalent of a function calling API, but with all the OAuth and schema management built in.

If you're building anything that needs to touch external services reliably, this combination covers the gap between "LLM decided to do X" and "X actually happened."