zyf2007

zyf2007 / ChatAPI

Public

把你自己装进 OpenAI responses API 里面,扮演 Assistant 和用户聊天(

17
5
85% credibility
Found May 20, 2026 at 17 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

ChatAPI is a self-hosted chat platform that lets you have conversations with AI assistants. It supports multiple AI provider formats (like OpenAI and Anthropic), provides real-time streaming responses, includes user authentication with two-factor security, offers visual chat workspace and API key access for developers, and features usage statistics tracking. Users can create accounts, manage conversations, set up automation rules for automated responses, and integrate the service into their own applications.

How It Works

1
🔍 Discovering the Project

You find ChatAPI on GitHub - a self-hosted chat platform that works with your favorite AI providers.

2
🚀 Setting Up Your Instance

You deploy the application and connect your AI service so your assistant can think and respond.

3
👤 Creating Your Account

You register with your email, verify it with a code, and set up extra security with two-factor authentication.

4
💬 Having Conversations

You chat with the AI in real-time, watching responses stream in character by character.

5
Choose Your Path
🖥️
Visual Workspace

Use the chat interface to have conversations, set up automation rules, and view statistics.

⚙️
API Access

Generate API keys to integrate the chat functionality into your own applications.

6
📊 Tracking Your Usage

You check the statistics panel to see how many requests you've made and how many tokens you've used.

Everything Works

You have a fully functional chat platform with real-time conversations, user management, and programmatic access.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 17 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ChatAPI?

ChatAPI is a self-hosted chat platform built in Python that replicates OpenAI's Responses API and Chat Completions endpoints, plus Anthropic's Messages API. It bundles a web frontend, user authentication with TOTP two-factor authentication, email-based registration verification, and real-time WebSocket sync so the UI updates instantly when messages arrive. The backend speaks the same protocol dialects your existing code already uses, so swapping in ChatAPI as a middle layer requires minimal changes to client applications.

Why is it gaining traction?

The hook is multi-protocol compatibility. Instead of integrating three separate backends, you get one server that understands OpenAI's responses format, the chat completions format, and Anthropic's message format. Automation rules let you trigger responses based on conditions, which is useful for testing AI behavior without hitting external APIs. Self-hosting with SQLite means zero database setup, and the project handles image uploads, rate limiting, and streaming out of the box.

Who should use this?

Developers building internal tools that need a chat interface with AI backends. Teams running AI experiments who want a local proxy layer before routing to production APIs. Organizations that require self-hosted infrastructure with full control over user authentication and audit trails.

Verdict

This is an early-stage project with only 17 stars and a credibility score of 0.85%. The codebase shows thoughtful architecture, but production readiness is unclear without seeing test coverage and documentation quality. Worth evaluating if you need self-hosted chat infrastructure, but approach as a foundation requiring validation rather than a turnkey solution.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.