Linear CLI for AI Agents

Use Composio Universal CLI with Linear. Create a new bug for team mobile, add a comment to issue lin-123, and more using natural language, with authentication handled for you.

Linear logoLinear
Oauth2Api Key

Linear is a modern issue tracking and project planning tool for fast-moving teams. It helps streamline workflows, organize projects, and boost productivity.

47 Tools12 Triggers

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 1500+ SaaS applications. With Linear, agents can create a new bug for team mobile, add a comment to issue lin-123, list all cycles for the design team, 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 Linear automation.

Also integrate Linear with

What is Universal CLI and why use it?

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 1500+ 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.

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

During login you'll be redirected to sign in page, finish the complete flow and you're all set.

Composio CLI authentication flow

Connecting Linear to Coding Agents via Universal CLI

Once it is installed, it's essentially done. Claude Code, Codex, OpenCode, OpenClaw, or any other agent will be able to access the CLI. A few steps to give agents access to your apps.

  1. Launch your Coding Agent — Claude Code, Codex, OpenCode, anything you prefer.
  2. Prompt it to "Authenticate with Linear"
  3. Complete the authentication and authorization flow and your Linear integration is all set.
  4. Start asking anything you want.

Universal CLI Commands for Linear

You can also manually execute CLI commands to interact with your Linear.

Connect your Linear account

Link your Linear account and verify the connection:

bash
# Connect your Linear account (opens OAuth flow)
composio connected-accounts link linear

# Verify the connection
composio connected-accounts list --toolkits linear

Discover Linear tools

Search and inspect available Linear tools:

bash
# List all available Linear tools
composio tools list --toolkit linear

# Search for Linear tools by action
composio tools search "linear"

# Inspect a tool's input schema
composio tools info LINEAR_SEARCH_ISSUES

Common Linear Actions

Search Linear issues — Search Linear issues using full-text search across identifier, title, and description

bash
composio tools execute LINEAR_SEARCH_ISSUES \
  --query "authentication bug"

List comments — Lists comments from Linear workspace accessible to the authenticated user

bash
composio tools execute LINEAR_LIST_COMMENTS \
  --after "a3e2d67f-ae6e-4591-85ff-97203212115e" \
  --first "25" \
  --before "b4f3e89a-bf7f-5bg5-ce86-a8304323226f" \
  --includeArchived "<boolean>"

List issue drafts — Tool to list issue drafts

bash
composio tools execute LINEAR_LIST_ISSUE_DRAFTS \
  --after "MTY4NzE5NjgwMDAwMA==" \
  --first "20"

List issues by team ID — Tool to list all issues for a specific Linear team, scoped by team ID

bash
composio tools execute LINEAR_LIST_ISSUES_BY_TEAM_ID \
  --team_id "9cfb482a-81e3-4154-b5b9-2c805e70a02d"

Get all cycles — Retrieves all cycles (time-boxed sprint iterations) org-wide from the Linear account; no filters applied

bash
composio tools execute LINEAR_LIST_LINEAR_CYCLES \
  --after "<string>" \
  --first "50"

List Linear issues — Lists non-archived Linear issues; if project_id is not specified, issues from all accessible projects are returned

bash
composio tools execute LINEAR_LIST_LINEAR_ISSUES \
  --after "a3e2d67f-ae6e-4591-85ff-97203212115e" \
  --first "20" \
  --project_id "project-uuid-123" \
  --assignee_id "me"

Get labels — Retrieves labels from Linear

bash
composio tools execute LINEAR_LIST_LINEAR_LABELS \
  --after "<string>" \
  --first "50" \
  --team_id "abcdef01-2345-6789-abcd-ef0123456789"

List linear projects — Retrieves all projects from the Linear account

bash
composio tools execute LINEAR_LIST_LINEAR_PROJECTS \
  --after "<string>" \
  --first "50"

Set up Linear Triggers

Listen for events in real time using triggers:

Comment Received Trigger — Triggered when a comment is received

bash
# Find your connected account ID
composio connected-accounts list --toolkits linear

# Create a trigger
composio triggers create LINEAR_COMMENT_EVENT_TRIGGER \
  --connected-account-id <your-connected-account-id> \
  --trigger-config '{
  "team_id": "<string>"
}'

# Listen for trigger events in real time
composio triggers listen --toolkits linear --table

Issue Created Trigger — Triggered when a new issue is created

bash
# Find your connected account ID
composio connected-accounts list --toolkits linear

# Create a trigger
composio triggers create LINEAR_ISSUE_CREATED_TRIGGER \
  --connected-account-id <your-connected-account-id> \
  --trigger-config '{
  "team_id": "<string>"
}'

# Listen for trigger events in real time
composio triggers listen --toolkits linear --table

Issue Updated Trigger — Triggered when an issue is updated

bash
# Find your connected account ID
composio connected-accounts list --toolkits linear

# Create a trigger
composio triggers create LINEAR_ISSUE_UPDATED_TRIGGER \
  --connected-account-id <your-connected-account-id> \
  --trigger-config '{
  "team_id": "<string>"
}'

# Listen for trigger events in real time
composio triggers listen --toolkits linear --table

Generate Type Definitions

Generate typed schemas for Linear tools to get autocomplete and type safety in your project:

bash
# Auto-detect language
composio generate --toolkits linear

# TypeScript
composio ts generate --toolkits linear

# Python
composio py generate --toolkits linear

Tips & Tricks

  • Always inspect a tool's input schema before executing: composio tools info <TOOL_NAME>
  • Pipe output with jq for better readability: composio tools execute TOOL_NAME -d '{}' | jq
  • Set COMPOSIO_API_KEY as an environment variable for CI/CD pipelines
  • Use composio dev logs tools to inspect execution logs and debug issues

Next Steps

  • Try asking your coding agent to perform various Linear 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
TOOLS & TRIGGERS

Supported Tools and Triggers

Every Linear action and event your agent gets out of the box.

Archive issue

Archives an existing Linear issue by its UUID or shorthand identifier, removing it from active views while preserving its data for future reference.

Archive Project

Archives an existing Linear project by its UUID, removing it from active views.

Archive Project Update

Archives a project update in Linear, hiding it from the default view while preserving its data.

Create attachment

Creates a new attachment and associates it with a specific, existing Linear issue.

Add reaction to comment

Tool to add a reaction to an existing Linear comment.

Create a comment

Creates a new comment on a specified Linear issue.

Create linear issue

Creates an issue in a specified Linear team with a title and optional project, description, assignee, state, priority, cycle, due date, and other properties.

Create issue relation

Create a relationship between two Linear issues using the issueRelationCreate mutation.

Create a label

Creates a label for a specified Linear team, or returns an existing exact-name match found in the team's initial label results.

Create Project

Creates a new Linear project with specified name and team associations.

Create Project Milestone

Tool to create a project milestone in Linear with a name and optional target date and sort order.

Create Project Update

Tool to create a project status update post for a Linear project.

Create Team

Creates a new team in Linear with the specified name and key.

Delete issue

Archives an existing Linear issue by its ID, which is Linear's standard way of deleting issues; the operation is idempotent.

Download issue files

Downloads a Linear Attachment record or a private upload embedded in issue/comment Markdown; `file_name` must include the correct extension.

Get a comment

Retrieves a single Linear comment by its unique ID.

Get current user

Gets the currently authenticated Linear user's ID, name, email, and other profile information.

Get cycles by team ID

Lists cycles for a specified Linear team ID, including progress, creation and end times, and history.

Get create issue default params

Fetches a Linear team's default issue estimate and state, useful for pre-filling new issue forms.

Get Linear issue

Retrieves a Linear issue by UUID or shorthand identifier, including its details, parent, cycle, attachments, comments and subscribers.

Get Linear project

Retrieves a single Linear project by its unique identifier.

Get Project Update

Retrieves a specific project update by its unique identifier.

List comments

Lists comments from Linear workspace accessible to the authenticated user.

List issue drafts

Lists the connected user's issue drafts for review or editing.

List issues by team ID

Tool to list all issues for a specific Linear team, scoped by team ID.

Get all cycles

Lists cycles across the Linear account without filters, including team IDs and scheduled end times.

List Linear issues

Lists non-archived Linear issues with optional project and assignee filters, returning a paginated issues array and page_info.

Get labels

Retrieves paginated Linear issue labels for a specified team or across the workspace.

List linear projects

Retrieves all projects from the Linear account.

List Linear states

Retrieves all workflow states for a specified team in Linear, representing the stages an issue progresses through in that team's workflow.

Get teams

Lists visible Linear teams with their members and project IDs, with pagination for teams but not nested members or projects.

List Linear users

Lists workspace users with IDs, names, emails, and active status.

List project updates

Retrieves all project updates from the Linear workspace.

Remove label from Linear issue

Removes a specified label from a Linear issue using the issue and label IDs, and returns the updated issue and labels.

Remove reaction from comment

Tool to remove a reaction on a comment.

Resolve comment

Marks a Linear comment as resolved.

Run Query or Mutation

Execute a Linear GraphQL query or mutation to retrieve or change accessible data.

Search Linear issues

Searches Linear issues by full-text query, with pagination and an option to include archived issues.

Unarchive Project Update

Unarchive a previously archived project update in Linear.

Unresolve a comment

Unresolves a previously resolved Linear comment, marking it as requiring attention again.

Update issue

Updates an existing Linear issue by ID, requiring at least one field to modify; supplied fields overwrite existing values and labels replace the label set.

Update a comment

Tool to update an existing Linear comment's body text.

Update Project

Tool to update an existing Linear project.

Update Project Update

Tool to update an existing Linear project update post.

Update Team

Updates an existing Linear team's settings, including its name, key, cycle settings, and workflow state configuration.

Validate credential

Validates the Linear API credentials by checking if the authentication token can successfully query the current user.

Who Am I

Return the identity (name, email) of the connected Linear account.

FAQ

Frequently asked questions

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

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 Linear and other connected apps.

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.

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 Linear data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

Start with Linear.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Linear tool your agent needs.Free to start.

Start building