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

Configuration KeyDefault ValueDescription
server_urlhttps://hub.opencsg.comURL of the CSGHub platform
model_dir~/.csghub-lite/modelsLocal storage path for model files
listen_addr:11435Address and port for the API server
token(none)Access token for the CSGHub platform

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 Up Multilevel Storage Directory

If you have specific storage requirements, you can change the model_dir:

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