# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: clove-proxy
spec:
    description: Claude.ai reverse proxy that provides standard API access
    icon: https://cdn.nodeimage.com/i/J2NmrLdRdXSQqUBwgwGJBxoXYXuQZXgY.webp
    tags:
        - AI
        - Proxy
        - Claude
        - API
        - Python
    readme: "# Clove \U0001F340\n\n**The all-in-one Claude reverse proxy**\n\nClove is a reverse proxy tool that lets you access Claude.ai through a standard API. It supports both OAuth authentication (Claude Code API) and web proxy mode.\n\n## Features\n\n- \U0001F510 Dual mode operation (OAuth + Web Proxy)\n- \U0001F3AF Outstanding compatibility with Claude API clients\n- \U0001F3A8 Friendly web management interface\n- \U0001F504 Automatic switching between authentication methods\n- \U0001F4CA Quota management and tracking\n\n## Post-Deployment Setup\n\n1. Access the admin panel at `http://your-domain:5201`\n2. Use the admin key shown in deployment logs\n3. Add your Claude account credentials\n4. Create API keys for your applications\n\n## Environment Variables\n\n- `PORT`: Service port (default: 5201)\n- `ADMIN_API_KEYS`: Admin access keys (auto-generated if not set)\n- `COOKIES`: Claude.ai session cookie (optional)\n- `BASE_URL`: Your deployment URL\n"
    services:
        - name: clove
          icon: https://cdn.nodeimage.com/i/J2NmrLdRdXSQqUBwgwGJBxoXYXuQZXgY.webp
          template: PREBUILT
          spec:
            id: clove
            source:
                image: mirrorange/clove:latest
            ports:
                - id: web
                  port: 5201
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/data
            env:
                ADMIN_API_KEYS:
                    default: your-admin-api-key
                    expose: true
                BASE_URL:
                    default: your-base-url
                    expose: true
                DEFAULT_MODEL:
                    default: claude-sonnet-4-20250514
                    expose: true
                LOCALE:
                    default: zh
                    expose: true
                LOG_LEVEL:
                    default: INFO
                    expose: true
                PORT:
                    default: "5201"
                REQUEST_TIMEOUT:
                    default: "300"
                    expose: true
                STREAM_TIMEOUT:
                    default: "300"
                    expose: true
            configs:
                - path: /app/config.json
                  template: |
                    {
                      "api_keys": {},
                      "accounts": [],
                      "settings": {
                        "default_model": "${DEFAULT_MODEL}",
                        "locale": "${LOCALE}"
                      }
                    }
                  permission: null
                  envsubst: null
