Scripts2026年9月11日·1 分钟阅读

Corsair — Managed OAuth and API Integration for AI Agents

Corsair is an open-source platform that connects AI agents to user applications through managed OAuth flows. It provides unified API integrations so agents can interact with external services securely.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Corsair Overview
直接安装命令
npx -y tokrepo@latest install d4b11326-adc1-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Corsair is an open-source TypeScript platform that handles the OAuth complexity of connecting AI agents to third-party services. Instead of building custom authentication flows for every API, Corsair provides managed OAuth with a unified integration layer, letting agents securely access tools on behalf of users.

What Corsair Does

  • Manages OAuth 2.0 flows for connecting agents to user accounts
  • Provides unified API integrations across multiple services
  • Handles token refresh and credential management automatically
  • Supports MCP (Model Context Protocol) for agent tool access
  • Enables function calling with pre-authenticated API connections

Architecture Overview

Corsair is built in TypeScript with a server component that manages OAuth state and a client SDK for agent integration. The server handles authorization code flows, token storage, and automatic refresh. Integrations are defined as typed interfaces that map to external APIs, giving agents structured tool access with proper authentication.

Self-Hosting & Configuration

  • Install via npm and initialize a new Corsair project
  • Configure OAuth credentials for each service integration
  • Set up the Corsair server to handle authorization callbacks
  • Connect agents through the SDK or MCP protocol
  • Manage user consent and token lifecycle through the dashboard

Key Features

  • Managed OAuth 2.0 with automatic token refresh
  • Pre-built integrations for popular services
  • MCP-compatible for direct agent tool access
  • TypeScript SDK with full type safety
  • Open-source with self-hosting support

Comparison with Similar Tools

  • Auth.js — general web authentication; Corsair is purpose-built for agent-to-API connections
  • Nango — API integration platform; Corsair focuses specifically on agent workflows
  • Composio — AI tool integration; Corsair provides deeper OAuth management and self-hosting
  • Zapier — no-code automation; Corsair offers programmatic agent-first integration

FAQ

Q: What OAuth providers does Corsair support? A: Corsair supports any OAuth 2.0 compliant provider and includes pre-built configurations for popular services.

Q: Can I self-host Corsair? A: Yes, Corsair is designed for self-hosting and runs as a Node.js server.

Q: How does Corsair work with MCP? A: Corsair exposes authenticated API integrations as MCP tools that agents can call directly.

Q: Does Corsair store user credentials? A: Corsair stores OAuth tokens securely and handles refresh cycles, but does not store user passwords.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产