CliProxyApiServer / README.md
github-actions[bot]
sync huggingface deployment from Viciy2023/CLIProxyAPI@757f412a36d42bcd769c7008d4edf8ab528ada99
f938cda
---
title: CLIProxyAPI Server
sdk: docker
app_port: 8317
pinned: false
---
# CLIProxyAPI Server
This Space runs `CLIProxyAPI` from the latest upstream GitHub release instead of building from source.
## Runtime Layout
- Persistent data directory: `/data`
- Environment file: `/data/.env`
- Main config file: `/data/config.yaml`
- Default home directory: `/data`
## Startup Behavior
- The container downloads the latest release from `router-for-me/CLIProxyAPI` during image build.
- On first start, if `/data/config.yaml` does not exist, it is created from the bundled `config.example.yaml`.
- The service starts with `--config /data/config.yaml`.
- Because the working directory is `/data`, CLIProxyAPI loads `/data/.env` automatically.
## Notes
- Keep the service port aligned with this Space setting. The default here is `8317`.
- Persisted auth data and other runtime files stay under `/data`.