# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: ZeroClaw
spec:
    description: |
        ZeroClaw is a lightweight, high-performance AI assistant framework written in Rust. It supports multiple LLM providers (OpenRouter, OpenAI, Anthropic, Ollama, etc.) and runs as an HTTP Gateway service with minimal resource usage.
    icon: https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/zeroclaw.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: Domain to bind to the ZeroClaw gateway service
        - key: API_KEY
          type: STRING
          name: API Key
          description: API key for your LLM provider
        - key: API_BASE_URL
          type: STRING
          name: API Base URL
          description: OpenAI-compatible API base URL (e.g. https://api.openai.com/v1, https://openrouter.ai/api/v1)
        - key: ZEROCLAW_MODEL
          type: STRING
          name: Model Name
          description: Model identifier (e.g. gpt-4o, claude-sonnet-4-20250514)
        - key: LARK_APP_ID
          type: STRING
          name: Lark App ID
          description: Lark/Feishu app ID (e.g. cli_xxx)
        - key: LARK_APP_SECRET
          type: STRING
          name: Lark App Secret
          description: Lark/Feishu app secret
        - key: USE_FEISHU
          type: STRING
          name: Use Feishu (China)
          description: Set to true for Feishu (China), false for Lark (International)
    tags:
        - AI
        - Tool
    readme: |
        # ZeroClaw

        A lightweight, high-performance AI assistant framework built with Rust.

        ## Configuration

        - **API_KEY**: Your LLM provider API key
        - **API_BASE_URL**: OpenAI-compatible API base URL
        - **ZEROCLAW_MODEL**: Model to use (e.g. `gpt-4o`, `claude-sonnet-4-20250514`)

        ## Usage

        After deployment, access the ZeroClaw gateway at your configured domain.

        The gateway listens on port 42617 and provides an HTTP API for interacting with the AI assistant.

        ## Documentation

        See [ZeroClaw GitHub](https://github.com/zeroclaw-labs/zeroclaw/) for full documentation.
    services:
        - name: zeroclaw
          icon: https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/zeroclaw.svg
          template: PREBUILT_V2
          spec:
            id: zeroclaw
            source:
                image: ghcr.io/zeroclaw-labs/zeroclaw:latest
            ports:
                - id: web
                  port: 42617
                  type: HTTP
            volumes:
                - id: data
                  dir: /zeroclaw-data
            env:
                API_KEY:
                    default: ${API_KEY}
                PROVIDER:
                    default: custom:${API_BASE_URL}
                ZEROCLAW_ALLOW_PUBLIC_BIND:
                    default: "true"
                ZEROCLAW_GATEWAY_HOST:
                    default: 0.0.0.0
                ZEROCLAW_GATEWAY_PORT:
                    default: "42617"
                ZEROCLAW_MODEL:
                    default: ${ZEROCLAW_MODEL}
                ZEROCLAW_TEMPERATURE:
                    default: "0.7"
                ZEROCLAW_WORKSPACE:
                    default: /zeroclaw-data
            configs:
                - path: /root/.zeroclaw/config.toml
                  template: |
                    [channels_config.lark]
                    app_id = "${LARK_APP_ID}"
                    app_secret = "${LARK_APP_SECRET}"
                    encrypt_key = ""
                    verification_token = ""
                    allowed_users = ["*"]
                    mention_only = false
                    use_feishu = ${USE_FEISHU}
                    receive_mode = "websocket"
                  permission: 420
                  envsubst: null
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            ZeroClaw es un framework de asistente de IA ligero y de alto rendimiento escrito en Rust. Soporta múltiples proveedores de LLM (OpenRouter, OpenAI, Anthropic, Ollama, etc.) y funciona como servicio HTTP Gateway con uso mínimo de recursos.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: Dominio para vincular al servicio ZeroClaw Gateway
            - key: API_KEY
              type: STRING
              name: Clave API
              description: Clave API de su proveedor de LLM
            - key: API_BASE_URL
              type: STRING
              name: URL base de API
              description: URL base de API compatible con OpenAI (ej. https://api.openai.com/v1)
            - key: ZEROCLAW_MODEL
              type: STRING
              name: Nombre del modelo
              description: Identificador del modelo (ej. gpt-4o, claude-sonnet-4-20250514)
            - key: LARK_APP_ID
              type: STRING
              name: Lark App ID
              description: App ID de la aplicacion Lark/Feishu (ej. cli_xxx)
            - key: LARK_APP_SECRET
              type: STRING
              name: Lark App Secret
              description: App Secret de la aplicacion Lark/Feishu
            - key: USE_FEISHU
              type: STRING
              name: Usar Feishu (China)
              description: true para Feishu (China), false para Lark (Internacional)
        readme: |
            # ZeroClaw

            Framework de asistente de IA ligero y de alto rendimiento construido con Rust.

            ## Configuración

            - **API_KEY**: Clave API de su proveedor de LLM
            - **API_BASE_URL**: URL base de API compatible con OpenAI
            - **ZEROCLAW_MODEL**: Modelo a usar (ej. `gpt-4o`, `claude-sonnet-4-20250514`)

            ## Uso

            Después del despliegue, acceda al gateway de ZeroClaw a través de su dominio configurado.

            El gateway escucha en el puerto 42617 y proporciona una API HTTP para interactuar con el asistente de IA.

            ## Documentación

            Consulte [ZeroClaw GitHub](https://github.com/zeroclaw-labs/zeroclaw/) para la documentación completa.
    id-ID:
        description: |
            ZeroClaw adalah framework asisten AI yang ringan dan berkinerja tinggi yang ditulis dalam Rust. Mendukung berbagai penyedia LLM (OpenRouter, OpenAI, Anthropic, Ollama, dll.) dan berjalan sebagai layanan HTTP Gateway dengan penggunaan sumber daya minimal.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk diikat ke layanan ZeroClaw Gateway
            - key: API_KEY
              type: STRING
              name: Kunci API
              description: Kunci API penyedia LLM Anda
            - key: API_BASE_URL
              type: STRING
              name: URL Dasar API
              description: URL dasar API yang kompatibel dengan OpenAI (mis. https://api.openai.com/v1)
            - key: ZEROCLAW_MODEL
              type: STRING
              name: Nama Model
              description: Pengidentifikasi model (mis. gpt-4o, claude-sonnet-4-20250514)
            - key: LARK_APP_ID
              type: STRING
              name: Lark App ID
              description: App ID aplikasi Lark/Feishu (mis. cli_xxx)
            - key: LARK_APP_SECRET
              type: STRING
              name: Lark App Secret
              description: App Secret aplikasi Lark/Feishu
            - key: USE_FEISHU
              type: STRING
              name: Gunakan Feishu (China)
              description: true untuk Feishu (China), false untuk Lark (Internasional)
        readme: |
            # ZeroClaw

            Framework asisten AI ringan dan berkinerja tinggi yang dibangun dengan Rust.

            ## Konfigurasi

            - **API_KEY**: Kunci API penyedia LLM Anda
            - **API_BASE_URL**: URL dasar API yang kompatibel dengan OpenAI
            - **ZEROCLAW_MODEL**: Model yang digunakan (mis. `gpt-4o`, `claude-sonnet-4-20250514`)

            ## Penggunaan

            Setelah deployment, akses gateway ZeroClaw melalui domain yang telah dikonfigurasi.

            Gateway mendengarkan pada port 42617 dan menyediakan HTTP API untuk berinteraksi dengan asisten AI.

            ## Dokumentasi

            Lihat [ZeroClaw GitHub](https://github.com/zeroclaw-labs/zeroclaw/) untuk dokumentasi lengkap.
    ja-JP:
        description: |
            ZeroClaw は Rust で構築された軽量・高性能な AI アシスタントフレームワークです。複数の LLM プロバイダー（OpenRouter、OpenAI、Anthropic、Ollama など）に対応し、HTTP Gateway サービスとして動作します。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: ZeroClaw Gateway サービスにバインドするドメイン
            - key: API_KEY
              type: STRING
              name: API キー
              description: LLM プロバイダーの API キー
            - key: API_BASE_URL
              type: STRING
              name: API ベース URL
              description: OpenAI 互換の API ベース URL（例：https://api.openai.com/v1）
            - key: ZEROCLAW_MODEL
              type: STRING
              name: モデル名
              description: モデル識別子（例：gpt-4o、claude-sonnet-4-20250514）
            - key: LARK_APP_ID
              type: STRING
              name: Lark App ID
              description: Lark/Feishu アプリの App ID（例：cli_xxx）
            - key: LARK_APP_SECRET
              type: STRING
              name: Lark App Secret
              description: Lark/Feishu アプリの App Secret
            - key: USE_FEISHU
              type: STRING
              name: Feishu を使用（中国版）
              description: true で Feishu（中国）、false で Lark（国際版）を使用
        readme: |
            # ZeroClaw

            Rust で構築された軽量・高性能な AI アシスタントフレームワーク。

            ## 設定

            - **API_KEY**：LLM プロバイダーの API キー
            - **API_BASE_URL**：OpenAI 互換の API ベース URL
            - **ZEROCLAW_MODEL**：使用するモデル（例：`gpt-4o`、`claude-sonnet-4-20250514`）

            ## 使い方

            デプロイ後、設定したドメインから ZeroClaw Gateway にアクセスできます。

            Gateway はポート 42617 でリッスンし、AI アシスタントと対話するための HTTP API を提供します。

            ## ドキュメント

            詳細は [ZeroClaw GitHub](https://github.com/zeroclaw-labs/zeroclaw/) をご覧ください。
    zh-CN:
        description: |
            ZeroClaw 是一个用 Rust 编写的轻量级高性能 AI 助手框架。支持多种 LLM 提供商（OpenRouter、OpenAI、Anthropic、Ollama 等），以 HTTP Gateway 服务运行，资源占用极低。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 绑定到 ZeroClaw Gateway 服务的域名
            - key: API_KEY
              type: STRING
              name: API 密钥
              description: LLM 提供商的 API 密钥
            - key: API_BASE_URL
              type: STRING
              name: API 基础地址
              description: OpenAI 兼容的 API 基础地址（如 https://api.openai.com/v1）
            - key: ZEROCLAW_MODEL
              type: STRING
              name: 模型名称
              description: 模型标识符（如 gpt-4o、claude-sonnet-4-20250514）
            - key: LARK_APP_ID
              type: STRING
              name: 飞书 App ID
              description: 飞书/Lark 应用的 App ID（如 cli_xxx）
            - key: LARK_APP_SECRET
              type: STRING
              name: 飞书 App Secret
              description: 飞书/Lark 应用的 App Secret
            - key: USE_FEISHU
              type: STRING
              name: 使用飞书（中国版）
              description: 设为 true 使用飞书（中国），设为 false 使用 Lark（国际版）
        readme: |
            # ZeroClaw

            用 Rust 构建的轻量级高性能 AI 助手框架。

            ## 配置

            - **API_KEY**：LLM 提供商的 API 密钥
            - **API_BASE_URL**：OpenAI 兼容的 API 基础地址
            - **ZEROCLAW_MODEL**：使用的模型（如 `gpt-4o`、`claude-sonnet-4-20250514`）

            ## 使用方式

            部署完成后，通过您配置的域名访问 ZeroClaw Gateway。

            Gateway 监听 42617 端口，提供 HTTP API 与 AI 助手交互。

            ## 文档

            完整文档请参阅 [ZeroClaw GitHub](https://github.com/zeroclaw-labs/zeroclaw/)。
    zh-TW:
        description: |
            ZeroClaw 是一個用 Rust 編寫的輕量級高效能 AI 助手框架。支援多種 LLM 提供商（OpenRouter、OpenAI、Anthropic、Ollama 等），以 HTTP Gateway 服務運行，資源佔用極低。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 綁定到 ZeroClaw Gateway 服務的網域
            - key: API_KEY
              type: STRING
              name: API 金鑰
              description: LLM 提供商的 API 金鑰
            - key: API_BASE_URL
              type: STRING
              name: API 基礎網址
              description: OpenAI 相容的 API 基礎網址（如 https://api.openai.com/v1）
            - key: ZEROCLAW_MODEL
              type: STRING
              name: 模型名稱
              description: 模型識別碼（如 gpt-4o、claude-sonnet-4-20250514）
            - key: LARK_APP_ID
              type: STRING
              name: 飛書 App ID
              description: 飛書/Lark 應用的 App ID（如 cli_xxx）
            - key: LARK_APP_SECRET
              type: STRING
              name: 飛書 App Secret
              description: 飛書/Lark 應用的 App Secret
            - key: USE_FEISHU
              type: STRING
              name: 使用飛書（中國版）
              description: 設為 true 使用飛書（中國），設為 false 使用 Lark（國際版）
        readme: |
            # ZeroClaw

            用 Rust 構建的輕量級高效能 AI 助手框架。

            ## 配置

            - **API_KEY**：LLM 提供商的 API 金鑰
            - **API_BASE_URL**：OpenAI 相容的 API 基礎網址
            - **ZEROCLAW_MODEL**：使用的模型（如 `gpt-4o`、`claude-sonnet-4-20250514`）

            ## 使用方式

            部署完成後，透過您配置的網域存取 ZeroClaw Gateway。

            Gateway 監聽 42617 埠，提供 HTTP API 與 AI 助手互動。

            ## 文件

            完整文件請參閱 [ZeroClaw GitHub](https://github.com/zeroclaw-labs/zeroclaw/)。
