Overview

A native desktop application that provides an OpenAI-compatible API for multiple AI service providers. Use any OpenAI-compatible client with DeepSeek, GLM, Kimi, MiniMax, Qwen, Z.ai and more across macOS, Windows, and Linux.

Features

Core features of Chat2API

  • OpenAI Compatible API: Provides standard OpenAI-compatible interface for seamless integration with existing tools
  • Multi-Provider Support: Supports DeepSeek, GLM, Kimi, MiniMax, Qwen, Z.ai and more
  • Multi-turn Conversation Support: Full support for multi-turn conversations with session management and context preservation
  • Tool Calling Support: Universal tool calling capability for all models via prompt engineering
  • Model Mapping: Flexible model name mapping with wildcard support and preferred provider selection
  • Custom Parameters: Support custom HTTP Headers to enable web search, deep thinking and other features
  • Dashboard Monitoring: Real-time request traffic, token usage and success rate statistics
  • API Key Management: Generate and manage keys for local proxy

Quick Start

Supported Providers

ProviderAuth TypeOAuthModels
DeepSeekUser TokenYesDeepSeek-V3.2
GLMRefresh TokenYesGLM-5
KimiJWT TokenYesKimi-K2.5
MiniMaxJWT TokenYesMiniMax-M2.5
Qwen (CN)SSO TicketYesQwen3.5-Plus, Qwen3-Max, Qwen3-Flash, Qwen3-Coder
Qwen AI (Global)JWT TokenYesQwen3.5-Plus, Qwen3-Max, Qwen3-VL-Plus, Qwen3-Coder-Plus
Z.aiJWT TokenYesGLM-5, GLM-4.7, GLM-4.6V, GLM-4.6

Architecture

Chat2API/
├── src/
│   ├── main/                    # Electron main process
│   │   ├── index.ts            # App entry point
│   │   ├── tray.ts             # System tray integration
│   │   ├── proxy/              # Proxy server management
│   │   ├── ipc/                # IPC handlers
│   │   └── oauth/              # OAuth authentication
│   ├── preload/                # Context bridge
│   └── renderer/               # React frontend
│       ├── components/         # UI components
│       ├── pages/              # Page components
│       ├── stores/             # Zustand state
│       └── hooks/              # Custom hooks
├── build/                      # Build resources
└── scripts/                    # Build scripts

Tech Stack

ComponentTechnology
FrameworkElectron 33+
FrontendReact 18 + TypeScript
StylingTailwind CSS
StateZustand
BuildVite + electron-vite
Packagingelectron-builder
ServerKoa

Data Storage

Application data is stored in ~/.chat2api/ directory:

  • config.json - Application configuration
  • providers.json - Provider settings
  • accounts.json - Account credentials (encrypted)
  • logs/ - Request logs

License

GNU General Public License v3.0. See LICENSE for details.

This means:

  • Free to use, modify, and distribute
  • Derivative works must be open-sourced under the same license
  • Must preserve original copyright notices

On this page