lza6

Puter Python — AI skill for Claude Code

AI community

FastAPI 异步高并发架构、OpenAI 接口完全兼容 ( /v1/chat/completions )、Puter.js 逆向桥接、多账号自动轮询负载均衡、SSE 流式响应转换、请求头伪装 (Referer/Origin Spoofing) 与反检测、本地 SQLite 数据持久化、无需浏览器 (Pure HTTP Client)、支持 GPT-4o/Claude-3.5/Flux 等全模型.

How to install Puter Python

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lza6/puter-python and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Puter Python does

FastAPI 异步高并发架构、OpenAI 接口完全兼容 ( /v1/chat/completions )、Puter.js 逆向桥接、多账号自动轮询负载均衡、SSE 流式响应转换、请求头伪装 (Referer/Origin Spoofing) 与反检测、本地 SQLite 数据持久化、无需浏览器 (Pure HTTP Client)、支持 GPT-4o/Claude-3.5/Flux 等全模型。

Alternatives in AI

  • Azure OpenAI .net — GPT-4, embeddings, DALL-E, and Whisper client 1.8k ★
  • Loushang — AI-native agent harness for coding workflows by python: multi-model LLM orchestration, stateful sessions, tool 1.3k ★
  • Stardust Agent — 大学生申报材料(申报书、申请书、商业计划书、实践报告、个人陈述)一站式工作台 163 ★

README

🚀 Puter Python Manager (PPM) - 本地 AI 算力桥梁

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Python](https://img.shields.io/badge/Python-3.8%2B-yellow.svg)](https://www.python.org/) [![Puter.js](https://img.shields.io/badge/Powered%20By-Puter.js-purple.svg)](https://puter.com/) [![Status](https://img.shields.io/badge/Status-Active-success.svg)](https://github.com/lza6/puter-python)

**"让每个人都能平等、自由、便捷地触达 AI 的力量。"** 🌌

欢迎来到 **Puter Python Manager (PPM)**!这是一个创新的开源项目,旨在打通 Web 端与本地 Python 环境的壁垒。通过集成强大的 [Puter.js](https://docs.puter.com/),我们将云端的 GPT-4、Claude 3.5 等顶级 AI 模型能力,"桥接"到您的本地 Python 环境中,并提供优雅的可视化管理界面。

🔗 **GitHub 仓库**: [https://github.com/lza6/puter-python](https://github.com/lza6/puter-python)


📖 目录

  1. 🌟 项目简介
  2. 🏗️ 系统架构图
  3. 📂 项目结构树
  4. ⚡ 快速开始
  5. 🛠️ 技术原理与深度解析
  6. 🎨 UI/UX 设计
  7. ✅ 优缺点与适用场景
  8. 🗺️ 开发路线图
  9. 🤝 开源理念
  10. 📜 许可证

🌟 项目简介

核心功能

**Puter Python Manager** 是一个智能中间件系统:

  • 在您的本地运行一个 Web 服务器(基于 FastAPI)
  • 提供美观的 Web 界面,用于管理 Puter 账号(支持多种 AI 模型)
  • 将 AI 能力转换为标准的 OpenAI 格式 API 接口
  • 最终效果:您可以在本地使用 Python 代码或任何兼容 OpenAI API 的工具,免费调用 GPT-4o、Claude 3.5 Sonnet 等高级模型!

核心价值

  1. 💸 零成本访问:利用 Puter 提供的免费额度,无需支付昂贵的 API 费用
  2. 🔒 本地化管理:所有账号数据、Cookie、日志均存储在本地 data/ 目录,确保隐私安全
  3. ⚙️ 开发者友好:为 Python 开发者提供即用型 AI 接口,无需复杂的 API 申请流程
  4. 🎨 开箱即用:内置类似 ChatGPT 的聊天界面和类似 Midjourney 的图像生成界面

🏗️ 系统架构图

flowchart TB
    subgraph "🌐 用户端"
        A[🧑 用户] --> B[🌍 浏览器]
        A --> C[🐍 Python 脚本]
        A --> D[⚡ API 客户端]
    end
    
    subgraph "🏠 本地服务 (PPM)"
        E["🚀 FastAPI 服务器
localhost:8000"] F["🔄 API 网关
/v1/chat/completions"] G["⚖️ 负载均衡器
账号智能调度"] H["🌉 Puter 桥接器
流式传输/图像生成"] I["💾 数据存储
SQLite + 本地文件"] E --> F F --> G G -