--- 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`.