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 Key | Default Value | Description |
|---|---|---|
server_url | https://hub.opencsg.com | URL of the CSGHub platform |
model_dir | ~/.csghub-lite/models | Local storage path for model files |
listen_addr | :11435 | Address 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