项目文件夹

文件
Qingshan Chen 4fc5201cb2 Support multiple model service platforms, redesign the AI audit detail page, and upgrade the OpenClaw image and Gateway startup flow (#24)
Background
This update focuses on three areas:

- Improve model onboarding capabilities by supporting unified configuration across multiple model service platforms
- Optimize the AI audit detail page to improve trace troubleshooting and readability
- Upgrade the OpenClaw runtime image and automatically enable the Gateway after instance startup

Changes
1. Support multiple model service platforms
- Introduce a vendor template mechanism for model onboarding, allowing quick selection of different model service platforms through a searchable dropdown
- Preconfigure fixed `base_url` values for common platforms to reduce manual input and configuration errors
- Support custom `base_url` for `Local / Internal`, compatible with local gateways, internal proxies, and self-hosted compatible services
- Add vendor icons to improve recognizability on the model configuration page
- Optimize the model creation experience so newly created cards appear at the top, making them easier to find when many models exist
- Optimize provider model discovery logic to support OpenAI-compatible services with non-standard version paths

2. Optimize the AI audit detail page
- Rework the trace detail layout to improve information hierarchy and readability
- Change audit timestamps to a combined relative + absolute format for more intuitive troubleshooting
- Add an execution flow view so the full process can be inspected by execution node
- Add a minimap to quickly locate execution nodes and keep navigation aligned with detail scrolling
- Remove duplicated or low-value information blocks to simplify the trace detail experience
- Optimize status rendering and failure reason unwrapping to prevent error payloads from polluting the status field

3. Upgrade the OpenClaw image and automatically enable the Gateway
- Upgrade the default OpenClaw runtime image to the new image address
- Automatically initialize and enable the Gateway when the new image starts, reducing manual instance-side operations
- Update the system default image configuration and add migration logic for existing default values
2026-03-30 21:27:37 +08:00
..
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00
2026-03-20 19:06:48 +08:00

ClawReef Backend

ClawReef virtual desktop management platform backend API.

Tech Stack

  • Golang 1.21+
  • Gin 1.9+
  • upper/db 4.x
  • MySQL 8.0+
  • JWT Authentication

Quick Start

Prerequisites

  • Go 1.21 or higher
  • MySQL 8.0+
  • Docker (optional)

Development Setup

  1. Install dependencies

    make deps
    
  2. Start MySQL with Docker

    make docker-up
    
  3. Run database migration

    make migrate
    
  4. Start the server

    make run
    

API Endpoints

Server runs on port 9001.

Authentication

  • POST /api/v1/auth/register - User registration
  • POST /api/v1/auth/login - User login
  • POST /api/v1/auth/refresh - Refresh token
  • POST /api/v1/auth/logout - User logout
  • GET /api/v1/auth/me - Get current user

Default Admin Account

  • Username: admin
  • Password: admin123

Project Structure

backend/
├── cmd/server/          # Application entry point
├── internal/
│   ├── config/          # Configuration
│   ├── db/              # Database connection & migrations
│   ├── models/          # Data models
│   ├── repository/      # Data access layer
│   ├── services/        # Business logic
│   ├── handlers/        # HTTP handlers
│   ├── middleware/      # HTTP middleware
│   └── utils/           # Utilities
├── deployments/         # Docker & K8s configs
└── configs/             # Configuration files

Make Commands

  • make build - Build the binary
  • make run - Run the server
  • make test - Run tests
  • make fmt - Format code
  • make lint - Run linter
  • make docker-up - Start MySQL container
  • make migrate - Run database migrations