SelfHost Hub SelfHost Hub
EN
← 返回到所有服务

GitHub 仓库信息

获取时间 · 2026年6月5日
★ 9,899 最新版本: v0.70.6 最后更新: 2026年6月5日
README
<div align="center">

<img src="/assets/nango-logo.png?raw=true" width="350">

# Build product integrations with AI.

Connect your product & AI agents with 800+ APIs. Build, run, and maintain integrations with AI in code, on infrastructure built for scale.

[Website](https://nango.dev) · [Docs](https://nango.dev/docs/) · [800+ APIs](https://nango.dev/docs/integrations/overview/) · [Slack Community](https://nango.dev/slack)

[![GitHub Stars](https://img.shields.io/github/stars/NangoHQ/nango?style=social)](https://github.com/NangoHQ/nango/stargazers)
[![License](https://img.shields.io/badge/license-Elastic-blue.svg)](https://github.com/NangoHQ/nango/blob/master/LICENSE)
[![NPM Downloads](https://img.shields.io/npm/dm/@nangohq/node)](https://www.npmjs.com/package/@nangohq/node)

</div>

## What is Nango?

Nango is an open-source platform for building product integrations. It supports [**800+ APIs**](https://nango.dev/docs/integrations/overview) and works with any backend language, AI coding tool, and agent SDK.

You write integration logic as TypeScript functions, or let AI generate them for you, and deploy to Nango's production runtime. Nango handles auth, execution, scaling, and observability.

**Used in production by Replit, Ramp, Mercor, and hundreds more.**

## How it works

Nango gives you three primitives that cover every integration pattern:

### 1. Auth

Managed OAuth, API keys, and token refresh for 800+ APIs. Embed a white-label auth flow in your app. Nango handles credentials, token storage, and multi-tenant connection management.

```typescript
// Embed auth in your frontend
nango.openConnectUI({ onEvent: (event) => { /* handle completion */ } });
```

### 2. Proxy

Make authenticated API requests on behalf of your users. Send requests through Nango's proxy: it resolves the provider, injects credentials, handles retries and rate limits, and returns the response.

```typescript
import { Nango } from '@nangohq/node';

const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

// Make an authenticated request to any API
const response = await nango.get({
    endpoint: '/v3/contacts',
    providerConfigKey: '<INTEGRATION-ID>',
    connectionId: '<CONNECTION-ID>'
});
```

### 3. Functions

Write integration logic as TypeScript functions and deploy to Nango. Functions execute on a production runtime with built-in API access, retries, storage, and observability.

Use the **AI builder** to generate them from a description of your use case.

```typescript
export default async function run(nango: Nango) {
    const { owner, repo, title, body } = nango.input;
    
    const response = await nango.post({
        endpoint: `/repos/${owner}/${repo}/issues`,
        data: { title, body }
    });
    
    return response.data;
}
```

## What you can build

Nango supports every common integration pattern:

| Use case | Description |
| --- | --- |
| [**AI tool calling & MCP**](https://nango.dev/docs/getting-started/use-cases/tool-calling) | Give AI agents the ability to act on external APIs |
| [**Data syncing**](https://nango.dev/docs/guides/functions/syncs/sync-functions) | One or two-way sync for RAG pipelines, indexing, and triggers |
| [**Webhook processing**](https://nango.dev/docs/getting-started/use-cases/webhooks-from-external-apis) | Receive and process webhooks from external APIs reliably |
| [**API unification**](https://nango.dev/docs/getting-started/use-cases/unified-apis) | Normalize APIs to your own universal schema |
| [**Actions**](https://nango.dev/docs/guides/functions/action-functions) | Write data and execute operations on behalf of your users |
| [**Per-customer config**](https://nango.dev/docs/getting-started/use-cases/customer-configuration) | Customize integration behavior for each customer |

## Quickstart

Get up and running in under 5 minutes:

**1. Create an integration.** [Sign up](https://app.nango.dev/signup) (free, no credit card), then configure a new integration in the Integrations tab.

**2. Authorize the API.** On the Connections tab, create a connection and complete the auth flow. Later, embed this in your product:

```typescript
nango.openConnectUI({ onEvent: (event) => { /* handle completion */ } });
```

**3. Access the API.** Retrieve credentials and make authenticated requests:

```typescript
import { Nango } from '@nangohq/node';

const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

const connection = await nango.getConnection('<INTEGRATION-ID>', '<CONNECTION-ID>');
console.log(connection.credentials);
```

Embed the [Auth](https://nango.dev/docs/guides/auth/auth-guide) flow in your product, make requests with the [Proxy](https://nango.dev/docs/guides/platform/proxy-requests), or build custom integrations with [Functions](https://nango.dev/docs/guides/functions/functions-guide).

## Why Nango?

**AI-generated, human-controlled code.**
Nango's AI builder generates TypeScript integration functions from natural language. Unlike black-box solutions, you get readable code you can review, edit, and version control. With full type safety and a built-in testing framework.

**Production-grade infrastructure.** 
Nango processes billions of API requests. The runtime provides per-tenant isolation, elastic scaling, automatic retries, and rate-limit handling. Battle-tested by hundreds of companies in production.

**Auth for 800+ APIs, out of the box.** 
OAuth flows, token refresh, credential storage, and multi-tenant support handled for you. Connect to any API without building auth from scratch.

**Open source and self-hostable.** 
Nango is fully open source. Run it on Nango Cloud or self-host on your own infrastructure. SOC 2 Type II, HIPAA, and GDPR compliant.

**Fits your workflow.** 
Fully operable via CLI and API. Compatible with any backend language or framework, AI coding tools (Cursor, Codex, Claude Code), and agent SDKs (MCP, LangChain).

## Open-source vs. paid

Nango is available under the [Elastic License](https://github.com/NangoHQ/nango/blob/master/LICENSE). The Cloud and Enterprise Self-Hosted versions give you access to all features, based on your [plan](https://www.nango.dev/pricing). You can also [self-host for free](https://nango.dev/docs/guides/platform/self-hosting#free-self-hosting) with a limited feature set.

## Contributing

We welcome contributions — anyone can [add support for a new API](https://nango.dev/docs/integrations/contribute-or-request-api).

Thank you to all contributors ❤️

<a href="https://github.com/nangohq/nango/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=nangohq/nango" />
</a>

Nango 专注于帮助产品快速对接第三方 SaaS,提供 OAuth 授权、令牌轮转、数据同步与统一 API,让团队无需重复实现各类集成逻辑。

核心功能

  • 统一授权流程:封装常见 SaaS 的 OAuth/OIDC 流程,自动处理 Refresh Token 与凭证加密。
  • 标准化 API:针对 CRM、工单、存储等领域提供统一的数据模型,简化上层业务开发。
  • 数据同步任务:通过轮询与 Webhook 自动同步第三方数据,支持增量更新与错误重试。
  • 连接器模板:内置数十个官方连接器,可通过 YAML 定义自定义 SaaS 的端点与字段映射。
  • 开发者工具链:提供 CLI、仪表盘与日志追踪,便于调试和监控集成状态。

部署建议

  1. Docker Compose 默认包含服务端、仪表盘与 PostgreSQL,部署时需设置 NANGO_ENCRYPTION_KEYNANGO_SERVER_URL 等变量。
  2. 若需水平扩展,可将 PostgreSQL 与 Redis(可选)托管到外部服务,并通过队列处理同步任务。
  3. 在生产环境中启用 HTTPS,配置域名并在仪表盘中登记回调地址,以确保 OAuth 重定向正确。
  4. 定期备份数据库,特别是存储的 OAuth 凭证,确保灾备安全。

发现更多