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 |
|---|---|---|
server_url | https://hub.opencsg.com | CSGHub platform URL |
model_dir | ~/.csghub-lite/models | Local model 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 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