Skip to main content

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

KeyDefaultDescription
storage_dir~/.csghub-liteShared local storage root for models and datasets (convenience setting exposed by CLI and Web UI — expands into model_dir and dataset_dir)
server_urlhttps://hub.opencsg.comCSGHub platform URL
model_dir~/.csghub-lite/modelsEffective local model storage directory
dataset_dir~/.csghub-lite/datasetsEffective local dataset storage directory
listen_addr:11435API 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

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