# Square CLI for AI Agents

```json
{
  "title": "Square CLI for AI Agents",
  "toolkit": "Square",
  "toolkit_slug": "square",
  "framework": "CLI",
  "framework_slug": "cli",
  "url": "https://composio.dev/toolkits/square/framework/cli",
  "markdown_url": "https://composio.dev/toolkits/square/framework/cli.md",
  "updated_at": "2026-05-06T08:29:39.406Z"
}
```

## Introduction

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP.
With Composio's Universal CLI, your coding agents can talk to over 1000+ SaaS applications. With Square, agents can create and send an invoice to a customer, list all recent payments from last week, update item prices in your product catalog, and more — all without worrying about authentication.
This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end Square automation.

## Also integrate Square with

- [OpenAI Agents SDK](https://composio.dev/toolkits/square/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/square/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/square/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/square/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/square/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/square/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/square/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/square/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/square/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/square/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/square/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/square/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/square/framework/crew-ai)

## TL;DR

The idea behind building the universal CLI is to give agents a single command interface to interact with all your external applications. Here's what you'll get with it:
- Agent-friendly: Coding agents like Claude Code, Codex, and OpenCode can use CLI tools natively — no MCP setup required.
- Authentication handled: Connect once via OAuth or API Key, and all CLI commands work with your credentials automatically.
- Tool discovery: Search, inspect, and execute 20,000+ tools across 1000+ apps from one interface.
- Trigger support: Use triggers to listen for events across your apps, powered by real-time webhooks or polling under the hood.
- Type generation: Generate typed schemas for autocomplete and type safety in your projects.

## Connect Square to CLI

### Prerequisites
Install the Composio CLI, authenticate, and initialize your project:

```bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login
```

## What is the Square MCP server, and what's possible with it?

The Square MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Square account. It provides structured and secure access to your Square business tools, so your agent can perform actions like processing payments, managing invoices, tracking orders, handling customers, and managing inventory on your behalf.
- Seamless payment processing: Let your agent accept card payments, issue refunds, and manage transactions across your business locations.
- Automated invoice creation and management: Ask your agent to generate, send, and monitor invoices for your customers, streamlining your billing process.
- Order and fulfillment tracking: Enable your agent to view, update, and manage orders, helping you keep tabs on fulfillment and delivery status with ease.
- Customer profile management: Have your agent create, update, or search customer profiles, making it easier to personalize service and maintain up-to-date records.
- Inventory and item catalog control: Allow your agent to track stock levels, update item details, and organize your catalog for smooth retail operations.

## Supported Tools

None listed.

## Supported Triggers

None listed.

## Complete Code

None listed.

## Conclusion

- Try asking your coding agent to perform various Square operations
- Explore cross-app workflows by connecting more toolkits
- Set up triggers for real-time automation
- Use composio generate for typed schemas in your projects

## How to build Square MCP Agent with another framework

- [OpenAI Agents SDK](https://composio.dev/toolkits/square/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/square/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/square/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/square/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/square/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/square/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/square/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/square/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/square/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/square/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/square/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/square/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/square/framework/crew-ai)

## Related Toolkits

- [Addresszen](https://composio.dev/toolkits/addresszen) - Addresszen is a real-time address autocomplete and verification service. It helps capture accurate, deliverable addresses with instant suggestions and validation.
- [Asin data api](https://composio.dev/toolkits/asin_data_api) - Asin data api gives you detailed, real-time product data from Amazon, including price, rank, and reviews. Perfect for e-commerce pros and data-driven marketers who need instant marketplace insights.
- [Baselinker](https://composio.dev/toolkits/baselinker) - BaseLinker is an all-in-one e-commerce management platform connecting stores, marketplaces, carriers, and more. It streamlines order processing, inventory control, and automates your sales operations.
- [Bestbuy](https://composio.dev/toolkits/bestbuy) - Best Buy is a leading retailer offering APIs for product, store, and recommendation data. Instantly access up-to-date retail insights for smarter shopping and decision-making.
- [Btcpay server](https://composio.dev/toolkits/btcpay_server) - BTCPay Server is a free, open-source, self-hosted Bitcoin payment processor. It lets merchants accept Bitcoin payments directly, cutting out middlemen and boosting privacy.
- [Cdr platform](https://composio.dev/toolkits/cdr_platform) - Cdr platform is an API for purchasing carbon dioxide removal services. It enables businesses to offset emissions by accessing verified carbon removal projects.
- [Cloudcart](https://composio.dev/toolkits/cloudcart) - CloudCart is an e-commerce platform for building and managing online stores. It helps businesses streamline product listings, orders, and customer engagement.
- [Countdown api](https://composio.dev/toolkits/countdown_api) - Countdown API gives you real-time, structured eBay product data, reviews, and seller feedback. Perfect for powering price monitoring, product research, or marketplace analytics workflows.
- [Dpd2](https://composio.dev/toolkits/dpd2) - Dpd2 is a robust email management platform for handling, sorting, and automating email workflows. Streamline your communications and boost productivity with advanced sorting, labeling, and response tools.
- [Finerworks](https://composio.dev/toolkits/finerworks) - FinerWorks is an online platform for fine art and photo printing services. Artists and photographers use it to order custom prints and manage print inventory efficiently.
- [Fingertip](https://composio.dev/toolkits/fingertip) - Fingertip is a business management platform for selling, booking, and customer engagement—all from a single link. It helps businesses streamline operations and connect with customers across social channels.
- [Fraudlabs pro](https://composio.dev/toolkits/fraudlabs_pro) - FraudLabs Pro is an online payment fraud detection service for e-commerce and merchants. It helps minimize chargebacks and revenue loss by detecting and preventing fraudulent transactions.
- [Gift up](https://composio.dev/toolkits/gift_up) - Gift Up! is a digital platform for selling, managing, and redeeming gift cards online. It streamlines promotions and gift card transactions for businesses and their customers.
- [Goody](https://composio.dev/toolkits/goody) - Goody is a gifting platform that lets users send gifts and physical products without handling logistics. It streamlines gifting by managing delivery, fulfillment, and recipient experience.
- [Gumroad](https://composio.dev/toolkits/gumroad) - Gumroad is a platform for selling digital products, physical goods, and memberships with a simple checkout and marketing tools. It streamlines creator payouts and helps you grow your audience effortlessly.
- [Instacart](https://composio.dev/toolkits/instacart) - Instacart is an online grocery delivery and pickup service platform. It lets you discover local retailers and create shoppable lists and recipes with ease.
- [Junglescout](https://composio.dev/toolkits/junglescout) - Junglescout is an Amazon product research and analytics platform for sellers. It delivers sales estimates, competitive insights, and optimization tools to boost your Amazon business.
- [Ko fi](https://composio.dev/toolkits/ko_fi) - Ko-fi is a platform that lets creators receive donations, memberships, and sales from fans. It helps creators monetize their work and grow their audience with minimal friction.
- [Lemon squeezy](https://composio.dev/toolkits/lemon_squeezy) - Lemon Squeezy is a payments and subscription platform built for software companies. It makes managing payments, taxes, and customer subscriptions effortless.
- [Loyverse](https://composio.dev/toolkits/loyverse) - Loyverse is a point-of-sale (POS) platform for small businesses, offering tools for sales, inventory, and customer loyalty. It helps streamline retail operations and boost customer engagement.

## Frequently Asked Questions

### What is the Composio Universal CLI?

The Composio Universal CLI is a single command-line interface that lets coding agents and developers interact with 1000+ SaaS applications. It handles authentication, tool discovery, action execution, and trigger setup — all from the terminal, without needing to configure MCP servers.

### Which coding agents work with the Composio CLI?

Any coding agent that can run shell commands works with the Composio CLI — including Claude Code, Codex, OpenCode, OpenClaw, and others. Once the CLI is installed, agents automatically discover and use the composio commands to interact with Square and other connected apps.

### How is the CLI different from using an MCP server for Square?

MCP servers require configuration and can be token-heavy for complex workflows. The CLI gives agents a direct, lightweight interface — no server setup needed. Agents simply call composio commands like any other shell tool. It's faster to set up, more reliable for multi-step tool chaining, and works natively with how coding agents already operate.

### How safe is my Square data when using the Composio CLI?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Square data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
