Configuration File Description
The configuration file for CSGHub-Lite is stored in the ~/.csghub-lite/config.json file in your home directory. You can customize your environment through the command line or by editing this JSON file directly.
Core Configuration Items
| Key | Default | Description |
|---|---|---|
storage_dir | ~/.csghub-lite | Shared local storage root for models and datasets (convenience setting exposed by CLI and Web UI — expands into model_dir and dataset_dir) |
server_url | https://hub.opencsg.com | CSGHub platform URL |
model_dir | ~/.csghub-lite/models | Effective local model storage directory |
dataset_dir | ~/.csghub-lite/datasets | Effective local dataset storage directory |
listen_addr | :11435 | API server listen address |
token | (none) | CSGHub access token |
Modifying Configuration
You can use the csghub-lite config set command to quickly modify configurations.
Example: Switching to a Private Deployment Platform
csghub-lite config set server_url https://my-private-csghub.example.com
Example: Setting a Unified Storage Path (Recommended)
Use storage_dir to move both models and datasets to a single custom location at once:
csghub-lite config set storage_dir /Volumes/ExternalSSD/csghub-lite
Example: Setting the Model Directory Separately
If you only want to change where models are stored, you can set model_dir directly:
csghub-lite config set model_dir /Volumes/ExternalSSD/models
Example: Changing the Port
If you want the API to run on a different port:
csghub-lite config set listen_addr :12345